start

final Unit start(    Application application,     String appId,     PerimeterXDelegate delegate,     Boolean enableDoctorCheck,     Function1<Boolean, Unit> completion)

Start the bot protection. Protection will be started only after the completion is called with true result.

Parameters

application

The application object.

appId

The AppID of your account.

delegate

A delegate object that conform to PerimeterXDelegate protocol.

enableDoctorCheck

Should start the Doctor App feature. Default is false

completion

: A completion block. Returns true if the initialization finished successfully, otherwise returns false and an error.