示例#1
0
        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);
                }
            });
        }
示例#2
0
 static CapturePullEvents()
 {
     AudioPlay.InitAudio();
 }
示例#3
0
        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);
                }
            });
        }
示例#4
0
        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);
            }
        }