我很困惑;如何从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();
}
所以,基本上,我的问题是:如何获得用户的布尔值?
答案 0 :(得分:1)
你可以注意到" _用户" Parse中的类有一个布尔列" emailVerified"。你读了" emailRerified"的价值。根据需要。
ParseUser user = ParseUser.getCurrentUser();
Boolean isVerified = user.getBoolean("emailVerified");