Provides a builder that allows construction of an arbitrary Facebook web dialog.
Extends: | Object |
Package: | widget |
WebDialog.BuilderBase(Context, String)
protected WebDialog.BuilderBase(Context context, String action)
Parameter | Description |
---|---|
context | |
action |
WebDialog.BuilderBase(Context, Session, String, Bundle)
protected WebDialog.BuilderBase(Context context, Session session, String action, Bundle parameters)
Parameter | Description |
---|---|
context | |
session | |
action | |
parameters |
WebDialog.BuilderBase(Context, String, String, Bundle)
protected WebDialog.BuilderBase(Context context, String applicationId, String action, Bundle parameters)
Parameter | Description |
---|---|
context | |
applicationId | |
action | |
parameters |
WebDialog.Builder(Context, String)
Constructor that builds a dialog using either the active session, or the application id specified in the application/meta-data.
public WebDialog.Builder(Context context, String action)
Parameter | Description |
---|---|
context | The Context within which the dialog will be shown. |
action | The portion of the dialog URL following www.facebook.com/dialog/. See https://developers.facebook.com/docs/reference/dialogs/ for details. |
WebDialog.Builder(Context, Session, String, Bundle)
Constructor that builds a dialog for an authenticated user.
public WebDialog.Builder(Context context, Session session, String action, Bundle parameters)
Parameter | Description |
---|---|
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. |
action | The portion of the dialog URL following www.facebook.com/dialog/. See https://developers.facebook.com/docs/reference/dialogs/ for details. |
parameters | A Bundle containing parameters to pass as part of the URL. |
WebDialog.Builder(Context, String, String, Bundle)
Constructor that builds a dialog without an authenticated user.
public WebDialog.Builder(Context context, String applicationId, String action, Bundle parameters)
Parameter | Description |
---|---|
context | The Context within which the dialog will be shown. |
applicationId | The application ID to be included in the dialog URL. |
action | The portion of the dialog URL following www.facebook.com/dialog/. See https://developers.facebook.com/docs/reference/dialogs/ for details. |
parameters | A Bundle containing parameters to pass as part of the URL. |
setTheme(int)
Sets a theme identifier which will be passed to the underlying Dialog.
public BuilderBase setTheme(int theme)
Parameter | Description |
---|---|
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)
Parameter | Description |
---|---|
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()