分享对话​​框的Facebook在Android [英] Share dialog Facebook on Android

查看:95
本文介绍了分享对话​​框的Facebook在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照这个教程: https://developers.facebook.com/docs/安卓/共享对话框/

但我不知道是该code变量回调:

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!

推荐答案

第二个参数 UiLifecycleHelper 的类型是 Session.StatusCallback ,这是在的教程<第一部分/ A>。这是在第2步:设置身份验证变更触发我相信

The second parameter to UiLifecycleHelper is of type Session.StatusCallback, which is defined in the first part of the tutorial. It's under Step 2: Set Up authentication change triggers I believe.

这篇关于分享对话​​框的Facebook在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆