public static class WebDialog.RequestsDialogBuilder extends Object
Constructor and Description |
---|
RequestsDialogBuilder(android.content.Context context)
Constructor that builds a Requests Dialog using either the active session, or the application
ID specified in the application/meta-data.
|
RequestsDialogBuilder(android.content.Context context,
Session session)
Constructor that builds a Requests Dialog using the provided session.
|
RequestsDialogBuilder(android.content.Context context,
Session session,
android.os.Bundle parameters)
Constructor that builds a Requests Dialog using the provided session and parameters.
|
RequestsDialogBuilder(android.content.Context context,
String applicationId,
android.os.Bundle parameters)
Constructor that builds a Requests Dialog using the provided application ID and parameters.
|
Modifier and Type | Method and Description |
---|---|
WebDialog.RequestsDialogBuilder |
setData(String data)
Sets optional data which can be used for tracking; maximum length is 255
characters.
|
WebDialog.RequestsDialogBuilder |
setMessage(String message)
Sets the string users receiving the request will see.
|
WebDialog.RequestsDialogBuilder |
setTitle(String title)
Sets an optional title for the dialog; maximum length is 50 characters.
|
WebDialog.RequestsDialogBuilder |
setTo(String id)
Sets the user ID or user name the request will be sent to.
|
public RequestsDialogBuilder(android.content.Context context)
context
- the Context within which the dialog will be shown.public RequestsDialogBuilder(android.content.Context context, Session session)
context
- the Context within which the dialog will be shown.session
- the Session representing an authenticating user to use for
showing the dialog; must not be null, and must be opened.public RequestsDialogBuilder(android.content.Context context, Session session, android.os.Bundle parameters)
context
- the Context within which the dialog will be shown.session
- the Session representing an authenticating user to use for
showing the dialog; must not be null, and must be opened.parameters
- a Bundle containing parameters to pass as part of the
dialog URL. No validation is done on these parameters; it is
the caller's responsibility to ensure they are valid. For more information,
see
https://developers.facebook.com/docs/reference/dialogs/requests/.public RequestsDialogBuilder(android.content.Context context, String applicationId, android.os.Bundle parameters)
context
- the Context within which the dialog will be shown.applicationId
- the application ID to use. If null, the application ID specified in the
application/meta-data will be used instead.parameters
- a Bundle containing parameters to pass as part of the
dialog URL. No validation is done on these parameters; it is
the caller's responsibility to ensure they are valid. For more information,
see
https://developers.facebook.com/docs/reference/dialogs/requests/.public WebDialog.RequestsDialogBuilder setMessage(String message)
message
- the messagepublic WebDialog.RequestsDialogBuilder setTo(String id)
id
- the id or user name to send the request topublic WebDialog.RequestsDialogBuilder setData(String data)
data
- the datapublic WebDialog.RequestsDialogBuilder setTitle(String title)
title
- the titleCopyright © 2014. All rights reserved.