Android SDK Version
  • java.lang.Object
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LoginBehavior>

public enum LoginBehavior
extends java.lang.Enum<LoginBehavior>
Specifies the behaviors to try during login.
Enum Constant Summary
Enum Constant and Description
DEVICE_AUTH
Specifies that device login authentication flow should be used.
DIALOG_ONLY
Specifies that only the web dialog auth (from anywhere) should be used
KATANA_ONLY
Specifies that login should only attempt to use Katana Proxy Login.
NATIVE_ONLY
Specifies that login should only attempt to login using the Facebook App.
NATIVE_WITH_FALLBACK
Specifies that login should attempt login in using the Facebook App, and if that does not work fall back to web dialog auth.
WEB_ONLY
Specifies that only the web dialog auth should be used.
WEB_VIEW_ONLY
Specifies that only the web view dialog auth should be used.
Method Summary
Modifier and TypeMethod and Description
static LoginBehaviorvalueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static LoginBehavior[]values()
Returns an array containing the constants of this enum type, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail

NATIVE_WITH_FALLBACK

public static final LoginBehavior NATIVE_WITH_FALLBACK
Specifies that login should attempt login in using the Facebook App, and if that does not work fall back to web dialog auth. This is the default behavior.

NATIVE_ONLY

public static final LoginBehavior NATIVE_ONLY
Specifies that login should only attempt to login using the Facebook App. If the Facebook App cannot be used then the login fails.

KATANA_ONLY

public static final LoginBehavior KATANA_ONLY
Specifies that login should only attempt to use Katana Proxy Login.

WEB_ONLY

public static final LoginBehavior WEB_ONLY
Specifies that only the web dialog auth should be used.

WEB_VIEW_ONLY

public static final LoginBehavior WEB_VIEW_ONLY
Specifies that only the web view dialog auth should be used.

DIALOG_ONLY

public static final LoginBehavior DIALOG_ONLY
Specifies that only the web dialog auth (from anywhere) should be used

DEVICE_AUTH

public static final LoginBehavior DEVICE_AUTH
Specifies that device login authentication flow should be used. Use it via (DeviceLoginButton or (DeviceLoginManager to authenticate.
Method Detail

values

public static LoginBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LoginBehavior c : LoginBehavior.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LoginBehavior valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null