Provides a builder that allows construction of the parameters for showing the Feed Dialog.
Mở rộng: | Object |
Gói: | widget |
WebDialog.BuilderBase(Context, Session, String, Bundle)
protected WebDialog.BuilderBase(Context context, Session session, String action, Bundle parameters)
Thông số | Mô tả |
---|---|
context | |
session | |
action | |
parameters |
WebDialog.BuilderBase(Context, String, String, Bundle)
protected WebDialog.BuilderBase(Context context, String applicationId, String action, Bundle parameters)
Thông số | Mô tả |
---|---|
context | |
applicationId | |
action | |
parameters |
WebDialog.FeedDialogBuilder(Context, Session)
Constructor.
public WebDialog.FeedDialogBuilder(Context context, Session session)
Thông số | Mô tả |
---|---|
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. |
WebDialog.FeedDialogBuilder(Context, Session, Bundle)
Constructor.
public WebDialog.FeedDialogBuilder(Context context, Session session, Bundle parameters)
Thông số | Mô tả |
---|---|
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/feed/. |
setTheme(int)
Sets a theme identifier which will be passed to the underlying Dialog.
public BuilderBase setTheme(int theme)
Thông số | Mô tả |
---|---|
theme | A theme identifier which will be passed to the Dialog class |
setOnCompleteListener(OnCompleteListener)
Sets the listener which will be notified when the dialog finishes.
public BuilderBase setOnCompleteListener(OnCompleteListener listener)
Thông số | Mô tả |
---|---|
listener | The listener to notify, or null if no notification is desired |
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()
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)
Thông số | Mô tả |
---|---|
id | Facebook ID of the profile to post from |
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.
public FeedDialogBuilder setTo(String id)
Thông số | Mô tả |
---|---|
id | Facebook ID of the profile to post to |
setLink(String)
Sets the URL of a link to be shared.
public FeedDialogBuilder setLink(String link)
Thông số | Mô tả |
---|---|
link | The URL |
setPicture(String)
Sets the URL of a picture to be shared.
public FeedDialogBuilder setPicture(String picture)
Thông số | Mô tả |
---|---|
picture | The URL of the picture |
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)
Thông số | Mô tả |
---|---|
source | The URL of the media file |
setName(String)
Sets the name of the item being shared.
public FeedDialogBuilder setName(String name)
Thông số | Mô tả |
---|---|
name | The name |
setCaption(String)
Sets the caption to be displayed.
public FeedDialogBuilder setCaption(String caption)
Thông số | Mô tả |
---|---|
caption | The caption |
setDescription(String)
Sets the description to be displayed.
public FeedDialogBuilder setDescription(String description)
Thông số | Mô tả |
---|---|
description | The description |