OAuthContainer

actual fun OAuthContainer(modifier: Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean, content: UiContainerScope.() -> Unit)

actual fun OAuthContainer(modifier: Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, content: UiContainerScope.() -> Unit)

Deprecated

Use OAuthContainer with linkAccount parameter, which defaults to false

Replace with

expect fun OAuthContainer(modifier: Modifier = Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean = false, content: @Composable UiContainerScope.() -> Unit)

OAuth Ui Container Composable that handles all sign-in functionality for given provider. Child of this Composable can be any view or Composable function. You need to call UiContainerScope.onClick function on your child view's click function.

onResult callback will return Result with FirebaseUser type.

Parameters

oAuthProvider

OAuthProvider class object.

linkAccount

Boolean flag to link account with current user. Default value is false.

Example Usage:

OAuthContainer(onResult = onFirebaseResult) {
Button(onClick = { this.onClick() }) { Text("Github Sign-In (Custom Design)") }
}
val oAuthProvider = OAuthProvider(provider = "github.com")
OAuthContainer(modifier = modifier, oAuthProvider = oAuthProvider,onResult = onFirebaseResult){
Button(onClick = { this.onClick() }) { Text("Github Sign-In (Custom Design)") }
}

expect fun OAuthContainer(modifier: Modifier = Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, content: @Composable UiContainerScope.() -> Unit)

Deprecated

Use OAuthContainer with linkAccount parameter, which defaults to false

Replace with

actual fun OAuthContainer(modifier: Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean, content: UiContainerScope.() -> Unit)

actual fun OAuthContainer(modifier: Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, content: UiContainerScope.() -> Unit)

Deprecated

Use OAuthContainer with linkAccount parameter, which defaults to false

Replace with

actual fun OAuthContainer(modifier: Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean, content: UiContainerScope.() -> Unit)

actual fun OAuthContainer(modifier: Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, content: UiContainerScope.() -> Unit)

OAuth Ui Container Composable that handles all sign-in functionality for given provider. Child of this Composable can be any view or Composable function. You need to call UiContainerScope.onClick function on your child view's click function.

onResult callback will return Result with FirebaseUser type.

Parameters

oAuthProvider

OAuthProvider class object.

Example Usage:

OAuthContainer(onResult = onFirebaseResult) {
Button(onClick = { this.onClick() }) { Text("Github Sign-In (Custom Design)") }
}
val oAuthProvider = OAuthProvider(provider = "github.com")
OAuthContainer(modifier = modifier, oAuthProvider = oAuthProvider,onResult = onFirebaseResult){
Button(onClick = { this.onClick() }) { Text("Github Sign-In (Custom Design)") }
}
actual fun OAuthContainer(modifier: Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean, content: UiContainerScope.() -> Unit)

actual fun OAuthContainer(modifier: Modifier, oAuthProvider: OAuthProvider, onResult: (Result<FirebaseUser?>) -> Unit, content: UiContainerScope.() -> Unit)

OAuth Ui Container Composable that handles all sign-in functionality for given provider. Child of this Composable can be any view or Composable function. You need to call UiContainerScope.onClick function on your child view's click function.

onResult callback will return Result with FirebaseUser type.

Parameters

oAuthProvider

OAuthProvider class object.

Example Usage:

OAuthContainer(onResult = onFirebaseResult) {
Button(onClick = { this.onClick() }) { Text("Github Sign-In (Custom Design)") }
}
val oAuthProvider = OAuthProvider(provider = "github.com")
OAuthContainer(modifier = modifier, oAuthProvider = oAuthProvider,onResult = onFirebaseResult){
Button(onClick = { this.onClick() }) { Text("Github Sign-In (Custom Design)") }
}