android - ParseUser getCurrentUser() - 如果没有当前用户?
问题描述
文档说返回带有有效会话的登录 ParseUser 。但是如果当前没有登录用户,它会返回什么?我没有在文档中看到指定。
/**
* This retrieves the currently logged in ParseUser with a valid session, either from memory or
* disk if necessary.
*
* @return The currently logged in ParseUser
*/
public static ParseUser getCurrentUser() {
return getCurrentUser(isAutomaticUserEnabled());
}
解决方案
推荐阅读
- mule - Mule 3 到 Mule 4 错误类型和 http 状态的错误处理查询
- javafx - JavaFX: Snakes And Ladders - 在 GridPane 中表示蛇和梯子图像
- ejabberd - ejabberd 中的用户存储
- python - Exchangelib 流通知句柄事件
- node.js - Ghostscript 命令行 - 将参数传递给包含的文件
- cordova - Ionic 3-“ionic cordova build android”构建多个 apk
- ios - 使用 twitter swift 4 登录时出错
- azure - 天蓝色函数上的 TaskCanceledException(服务总线触发器)
- javascript - 加粗文本中的特定单词 - React Native?
- c# - 发布长内容会引发“抱歉,我的机器人代码有问题”