Android SDK Version


public class WebDialog.Builder
Field Summary
Modifier and TypeFieldDescription
private Contextcontext
private StringapplicationId
private Integertheme
private WebDialog.OnCompleteListenerlistener
private Bundleparameters
Constructor Summary
ConstructorDescription
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 TypeMethodDescription
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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 ContextgetContext()

setContext

 final UnitsetContext(Context context)

getApplicationId

 final StringgetApplicationId()

setApplicationId

 final UnitsetApplicationId(String applicationId)

getTheme

 final IntegergetTheme()

setTheme

 final UnitsetTheme(Integer theme)

setListener

 final UnitsetListener(WebDialog.OnCompleteListener listener)

getParameters

 final BundlegetParameters()

setParameters

 final UnitsetParameters(Bundle parameters)

setTheme

 final WebDialog.BuildersetTheme(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.BuildersetOnCompleteListener(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

build

WebDialogbuild()
Constructs a WebDialog using the parameters provided. The dialog is not shown, but is ready to be shown by calling Dialog.show().