setSessionTimeoutDuration method
- @Deprecated('Android namespace will be removed in a future release. Please use FirebaseAnalytics.instance.setSessionTimeoutDuration()')
- int milliseconds
Sets the duration of inactivity that terminates the current session.
The default value is 1800000 (30 minutes).
Implementation
@Deprecated(
'Android namespace will be removed in a future release. Please use FirebaseAnalytics.instance.setSessionTimeoutDuration()',
)
Future<void> setSessionTimeoutDuration(int milliseconds) async {
final timeout = Duration(milliseconds: milliseconds);
await _platformInstance.setSessionTimeoutDuration(timeout);
}