Keyri constructor

  1. @Deprecated("This constructor is deprecated. Use Keyri.primary constructor with KeyriDetectionsConfig param")
Keyri(
  1. dynamic appKey, {
  2. String? publicApiKey,
  3. String? serviceEncryptionKey,
  4. bool? blockEmulatorDetection,
})

Pass required appKey for given Origin. Provide optional publicApiKey and serviceEncryptionKey parameters to use fraud prevention and mobile fingerprinting. Set blockEmulatorDetection parameter to false if you want to deny run your app on emulators, true by default.

Implementation

@Deprecated(
    "This constructor is deprecated. Use Keyri.primary constructor with KeyriDetectionsConfig param")
Keyri(appKey,
    {String? publicApiKey,
    String? serviceEncryptionKey,
    bool? blockEmulatorDetection}) {
  _appKey = appKey;
  _publicApiKey = publicApiKey;
  _serviceEncryptionKey = serviceEncryptionKey;

  Keyri.primary(appKey,
      publicApiKey: _publicApiKey,
      serviceEncryptionKey: _serviceEncryptionKey,
      detectionsConfig: KeyriDetectionsConfig(
          blockEmulatorDetection: blockEmulatorDetection));
}