show

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.

Parameters

activity

The activity to launch the Gravatar Quick Editor from.

gravatarQuickEditorParams

The parameters to configure the Quick Editor.

authenticationMethod

The method used for authentication with the Gravatar REST API.

onAvatarSelected

The callback for the avatar update. Can be invoked multiple times while the Quick Editor is open.

onDismiss

The callback for the dismiss action containing GravatarQuickEditorDismissReason


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.

Parameters

fragment

The fragment to launch the Gravatar Quick Editor from.

gravatarQuickEditorParams

The parameters to configure the Quick Editor.

authenticationMethod

The method used for authentication with the Gravatar REST API.

onAvatarSelected

The callback for the avatar update. Can be invoked multiple times while the Quick Editor is open.

onDismiss

The callback for the dismiss action containing GravatarQuickEditorDismissReason