Detect Threats
Execute checks to detect specific threats.
-
Class to detect security threats within content and protect your app users, especially where user-generated content is handled.
Check if URLs, IP addresses or messages called or used within your application are safe. Implement checks which help protect your app users from malicious websites, phishing attempts, malware, adware, and other web sources that pose a threat to your data.
If your application calls IP address or URLs which are not destined for your application server, use
checkIP(_:completionHandler:)
orcheckURL(_:completionHandler:)
to determine if the resource server is safe before making a request to that address or URL.If your application processes user-generated content, scan the messages using
See morecheckMessage(body:sender:completionHandler:)
to detect phishing attempts or unsafe links embedded in content. This enables you to catch potential threats before displaying or sending user-generated content. You could choose to block the message or highlight the content may contain unsafe links.Declaration
Swift
@objc public class ContentChecker : NSObject, InitializationStateProvider
-
Indicate whether a result from
See moreContentChecker
is safe or unsafe.Declaration
Swift
@objc public enum ContentCheckerResult : Int, CaseIterable
-
Execute the checks related to the device security and software.
By default device checks will be run when the application is launched (cold start) and any risks notified via the ThreatStatus API. However as the status of a user’s device could change whilst an application is running, it may in some circumstances be advisable to re-run the checks.
For example, when a user requests to make a financial transaction or is asked to enter sensitive information.
See moreDeclaration
Swift
@objc public class DeviceChecker : NSObject, InitializationStateProvider