void Activate(UIViewController parent) { previousController = parent; composerView.textView.BecomeFirstResponder(); parent.PresentModalViewController(this, true); if (Util.Defaults.IntForKey("disableMusic") != 0) { return; } // Give some room to breathe on old systems NSTimer.CreateScheduledTimer(1, delegate { try { if (player == null) { player = new AudioPlay("Audio/composeaudio.mp3"); } player.Play(); } catch (Exception e) { Console.WriteLine(e); } }); }
static CapturePullEvents() { AudioPlay.InitAudio(); }
void Activate(UIViewController parent) { previousController = parent; composerView.textView.BecomeFirstResponder (); parent.PresentModalViewController (this, true); if (Util.Defaults.IntForKey ("disableMusic") != 0) return; // Give some room to breathe on old systems NSTimer.CreateScheduledTimer (1, delegate { try { if (player == null) player = new AudioPlay ("Audio/composeaudio.mp3"); player.Play (); } catch (Exception e){ Console.WriteLine (e); } }); }
void Activate(UIViewController parent) { previousController = parent; composerView.textView.BecomeFirstResponder (); parent.PresentModalViewController (this, true); if (Util.Defaults.IntForKey ("disableMusic") != 0) return; try { if (player == null) player = new AudioPlay ("Audio/composeaudio.mp3"); player.Play (); } catch (Exception e){ Console.WriteLine (e); } }