public AlphaApp MakeSureApp() { if (null == App) { global::Xamarin.Forms.Forms.Init(); ImageCircleRenderer.Init(); OmegaFactory.MakeSureInit(); App = AlphaFactory.MakeSureApp(); } return(App); }
public override void PerformFetch(UIApplication application, Action <UIBackgroundFetchResult> completionHandler) { OmegaFactory.MakeSureInit(); AlphaFactory.MakeSureDomain().BackgroundUpdateLastPublicActivityAsync().ContinueWith ( t => completionHandler(UIBackgroundFetchResult.NoData) // UIBackgroundFetchResult.NewData を返すと呼ばれなくなるフシがあるので必ず UIBackgroundFetchResult.NoData // を返しておくようにしてみる。 ); }
public AlphaApp MakeSureApp() { if (null == App) { global::Xamarin.Forms.Forms.Init(); global::OxyPlot.Xamarin.Forms.Platform.iOS.PlotViewRenderer.Init(); ImageCircleRenderer.Init(); OmegaFactory.MakeSureInit(); App = AlphaFactory.MakeSureApp(); } return(App); }