Edit profile
Editing a profile looks a bit like registration, so, with a logged user you’ll need to call:
1
private var listener: MBAuthApiProfileUpdateListener
2
private var edt_name, edt_surname, edt_email, edt_password: EditText
3
private var phone: String
4
private var img_uri: Uri
5
private var auxiliar_data: String
6
7
MBurgerAuthTasks.updateProfile(applicationContext,
8
listener, //Listener for registration
9
edt_name.getText().toString(), //Name, REQUIRED
10
edt_surname.getText().toString(), //Surname, REQUIRED
11
phone, //Phone number, nullable
12
img_uri, //Image, nullable
13
edt_email.getText().toString(), //Email, REQUIRED
14
auxiliar_data); //Auxiliar data nullable
Copied!
If you decide not to set a new image, so the img_uri value is null, the logged user original image will remain the same.
Copy link