start
Starts profiling.
You can call start() in activity onCreate() and pass the activity as parameter
class MyActivity : AppCompatActivity() {
private var sdk: DwnProfilingSDK? = null
override fun onCreate(savedInstanceState: Bundle?) {
val config = hashMapOf(
"profiling_debug": true
)
sdk = DwnProfilingSDK()
sdk.start(config, this)
...
}
// stop SDK when activity destroyed
override fun onDestroy() {
sdk.stop()
}
...
}
Content copied to clipboard
Parameters
config
optional - a set of configuration parameters. Note that this same map can be provided in the start method, which may be useful in particular if permissions require processing or it is unclear what is needed at class creation tme Config Parameters:
activity
optional, Activity - An activity that you wish to bind to - typically you would use this and instigate within your current view
Param Name | type | default | Description | Example |
profiling_debug | Boolean | true | Indicates whether to include additional diagnostic metadata with the profiling event. Useful for troubleshooting and analyzing events with missing or incomplete data. NOTE: This does not enable console logging | true |
biometrics | Boolean | true | Denotes whether to capture any biometric capabilities - eg from touch gestures or device sensors such as accelerometers. Note that these can be controlled individually through touch and sensor config options | true |
touch | Boolean | true | Denotes whether to capture touch biometrics gesture metadata. This is useful for determining robotic behavior anomalies within your app | true |
sensor | Boolean | true | Denotes whether to capture profiling information from sensors such as the device's accelerometer, light sensor, and gyroscope. Values that have low deviation typically suggest that the device is either being emulated or part of a device farm | true |
log_level | string | warn | sets the debug log level. This is useful for internally debugging your application | info, debug, warn, error, verbose, disable |
dns_domain | string | this is a domain used to determine what DNS server is being used by the device's primary network interface. It should be left as the default value in most circumstances | ats.example.com | |
https_profiling_domain | string | domain used to profile the devices HTTPS connection behavior to determine fingerprints. It should be left as the default in most instances | ||
MaxSensorCount | Int | 100 | The maximum number of sensors to profiling | |
MaxSwipesCount | Int | 10 | The maximum number of swipes to count prior to profiling finishing | |
malware_scan | Boolean | false | enable/disable malware scanning, default is disabled |