Auth Manager
class AuthManager
Content copied to clipboard
Functions
add Sign In State Change Listener
Link copied to clipboard
fun addSignInStateChangeListener(signInStateChangeListener: SignInStateChangeListener)
Content copied to clipboard
Register listener for SignInState changes and sign-out event
build Headers
Link copied to clipboard
Returns authentication headers for use in http communication with Sygic online services
get Current Sign In State
Link copied to clipboard
Return current authentication type
login
Link copied to clipboard
Login as specific AuthAccount
notify Auth Rejected
Link copied to clipboard
fun notifyAuthRejected()
Content copied to clipboard
Call this method when valid authentication headers were rejected by other services. AuthManager will try to refresh authentication data with next buildHeaders call
remove Sign In State Change Listener
Link copied to clipboard
fun removeSignInStateChangeListener(signInStateChangeListener: SignInStateChangeListener)
Content copied to clipboard
Unregister listener for SignInState changes and sign-out event
request Authentication Refresh
Link copied to clipboard
fun requestAuthenticationRefresh()
Content copied to clipboard
Call this method when it is necessary to get latest authorization data. AuthManager will refresh authentication data with next buildHeaders call