WebDialog.RequestsDialogBuilder
لم تعد هذه الفئة متوفر في أحدث إصدار من SDK.
يتوفر إصدار أحدث لهذه الفئة. يرجى التحقق أحدث إصدار.

Provides a builder that allows construction of the parameters for showing the Requests Dialog.

الإضافات:Object
الحزمة:widget
أدوات الإنشاء
WebDialog.BuilderBase(Context, Session, String, Bundle)
protected WebDialog.BuilderBase(Context context, Session session, String action, Bundle parameters)
المعلمةالوصف
context
session
action
parameters
WebDialog.BuilderBase(Context, String, String, Bundle)
protected WebDialog.BuilderBase(Context context, String applicationId, String action, Bundle parameters)
المعلمةالوصف
context
applicationId
action
parameters
WebDialog.RequestsDialogBuilder(Context, Session)

Constructor.

public WebDialog.RequestsDialogBuilder(Context context, Session session)
المعلمةالوصف
contextThe Context within which the dialog will be shown.
sessionThe Session representing an authenticating user to use for showing the dialog; must not be null, and must be opened.
WebDialog.RequestsDialogBuilder(Context, Session, Bundle)

Constructor.

public WebDialog.RequestsDialogBuilder(Context context, Session session, Bundle parameters)
المعلمةالوصف
contextThe Context within which the dialog will be shown.
sessionThe Session representing an authenticating user to use for showing the dialog; must not be null, and must be opened.
parametersA 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/.
طرق المثيلات
setTheme(int)

Sets a theme identifier which will be passed to the underlying Dialog.

public BuilderBase setTheme(int theme)
المعلمةالوصف
themeA theme identifier which will be passed to the Dialog class
Returns
The builder
setOnCompleteListener(OnCompleteListener)

Sets the listener which will be notified when the dialog finishes.

public BuilderBase setOnCompleteListener(OnCompleteListener listener)
المعلمةالوصف
listenerThe listener to notify, or null if no notification is desired
Returns
The builder
build()

Constructs a WebDialog using the parameters provided. The dialog is not shown, but is ready to be shown by calling Dialog.show().

public WebDialog build()
Returns
The WebDialog
getApplicationId()
protected String getApplicationId()
getContext()
protected Context getContext()
getTheme()
protected int getTheme()
getParameters()
protected Bundle getParameters()
getListener()
protected OnCompleteListener getListener()
setMessage(String)

Sets the string users receiving the request will see. The maximum length is 60 characters.

public RequestsDialogBuilder setMessage(String message)
المعلمةالوصف
messageThe message
Returns
The builder
setTo(String)

Sets the user ID or user name the request will be sent to. If this is not specified, a friend selector will be displayed and the user can select up to 50 friends.

public RequestsDialogBuilder setTo(String id)
المعلمةالوصف
idThe id or user name to send the request to
Returns
The builder
setData(String)

Sets optional data which can be used for tracking; maximum length is 255 characters.

public RequestsDialogBuilder setData(String data)
المعلمةالوصف
dataThe data
Returns
The builder
setTitle(String)

Sets an optional title for the dialog; maximum length is 50 characters.

public RequestsDialogBuilder setTitle(String title)
المعلمةالوصف
titleThe title
Returns
The builder