-
- All Implemented Interfaces:
-
com.facebook.FacebookDialog
public abstract class FacebookDialogBase<CONTENT, RESULT> implements FacebookDialog<CONTENT, RESULT>
com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.
-
-
Field Summary
Fields Modifier and Type Field Description private intrequestCodeprivate CallbackManagercallbackManager
-
Method Summary
Modifier and Type Method Description intgetRequestCode()Returns the request code used for this dialog. voidsetRequestCode(int requestCode)Set the request code for the startActivityForResult call. CallbackManagergetCallbackManager()voidsetCallbackManager(@Nullable() CallbackManager callbackManager)Set the callback manager that will handle callbacks for this dialog. final voidregisterCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback)final voidregisterCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback, int requestCode)booleancanShow(CONTENT content)voidshow(CONTENT content)-
-
Method Detail
-
getRequestCode
int getRequestCode()
Returns the request code used for this dialog.
-
setRequestCode
void setRequestCode(int requestCode)
Set the request code for the startActivityForResult call. The requestCode should be outside ofthe range of those reserved for the Facebook SDK .
- Parameters:
requestCode- the request code to use.
-
getCallbackManager
CallbackManager getCallbackManager()
-
setCallbackManager
void setCallbackManager(@Nullable() CallbackManager callbackManager)
Set the callback manager that will handle callbacks for this dialog. It will be used if theandroidx activity result APIs are available.
-
registerCallback
final void registerCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback)
-
registerCallback
final void registerCallback(CallbackManager callbackManager, FacebookCallback<RESULT> callback, int requestCode)
-
-
-
-