initFpjs static method
Initializes the native FingerprintJS Pro client
Throws a PlatformException if apiKey
is missing
Implementation
static Future<void> initFpjs(String apiKey,
{String? endpoint,
String? scriptUrlPattern,
Region? region,
bool extendedResponseFormat = false}) async {
await _channel.invokeMethod('init', {
'apiToken': apiKey,
'endpoint': endpoint,
'scriptUrlPattern': scriptUrlPattern,
'region': region?.stringValue,
'extendedResponseFormat': extendedResponseFormat,
'pluginVersion': pluginVersion,
});
_isExtendedResult = extendedResponseFormat;
_isInitialized = true;
}