public interface FacebookDialog<CONTENT,RESULT>
| Modifier and Type | Method and Description |
|---|---|
boolean |
canShow(CONTENT content)
Indicates whether the dialog can be shown for the content passed in.
|
void |
registerCallback(com.facebook.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.
|
void |
registerCallback(com.facebook.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.
|
void |
show(CONTENT content)
Shows the dialog for the content passed in.
|
boolean canShow(CONTENT content)
content - the content to checkvoid show(CONTENT content)
content - the content to showvoid registerCallback(com.facebook.CallbackManager callbackManager,
FacebookCallback<RESULT> callback)
Activity.onCreate(android.os.Bundle) or
Fragment.onCreate(android.os.Bundle) methods.callbackManager - CallbackManager instance that will handle the onActivityResultcallback - Callback to be called upon dialog completionvoid registerCallback(com.facebook.CallbackManager callbackManager,
FacebookCallback<RESULT> callback,
int requestCode)
Activity.onCreate(android.os.Bundle) or
Fragment.onCreate(android.os.Bundle) methods.callbackManager - CallbackManager instance that will handle the Activity Resultcallback - Callback to be called upon dialog completionrequestCode - The request code to use, this should be outside of the range of those
reserved for the Facebook SDK
FacebookSdk.isFacebookRequestCode(int).