A request used to open a Session.
拡張: | AuthorizationRequest |
パッケージ: | facebook |
Session.OpenRequest(Activity)
Constructs an OpenRequest.
public Session.OpenRequest(Activity activity)
パラメーター | 説明 |
---|---|
activity | The Activity to use to open the Session |
Session.OpenRequest(Fragment)
Constructs an OpenRequest.
public Session.OpenRequest(Fragment fragment)
パラメーター | 説明 |
---|---|
fragment | The Fragment to use to open the Session |
setCallback(StatusCallback)
Sets the StatusCallback for the OpenRequest.
public final OpenRequest setCallback(StatusCallback statusCallback)
パラメーター | 説明 |
---|---|
statusCallback | The SessionStatusCallback to notify regarding Session state changes. |
setLoginBehavior(SessionLoginBehavior)
Sets the login behavior for the OpenRequest.
public final OpenRequest setLoginBehavior(SessionLoginBehavior loginBehavior)
パラメーター | 説明 |
---|---|
loginBehavior | The SessionLoginBehavior that specifies what behaviors should be attempted during authorization. |
setRequestCode(int)
Sets the request code for the OpenRequest.
public final OpenRequest setRequestCode(int requestCode)
パラメーター | 説明 |
---|---|
requestCode | An integer that identifies this request. This integer will be used as the request code in onActivityResult.onActivityResult. This integer should be >= 0. If a value < 0 is passed in, then a default value will be used. |
setPermissions(List)
Sets the permissions for the OpenRequest.
public final OpenRequest setPermissions(List permissions)
パラメーター | 説明 |
---|---|
permissions | A List<String> representing the permissions to request during the authentication flow. A null or empty List represents basic permissions. |
setPermissions(String)
Sets the permissions for the OpenRequest.
public final OpenRequest setPermissions(String permissions)
パラメーター | 説明 |
---|---|
permissions | The permissions to request during the authentication flow. |
setDefaultAudience(SessionDefaultAudience)
Sets the defaultAudience for the OpenRequest.
This is only used during Native login using a sufficiently recent facebook app.
public final OpenRequest setDefaultAudience(SessionDefaultAudience defaultAudience)
パラメーター | 説明 |
---|---|
defaultAudience | A SessionDefaultAudience representing the default audience setting to request. |