如何在Xamarin for iOS中刷新ParseUser.CurrentUser?
没有像refresh()这样的方法。
答案 0 :(得分:0)
来自Parse forums:
ParseUser currentUser = ParseUser.getCurrentUser();
currentUser.fetchInBackground(new GetCallback<ParseObject>() {
public void done(ParseObject object, ParseException e) {
if (e == null) {
ParseUser currUser = (ParseUser) object;
// Do Stuff with currUSer
} else {
// Failure!
}
}
});