Supports reading and writing NFC tags and supports sending messages between two Android devices. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Creates an NdefMessage with the given mime type and data. Note that this method is only supported by Android 4.1+ (API 16).
CreateUriRecord (UriAsString) AsObject
Creates an NdefMessage with a Uri payload.
DisableForegroundDispatch
See EnableForegroundDispatch.
EnableForegroundDispatch
Forces all NFC intents to be sent to the current activity. Should be called from Activity_Resume. DisableForegroundDispatch should called from Activity_Pause.
Returns an array with the technologies supported by the NFC tag.
IsEnabledAsBoolean [read only]
Returns true if NFC is supported and is enabled. If IsSupported returned True and IsEnabled returned False then you can show the NFC settings page: DiminAsIntent in.Initialize("android.settings.NFC_SETTINGS", "")
StartActivity(in)
Initializes the object. EventName - Set the subs that will handle the events. Tech - The NFC technology that will be used. Intent - The intent received in Activity_Resume.
Asynchronously runs the given method. This can be used to access native I/O methods. EventName - The sub that will handle the RunAsync event. Method - Java method name. Params - Array of parameters. Flag - Arbitrary number that will be passed to the RunAsync event.
Top