Beispiel #1
0
        public MvxMacViewPresenter(NSApplicationDelegate applicationDelegate)
        {
            _applicationDelegate = applicationDelegate;
            _windows             = new List <NSWindow>();

            _attributeTypesToShowMethodDictionary = new Dictionary <Type, Action <NSViewController, MvxBasePresentationAttribute, MvxViewModelRequest> >();

            RegisterAttributeTypes();
        }
Beispiel #2
0
 public MvxFormsMacViewPresenter(INSApplicationDelegate applicationDelegate, MvxFormsApplication formsApplication) : base(applicationDelegate)
 {
     FormsApplication = formsApplication ?? throw new ArgumentNullException(nameof(formsApplication), "MvxFormsApplication cannot be null");
 }
Beispiel #3
0
 public static void ShinyFailedToRegisterForRemoteNotifications(this INSApplicationDelegate app, NSError error)
 => MacShinyHost.FailedToRegisterForRemoteNotifications(error);
Beispiel #4
0
 public static void ShinyRegisteredForRemoteNotifications(this INSApplicationDelegate app, NSData deviceToken)
 => MacShinyHost.RegisteredForRemoteNotifications(deviceToken);
Beispiel #5
0
 public static void ShinyDidFinishLaunching(this INSApplicationDelegate app, IShinyStartup?startup = null, Action <IServiceCollection>?platformBuild = null)
 => MacShinyHost.Init(startup, platformBuild);
 public MvxMacViewPresenter(INSApplicationDelegate applicationDelegate)
 {
     _applicationDelegate = applicationDelegate;
 }
 public MvxMacViewPresenter(NSApplicationDelegate applicationDelegate)
 {
     _applicationDelegate = applicationDelegate;
     _windows             = new List <NSWindow>();
 }
Beispiel #8
0
 public MvxMacViewPresenter(INSApplicationDelegate applicationDelegate)
 {
     _applicationDelegate = applicationDelegate;
     NSWindow.Notifications.ObserveWillClose(OnWindowWillCloseNotification);
 }