AppleButtonUiContainer

actual fun AppleButtonUiContainer(modifier: Modifier, requestScopes: List<AppleSignInRequestScope>, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean, content: UiContainerScope.() -> Unit)

AppleButton Ui Container Composable that handles all sign-in functionality for Apple. 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

requestScopes

list of request scopes type of AppleSignInRequestScope.

linkAccount

if true, it will link the account with the current user. Default value is false Example Usage:

//Apple Sign-In with Custom Button and authentication with Firebase
AppleButtonUiContainer(onResult = onFirebaseResult) {
Button(onClick = { this.onClick() }) { Text("Apple Sign-In (Custom Design)") }
}

actual fun AppleButtonUiContainer(modifier: Modifier, requestScopes: List<AppleSignInRequestScope>, onResult: (Result<FirebaseUser?>) -> Unit, content: UiContainerScope.() -> Unit)

Deprecated

Use AppleButtonUiContainer with the linkAccount parameter, which defaults to false.

Replace with

expect fun AppleButtonUiContainer(modifier: Modifier = Modifier, requestScopes: List<AppleSignInRequestScope> = listOf( AppleSignInRequestScope.FullName, AppleSignInRequestScope.Email ), onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean = false, content: @Composable UiContainerScope.() -> Unit)

AppleButton Ui Container Composable that handles all sign-in functionality for Apple. 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

requestScopes

list of request scopes type of AppleSignInRequestScope.

linkAccount

boolean value to link account with existing account. Default value is false Example Usage:

//Apple Sign-In with Custom Button and authentication with Firebase
AppleButtonUiContainer(onResult = onFirebaseResult) {
Button(onClick = { this.onClick() }) { Text("Apple Sign-In (Custom Design)") }
}

expect fun AppleButtonUiContainer(modifier: Modifier = Modifier, requestScopes: List<AppleSignInRequestScope> = listOf( AppleSignInRequestScope.FullName, AppleSignInRequestScope.Email ), onResult: (Result<FirebaseUser?>) -> Unit, content: @Composable UiContainerScope.() -> Unit)

Deprecated

Use AppleButtonUiContainer with the linkAccount parameter, which defaults to false.

Replace with

actual fun AppleButtonUiContainer(modifier: Modifier, requestScopes: List<AppleSignInRequestScope>, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean, content: UiContainerScope.() -> Unit)

AppleButton Ui Container Composable that handles all sign-in functionality for Apple. 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

requestScopes

list of request scopes type of AppleSignInRequestScope.

linkAccount

if true, it will link the account with the current user. Default value is false Example Usage:

//Apple Sign-In with Custom Button and authentication with Firebase
AppleButtonUiContainer(onResult = onFirebaseResult) {
Button(onClick = { this.onClick() }) { Text("Apple Sign-In (Custom Design)") }
}

actual fun AppleButtonUiContainer(modifier: Modifier, requestScopes: List<AppleSignInRequestScope>, onResult: (Result<FirebaseUser?>) -> Unit, content: UiContainerScope.() -> Unit)

Deprecated

Use AppleButtonUiContainer with the linkAccount parameter, which defaults to false.

Replace with

actual fun AppleButtonUiContainer(modifier: Modifier, requestScopes: List<AppleSignInRequestScope>, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean, content: UiContainerScope.() -> Unit)

actual fun AppleButtonUiContainer(modifier: Modifier, requestScopes: List<AppleSignInRequestScope>, onResult: (Result<FirebaseUser?>) -> Unit, content: UiContainerScope.() -> Unit)

AppleButton Ui Container Composable that handles all sign-in functionality for Apple. 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

requestScopes

list of request scopes type of AppleSignInRequestScope. Example Usage:

//Apple Sign-In with Custom Button and authentication with Firebase
AppleButtonUiContainer(onResult = onFirebaseResult) {
Button(onClick = { this.onClick() }) { Text("Apple Sign-In (Custom Design)") }
}
actual fun AppleButtonUiContainer(modifier: Modifier, requestScopes: List<AppleSignInRequestScope>, onResult: (Result<FirebaseUser?>) -> Unit, linkAccount: Boolean, content: UiContainerScope.() -> Unit)

actual fun AppleButtonUiContainer(modifier: Modifier, requestScopes: List<AppleSignInRequestScope>, onResult: (Result<FirebaseUser?>) -> Unit, content: UiContainerScope.() -> Unit)

AppleButton Ui Container Composable that handles all sign-in functionality for Apple. 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

requestScopes

list of request scopes type of AppleSignInRequestScope. Example Usage:

//Apple Sign-In with Custom Button and authentication with Firebase
AppleButtonUiContainer(onResult = onFirebaseResult) {
Button(onClick = { this.onClick() }) { Text("Apple Sign-In (Custom Design)") }
}