checkSecurityStatusAsynchronously

open fun checkSecurityStatusAsynchronously(@NonNull owner: LifecycleOwner, @NonNull callback: ISecurityStatusCallback): UUID

This method is used to check if the application is installed and executed on a safety device.

This method only works when the user has enabled the security functionality using the STWConfiguration

A device is recognized as secure only when all the below conditions are met :

  1. Device not rooted
  2. Device storage encrypted
  3. Device keyguard is secured (PIN, pattern or password)
This method is the same as checkSecurityStatus, except that it is executed asynchronously by using a Worker thread

Return

the UUID of the launched Worker thread

Parameters

owner

The LifeCycle owner

callback

to receive the the device security status (See : DeviceSecurityStatus) asynchronously