private void WireUpLongRunningTracking() { var serviceIntent = new Intent(this, typeof(Services.TrackingService)); MessagingCenter.Subscribe <StartTrackingTaskMessage>(this, nameof(StartTrackingTaskMessage), message => { serviceIntent.SetAction(Consts.ACTION_START_SERVICE); StartService(serviceIntent); }); MessagingCenter.Subscribe <StopTrackingTaskMessage>(this, nameof(StopTrackingTaskMessage), message => { serviceIntent.SetAction(Consts.ACTION_STOP_SERVICE); StopService(serviceIntent); }); }
public override void OnPageFinished(WebView view, string url) { base.OnPageFinished(view, url); Messaging.Send <Object>(this, "ReleasePdfLoading"); }