任何人都可以告訴我,當前用戶是做什麼的?Firebase getCurrentUser方法需要說明
private ProgressDialog progressDialog;
private FirebaseAuth firebaseAuth;
progressDialog = new ProgressDialog(this);
firebaseAuth = FirebaseAuth.getInstance();
if (firebaseAuth.getCurrentUser() != null){
//start profile activity
finish();
startActivity(new Intent(getApplicationContext(),Profile.class));
}
我很困惑哪位用戶獲得當前用戶選擇?