Skip to content

Commit 1b054b7

Browse files
committed
chore: rename locationTimeoutMillis to locationTimeoutMillisAndroid to make usage context more clear
1 parent 6565277 commit 1b054b7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ void doInit() async {
224224
}
225225
```
226226

227-
For Android platform it's possible to configure the location retrieval timeout by setting the `locationTimeoutMillis` option to a desired value. By default, it's set to 5 seconds.
227+
For Android platform it's possible to configure the location retrieval timeout by setting the `locationTimeoutMillisAndroid` option to a desired value. By default, it's set to 5 seconds.
228228

229229
```dart
230230
void doInit() async {
231-
await FpjsProPlugin.initFpjs('<PUBLIC_API_KEY>', allowUseOfLocationData: true,
232-
locationTimeoutMillis: 10000);
231+
await FpjsProPlugin.initFpjs('<PUBLIC_API_KEY>', allowUseOfLocationData: true,
232+
locationTimeoutMillisAndroid: 10000);
233233
}
234234
```
235235

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class _MyAppState extends State<MyApp> {
7272
scriptUrlPattern: _scriptUrlPattern,
7373
region: _parseRegion(_region),
7474
allowUseOfLocationData: true,
75-
locationTimeoutMillis: 6000,
75+
locationTimeoutMillisAndroid: 6000,
7676
extendedResponseFormat: true);
7777
} catch (error) {
7878
// print('Failed to initialize Fingerprint agent: $error');

lib/fpjs_pro_plugin.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class FpjsProPlugin {
2929
List<String>? scriptUrlPatternFallbacks,
3030
Region? region,
3131
bool? allowUseOfLocationData,
32-
int? locationTimeoutMillis,
32+
int? locationTimeoutMillisAndroid,
3333
bool extendedResponseFormat = false}) async {
3434
await _channel.invokeMethod('init', {
3535
'apiToken': apiKey,
@@ -41,7 +41,7 @@ class FpjsProPlugin {
4141
'extendedResponseFormat': extendedResponseFormat,
4242
'pluginVersion': pluginVersion,
4343
'allowUseOfLocationData': allowUseOfLocationData,
44-
'locationTimeoutMillis': locationTimeoutMillis,
44+
'locationTimeoutMillis': locationTimeoutMillisAndroid,
4545
});
4646
_isExtendedResult = extendedResponseFormat;
4747
_isInitialized = true;

0 commit comments

Comments
 (0)