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

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

الإضافات:Object
الحزمة:widget
أدوات الإنشاء
WebDialog.BuilderBase(Context, String)
protected WebDialog.BuilderBase(Context context, String action)
المعلمةالوصف
context
action
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.FeedDialogBuilder(Context)

Constructor that builds a Feed Dialog using either the active session, or the application ID specified in the application/meta-data.

public WebDialog.FeedDialogBuilder(Context context)
المعلمةالوصف
contextThe Context within which the dialog will be shown.
WebDialog.FeedDialogBuilder(Context, Session)

Constructor that builds a Feed Dialog using the provided session.

public WebDialog.FeedDialogBuilder(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.FeedDialogBuilder(Context, Session, Bundle)

Constructor that builds a Feed Dialog using the provided session and parameters.

public WebDialog.FeedDialogBuilder(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/feed/.
WebDialog.FeedDialogBuilder(Context, String, Bundle)

Constructor that builds a Feed Dialog using the provided application ID and parameters.

public WebDialog.FeedDialogBuilder(Context context, String applicationId, Bundle parameters)
المعلمةالوصف
contextThe Context within which the dialog will be shown.
applicationIdThe application ID to use. If null, the application ID specified in the application/meta-data will be used instead.
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/feed/.
طرق المثيلات
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()
setFrom(String)

Sets the ID of the profile that is posting to Facebook. If none is specified, the default is "me". This profile must be either the authenticated user or a Page that the user is an administrator of.

public FeedDialogBuilder setFrom(String id)
المعلمةالوصف
idFacebook ID of the profile to post from
Returns
The builder
setTo(String)

Sets the ID of the profile that the story will be published to. If not specified, it will default to the same profile that the story is being published from. The ID must be a friend who also uses your app.

public FeedDialogBuilder setTo(String id)
المعلمةالوصف
idFacebook ID of the profile to post to
Returns
The builder
setPicture(String)

Sets the URL of a picture to be shared.

public FeedDialogBuilder setPicture(String picture)
المعلمةالوصف
pictureThe URL of the picture
Returns
The builder
setSource(String)

Sets the URL of a media file attached to this post. If this is set, any picture set via setPicture will be ignored.

public FeedDialogBuilder setSource(String source)
المعلمةالوصف
sourceThe URL of the media file
Returns
The builder
setName(String)

Sets the name of the URL being shared. This method only has effect if setLink is called.

public FeedDialogBuilder setName(String name)
المعلمةالوصف
nameThe name
Returns
The builder
setCaption(String)

Sets the caption of the URL being shared. This method only has effect if setLink is called.

public FeedDialogBuilder setCaption(String caption)
المعلمةالوصف
captionThe caption
Returns
The builder
setDescription(String)

Sets the description of the URL being shared. This method only has effect if setLink is called.

public FeedDialogBuilder setDescription(String description)
المعلمةالوصف
descriptionThe description
Returns
The builder