Class FlowParameters

  • All Implemented Interfaces:
    android.os.Parcelable

    public class FlowParameters
    extends java.lang.Object
    implements android.os.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

      • CREATOR

        public static final android.os.Parcelable.Creator<FlowParameters> CREATOR
      • appName

        @NonNull
        public final java.lang.String appName
      • themeId

        @StyleRes
        public final int themeId
      • logoId

        @DrawableRes
        public final int logoId
      • termsOfServiceUrl

        @Nullable
        public final java.lang.String termsOfServiceUrl
      • privacyPolicyUrl

        @Nullable
        public final java.lang.String privacyPolicyUrl
      • emailLink

        @Nullable
        public java.lang.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
                              java.lang.String appName,
                              @NonNull
                              java.util.List<AuthUI.IdpConfig> providers,
                              @Nullable
                              AuthUI.IdpConfig defaultProvider,
                              @StyleRes
                              int themeId,
                              @DrawableRes
                              int logoId,
                              @Nullable
                              java.lang.String termsOfServiceUrl,
                              @Nullable
                              java.lang.String privacyPolicyUrl,
                              boolean enableCredentials,
                              boolean enableHints,
                              boolean enableAnonymousUpgrade,
                              boolean alwaysShowProviderChoice,
                              boolean lockOrientation,
                              @Nullable
                              java.lang.String emailLink,
                              @Nullable
                              com.google.firebase.auth.ActionCodeSettings passwordResetSettings,
                              @Nullable
                              AuthMethodPickerLayout authMethodPickerLayout)
    • Method Detail

      • fromIntent

        public static FlowParameters fromIntent​(android.content.Intent intent)
        Extract FlowParameters from an Intent.
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • isSingleProviderFlow

        public boolean isSingleProviderFlow()
      • isTermsOfServiceUrlProvided

        public boolean isTermsOfServiceUrlProvided()
      • isPrivacyPolicyUrlProvided

        public boolean isPrivacyPolicyUrlProvided()
      • isAnonymousUpgradeEnabled

        public boolean isAnonymousUpgradeEnabled()
      • shouldShowProviderChoice

        public boolean shouldShowProviderChoice()
      • getDefaultOrFirstProvider

        public AuthUI.IdpConfig getDefaultOrFirstProvider()