Ditto Authenticator
class DittoAuthenticator
Log in to a remote authentication service, using an OnlineWithAuthentication
or an Online
identity.
Functions
Link copied to clipboard
fun loginWithCredentials(username: String, password: String, provider: String, completion: (DittoError?) -> Unit)
fun loginWithCredentials(username: String, password: String, provider: String, completionCallback: DittoLoginCompletionCallback)
Log in to Ditto with a username and password.
Link copied to clipboard
fun loginWithToken(token: String, provider: String, completionCallback: DittoLoginCompletionCallback)
Log in to Ditto with a third-party token.
Link copied to clipboard
Registers a callback that is called whenever the authentication status changes.
Registers an observer object that is called whenever the authentication status changes.