Пример #1
0
 public void OnPickAudioFile()
 {
     AGFilePicker.PickAudio(audioFile =>
     {
         var msg = "Audio file was picked: " + audioFile;
         Debug.Log(msg);
         AGUIMisc.ShowToast(msg);
     },
                            error => AGUIMisc.ShowToast("Cancelled picking audio file"));
 }
Пример #2
0
 public void OnPickAudioFile()
 {
     AGFilePicker.PickAudio(audioFile =>
     {
         StartCoroutine(LoadAudioFile(audioFile));
         _demoController.audioPanel.SetActive(true);
         var msg = "Audio file was picked: " + audioFile;
         Debug.Log(msg);
         AGUIMisc.ShowToast(msg);
     },
                            error => AGUIMisc.ShowToast("Cancelled picking audio file"));
 }
        public void PickSoundForNotificationChannel()
        {
            if (NotificationChannelsApiCheck())
            {
                return;
            }

            AGFilePicker.PickAudio(audioFile =>
            {
                _soundFilePath = AndroidUri.FromFile(audioFile.OriginalPath).CallStr("getPath");
                Debug.Log(_soundFilePath);
                AGUIMisc.ShowToast(_soundFilePath);
            },
                                   error => AGUIMisc.ShowToast("Cancelled picking audio file"));
        }