コード例 #1
0
        public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> suspensionState)
        {
            if (suspensionState.Any())
            {
                Value = suspensionState[nameof(Value)]?.ToString();
            }

            bluetoothListener = new BluetoothListener();
            await bluetoothListener.RegisterTask();

            bluetoothListener.MessageReceived += BluetoothListener_MessageReceived;

            await Task.CompletedTask;
        }