简体   繁体   English

在Android上分享对话框Facebook

[英]Share dialog Facebook on Android

I follow this tutorial: https://developers.facebook.com/docs/android/share-dialog/ 我遵循此教程: https : //developers.facebook.com/docs/android/share-dialog/

but I don't know where is the variable "callback" on this code: 但我不知道此代码中的变量“回调”在哪里:

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

uiHelper = new UiLifecycleHelper(this, callback);
uiHelper.onCreate(savedInstanceState);

I don't know what it is. 不知道是什么 It isn't declared anywhere in the tutorial. 在教程的任何地方都没有声明它。
I need help, please! 我需要帮助!

The second parameter to UiLifecycleHelper is of type Session.StatusCallback , which is defined in the first part of the tutorial . UiLifecycleHelper的第二个参数是Session.StatusCallback类型, 在教程第一部分中定义。 It's under Step 2: Set Up authentication change triggers I believe. 我相信这是在“ 第2步:设置身份验证更改触发器”下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM