-
- All Implemented Interfaces:
-
com.onesignal.core.internal.startup.IStartableService,com.onesignal.session.internal.session.ISessionLifecycleHandler
public final class UserRefreshService implements IStartableService, ISessionLifecycleHandler
-
-
Constructor Summary
Constructors Constructor Description UserRefreshService(IApplicationService _applicationService, ISessionService _sessionService, IOperationRepo _operationRepo, ConfigModelStore _configModelStore, IdentityModelStore _identityModelStore)
-
Method Summary
Modifier and Type Method Description Unitstart()Called when the service is to be started. UnitonSessionStarted()Called when a session has been started. UnitonSessionActive()Called when a session is again active. UnitonSessionEnded(Long duration)Called when a session has ended. -
-
Constructor Detail
-
UserRefreshService
UserRefreshService(IApplicationService _applicationService, ISessionService _sessionService, IOperationRepo _operationRepo, ConfigModelStore _configModelStore, IdentityModelStore _identityModelStore)
-
-
Method Detail
-
start
Unit start()
Called when the service is to be started. The appId and appContext have already been established.
-
onSessionStarted
Unit onSessionStarted()
Called when a session has been started.
-
onSessionActive
Unit onSessionActive()
Called when a session is again active.
-
onSessionEnded
Unit onSessionEnded(Long duration)
Called when a session has ended.
- Parameters:
duration- The active duration of the session, in milliseconds.
-
-
-
-