Exemple #1
0
 public void SignOutClick()
 {
     PlayerPrefs.SetInt(Constants.IsLogin, 0);
     PlayerPrefs.DeleteAll();
     SAGAndroidPlugin.getInstance().imageDelegate -= imageHandle;
     SceneManager.LoadScene("Login");
 }
 void Start()
 {
     filepath = "";
     print(ResourceType.Image.ToString());
     SAGAndroidPlugin.getInstance().imageDelegate = imageHandle;
     SAGAndroidPlugin.getInstance().videoDelegate = videoHandle;
 }
Exemple #3
0
 void Start()
 {
     PlayerPrefs.SetString("SchoolLogin", "false");
     TouchScreenKeyboard.hideInput = true;
     IsGalleryFrom = false;
     if (PlayerPrefs.GetInt(Constants.IsLogin) == 0)
     {
         PlayerPrefs.SetInt(Constants.IsLogin, 1);
         PlayerPrefs.SetString(Constants.IsLoginEmailorPhone, Constants.ParentEmail);
         PlayerPrefs.SetString(Constants.IsLoginpassword, Constants.ParentPassword);
     }
     else
     {
         Constants.ParentEmail    = PlayerPrefs.GetString(Constants.IsLoginEmailorPhone);
         Constants.ParentPassword = PlayerPrefs.GetString(Constants.IsLoginpassword);
     }
     parentEmailInput.text    = Constants.ParentEmail;
     parentPasswordInput.text = Constants.ParentPassword;
     SAGAndroidPlugin.getInstance().imageDelegate += imageHandle;
     parentEmailInput.enabled    = false;
     parentPasswordInput.enabled = false;
     parentPhoneInput.enabled    = false;
     dependencyStatus            = FirebaseApp.CheckDependencies();
     if (dependencyStatus != DependencyStatus.Available)
     {
         FirebaseApp.FixDependenciesAsync().ContinueWith(task => {
             dependencyStatus = FirebaseApp.CheckDependencies();
             if (dependencyStatus == DependencyStatus.Available)
             {
                 InitializeFirebase();
             }
             else
             {
                 Debug.LogError(
                     "Could not resolve all Firebase dependencies: " + dependencyStatus);
             }
         });
     }
     else
     {
         InitializeFirebase();
     }
 }
Exemple #4
0
 public void UserImageClick()
 {
     SAGAndroidPlugin.getInstance().openGallery("Image");
 }
Exemple #5
0
 void OnDestroy()
 {
     SAGAndroidPlugin.getInstance().imageDelegate -= imageHandle;
 }
 public void GalleryVideosOpen()
 {
     SAGAndroidPlugin.getInstance().openGallery(ResourceType.Video.ToString());
 }
 public void GalleryImagesOpen()
 {
     SAGAndroidPlugin.getInstance().openGallery(ResourceType.Image.ToString());
 }
Exemple #8
0
 void Gallery_Video_PickDone(string param)
 {
     SAGAndroidPlugin.getInstance().handleVideo(param);
 }
Exemple #9
0
 void Gallery_PickDone(string param)
 {
     SAGAndroidPlugin.getInstance().handleImage(param);
 }