Exemple #1
0
        /**
         * Displays a snackbar (new in material design) at the bottom of the screen
         * - parameter text: The message to be displayed
         * - parameter duration: The duration of the snackbar
         */
        public static void Show(string text, NBLunchDuration duration, UIView windowView = null)
        {
            if (windowView == null)
            {
                windowView = UIApplication.SharedApplication.GetTopView();
            }
            NBMaterialSnackbar toast = NBMaterialSnackbar.CreateSingleWithTextAndDuration(windowView, text: text,
                                                                                          duration: duration);

            toast.Show();
        }
Exemple #2
0
        // MARK: - Class functions
        // TODO: Include user actions
        // TODO: Include swipe to dismiss

        /**
         * Displays a snackbar (new in material design) at the bottom of the screen
         *
         * - parameter text: The message to be displayed
         */
        public static void Show(string text, UIView windowView = null)
        {
            NBMaterialSnackbar.Show(text, NBLunchDuration.Medium, windowView);
        }