/// <summary>
        /// Called by the alert when it is started.
        /// </summary>
        protected override bool OnStart()
        {
            if (!ion.settings._alarm.allowsVibrate)
            {
                return(false);
            }

            ion.PostToMain(PostVibrateTask);

            return(true);
        }
Пример #2
0
        /// <summary>
        /// Called by the alert when it is started.
        /// </summary>
        protected override bool OnStart()
        {
            if (!ion.settings._alarm.allowsSounds || sound != null)
            {
                return(false);
            }

            sound = new SystemSound(1005);

            ion.PostToMain(PostNotification);

            return(true);
        }