Class NfcManager
Definition
- Assembly:
- Tizen.Network.Nfc.dll
A class for the NFC management. It allows applications to use the NFC service.
public static class NfcManager
- Inheritance
-
objectNfcManager
Properties
View SourceCachedNdefMessage
The cached NDEF message.
Declaration
public static NfcNdefMessage CachedNdefMessage { get; }
Property Value
Type | Description |
---|---|
NfcNdefMessage |
IsActivated
The NFC Activation state.
Declaration
public static bool IsActivated { get; }
Property Value
Type | Description |
---|---|
bool |
IsSupported
Checks whether the NFC is supported.
Declaration
public static bool IsSupported { get; }
Property Value
Type | Description |
---|---|
bool |
SecureElementType
The Secure Element type.
Declaration
public static NfcSecureElementType SecureElementType { get; set; }
Property Value
Type | Description |
---|---|
NfcSecureElementType |
SystemHandlerEnabled
Enables or disables the system handling for the tag and target discovered event.
Declaration
public static bool SystemHandlerEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
TagFilterType
The Tag Filter type.
Declaration
public static NfcTagFilterType TagFilterType { get; set; }
Property Value
Type | Description |
---|---|
NfcTagFilterType |
Methods
View SourceGetCardEmulationAdapter()
Gets the Card Emulation adapter object.
Declaration
public static NfcCardEmulationAdapter GetCardEmulationAdapter()
Returns
Type | Description |
---|---|
NfcCardEmulationAdapter |
GetP2pAdapter()
Gets the P2P adapter object.
Declaration
public static NfcP2pAdapter GetP2pAdapter()
Returns
Type | Description |
---|---|
NfcP2pAdapter |
GetTagAdapter()
Gets the Tag adapter object.
Declaration
public static NfcTagAdapter GetTagAdapter()
Returns
Type | Description |
---|---|
NfcTagAdapter |
SetActivationAsync(bool)
Activates the NFC asynchronously.
Declaration
public static Task SetActivationAsync(bool activation)
Parameters
Type | Name | Description |
---|---|---|
bool | activation |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicates whether the Activate method is done or not. |
Events
View SourceActivationChanged
The Activation changed event.
Declaration
public static event EventHandler<ActivationChangedEventArgs> ActivationChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><ActivationChangedEventArgs> |
NdefMessageDiscovered
The NDEF discovered event.
Declaration
public static event EventHandler<NdefMessageDiscoveredEventArgs> NdefMessageDiscovered
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><NdefMessageDiscoveredEventArgs> |