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; }
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(); } }
public void UserImageClick() { SAGAndroidPlugin.getInstance().openGallery("Image"); }
void OnDestroy() { SAGAndroidPlugin.getInstance().imageDelegate -= imageHandle; }
public void GalleryVideosOpen() { SAGAndroidPlugin.getInstance().openGallery(ResourceType.Video.ToString()); }
public void GalleryImagesOpen() { SAGAndroidPlugin.getInstance().openGallery(ResourceType.Image.ToString()); }
void Gallery_Video_PickDone(string param) { SAGAndroidPlugin.getInstance().handleVideo(param); }
void Gallery_PickDone(string param) { SAGAndroidPlugin.getInstance().handleImage(param); }