本文整理汇总了C#中UIApplication.SetMinimumBackgroundFetchInterval方法的典型用法代码示例。如果您正苦于以下问题:C# UIApplication.SetMinimumBackgroundFetchInterval方法的具体用法?C# UIApplication.SetMinimumBackgroundFetchInterval怎么用?C# UIApplication.SetMinimumBackgroundFetchInterval使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIApplication
的用法示例。
在下文中一共展示了UIApplication.SetMinimumBackgroundFetchInterval方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FinishedLaunching
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
this.LaunchActions = new Queue<Action<CheckPointController>>();
this.Commands = new CommandManager();
LoadOptions();
application.SetMinimumBackgroundFetchInterval(UIApplication.BackgroundFetchIntervalMinimum);
var PerformAdditionalHandling = true;
if (launchOptions != null)
{
this.LastShortcutItem = launchOptions[UIApplication.LaunchOptionsShortcutItemKey] as UIApplicationShortcutItem;
PerformAdditionalHandling = (LastShortcutItem == null);
}
this.Window = new UIWindow(UIScreen.MainScreen.Bounds);
var root = new RootViewController();
this.Sidebar = root.SideBar;
Window.RootViewController = root;
Window.MakeKeyAndVisible();
this.DataModelConstructor = new Task<DataModel>(() =>
{
DataModel dm;
using (new TrackingBenchmark() { Category = "DataModel", Name = "Load" })
dm = new DataModel(DefaultDataProvider);
return dm;
});
this.DataModelConstructor.Start();
ThreadPool.QueueUserWorkItem((s) =>
{
this.Notifications = new NotificationManager();
this.EnsureIntegrations();
});
return PerformAdditionalHandling;
}