1212
1313public class SJFirebaseUser {
1414
15- public FirebaseUser get_current_user () {
15+ public static FirebaseUser get_current_user () {
1616 return FirebaseAuth .getInstance ().getCurrentUser ();
1717 }
1818
19- public void update_profile (String name , String photo_url , OnCompleteListener <Void > callback ) {
19+ public static void update_profile (String name , String photo_url , OnCompleteListener <Void > callback ) {
2020 // [START update_profile]
2121 UserProfileChangeRequest .Builder profile_updates = new UserProfileChangeRequest .Builder ();
2222 UserProfileChangeRequest user_profile_change_request ;
@@ -36,19 +36,19 @@ public void update_profile(String name, String photo_url, OnCompleteListener<Voi
3636 // [END update_profile]
3737 }
3838
39- public void update_email (String email , OnCompleteListener <Void > callback ) {
39+ public static void update_email (String email , OnCompleteListener <Void > callback ) {
4040 get_current_user ().updateEmail (email )
4141 .addOnCompleteListener (callback );
4242 }
4343
44- public void send_email_verification (OnCompleteListener <Void > callback ) {
44+ public static void send_email_verification (OnCompleteListener <Void > callback ) {
4545 // [START send_email_verification]
4646 get_current_user ().sendEmailVerification ()
4747 .addOnCompleteListener (callback );
4848 // [END send_email_verification]
4949 }
5050
51- public void send_email_verification_with_continue_url (
51+ public static void send_email_verification_with_continue_url (
5252 String app_package_name , String url , OnCompleteListener <Void > callback ) {
5353 // [START send_email_verification_with_continue_url]
5454 ActionCodeSettings actionCodeSettings = ActionCodeSettings .newBuilder ()
@@ -62,7 +62,7 @@ public void send_email_verification_with_continue_url(
6262 .addOnCompleteListener (callback );
6363 }
6464
65- public void send_password_reset_email (String email , OnCompleteListener <Void > callback ) {
65+ public static void send_password_reset_email (String email , OnCompleteListener <Void > callback ) {
6666 // [START send_password_reset]
6767 FirebaseAuth auth = FirebaseAuth .getInstance ();
6868
@@ -71,15 +71,15 @@ public void send_password_reset_email(String email, OnCompleteListener<Void> cal
7171 // [END send_password_reset]
7272 }
7373
74- public void deleteUser (OnCompleteListener <Void > callback ) {
74+ public static void deleteUser (OnCompleteListener <Void > callback ) {
7575 // [START delete_user]
7676
7777 get_current_user ().delete ()
7878 .addOnCompleteListener (callback );
7979 // [END delete_user]
8080 }
8181
82- public void reauthenticate (String email , String password , OnCompleteListener <Void > callback ) {
82+ public static void reauthenticate (String email , String password , OnCompleteListener <Void > callback ) {
8383 // [START reauthenticate]
8484
8585 // Get auth credentials from the user for re-authentication. The example below shows
0 commit comments