Timer doesn't contain in System.Threading at Xamarin.Forms

前端 未结 3 706
北海茫月
北海茫月 2021-01-14 11:29

I used System.Threading.Timer in Xamarin.Android.

How I can use the same class in Xamarin.Forms? (I want to transfer my projec

3条回答
  •  误落风尘
    2021-01-14 12:27

    System.Threading.Timer is not available in PCL code. You can use the Xamarin.Forms.Device.StartTimer method instead as explained here: http://developer.xamarin.com/api/member/Xamarin.Forms.Device.StartTimer/

提交回复
热议问题