class ProfileEditActivity : AppCompatActivity
The activity that is used to handle profile view/edit for a logged in user There are a couple of flags that are used here:
There are a couple more properties
Author
Kenneth Soh
Since
2019-09-16
<init> |
The activity that is used to handle profile view/edit for a logged in user There are a couple of flags that are used here: ProfileEditActivity() |
editMode |
Boolean If the user is currently allowed to edit the profile var editMode: Boolean |
editUser |
User? The user in which this profile is editing var editUser: User? |
firstRun |
Boolean If this is the user's first logon to the app var firstRun: Boolean |
profileImage |
Bitmap? The profile image if any of the user var profileImage: Bitmap? |
profileUri |
Uri? The url to the profile image of the user if any var profileUri: Uri? |
uid |
String The Unique ID of the user lateinit var uid: String |
addOrUpdate |
Internal function to handling the creation or update of user profile fun addOrUpdate(): Unit |
enterViewOnlyMode |
This is an internal function of code to execute to enter view-only mode fun enterViewOnlyMode(): Unit |
exitViewOnlyMode |
This is an internal function handling code to execute when exiting view-only mode and entering edit mode fun exitViewOnlyMode(): Unit |
getSelectedDays |
Internal function to obtain a list of preferred days that have been selected fun getSelectedDays(): ArrayList<Int> |
onActivityResult |
This is used to handle results from any provider based profile pic such as from the Google Authentication fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?): Unit |
onBackPressed |
This function overrides the back functionality of the activity fun onBackPressed(): Unit |
onCreate |
Function that is called when an activity is created fun onCreate(savedInstanceState: Bundle?): Unit |
onOptionsItemSelected |
This function handles the selected menu item fun onOptionsItemSelected(item: MenuItem): Boolean |
updateData |
This is a function to handle updating a user's data fun updateData(user: User): Unit |
validate |
This is used to validate if all input requirements have been met fun validate(): Boolean |
REQUEST_PROFILE_PIC |
Intent to request for profile pictures const val REQUEST_PROFILE_PIC: Int |
TAG |
Activity Tag for logs const val TAG: String |