setSettings method

  1. @override
Future<void> setSettings(
  1. int accountIndex,
  2. FazpassSettings? settings
)

Sets rules for data collection in Fazpass.generateMeta method.

Sets which sensitive information is collected in Fazpass.generateMeta method and applies them according to accountIndex parameter. Accepts FazpassSettings for settings parameter. Settings will be stored in SharedPreferences (UserDefaults in iOS), so it will not persist when application data is cleared / application is uninstalled. To delete stored settings, pass null on settings parameter.

Implementation

@override
Future<void> setSettings(int accountIndex, FazpassSettings? settings) {
  return FlutterTrustedDeviceV2PlatformInterface.instance.setSettings(accountIndex, settings);
}