示例#1
0
        public Task displaySpixiAlert(string title, string message, string cancel)
        {
            ISystemAlert alert = DependencyService.Get <ISystemAlert>();

            if (alert != null)
            {
                alert.displayAlert(title, message, cancel);
                return(null);
            }

            return(DisplayAlert(title, message, cancel));
        }
示例#2
0
        public Task displaySpixiAlert(string title, string message, string cancel)
        {
            try {
                ISystemAlert alert = DependencyService.Get <ISystemAlert>();
                if (alert != null)
                {
                    alert.displayAlert(title, message, cancel);
                    return(null);
                }

                return(DisplayAlert(title, message, cancel));
            }catch (Exception e)
            {
                Logging.error("Exception occured in displaySpixiAlert: " + e);
            }
            return(null);
        }