【问题标题】:How can I get emailVerified from parse user in android?如何从 android 中的解析用户获取 emailVerified?
【发布时间】:2015-11-30 19:25:28
【问题描述】:

我很困惑;如何从 parse.com USER 数据库中获取布尔值? 我想要实现的是:

if(The user who is trying to log in right now has not verified his email){
Toast.makeText(getApplicationContext(),"Verify your email please",Toast.LENGTH_SHORT).show();
}

所以,基本上,我的问题是:如何获得用户的布尔值?

【问题讨论】:

    标签: android parse-platform boolean


    【解决方案1】:

    您可以注意到 Parse 中的“_User”类有一个布尔列“emailVerified”。您根据需要阅读“emailVerified”的值。

    ParseUser user = ParseUser.getCurrentUser();
    Boolean isVerified = user.getBoolean("emailVerified");
    

    【讨论】:

    • 我想你不明白。如何获取布尔值?
    • @AbAppletic 我回答你的问题了吗?如果你还有问题,我会帮你提供详细的代码。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-09
    • 2018-05-28
    相关资源
    最近更新 更多