Example #1
0
        protected void BasicHudActionForRow(int row)
        {
            switch (row)
            {
            case 0:
                hud.SetCaption("Just a simple caption.");
                break;

            case 1:
                hud.SetCaption("Caption and an activity indicator.");
                hud.SetActivity(true);
                break;

            case 2:
                hud.SetCaption("Caption and an image.");
                hud.SetImage(UIImage.FromBundle("19-check"));
                break;

            case 3:
                hud.SetActivity(true);
                hud.SetActivityStyle(UIActivityIndicatorViewStyle.WhiteLarge);
                break;

            case 4:
                hud.SetCaption("Showing the HUD triggers a sound.");
                hud.ShowSound = NSBundle.MainBundle.PathForResource("pop", "wav");
                break;
            }
            hud.Show();
        }