隐藏

Xamarin Android 定时刷新UI

发布:2021/10/14 14:31:01作者:管理员 来源:本站 浏览次数:835

var timer = new Timer(new TimerCallback(delegate (object state)
            {
                this.RunOnUiThread(() =>
                {
                    var textureQRCodeScan = FindViewById<TextureView>(Resource.Id.textureQRCodeScan);
                    var imageQRCodeScan = FindViewById<TextureView>(Resource.Id.imageQRCodeScan);
                    
                });
            }), null, 0, 10000);