SignInState

Handle returned by the rememberXxxSignInState composables. Wire launch to any clickable and observe isInProgress for loading UI.

val googleSignIn = rememberGoogleSignInState(onResult = { user -> ... })

Button(onClick = { googleSignIn.launch() }, enabled = !googleSignIn.isInProgress) {
Text("Sign in with Google")
}

Inheritors

Properties

Link copied to clipboard
abstract val isInProgress: Boolean

True while a sign-in flow started by launch is still running.

Functions

Link copied to clipboard
abstract fun launch()

Starts the sign-in flow. Calls while a flow is already in progress are ignored, so a fast double-tap cannot start two flows.