private Task PlatformScanAsync(NdefScanOptions options = null) { string subscription = "NDEF"; if (options != null) { subscription = options.RecordType; } subscriptionReference = proximityDevice.SubscribeForMessage(subscription, MessageReceived); return(Task.FromException(new NotImplementedException())); }
private Task PlatformScanAsync(NdefScanOptions options = null) { session?.BeginSession(); if (options != null) { if (options.Signal != null) { options.Signal.Register(Cancelled); } } return(Task.CompletedTask); }
private Task PlatformScanAsync(NdefScanOptions options = null) { string subscription = "NDEF"; if (options != null) { if (options.Signal != null) { options.Signal.Register(Unsubscribe); } if (!string.IsNullOrEmpty(options.RecordType)) { subscription = options.RecordType; } } subscriptionReference = proximityDevice.SubscribeForMessage(subscription, MessageReceived); return(Task.CompletedTask); }
public Task ScanAsync(NdefScanOptions options = null) { return(PlatformScanAsync(options)); }
private Task PlatformScanAsync(NdefScanOptions options = null) { return(Task.FromException(new PlatformNotSupportedException())); }
private async Task PlatformScanAsync(NdefScanOptions options = null) { s_adapter.EnableReaderMode(Xamarin.Essentials.Platform.CurrentActivity, this, NfcReaderFlags.NfcA | NfcReaderFlags.NfcB | NfcReaderFlags.NfcF | NfcReaderFlags.NfcV, null); }