-
public class WebDialog.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private Context
context
private String
applicationId
private Integer
theme
private WebDialog.OnCompleteListener
listener
private Bundle
parameters
-
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 Context
getContext()
final Unit
setContext(Context context)
final String
getApplicationId()
final Unit
setApplicationId(String applicationId)
final Integer
getTheme()
final Unit
setTheme(Integer theme)
final WebDialog.OnCompleteListener
getListener()
final Unit
setListener(WebDialog.OnCompleteListener listener)
final Bundle
getParameters()
final Unit
setParameters(Bundle parameters)
final WebDialog.Builder
setTheme(Integer theme)
Sets a theme identifier which will be passed to the underlying Dialog. final WebDialog.Builder
setOnCompleteListener(WebDialog.OnCompleteListener listener)
Sets the listener which will be notified when the dialog finishes. WebDialog
build()
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
-
-
-
-