A base class for sharing buttons.
ขยาย: | FacebookButtonBase |
แพ็คเกจ: | widget |
registerCallback(CallbackManager, FacebookCallback)
Allows registration of a callback for when the share completes. 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)
พารามิเตอร์ | คำอธิบาย |
---|---|
callbackManager | The CallbackManager instance that will be handling results that are received via Activity.onActivityResult(int, int, android.content.Intent) |
callback | The callback that should be called to handle dialog completion. |
registerCallback(CallbackManager, FacebookCallback, int)
Allows registration of a callback for when the share completes. 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)
พารามิเตอร์ | คำอธิบาย |
---|---|
callbackManager | The CallbackManager instance that will be handling results that are received via Activity.onActivityResult(int, int, android.content.Intent) |
callback | The callback that should be called to handle 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). |