-
public interface FacebookDialog<CONTENT, RESULT>Represents dialogs provided by Facebook
-
-
Method Summary
Modifier and Type Method Description abstract booleancanShow(CONTENT content)Indicates whether the dialog can be shown for the content passed in. abstract voidshow(CONTENT content)Shows the dialog for the content passed in. abstract voidregisterCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback)Allows the registration of a callback that will be executed once the dialog is closed, withsuccess, cancel or error details. abstract voidregisterCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback, int requestCode)Allows the registration of a callback that will be executed once the dialog is closed, withsuccess, cancel or error details. -
-
Method Detail
-
canShow
abstract boolean canShow(CONTENT content)
Indicates whether the dialog can be shown for the content passed in.
- Parameters:
content- the content to check
-
show
abstract void show(CONTENT content)
Shows the dialog for the content passed in.
- Parameters:
content- the content to show
-
registerCallback
abstract void registerCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback)
Allows the registration of a callback that will be executed once the dialog is closed, withsuccess, cancel or error details. This should be called in the or methods.
- Parameters:
callbackManager- CallbackManager instance that will handle the onActivityResultcallback- Callback to be called upon dialog completion
-
registerCallback
abstract void registerCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback, int requestCode)
Allows the registration of a callback that will be executed once the dialog is closed, withsuccess, cancel or error details. This should be called in the or methods.
- Parameters:
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 thosereserved for the Facebook SDK isFacebookRequestCode.
-
-
-
-