A request to be used to request new permissions for a Session.
Hereda de: | AuthorizationRequest |
Paquete: | facebook |
Session.NewPermissionsRequest(Activity, List)
Constructs a NewPermissionsRequest.
public Session.NewPermissionsRequest(Activity activity, List permissions)
Parámetro | Descripción |
---|---|
activity | The Activity used to issue the request |
permissions | Additional permissions to request |
Session.NewPermissionsRequest(Fragment, List)
Constructs a NewPermissionsRequest.
public Session.NewPermissionsRequest(Fragment fragment, List permissions)
Parámetro | Descripción |
---|---|
fragment | The Fragment used to issue the request |
permissions | Additional permissions to request |
Session.NewPermissionsRequest(Activity, String)
Constructs a NewPermissionsRequest.
public Session.NewPermissionsRequest(Activity activity, String permissions)
Parámetro | Descripción |
---|---|
activity | The Activity used to issue the request |
permissions | Additional permissions to request |
Session.NewPermissionsRequest(Fragment, String)
Constructs a NewPermissionsRequest.
public Session.NewPermissionsRequest(Fragment fragment, String permissions)
Parámetro | Descripción |
---|---|
fragment | The Fragment used to issue the request |
permissions | Additional permissions to request |
setCallback(StatusCallback)
Sets the StatusCallback for the NewPermissionsRequest.
public final NewPermissionsRequest setCallback(StatusCallback statusCallback)
Parámetro | Descripción |
---|---|
statusCallback | The SessionStatusCallback to notify regarding Session state changes. |
setLoginBehavior(SessionLoginBehavior)
Sets the login behavior for the NewPermissionsRequest.
public final NewPermissionsRequest setLoginBehavior(SessionLoginBehavior loginBehavior)
Parámetro | Descripción |
---|---|
loginBehavior | The SessionLoginBehavior that specifies what behaviors should be attempted during authorization. |
setRequestCode(int)
Sets the request code for the NewPermissionsRequest.
public final NewPermissionsRequest setRequestCode(int requestCode)
Parámetro | Descripción |
---|---|
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. |
setDefaultAudience(SessionDefaultAudience)
Sets the defaultAudience for the OpenRequest.
public final NewPermissionsRequest setDefaultAudience(SessionDefaultAudience defaultAudience)
Parámetro | Descripción |
---|---|
defaultAudience | A SessionDefaultAudience representing the default audience setting to request. |