-
public final class FBLoginSSOLauncherLaunches the FBLoginSSO activity and handles the result via AndroidX ActivityResult APIs.
This class owns the full lifecycle: launching the SSO activity, receiving the result via ActivityResultLauncher, parsing raw bundle extras into tokens, and delegating to LoginManager.onActivityResult for token persistence and callback dispatch.
Must be instantiated during or before the activity's
CREATEDlifecycle state (i.e., early inonCreate) because registerForActivityResult requires it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFBLoginSSOLauncher.Companion
-
Constructor Summary
Constructors Constructor Description FBLoginSSOLauncher(ComponentActivity activity, FacebookCallback<LoginResult> callback, Boolean showWithoutFBApp)FBLoginSSOLauncher(ComponentActivity activity, FacebookCallback<LoginResult> callback)FBLoginSSOLauncher(ComponentActivity activity)
-
Method Summary
-
-
Constructor Detail
-
FBLoginSSOLauncher
FBLoginSSOLauncher(ComponentActivity activity, FacebookCallback<LoginResult> callback, Boolean showWithoutFBApp)
- Parameters:
activity- The ComponentActivity from which to launch the SSO flow.callback- An optional FacebookCallback that will receive login results.showWithoutFBApp- Whether to show the SSO no-app dialog when the Facebook app is not installed on the device.
-
FBLoginSSOLauncher
FBLoginSSOLauncher(ComponentActivity activity, FacebookCallback<LoginResult> callback)
- Parameters:
activity- The ComponentActivity from which to launch the SSO flow.callback- An optional FacebookCallback that will receive login results.
-
FBLoginSSOLauncher
FBLoginSSOLauncher(ComponentActivity activity)
- Parameters:
activity- The ComponentActivity from which to launch the SSO flow.
-
-
Method Detail
-
launch
@JvmOverloads() final Boolean launch(Collection<String> permissions)
Launches the FBLoginSSO activity if available on the device.
Creates a fresh nonce and LoginClient.Request, constructs the appropriate intents using NativeProtocol.createFBLoginSSOIntents, and launches the first resolvable one.
- Parameters:
permissions- The permissions to request.
-
launch
@JvmOverloads() final Boolean launch()
Launches the FBLoginSSO activity if available on the device.
Creates a fresh nonce and LoginClient.Request, constructs the appropriate intents using NativeProtocol.createFBLoginSSOIntents, and launches the first resolvable one.
-
-
-
-