Xamarin.Forms是否支持定期后台任务? [英] Does Xamarin.Forms support periodic background tasks?

查看:257
本文介绍了Xamarin.Forms是否支持定期后台任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难找到有关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

Android https://developer.xamarin.com/guides/android/application_fundamentals/backgrounding/part_2_android_services/

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆