Android SDK Version
All Known Implementing Classes:

public interface FacebookDialog<CONTENT,RESULT>
Represents dialogs provided by Facebook
Method Summary
Modifier and TypeMethod and Description
booleancanShow(CONTENT content)
Indicates whether the dialog can be shown for the content passed in.
voidregisterCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback)
Allows the registration of a callback that will be executed once the dialog is closed, with success, cancel or error details.
voidregisterCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback, int requestCode)
Allows the registration of a callback that will be executed once the dialog is closed, with success, cancel or error details.
voidshow(CONTENT content)
Shows the dialog for the content passed in.
Method Detail

canShow

boolean canShow(CONTENT content)
Indicates whether the dialog can be shown for the content passed in.
Parameters:
content - the content to check
Returns:
true if the dialog can be shown

show

void show(CONTENT content)
Shows the dialog for the content passed in.
Parameters:
content - the content to show

registerCallback

void registerCallback(CallbackManager callbackManager,
                      FacebookCallback<RESULT> callback)
Allows the registration of a callback that will be executed once the dialog is closed, with success, cancel or error details. This should be called in the android.app.Activity#onCreate(android.os.Bundle) or android.support.v4.app.Fragment#onCreate(android.os.Bundle) methods.
Parameters:
callbackManager - CallbackManager instance that will handle the onActivityResult
callback - Callback to be called upon dialog completion

registerCallback

void registerCallback(CallbackManager callbackManager,
                      FacebookCallback<RESULT> callback,
                      int requestCode)
Allows the registration of a callback that will be executed once the dialog is closed, with success, cancel or error details. This should be called in the android.app.Activity#onCreate(android.os.Bundle) or android.support.v4.app.Fragment#onCreate(android.os.Bundle) methods.
Parameters:
callbackManager - CallbackManager instance that will handle the Activity Result
callback - Callback to be called upon dialog completion
requestCode - The request code to use, this should be outside of the range of those reserved for the Facebook SDK FacebookSdk.isFacebookRequestCode(int).