setSessionTimeoutDuration method

  1. @Deprecated('Android namespace will be removed in a future release. Please use FirebaseAnalytics.instance.setSessionTimeoutDuration()')
Future<void> setSessionTimeoutDuration(
  1. 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);
}