是否可以在Google文档/云端硬盘文档中对标题进行编号?
我使用的是适用于Android的Google+平台
PlusClient plusClient =
new PlusClient.Builder(this, this, this).setScopes(Scopes.PLUS_LOGIN).build();
Run Code Online (Sandbox Code Playgroud)
在onConnected-Listener中,我想读取登录用户的数据
@Override
public void onConnected() {
super.onConnected();
Person person = plusClient.getCurrentPerson();
}
Run Code Online (Sandbox Code Playgroud)
方法调用getCurrentPerson返回null.有没有人设法读取用户数据?
我尝试使用gwt jsni 从此链接/sf/answers/637028451/调用代码 .
我的方法看起来像
public static native void hideAddressBar() /*-{
if (document.documentElement.scrollHeight < $wnd.outerHeight * $wnd.devicePixelRatio) {
document.documentElement.style.height = ($wnd.outerHeight * $wnd.devicePixelRatio) + 'px';
}
setTimeout($wnd.scrollTo(1, 1), 0);
}-*/;
Run Code Online (Sandbox Code Playgroud)
但是当我打电话给它时,没有任何反应.
我的问题:是不是可以设置document.documentElement.style.heightgwt jsni 的值?