-
Notifications
You must be signed in to change notification settings - Fork 1
Google Sign Out
Serhii Petrosyuk edited this page Jun 12, 2019
·
6 revisions
With the GoogleAuth
Call the signOut()
method in the GoogleAuth object. The observable value is Status
googleAuth.logOut()
.observe(this, Observer { status ->
if (it.success) {
// The user has been signed out
} else {
// Show the [status.message] if needed
// Do your stuff on error
}
})
With the SocialAuthManager
socialAuthManager.signOut(this).observe(this, Observer { status ->
if (it.success) {
// The user has been signed out
} else {
// Show the [status.message] if needed
// Do your stuff on error
}
})
this
represents the LifecycleOwner