Использование SDK
Last updated
Was this helpful?
Was this helpful?
val botProtection by lazy {
BotProtection.getInstance()
}botProtection
.sendUUID("uuid")
.start()botProtection.sendUUID("uuid")botProtection
.sendUUID("uuid")
.start() botProtection
.setMode(Mode.NO_TOKEN) \\ or Mode.WITH_TOKEN
.setListener(botProtectionListener)
.stop().setListener(object : BotProtectionListener {
override fun onSuccess(botProtectionResult: BotProtectionResult) {
Log.i(TAG, "challengeId: ${botProtectionResult.challengeId}, "
+ "token: ${botProtectionResult.token}")
}
override fun onError(result: BotProtectionError) {
Log.e(TAG, botProtectionError.name)
}
})