Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 445

Answer by Liyun Zhang - MSFT for .NET Maui - Update UI from bluetooth events

$
0
0

The method is not async so you can just call it directly. Such as:

private void OnDiscoveryFinished(){    isDiscovering = false;}

And for the ObservableCollection, you can use the CollectionChanged event:

protected override void OnInitialized(){    base.OnInitialized();    devices.CollectionChanged += (s, e) =>    {        StateHasChanged();    };}

Viewing all articles
Browse latest Browse all 445

Latest Images

Trending Articles



Latest Images