-
public class WebDialog.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private Contextcontextprivate StringapplicationIdprivate Integerthemeprivate 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 id specified 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 final ContextgetContext()final UnitsetContext(Context context)final StringgetApplicationId()final UnitsetApplicationId(String applicationId)final IntegergetTheme()final UnitsetTheme(Integer theme)final WebDialog.OnCompleteListenergetListener()final UnitsetListener(WebDialog.OnCompleteListener listener)final BundlegetParameters()final UnitsetParameters(Bundle parameters)final WebDialog.BuildersetTheme(Integer theme)Sets a theme identifier which will be passed to the underlying Dialog. final 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 id specified 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
final Context getContext()
-
setContext
final Unit setContext(Context context)
-
getApplicationId
final String getApplicationId()
-
setApplicationId
final Unit setApplicationId(String applicationId)
-
getListener
final WebDialog.OnCompleteListener getListener()
-
setListener
final Unit setListener(WebDialog.OnCompleteListener listener)
-
getParameters
final Bundle getParameters()
-
setParameters
final Unit setParameters(Bundle parameters)
-
setTheme
final WebDialog.Builder setTheme(Integer 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
-
setOnCompleteListener
final 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
-
-
-
-