com.facebook
Enum SessionDefaultAudience

java.lang.Object
  extended by java.lang.Enum<SessionDefaultAudience>
      extended by com.facebook.SessionDefaultAudience
All Implemented Interfaces:
Serializable, Comparable<SessionDefaultAudience>

public enum SessionDefaultAudience
extends Enum<SessionDefaultAudience>

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
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
static SessionDefaultAudience valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SessionDefaultAudience[] 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 SessionDefaultAudience NONE
Represents an invalid default audience value, can be used when only reading.


ONLY_ME

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


FRIENDS

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


EVERYONE

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

Method Detail

values

public static SessionDefaultAudience[] 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 (SessionDefaultAudience c : SessionDefaultAudience.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SessionDefaultAudience valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null