首页 > 解决方案 > 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());
 }

标签: androidparse-platform

解决方案


推荐阅读