Beispiel #1
0
        private async void Userimage_Clicked(object sender, EventArgs e)
        {
            userimage.IsEnabled = false;

            string auth = await _firebaseAuth.GetCurrentUser();

            if (auth != null)
            {
                var imagelocation = await _firebaseDatabase.UploadFIle();

                if (imagelocation != null)
                {
                    string imageurl = await _firebaseDatabase.GetFileUrl(imagelocation);

                    _firebaseDatabase.UpdateUserImage(auth, imageurl);
                }
            }



            userimage.IsEnabled = true;
        }