didStartNewSession

fun didStartNewSession(lastAppClose: Date?, timeout: Long? = 3600000): Boolean(source)

Tells you if the session started depending on when the app was last closed and the specified session timeout.

Parameters

lastAppClose

The date when the app was last closed.

timeout

The timeout for the session, as defined by the config, in milliseconds. By default, this value is 1 hour.