-
public class WebDialog.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private Contextcontextprivate StringapplicationIdprivate intthemeprivate WebDialog.OnCompleteListenerlistenerprivate Bundleparameters
-
Constructor Summary
Constructors Constructor Description WebDialog.Builder(Context context, String action, Bundle parameters)Constructor that builds a dialog using either the current access token, or the application idspecified in the application/meta-data. WebDialog.Builder(Context context, String applicationId, String action, Bundle parameters)Constructor that builds a dialog without an authenticated user.
-
Method Summary
Modifier and Type Method Description ContextgetContext()StringgetApplicationId()intgetTheme()WebDialog.BuildersetTheme(int theme)Sets a theme identifier which will be passed to the underlying Dialog. WebDialog.OnCompleteListenergetListener()BundlegetParameters()WebDialog.BuildersetOnCompleteListener(WebDialog.OnCompleteListener listener)Sets the listener which will be notified when the dialog finishes. WebDialogbuild()Constructs a WebDialog using the parameters provided. -
-
Constructor Detail
-
WebDialog.Builder
WebDialog.Builder(Context context, String action, Bundle parameters)
Constructor that builds a dialog using either the current access token, or the application idspecified in the application/meta-data.- Parameters:
context- the Context within which the dialog will be shown.action- the portion of the dialog URL following www.facebook.com/dialog/.parameters- a Bundle containing parameters to pass as part of the URL.
-
WebDialog.Builder
WebDialog.Builder(Context context, String applicationId, String action, Bundle parameters)
Constructor that builds a dialog without an authenticated user.- 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/.parameters- a Bundle containing parameters to pass as part of the URL.
-
-
Method Detail
-
getContext
Context getContext()
-
getApplicationId
String getApplicationId()
-
getTheme
int getTheme()
-
setTheme
WebDialog.Builder setTheme(int theme)
Sets a theme identifier which will be passed to the underlying Dialog.
- Parameters:
theme- a theme identifier which will be passed to the Dialog class
-
getListener
WebDialog.OnCompleteListener getListener()
-
getParameters
Bundle getParameters()
-
setOnCompleteListener
WebDialog.Builder setOnCompleteListener(WebDialog.OnCompleteListener listener)
Sets the listener which will be notified when the dialog finishes.
- Parameters:
listener- the listener to notify, or null if no notification is desired
-
-
-
-