Xamarin.Forms是否支持定期后台任务? [英] Does Xamarin.Forms support periodic background tasks?
问题描述
我很难找到有关Xamarin.Forms的后台任务支持的文档. Xamarin.Forms是否提供对定期后台任务的支持?
I am having a difficult time finding documentation on background tasks support for Xamarin.Forms. Does Xamarin.Forms provide support for periodic background tasks?
我需要同时在Windows Phone 10和Android上实现此功能.
I need to implement this for both Windows Phone 10 and Android.
推荐答案
XF没有实现后台任务的实现.您将需要在本地实现这些功能.下面是有关如何为每种类型的项目执行此操作的示例.
XF has no implementation for background tasks. You will need to implement these natively. Below are examples on how to do it for each type of project.
UWP
https://github.com/Microsoft/Windows- Universal-samples/tree/master/Samples/BackgroundTask
WinRT
https://visualstudiomagazine. com/articles/2013/05/01/background-tasks-in-windows-store-apps.aspx
iOS
仅适用于也需要iOS的用户. https://developer.xamarin.com/guides/ios/application_fundamentals/backgrounding/part_3_ios_backgrounding_techniques/
Just for those that want iOS as well. https://developer.xamarin.com/guides/ios/application_fundamentals/backgrounding/part_3_ios_backgrounding_techniques/
Xamarin.Forms
每个部分的详细信息是 https://xamarinhelp.com/xamarin-background-tasks/
Going into more detail for each section is https://xamarinhelp.com/xamarin-background-tasks/
这篇关于Xamarin.Forms是否支持定期后台任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!