GravatarQuickEditor

Singleton object that provides easy to use functions to interact with the Gravatar Quick Editor.

Functions

Link copied to clipboard
suspend fun logout(email: Email)

Function to remove the stored token. This function should be invoked when the user logs out from your app.

Link copied to clipboard
fun show(activity: Activity, gravatarQuickEditorParams: GravatarQuickEditorParams, authenticationMethod: AuthenticationMethod, onAvatarSelected: () -> Unit, onDismiss: (dismissReason: GravatarQuickEditorDismissReason) -> Unit = {})

Helper function to launch the Gravatar Quick Editor from the activity.

fun show(fragment: Fragment, gravatarQuickEditorParams: GravatarQuickEditorParams, authenticationMethod: AuthenticationMethod, onAvatarSelected: () -> Unit, onDismiss: (dismissReason: GravatarQuickEditorDismissReason) -> Unit = {})

Helper function to launch the Gravatar Quick Editor from the fragment. Internally it uses Activity.requireActivity() to get the activity.