本文整理匯總了Java中com.parse.ParseUser.getBoolean方法的典型用法代碼示例。如果您正苦於以下問題:Java ParseUser.getBoolean方法的具體用法?Java ParseUser.getBoolean怎麽用?Java ParseUser.getBoolean使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.parse.ParseUser
的用法示例。
在下文中一共展示了ParseUser.getBoolean方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onCreate
import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ParseUser pUser = ParseUser.getCurrentUser();
if ((pUser != null)
&& (pUser.isAuthenticated())
&& (pUser.getBoolean(ParseTables.Users.FULLY_REGISTERED))
&& (pUser.getSessionToken() != null)) {
Log.d(TAG, pUser.getUsername() + pUser.getSessionToken());
Utils.goToMainActivity(getActivity());
}
}
示例2: onCreate
import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_navigation);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
ProfileFragment profileFragment = new ProfileFragment();
fragmentTransaction.replace(R.id.navcontent, profileFragment, "HOME_FRAGMENT");
fragmentTransaction.commit();
/*
Initiliase the layouts.
*/
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
drawer.setDrawerListener(toggle);
toggle.syncState();
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
navigationView.setNavigationItemSelectedListener(this);
ParseUser user = ParseUser.getCurrentUser();
isVerified = user.getBoolean("emailVerified");
ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayShowTitleEnabled(true);
String mTitle = "Home";
actionBar.setTitle(mTitle);
}
示例3: onCreate
import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
mGoogleApiClient = new GoogleApiClient.Builder(getActivity())
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(Plus.API)
.addScope(Plus.SCOPE_PLUS_LOGIN)
.build();
ParseUser pUser = ParseUser.getCurrentUser();
if ((pUser != null)
&& (pUser.isAuthenticated())
&& (pUser.getSessionToken() != null)
&& (pUser.getBoolean(ParseTables.Users.FULLY_REGISTERED))) {
Log.d(TAG, pUser.getUsername() + pUser.getSessionToken());
Intent i = new Intent(getActivity(), MainActivity.class);
startActivity(i);
getActivity().finish();
}
}