withSessionTimeout

fun YandexMetricaConfig.Builder.withSessionTimeout(duration: Duration): YandexMetricaConfig.Builder

By default, the session times out if the app is inactive for YandexMetricaDefaultValues.DEFAULT_SESSION_TIMEOUT_SECONDS seconds. To change this time limit, pass the int sessionTimeoutSeconds method your time limit in seconds.

The minimum acceptable value for the sessionTimeoutSeconds parameter is 10 seconds. If a value less than 10 is set, the value will automatically be 10 seconds.

Since

1.4.0

Return

the same YandexMetricaConfig.Builder object.

Parameters

duration

the time limit in kotlinx duration.

See also

YandexMetricaConfig.Builder.withSessionTimeout