public static class WebDialog.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(android.content.Context context,
java.lang.String action,
android.os.Bundle parameters)
Constructor that builds a dialog using either the current access token, or the application id
specified in the application/meta-data.
|
Builder(android.content.Context context,
java.lang.String applicationId,
java.lang.String action,
android.os.Bundle parameters)
Constructor that builds a dialog without an authenticated user.
|
| Modifier and Type | Method and Description |
|---|---|
WebDialog |
build()
Constructs a WebDialog using the parameters provided.
|
java.lang.String |
getApplicationId() |
android.content.Context |
getContext() |
WebDialog.OnCompleteListener |
getListener() |
android.os.Bundle |
getParameters() |
int |
getTheme() |
WebDialog.Builder |
setOnCompleteListener(WebDialog.OnCompleteListener listener)
Sets the listener which will be notified when the dialog finishes.
|
WebDialog.Builder |
setTheme(int theme)
Sets a theme identifier which will be passed to the underlying Dialog.
|
public Builder(android.content.Context context,
java.lang.String action,
android.os.Bundle parameters)
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.parameters - a Bundle containing parameters to pass as part of the URL.public Builder(android.content.Context context,
java.lang.String applicationId,
java.lang.String action,
android.os.Bundle parameters)
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.public WebDialog.Builder setTheme(int theme)
theme - a theme identifier which will be passed to the Dialog classpublic WebDialog.Builder setOnCompleteListener(WebDialog.OnCompleteListener listener)
listener - the listener to notify, or null if no notification is desiredpublic WebDialog build()
public java.lang.String getApplicationId()
public android.content.Context getContext()
public int getTheme()
public android.os.Bundle getParameters()
public WebDialog.OnCompleteListener getListener()