public override void PresentInboxUI(PushwooshInboxStyle style)
        {
            PWIInboxStyle          nativeStyle         = GetNativeStyle(style);
            PWIInboxViewController inboxViewController = PWIInboxUI.CreateInboxControllerWithStyle(nativeStyle);

            inboxViewController.NavigationItem.LeftBarButtonItem = new UIBarButtonItem("Close", UIBarButtonItemStyle.Plain, OnCloseInboxClick);
            UIViewController       rootViewController   = FindRootViewController();
            UINavigationController navigationController = new UINavigationController(inboxViewController);

            rootViewController.PresentViewController(navigationController, true, null);
        }
Esempio n. 2
0
        private void PresentInboxViewController(PWIInboxStyle style)
        {
            PWIInboxViewController inboxViewController = PWIInboxUI.CreateInboxControllerWithStyle(style);

            inboxViewController.NavigationItem.LeftBarButtonItem = new UIBarButtonItem("Close", UIBarButtonItemStyle.Plain, OnCloseInboxClick);
            inboxViewController.OnMessageClickBlock = delegate { Console.WriteLine("Message clicked"); };
            UIViewController       rootViewController   = FindRootViewController();
            UINavigationController navigationController = new UINavigationController(inboxViewController);

            rootViewController.PresentViewController(navigationController, true, null);
        }