/// <summary> /// Loads the shutter sound. /// </summary> /// <returns><c>true</c>, if shutter sound was loaded, <c>false</c> otherwise.</returns> private bool LoadShutterSound() { try { _mediaSound = new MediaActionSound(); _mediaSound.LoadAsync(MediaActionSoundType.ShutterClick); return(true); } catch (Java.Lang.Exception error) { Log.WriteLine(LogPriority.Error, error.Source, error.Message); } return(false); }
/// <summary> /// Loads the shutter sound. /// </summary> /// <returns><c>true</c>, if shutter sound was loaded, <c>false</c> otherwise.</returns> private bool LoadShutterSound() { try { _mediaSound = new MediaActionSound(); _mediaSound.LoadAsync(MediaActionSoundType.ShutterClick); return(true); } catch (Java.Lang.Exception error) { _log.WriteLineTime(_tag + "\n" + "LoadShutterSound() Error loading shutter sound \n " + "ErrorMessage: \n" + error.Message + "\n" + "Stacktrace: \n " + error.StackTrace); } return(false); }
private bool LoadShutterSound() { try { _mediaSound = new MediaActionSound(); _mediaSound.LoadAsync(MediaActionSoundType.ShutterClick); return(true); } catch (Java.Lang.Exception error) { System.Diagnostics.Debug.WriteLine($"{error.Message} {error.StackTrace}"); // _log.WriteLineTime(_tag + "\n" + // "LoadShutterSound() Error loading shutter sound \n " + // "ErrorMessage: \n" + // error.Message + "\n" + // "Stacktrace: \n " + // error.StackTrace); } return(false); }