FacebookDialog
يتوفر إصدار أحدث لهذه الفئة. يرجى التحقق أحدث إصدار.

Represents dialogs provided by Facebook

الحزمة:facebook
طرق المثيلات
canShow(Object)

Indicates whether the dialog can be shown for the content passed in.

public boolean canShow(Object content)
المعلمةالوصف
contentThe content to check
Returns
True if the dialog can be shown
show(Object)

Shows the dialog for the content passed in.

public void show(Object content)
المعلمةالوصف
contentThe content to show
registerCallback(CallbackManager, FacebookCallback)

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 Activity.onCreate(android.os.Bundle) or Fragment.onCreate(android.os.Bundle) methods.

public void registerCallback(CallbackManager callbackManager, FacebookCallback callback)
المعلمةالوصف
callbackManagerCallbackManager instance that will handle the onActivityResult
callbackCallback to be called upon dialog completion
registerCallback(CallbackManager, FacebookCallback, int)

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 Activity.onCreate(android.os.Bundle) or Fragment.onCreate(android.os.Bundle) methods.

public void registerCallback(CallbackManager callbackManager, FacebookCallback callback, int requestCode)
المعلمةالوصف
callbackManagerCallbackManager instance that will handle the Activity Result
callbackCallback to be called upon dialog completion
requestCodeThe request code to use, this should be outside of the range of those reserved for the Facebook SDK FacebookSdk.isFacebookRequestCode(int).