Class FlowParameters

  • All Implemented Interfaces:
    Parcelable

    public class FlowParameters
    extends Object
    implements Parcelable
    Encapsulates the core parameters and data captured during the authentication flow, in a serializable manner, in order to pass data between activities.
    • Field Detail

      • appName

        @NonNull
        public final String appName
      • themeId

        @StyleRes
        public final int themeId
      • logoId

        @DrawableRes
        public final int logoId
      • termsOfServiceUrl

        @Nullable
        public final String termsOfServiceUrl
      • privacyPolicyUrl

        @Nullable
        public final String privacyPolicyUrl
      • emailLink

        @Nullable
        public String emailLink
      • passwordResetSettings

        @Nullable
        public final com.google.firebase.auth.ActionCodeSettings passwordResetSettings
      • enableCredentials

        public final boolean enableCredentials
      • enableHints

        public final boolean enableHints
      • enableAnonymousUpgrade

        public final boolean enableAnonymousUpgrade
      • alwaysShowProviderChoice

        public final boolean alwaysShowProviderChoice
      • lockOrientation

        public final boolean lockOrientation
    • Constructor Detail

      • FlowParameters

        public FlowParameters​(@NonNull
                              String appName,
                              @NonNull
                              List<AuthUI.IdpConfig> providers,
                              @Nullable
                              AuthUI.IdpConfig defaultProvider,
                              @StyleRes
                              int themeId,
                              @DrawableRes
                              int logoId,
                              @Nullable
                              String termsOfServiceUrl,
                              @Nullable
                              String privacyPolicyUrl,
                              boolean enableCredentials,
                              boolean enableHints,
                              boolean enableAnonymousUpgrade,
                              boolean alwaysShowProviderChoice,
                              boolean lockOrientation,
                              @Nullable
                              String emailLink,
                              @Nullable
                              com.google.firebase.auth.ActionCodeSettings passwordResetSettings,
                              @Nullable
                              AuthMethodPickerLayout authMethodPickerLayout)
    • Method Detail

      • fromIntent

        public static FlowParameters fromIntent​(Intent intent)
        Extract FlowParameters from an Intent.
      • isSingleProviderFlow

        public boolean isSingleProviderFlow()
      • isTermsOfServiceUrlProvided

        public boolean isTermsOfServiceUrlProvided()
      • isPrivacyPolicyUrlProvided

        public boolean isPrivacyPolicyUrlProvided()
      • isAnonymousUpgradeEnabled

        public boolean isAnonymousUpgradeEnabled()
      • isPlayServicesRequired

        public boolean isPlayServicesRequired()
      • isProviderEnabled

        public boolean isProviderEnabled​(String provider)
      • shouldShowProviderChoice

        public boolean shouldShowProviderChoice()
      • getDefaultOrFirstProvider

        public AuthUI.IdpConfig getDefaultOrFirstProvider()