User management
data class User(
val uid: String,
val name: String,
val email: String,
val picture: FileUrl?,
)val saveProfilePicture = SaveProfilePicture(args) // args are injected thanks to Koin
saveProfilePicture(byteArray)Save Profile Picture
class ProfileScreenModel(
private val saveProfilePicture: SaveProfilePicture,
): ScreenModel {
fun saveProfilePicture(byteArray) {
this.saveProfilePicture(byteArray)
}
}
Control the remote storage
Last updated