/// <inheritdoc />
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            var result = base.FinishedLaunching(uiApplication, launchOptions);

            _messagingCenter = MessagingCenter.Instance;
            _messagingCenter.Subscribe <object>(this, ToBackgroundMessages.StartBackgroundService, OnStartBackgroundServiceMessage);
            _messagingCenter.Subscribe <object>(this, ToBackgroundMessages.StopBackgroundService, OnStopBackgroundServiceMessage);
            _messagingCenter.Subscribe <object>(this, ToBackgroundMessages.GetBackgroundServiceState, OnGetBackgroundServiceState);

            BackgroundService = new NativeBackgroundServiceHost();

            return(result);
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="service"></param>
 public BackgroundServiceBinder(NativeBackgroundServiceHost service)
 {
     Service = service;
 }