Near Field¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Sensors | API 21, Android 5.0 Lollipop | 1 |
Overview¶
Non-visible component to provide NFC capabilities. For now this component supports the reading and writing of text tags only (if supported by the device)
In order to read and write text tags, the component must have its ReadMode
property set to True or False respectively.
Note: This component will only work on Screen1 of any App Inventor app.
Permissions
Events¶
Tag Read¶
Indicates that a new tag has been detected Currently this is only a plain text tag, as specified in themanifest. See Compiler.java.
Params | |
---|---|
tag ID | Text |
message | Text |
Tag Written¶
Event to detect when a tag was written.
Properties¶
Last Message¶
Text Read - Blocks
Returns the content of the most recently received tag.
Read Mode¶
Boolean Default: True Read Write - Designer Blocks
Returns true if in read mode, false if in write mode.
Text To Write¶
Text Read Write - Blocks
Returns the content of the text that's going to be written to the tag.
Write Type¶
Number Read - Blocks
Property for WriteType