Class UserSessionService
-
- All Implemented Interfaces:
public final class UserSessionService extends MobileService
-
-
Field Summary
Fields Modifier and Type Field Description private DeviceUser
currentUser
private Application
application
private String
apiKey
-
Constructor Summary
Constructors Constructor Description UserSessionService(Function0<Unit> userNotMatchCallback)
-
Method Summary
Modifier and Type Method Description final DeviceUser
getCurrentUser()
final Unit
setCurrentUser(DeviceUser currentUser)
final DeviceUser
checkUserSession()
Check user session matches. -
Methods inherited from class com.sap.cloud.mobile.foundation.mobileservices.MobileService
enableNetworkPolicy, getApiKey, getApplication, init, isApplicationInitialized, mayStartNewProcess, onStateChange, reset, setApiKey, setApplication
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCurrentUser
final DeviceUser getCurrentUser()
-
setCurrentUser
final Unit setCurrentUser(DeviceUser currentUser)
-
checkUserSession
final DeviceUser checkUserSession()
Check user session matches.
-
-
-
-