SignInButton
fun SignInButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, text: String = stringResource(R.string.ass_sign_in_with_solid))
A ready-made "Sign in with Solid" button styled after Solid's branding.
Wire onClick to launch the sign-in flow via the com.erfangholami.androidsolidservices.client.sdk.AuthorizeWithSolid contract:
val authorize = registerForActivityResult(AuthorizeWithSolid()) { result -> ... }
SignInButton(onClick = { authorize.launch(Unit) })Content copied to clipboard
Parameters
onClick
Invoked when the button is tapped.
enabled
When false, the button is dimmed and non-interactive.
text
The button label; defaults to the localized "Sign in with Solid".