Session.OpenRequest
Questa classe non è più disponibile nella versione più recente dell'SDK.
Non è disponibile una versione più recente di questa classe. Controlla la versione più recente.

A request used to open a Session.

Estende:AuthorizationRequest
Pacchetto:facebook
Costruttori
Session.OpenRequest(Activity)

Constructs an OpenRequest.

public Session.OpenRequest(Activity activity)
ParametroDescrizione
activityThe Activity to use to open the Session
Metodi di istanza
setCallback(StatusCallback)

Sets the StatusCallback for the OpenRequest.

public final OpenRequest setCallback(StatusCallback statusCallback)
ParametroDescrizione
statusCallbackThe SessionStatusCallback to notify regarding Session state changes.
Returns
The OpenRequest object to allow for chaining
setLoginBehavior(SessionLoginBehavior)

Sets the login behavior for the OpenRequest.

public final OpenRequest setLoginBehavior(SessionLoginBehavior loginBehavior)
ParametroDescrizione
loginBehaviorThe SessionLoginBehavior that specifies what behaviors should be attempted during authorization.
Returns
The OpenRequest object to allow for chaining
setRequestCode(int)

Sets the request code for the OpenRequest.

public final OpenRequest setRequestCode(int requestCode)
ParametroDescrizione
requestCodeAn 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.
Returns
The OpenRequest object to allow for chaining
setPermissions(List)

Sets the permissions for the OpenRequest.

public final OpenRequest setPermissions(List permissions)
ParametroDescrizione
permissionsA List&lt;String&gt; representing the permissions to request during the authentication flow. A null or empty List represents basic permissions.
Returns
The OpenRequest object to allow for chaining
setPermissions(String)

Sets the permissions for the OpenRequest.

public final OpenRequest setPermissions(String permissions)
ParametroDescrizione
permissionsThe permissions to request during the authentication flow.
Returns
The OpenRequest object to allow for chaining
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)
ParametroDescrizione
defaultAudienceA SessionDefaultAudience representing the default audience setting to request.
Returns
The OpenRequest object to allow for chaining