HumanSecurity

Human Security main class. You should interact with it in order to setup and start the SDK.

Properties

Link copied to clipboard

Account Defender object.

Link copied to clipboard

Bot Defender object.

Functions

Link copied to clipboard

Returns the current SDK version.

Link copied to clipboard
fun setupWebView(webView: WebView, webViewClient: WebViewClient?)

Setup the web view to be synced with SDK. Do not set a web view client to the web view after calling this function. If you wish to set a web view client, call this function again with the new web view client. This function enables JavaScript in the web view's settings. Do not change this setting.

Link copied to clipboard
fun start(application: Application, appIds: ArrayList<String>, policy: HSPolicy)

Call this function to start th SDK with multiple AppIDs. You should call this function only once. You should call this function only from the main thread.

fun start(application: Application, appId: String, policy: HSPolicy)

Call this function to start th SDK with a single AppID. You should call this function only once. You should call this function only from the main thread.

Link copied to clipboard
fun vid(appId: String? = null): String?

Get the VID for given AppID.