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

public enum DefaultAudience
extends java.lang.Enum<DefaultAudience>
Certain operations such as publishing a status or publishing a photo require an audience. When the user grants an application permission to perform a publish operation, a default audience is selected as the publication ceiling for the application. This enumerated value allows the application to select which audience to ask the user to grant publish permission for.
Enum Constant Summary
Enum Constant and Description
EVERYONE
Indicates that all Facebook users are able to see posts made by the application.
FRIENDS
Indicates that the user's friends are able to see posts made by the application.
NONE
Represents an invalid default audience value, can be used when only reading.
ONLY_ME
Indicates only the user is able to see posts made by the application.
Method Summary
Modifier and TypeMethod and Description
java.lang.StringgetNativeProtocolAudience() 
static DefaultAudiencevalueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static DefaultAudience[]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

NONE

public static final DefaultAudience NONE
Represents an invalid default audience value, can be used when only reading.

ONLY_ME

public static final DefaultAudience ONLY_ME
Indicates only the user is able to see posts made by the application.

FRIENDS

public static final DefaultAudience FRIENDS
Indicates that the user's friends are able to see posts made by the application.

EVERYONE

public static final DefaultAudience EVERYONE
Indicates that all Facebook users are able to see posts made by the application.
Method Detail

values

public static DefaultAudience[] 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 (DefaultAudience c : DefaultAudience.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DefaultAudience 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

getNativeProtocolAudience

public java.lang.String getNativeProtocolAudience()