@maccesar/titools 3.2.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -61
- package/lib/cleanup.js +29 -0
- package/lib/commands/agents.js +8 -7
- package/lib/commands/skills.js +118 -23
- package/lib/config.js +13 -15
- package/lib/installer.js +5 -3
- package/lib/utils.js +36 -0
- package/package.json +1 -1
- package/skills/alloy-guides/SKILL.md +188 -0
- package/skills/alloy-guides/references/CLI_TASKS.md +233 -0
- package/skills/alloy-guides/references/CONCEPTS.md +171 -0
- package/skills/alloy-guides/references/CONTROLLERS.md +279 -0
- package/skills/alloy-guides/references/MODELS.md +742 -0
- package/skills/alloy-guides/references/MODELS_ADVANCED.md +482 -0
- package/skills/alloy-guides/references/PURGETSS.md +57 -0
- package/skills/alloy-guides/references/VIEWS_DYNAMIC.md +235 -0
- package/skills/alloy-guides/references/VIEWS_STYLES.md +375 -0
- package/skills/alloy-guides/references/VIEWS_WITHOUT_CONTROLLERS.md +102 -0
- package/skills/alloy-guides/references/VIEWS_XML.md +581 -0
- package/skills/alloy-guides/references/WIDGETS.md +160 -0
- package/skills/alloy-howtos/SKILL.md +179 -0
- package/skills/alloy-howtos/references/best_practices.md +121 -0
- package/skills/alloy-howtos/references/cli_reference.md +230 -0
- package/skills/alloy-howtos/references/config_files.md +158 -0
- package/skills/alloy-howtos/references/custom_tags.md +148 -0
- package/skills/alloy-howtos/references/debugging_troubleshooting.md +78 -0
- package/skills/alloy-howtos/references/samples.md +156 -0
- package/skills/purgetss/SKILL.md +184 -181
- package/skills/purgetss/references/EXAMPLES.md +8 -6
- package/skills/purgetss/references/app-branding.md +5 -0
- package/skills/purgetss/references/apply-directive.md +1 -1
- package/skills/purgetss/references/class-categories.md +1 -1
- package/skills/purgetss/references/class-index-properties.md +618 -0
- package/skills/purgetss/references/class-index.md +4 -610
- package/skills/purgetss/references/cli-commands.md +41 -410
- package/skills/purgetss/references/custom-fonts.md +292 -0
- package/skills/purgetss/references/custom-rules.md +1 -1
- package/skills/purgetss/references/customization-deep-dive.md +64 -1
- package/skills/purgetss/references/icon-fonts.md +208 -118
- package/skills/purgetss/references/installation-setup.md +4 -4
- package/skills/purgetss/references/migration-guide.md +53 -1
- package/skills/purgetss/references/multi-density-images.md +53 -2
- package/skills/purgetss/references/svg-pipeline.md +249 -0
- package/skills/purgetss/references/tikit-components.md +2 -2
- package/skills/purgetss/references/titanium-resets.md +2 -2
- package/skills/purgetss/references/ui-ux-design.md +7 -5
- package/skills/purgetss/references/version-history.md +71 -82
- package/skills/ti-api/SKILL.md +128 -0
- package/skills/ti-api/references/api-android.md +675 -0
- package/skills/ti-api/references/api-app-platform.md +636 -0
- package/skills/ti-api/references/api-core.md +764 -0
- package/skills/ti-api/references/api-data-network.md +641 -0
- package/skills/ti-api/references/api-media.md +655 -0
- package/skills/ti-api/references/api-modules-ble-bluetooth.md +657 -0
- package/skills/ti-api/references/api-modules-coremotion-urlsession.md +411 -0
- package/skills/ti-api/references/api-modules-map.md +632 -0
- package/skills/ti-api/references/api-modules-nfc.md +725 -0
- package/skills/ti-api/references/api-modules-social-misc.md +526 -0
- package/skills/ti-api/references/api-services.md +700 -0
- package/skills/ti-api/references/api-ui-android.md +499 -0
- package/skills/ti-api/references/api-ui-extras.md +702 -0
- package/skills/ti-api/references/api-ui-ios-animator.md +378 -0
- package/skills/ti-api/references/api-ui-ios.md +756 -0
- package/skills/ti-api/references/api-ui-lists.md +581 -0
- package/skills/ti-api/references/api-ui-text-input.md +607 -0
- package/skills/ti-api/references/api-ui-views.md +572 -0
- package/skills/ti-api/references/api-ui-windows-navigation.md +676 -0
- package/skills/ti-api/references/api-xml-global.md +743 -0
- package/skills/ti-guides/SKILL.md +82 -0
- package/skills/ti-guides/references/advanced-data-and-images.md +155 -0
- package/skills/ti-guides/references/android-manifest.md +97 -0
- package/skills/ti-guides/references/app-distribution.md +373 -0
- package/skills/ti-guides/references/application-frameworks.md +366 -0
- package/skills/ti-guides/references/cli-reference.md +700 -0
- package/skills/ti-guides/references/coding-best-practices.md +150 -0
- package/skills/ti-guides/references/commonjs-advanced.md +279 -0
- package/skills/ti-guides/references/hello-world.md +99 -0
- package/skills/ti-guides/references/hyperloop-native-access.md +458 -0
- package/skills/ti-guides/references/javascript-primer.md +402 -0
- package/skills/ti-guides/references/reserved-words.md +36 -0
- package/skills/ti-guides/references/resources.md +172 -0
- package/skills/ti-guides/references/style-and-conventions.md +104 -0
- package/skills/ti-guides/references/tiapp-config.md +655 -0
- package/skills/ti-howtos/SKILL.md +131 -0
- package/skills/ti-howtos/references/android-platform-deep-dives.md +609 -0
- package/skills/ti-howtos/references/automation-fastlane-appium.md +96 -0
- package/skills/ti-howtos/references/buffer-codec-streams.md +162 -0
- package/skills/ti-howtos/references/cross-platform-development.md +358 -0
- package/skills/ti-howtos/references/debugging-profiling.md +473 -0
- package/skills/ti-howtos/references/extending-titanium.md +684 -0
- package/skills/ti-howtos/references/google-maps-v2.md +172 -0
- package/skills/ti-howtos/references/ios-map-kit.md +149 -0
- package/skills/ti-howtos/references/ios-platform-deep-dives.md +595 -0
- package/skills/ti-howtos/references/local-data-sources.md +310 -0
- package/skills/ti-howtos/references/location-and-maps.md +267 -0
- package/skills/ti-howtos/references/media-apis.md +268 -0
- package/skills/ti-howtos/references/notification-services.md +539 -0
- package/skills/ti-howtos/references/remote-data-sources.md +339 -0
- package/skills/ti-howtos/references/tutorials.md +552 -0
- package/skills/ti-howtos/references/using-modules.md +182 -0
- package/skills/ti-howtos/references/web-content-integration.md +288 -0
- package/skills/ti-howtos/references/webpack-build-pipeline.md +125 -0
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
# Modules: NFC API Reference
|
|
2
|
+
|
|
3
|
+
## Modules.Nfc
|
|
4
|
+
> A cross-platform Near-Field-Communication (NFC) module for iOS and Android. Download the latest release via [Github](https://github.com/appcelerator-modules/ti.nfc/releases).
|
|
5
|
+
> Extends Ti.Module
|
|
6
|
+
> Platforms: both
|
|
7
|
+
> Type: module
|
|
8
|
+
|
|
9
|
+
This module provides access to Near Field Communication (NFC) functionality,
|
|
10
|
+
allowing applications to read and write (Android-only) NFC tags.
|
|
11
|
+
A "tag" may actually be another device that appears as a tag.
|
|
12
|
+
|
|
13
|
+
### NFC Resources
|
|
14
|
+
|
|
15
|
+
- **Android**
|
|
16
|
+
- [Near Field Communication](http://developer.android.com/guide/topics/connectivity/nfc/index.html)
|
|
17
|
+
- [android.nfc](http://developer.android.com/reference/android/nfc/package-summary.html)
|
|
18
|
+
- **iOS**
|
|
19
|
+
- [CoreNFC](https://developer.apple.com/documentation/corenfc)
|
|
20
|
+
- [Introduction to CoreNFC at WWDC17](https://developer.apple.com/videos/play/wwdc2017/718/)
|
|
21
|
+
- [Native example](https://github.com/hansemannn/iOS11-NFC-Example)
|
|
22
|
+
|
|
23
|
+
### Requirements
|
|
24
|
+
|
|
25
|
+
*(See full overview in titanium-docs)*
|
|
26
|
+
|
|
27
|
+
### Constants (61)
|
|
28
|
+
- **ACTION_NDEF_\***: ACTION_NDEF_DISCOVERED
|
|
29
|
+
- **ACTION_TAG_\***: ACTION_TAG_DISCOVERED
|
|
30
|
+
- **ACTION_TECH_\***: ACTION_TECH_DISCOVERED
|
|
31
|
+
- **COMMAND_CONFIGURATION_ERROR_INVALID_\***: COMMAND_CONFIGURATION_ERROR_INVALID_PARAMETERS
|
|
32
|
+
- **ENCODING_\***: ENCODING_UTF8, ENCODING_UTF16
|
|
33
|
+
- **ERROR_SECURITY_\***: ERROR_SECURITY_VIOLATION
|
|
34
|
+
- **ERROR_UNSUPPORTED_\***: ERROR_UNSUPPORTED_FEATURE
|
|
35
|
+
- **INVALIDATION_ERROR_FIRST_NDEF_TAG_\***: INVALIDATION_ERROR_FIRST_NDEF_TAG_READ
|
|
36
|
+
- **INVALIDATION_ERROR_SESSION_\***: INVALIDATION_ERROR_SESSION_TIMEOUT
|
|
37
|
+
- **INVALIDATION_ERROR_SESSION_TERMINATED_\***: INVALIDATION_ERROR_SESSION_TERMINATED_UNEXPECTEDLY
|
|
38
|
+
- **INVALIDATION_ERROR_SYSTEM_IS_\***: INVALIDATION_ERROR_SYSTEM_IS_BUSY
|
|
39
|
+
- **INVALIDATION_ERROR_USER_\***: INVALIDATION_ERROR_USER_CANCELED
|
|
40
|
+
- **MIFARE_BLOCK_\***: MIFARE_BLOCK_SIZE
|
|
41
|
+
- **MIFARE_SIZE_\***: MIFARE_SIZE_1K, MIFARE_SIZE_2K, MIFARE_SIZE_4K, MIFARE_SIZE_MINI
|
|
42
|
+
- **MIFARE_TAG_TYPE_\***: MIFARE_TAG_TYPE_CLASSIC, MIFARE_TAG_TYPE_PLUS, MIFARE_TAG_TYPE_PRO, MIFARE_TAG_TYPE_UNKNOWN
|
|
43
|
+
- **MIFARE_ULTRALIGHT_PAGE_\***: MIFARE_ULTRALIGHT_PAGE_SIZE
|
|
44
|
+
- **MIFARE_ULTRALIGHT_TYPE_\***: MIFARE_ULTRALIGHT_TYPE_ULTRALIGHT, MIFARE_ULTRALIGHT_TYPE_UNKNOWN
|
|
45
|
+
- **MIFARE_ULTRALIGHT_TYPE_ULTRALIGHT_\***: MIFARE_ULTRALIGHT_TYPE_ULTRALIGHT_C
|
|
46
|
+
- **RECOMMENDED_ACTION_\***: RECOMMENDED_ACTION_UNKNOWN
|
|
47
|
+
- **RECOMMENDED_ACTION_DO_\***: RECOMMENDED_ACTION_DO_ACTION
|
|
48
|
+
- **RECOMMENDED_ACTION_OPEN_FOR_\***: RECOMMENDED_ACTION_OPEN_FOR_EDITING
|
|
49
|
+
- **RECOMMENDED_ACTION_SAVE_FOR_\***: RECOMMENDED_ACTION_SAVE_FOR_LATER
|
|
50
|
+
- **RTD_\***: RTD_TEXT, RTD_URI
|
|
51
|
+
- **RTD_ALTERNATIVE_\***: RTD_ALTERNATIVE_CARRIER
|
|
52
|
+
- **RTD_HANDOVER_\***: RTD_HANDOVER_CARRIER, RTD_HANDOVER_REQUEST, RTD_HANDOVER_SELECT
|
|
53
|
+
- **RTD_SMART_\***: RTD_SMART_POSTER
|
|
54
|
+
- **TAG_TYPE_MIFARE_\***: TAG_TYPE_MIFARE_CLASSIC
|
|
55
|
+
- **TAG_TYPE_NFC_FORUM_TYPE_\***: TAG_TYPE_NFC_FORUM_TYPE_1, TAG_TYPE_NFC_FORUM_TYPE_2, TAG_TYPE_NFC_FORUM_TYPE_3, TAG_TYPE_NFC_FORUM_TYPE_4
|
|
56
|
+
- **TECH_\***: TECH_ISODEP, TECH_NDEF, TECH_NDEFFORMATABLE, TECH_NFCA, TECH_NFCB, TECH_NFCF, TECH_NFCV
|
|
57
|
+
- **TECH_MIFARE_\***: TECH_MIFARE_CLASSIC, TECH_MIFARE_ULTRALIGHT
|
|
58
|
+
- **TNF_\***: TNF_EMPTY, TNF_UNCHANGED, TNF_UNKNOWN
|
|
59
|
+
- **TNF_ABSOLUTE_\***: TNF_ABSOLUTE_URI
|
|
60
|
+
- **TNF_EXTERNAL_\***: TNF_EXTERNAL_TYPE
|
|
61
|
+
- **TNF_MIME_\***: TNF_MIME_MEDIA
|
|
62
|
+
- **TNF_WELL_\***: TNF_WELL_KNOWN
|
|
63
|
+
- **TRANSCEIVE_ERROR_RETRY_\***: TRANSCEIVE_ERROR_RETRY_EXCEEDED
|
|
64
|
+
- **TRANSCEIVE_ERROR_TAG_CONNECTION_\***: TRANSCEIVE_ERROR_TAG_CONNECTION_LOST
|
|
65
|
+
- **TRANSCEIVE_ERROR_TAG_RESPONSE_\***: TRANSCEIVE_ERROR_TAG_RESPONSE_ERROR
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Methods (22)
|
|
69
|
+
| Method | Returns | Platform | Description |
|
|
70
|
+
|--------|---------|----------|-------------|
|
|
71
|
+
| createNativeTagTechnology(parameters) | Modules.Nfc.NativeTagTechnology | ios | Creates and returns an instance of <Modules.Nfc.NativeTagTechnology>. |
|
|
72
|
+
| createNdefMessage(parameters) | Modules.Nfc.NdefMessage | both | Creates and returns an instance of <Modules.Nfc.NdefMessage>. |
|
|
73
|
+
| createNdefRecordApplication(parameters) | Modules.Nfc.NdefRecordApplication | android | Creates and returns an instance of <Modules.Nfc.NdefRecordApplication>. |
|
|
74
|
+
| createNdefRecordEmpty(parameters) | Modules.Nfc.NdefRecordEmpty | android | Creates and returns an instance of <Modules.Nfc.NdefRecordEmpty>. |
|
|
75
|
+
| createNdefRecordExternal(parameters) | Modules.Nfc.NdefRecordExternal | android | Creates and returns an instance of <Modules.Nfc.NdefRecordExternal>. |
|
|
76
|
+
| createNdefRecordMedia(parameters) | Modules.Nfc.NdefRecordMedia | android | Creates and returns an instance of <Modules.Nfc.NdefRecordMedia>. |
|
|
77
|
+
| createNdefRecordSmartPoster(parameters) | Modules.Nfc.NdefRecordSmartPoster | android | Creates and returns an instance of <Modules.Nfc.NdefRecordSmartPoster>. |
|
|
78
|
+
| createNdefRecordText(parameters) | Modules.Nfc.NdefRecordText | android | Creates and returns an instance of <Modules.Nfc.NdefRecordText>. |
|
|
79
|
+
| createNdefRecordUnknown(parameters) | Modules.Nfc.NdefRecordUnknown | android | Creates and returns an instance of <Modules.Nfc.NdefRecordUnknown>. |
|
|
80
|
+
| createNdefRecordUri(parameters) | Modules.Nfc.NdefRecordUri | android | Creates and returns an instance of <Modules.Nfc.NdefRecordUri>. |
|
|
81
|
+
| createNfcAdapter(parameters) | Modules.Nfc.NfcAdapter | both | Creates and returns an instance of <Modules.Nfc.NfcAdapter>. |
|
|
82
|
+
| createNfcForegroundDispatchFilter(parameters) | Modules.Nfc.NfcForegroundDispatchFilter | android | Creates and returns an instance of <Modules.Nfc.NfcForegroundDispatchFilter>. |
|
|
83
|
+
| createMifareTagTechnology(parameters) | Modules.Nfc.MifareTagTechnology | ios | Creates and returns an instance of <Modules.Nfc.MifareTagTechnology>. |
|
|
84
|
+
| createTagTechnologyIsoDep(parameters) | Modules.Nfc.TagTechnologyIsoDep | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyIsoDep>. |
|
|
85
|
+
| createTagTechnologyMifareClassic(parameters) | Modules.Nfc.TagTechnologyMifareClassic | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyMifareClassic>. |
|
|
86
|
+
| createTagTechnologyMifareUltralight(parameters) | Modules.Nfc.TagTechnologyMifareUltralight | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyMifareUltralight>. |
|
|
87
|
+
| createTagTechnologyNdefFormatable(parameters) | Modules.Nfc.TagTechnologyNdefFormatable | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyNdefFormatable>. |
|
|
88
|
+
| createTagTechnologyNdef(parameters) | Modules.Nfc.TagTechnologyNdef | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyNdef>. |
|
|
89
|
+
| createTagTechnologyNfcA(parameters) | Modules.Nfc.TagTechnologyNfcA | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyNfcA>. |
|
|
90
|
+
| createTagTechnologyNfcB(parameters) | Modules.Nfc.TagTechnologyNfcB | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyNfcB>. |
|
|
91
|
+
| createTagTechnologyNfcF(parameters) | Modules.Nfc.TagTechnologyNfcF | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyNfcF>. |
|
|
92
|
+
| createTagTechnologyNfcV(parameters) | Modules.Nfc.TagTechnologyNfcV | android | Creates and returns an instance of <Modules.Nfc.TagTechnologyNfcV>. |
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Modules.Nfc.MifareTagTechnology
|
|
98
|
+
> Provides access to MIFARE Ultralight properties and I/O operations on a <Modules.Nfc.NfcTag>.
|
|
99
|
+
> Extends Modules.Nfc.NativeTagTechnology
|
|
100
|
+
> Platforms: ios
|
|
101
|
+
|
|
102
|
+
Use the <Modules.Nfc.createTagTechnologyMifareUltralight> method to create this tag technology.
|
|
103
|
+
See also:
|
|
104
|
+
[Mifare Ultralight](https://developer.apple.com/documentation/corenfc/nfcmifaretag?language=objc)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Methods (5)
|
|
108
|
+
| Method | Returns | Platform | Description |
|
|
109
|
+
|--------|---------|----------|-------------|
|
|
110
|
+
| mifareFamily(—) | void | ios | The MIFARE product family identifier for the tag. |
|
|
111
|
+
| identifier(—) | void | ios | The unique hardware identifier of the tag. |
|
|
112
|
+
| historicalBytes(—) | void | ios | The historical bytes extracted from an Answer To Select response. |
|
|
113
|
+
| sendMiFareCommand(data, errorCode, errorDomain, errorDescription) | void | ios | Sends a native MIFARE command to the tag. |
|
|
114
|
+
| sendMiFareISO7816Command(data, sw1, sw2, apdu, errorCode, errorDomain, errorDescription) | void | ios | Sends a native MIFARE command to the tag along with other parameter. |
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Modules.Nfc.NativeTagTechnology
|
|
120
|
+
> Native Tag Technology class will have the common methods.
|
|
121
|
+
> Extends Ti.Proxy
|
|
122
|
+
> Platforms: ios
|
|
123
|
+
|
|
124
|
+
Common methods get called for all the native tags so that we can save the redundancy of the code.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Methods (2)
|
|
128
|
+
| Method | Returns | Platform | Description |
|
|
129
|
+
|--------|---------|----------|-------------|
|
|
130
|
+
| connect(—) | void | ios | calls the connected to tag method for NFC Tag reader session. |
|
|
131
|
+
| isConnected(—) | Boolean | ios | if session is connected to any tag or not |
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Modules.Nfc.NdefMessage
|
|
137
|
+
> Represents an immutable NDEF message.
|
|
138
|
+
> Extends Ti.Proxy
|
|
139
|
+
> Platforms: both
|
|
140
|
+
|
|
141
|
+
Use the <Modules.Nfc.createNdefMessage> method to create an NDEF message.
|
|
142
|
+
|
|
143
|
+
See also:
|
|
144
|
+
[NdefMessage](http://developer.android.com/reference/android/nfc/NdefMessage.html)
|
|
145
|
+
|
|
146
|
+
### Properties (unique: 1/3)
|
|
147
|
+
| Property | Type | Default | Platform | Description |
|
|
148
|
+
|----------|------|---------|----------|-------------|
|
|
149
|
+
| records | Array<Modules.Nfc.NdefRecord> | — | both | NDEF records inside this NDEF message. |
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Methods (1)
|
|
153
|
+
| Method | Returns | Platform | Description |
|
|
154
|
+
|--------|---------|----------|-------------|
|
|
155
|
+
| toByte(—) | Ti.Blob | android | Return the NDEF message as raw bytes. |
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Modules.Nfc.NdefRecord
|
|
161
|
+
> Represents an immutable NDEF record.
|
|
162
|
+
> Extends Ti.Proxy
|
|
163
|
+
> Platforms: both
|
|
164
|
+
|
|
165
|
+
**Android**:
|
|
166
|
+
The NDEF record is the base type for more type-specific NDEF records. You will generally
|
|
167
|
+
work with the type-specific NDEF records (e.g. NdefRecordText, NdefRecordUri, etc.) which have
|
|
168
|
+
more applicable properties for each type of record.
|
|
169
|
+
|
|
170
|
+
Use one of the <Modules.Nfc.createNdefRecordApplication>, <Modules.Nfc.createNdefRecordEmpty>,
|
|
171
|
+
|
|
172
|
+
### Properties (unique: 6/8)
|
|
173
|
+
| Property | Type | Default | Platform | Description |
|
|
174
|
+
|----------|------|---------|----------|-------------|
|
|
175
|
+
| payload | Ti.Blob | — | both | The variable length payload for the record. |
|
|
176
|
+
| recordType | String | — | android | The record type. |
|
|
177
|
+
| id | String | — | both | The variable length ID. |
|
|
178
|
+
| tnf | Number | — | both | The 3-bit TNF. |
|
|
179
|
+
| type | String | — | both | The variable length Type field. |
|
|
180
|
+
| hashCode | Number | — | android | The integer hash code for this object. |
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Methods (5)
|
|
184
|
+
| Method | Returns | Platform | Description |
|
|
185
|
+
|--------|---------|----------|-------------|
|
|
186
|
+
| getRecordType(—) | String | android | Returns the record type. |
|
|
187
|
+
| getId(—) | String | both | Returns the variable length ID. |
|
|
188
|
+
| getTnf(—) | Number | both | Returns the 3-bit TNF. |
|
|
189
|
+
| getType(—) | String | both | Returns the variable length Type field. |
|
|
190
|
+
| getHashCode(—) | Number | android | Returns the integer hash code for this object. |
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Modules.Nfc.NdefRecordApplication
|
|
196
|
+
> Represents an immutable NDEF record indicating the package that should be used to handle the entire NDEF message.
|
|
197
|
+
> Extends Modules.Nfc.NdefRecord
|
|
198
|
+
> Platforms: android
|
|
199
|
+
|
|
200
|
+
This record type was introduced in Android 4.0 (API level 14).
|
|
201
|
+
|
|
202
|
+
See also:
|
|
203
|
+
[createApplicationRecord](http://developer.android.com/reference/android/nfc/NdefRecord.html#createApplicationRecord(java.lang.String))
|
|
204
|
+
|
|
205
|
+
### Properties (unique: 1/9)
|
|
206
|
+
| Property | Type | Default | Platform | Description |
|
|
207
|
+
|----------|------|---------|----------|-------------|
|
|
208
|
+
| packageName | String | — | android | Application package name. |
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Modules.Nfc.NdefRecordEmpty
|
|
216
|
+
> Represents an immutable NDEF record that is empty.
|
|
217
|
+
> Extends Modules.Nfc.NdefRecord
|
|
218
|
+
> Platforms: android
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Modules.Nfc.NdefRecordExternal
|
|
226
|
+
> Represents an immutable NDEF record containing external (application-specific) data.
|
|
227
|
+
> Extends Modules.Nfc.NdefRecord
|
|
228
|
+
> Platforms: android
|
|
229
|
+
|
|
230
|
+
See also:
|
|
231
|
+
[createExternal](http://developer.android.com/reference/android/nfc/NdefRecord.html#createExternal(java.lang.String,%20java.lang.String,%20byte[]))
|
|
232
|
+
|
|
233
|
+
### Properties (unique: 2/10)
|
|
234
|
+
| Property | Type | Default | Platform | Description |
|
|
235
|
+
|----------|------|---------|----------|-------------|
|
|
236
|
+
| domain | String | — | android | Domain name of issuing organization. |
|
|
237
|
+
| domainType | String | — | android | Domain-specific type of data. |
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Modules.Nfc.NdefRecordMedia
|
|
245
|
+
> Represents an immutable NDEF record containing MIME data.
|
|
246
|
+
> Extends Modules.Nfc.NdefRecord
|
|
247
|
+
> Platforms: android
|
|
248
|
+
|
|
249
|
+
See also:
|
|
250
|
+
[createMime](http://developer.android.com/reference/android/nfc/NdefRecord.html#createMime(java.lang.String,%20byte[]))
|
|
251
|
+
|
|
252
|
+
### Properties (unique: 1/9)
|
|
253
|
+
| Property | Type | Default | Platform | Description |
|
|
254
|
+
|----------|------|---------|----------|-------------|
|
|
255
|
+
| mimeType | String | — | android | A valid MIME type. |
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Modules.Nfc.NdefRecordSmartPoster
|
|
263
|
+
> Represents an immutable NDEF record containing a Smart Poster message.
|
|
264
|
+
> Extends Modules.Nfc.NdefRecord
|
|
265
|
+
> Platforms: android
|
|
266
|
+
|
|
267
|
+
### Properties (unique: 4/12)
|
|
268
|
+
| Property | Type | Default | Platform | Description |
|
|
269
|
+
|----------|------|---------|----------|-------------|
|
|
270
|
+
| title | String | — | android | Title for the Smart Poster. |
|
|
271
|
+
| uri | String | — | android | Uri for the external resource. |
|
|
272
|
+
| action | Number | — | android | Recommended action. |
|
|
273
|
+
| mimeType | String | — | android | A valid MIME type for the external resource. |
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Modules.Nfc.NdefRecordText
|
|
281
|
+
> Represents an immutable NDEF record containing text.
|
|
282
|
+
> Extends Modules.Nfc.NdefRecord
|
|
283
|
+
> Platforms: android
|
|
284
|
+
|
|
285
|
+
### Properties (unique: 3/11)
|
|
286
|
+
| Property | Type | Default | Platform | Description |
|
|
287
|
+
|----------|------|---------|----------|-------------|
|
|
288
|
+
| text | String | — | android | Text. |
|
|
289
|
+
| languageCode | String | — | android | Language code. Defaults to current locale. |
|
|
290
|
+
| encoding | String | — | android | Encoding format. Default is ENCODING_UTF8 ("UTF-8"); |
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## Modules.Nfc.NdefRecordUnknown
|
|
298
|
+
> Represents an immutable NDEF record containing an unknown data format.
|
|
299
|
+
> Extends Modules.Nfc.NdefRecord
|
|
300
|
+
> Platforms: android
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## Modules.Nfc.NdefRecordUri
|
|
308
|
+
> Represents an immutable NDEF record containing a URI.
|
|
309
|
+
> Extends Modules.Nfc.NdefRecord
|
|
310
|
+
> Platforms: android
|
|
311
|
+
|
|
312
|
+
See also:
|
|
313
|
+
[createUri](http://developer.android.com/reference/android/nfc/NdefRecord.html#createUri(java.lang.String))
|
|
314
|
+
|
|
315
|
+
### Properties (unique: 1/9)
|
|
316
|
+
| Property | Type | Default | Platform | Description |
|
|
317
|
+
|----------|------|---------|----------|-------------|
|
|
318
|
+
| uri | String | — | android | URI or URL. |
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## Modules.Nfc.NfcAdapter
|
|
326
|
+
> Represents the local NFC adapter.
|
|
327
|
+
> Extends Ti.Proxy
|
|
328
|
+
> Platforms: both
|
|
329
|
+
|
|
330
|
+
The NFC adapter gives you access to the features of the NFC device. The NFC adapter proxy is always
|
|
331
|
+
associated with the activity that was the current activity when it was created. The NFC Adapter must
|
|
332
|
+
be created after the activity has been opened. You can use the window `open` event to know when the
|
|
333
|
+
activity has been opened.
|
|
334
|
+
|
|
335
|
+
Use the <Modules.Nfc.createNfcAdapter> method to create an NFC adapter.
|
|
336
|
+
|
|
337
|
+
See also:
|
|
338
|
+
[NfcAdapter](http://developer.android.com/reference/android/nfc/NfcAdapter.html)
|
|
339
|
+
|
|
340
|
+
### Properties (unique: 8/11)
|
|
341
|
+
| Property | Type | Default | Platform | Description |
|
|
342
|
+
|----------|------|---------|----------|-------------|
|
|
343
|
+
| invalidateAfterFirstRead | Boolean | — | ios | Session will automatically invalidate after the first NDEF tag is read successf… |
|
|
344
|
+
| onPushComplete | Callback | — | android | Callback function to execute on successful Android Beam operation. |
|
|
345
|
+
| onPushMessage | Callback | — | android | Callback function used to dynamically generated NDEF messsages to send using An… |
|
|
346
|
+
| onBeamPushUris | Callback | — | android | Callback function used to dynamically generate one or more Uris to send using A… |
|
|
347
|
+
| onNdefDiscovered | Callback<NdefDiscovered> | — | both | Callback function to execute when a tag with NDEF payload is discovered. |
|
|
348
|
+
| onNdefInvalidated | Callback<NdefInvalidated> | — | ios | Callback function to execute when a session was invalidated (either errored by … |
|
|
349
|
+
| onTagDiscovered | Callback<NdefDiscovered> | — | android | Callback function to execute when a tag is discovered. |
|
|
350
|
+
| onTechDiscovered | Callback<NdefDiscovered> | — | android | Callback function to execute when a tag is discovered and activities are regist… |
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
### Methods (11)
|
|
354
|
+
| Method | Returns | Platform | Description |
|
|
355
|
+
|--------|---------|----------|-------------|
|
|
356
|
+
| isEnabled(—) | Boolean | android | Return true if this NFC Adapter has any features enabled. |
|
|
357
|
+
| isNdefPushEnabled(—) | Boolean | android | Return true if the NDEF Push (Android Beam) feature is enabled. |
|
|
358
|
+
| onNewIntent(intent) | void | android | Processes a new intent received by an application. |
|
|
359
|
+
| disableForegroundDispatch(—) | void | android | Disable foreground dispatch to the current activity. |
|
|
360
|
+
| disableForegroundNdefPush(—) | void | android | Disable NDEF message push over P2P. |
|
|
361
|
+
| enableForegroundDispatch(dispatchFilter) | void | android | Enable foreground dispatch to the current activity. |
|
|
362
|
+
| disableReader(—) | void | android | Disable reader mode in the current activity. |
|
|
363
|
+
| enableReader(Callback) | void | android | Enable reader mode in the current activity. |
|
|
364
|
+
| enableForegroundNdefPush(message) | void | android | Enable NDEF message push over P2P. |
|
|
365
|
+
| setNdefPushMessage(message) | void | android | Set a static <Modules.Nfc.NdefMessage> to send using Android Beam. |
|
|
366
|
+
| setBeamPushUris(Uris) | void | android | Set one or more Uris to send using Android Beam. |
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
## Modules.Nfc.NfcForegroundDispatchFilter
|
|
372
|
+
> A filter specifying intent, intent filters and technology lists used to match dispatch intents.
|
|
373
|
+
> Extends Ti.Proxy
|
|
374
|
+
> Platforms: android
|
|
375
|
+
|
|
376
|
+
The <Modules.Nfc.NfcAdapter.enableForegroundDispatch> method is used to give priority to the foreground activity when dispatching
|
|
377
|
+
a discovered tag to an application. This proxy is used to specify the intent, intent filters, and technology
|
|
378
|
+
lists used to filter the dispatched intents. This proxy automatically creates the required pending intent and
|
|
379
|
+
will create an intent for the current activity if one is not provided.
|
|
380
|
+
|
|
381
|
+
Use the <Modules.Nfc.createNfcForegroundDispatchFilter> method to create a foreground dispatch filter.
|
|
382
|
+
|
|
383
|
+
See also:
|
|
384
|
+
[enableForegroundDispatch](http://developer.android.com/reference/android/nfc/NfcAdapter.html#enableForegroundDispatch(android.app.Activity,%20android.app.PendingIntent,%20android.content.IntentFilter[],%20java.lang.String[][]))
|
|
385
|
+
|
|
386
|
+
### Properties (unique: 3/5)
|
|
387
|
+
| Property | Type | Default | Platform | Description |
|
|
388
|
+
|----------|------|---------|----------|-------------|
|
|
389
|
+
| intent | Ti.Android.Intent | — | android | The intent to start the dispatch when matched. |
|
|
390
|
+
| intentFilters | Array<NfcIntentFilter> | — | android | The intent filters to override dispatching for, or null to always dispatch. |
|
|
391
|
+
| techLists | Array<Array<String>> | — | android | The tech lists used to perform matching for dispatching the ACTION_TECH_DISCOVE… |
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## Modules.Nfc.NfcNDEFTag
|
|
399
|
+
> An interface for interacting with an NDEF tag.
|
|
400
|
+
> Extends Ti.Proxy
|
|
401
|
+
> Platforms: ios
|
|
402
|
+
|
|
403
|
+
It provide the interface for NFC Data Exchange Format (NDEF) tag.
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
### Methods (1)
|
|
407
|
+
| Method | Returns | Platform | Description |
|
|
408
|
+
|--------|---------|----------|-------------|
|
|
409
|
+
| available(—) | Number | ios | A value that determines whether the NDEF tag is available in the current reader… |
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
---
|
|
413
|
+
|
|
414
|
+
## Modules.Nfc.NfcNDEFTagTechnology
|
|
415
|
+
> Provides access to NDEF tag and I/O operations on a <Modules.Nfc.NfcNDEFTag>
|
|
416
|
+
> Extends Ti.Proxy
|
|
417
|
+
> Platforms: ios
|
|
418
|
+
|
|
419
|
+
Use the <Modules.Nfc.createTagTechNdef> method to create this NDEF tag technology.
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
### Methods (5)
|
|
423
|
+
| Method | Returns | Platform | Description |
|
|
424
|
+
|--------|---------|----------|-------------|
|
|
425
|
+
| connect(—) | void | ios | Call to connect NfcNDEFTag from session NFCNDEFReaderSession, connection succes… |
|
|
426
|
+
| queryNDEFStatus(—) | void | ios | Asks the reader session for the NDEF support status of the tag. Success/Failure… |
|
|
427
|
+
| readNDEF(—) | void | ios | Retrieves an NDEF message from the tag. Success/Failure result in a didReadNDEF… |
|
|
428
|
+
| writeNDEF(—) | void | ios | Saves an NDEF message to a writable tag. Success/Failure result in a didWirteND… |
|
|
429
|
+
| writeLock(—) | void | ios | Changes the NDEF tag status to read-only, preventing future write operations. S… |
|
|
430
|
+
|
|
431
|
+
### Events (5)
|
|
432
|
+
| Event | Platform | Description |
|
|
433
|
+
|-------|----------|-------------|
|
|
434
|
+
| didConnectTag | ios | A event called when NFCNDEFReaderSession try to connect with NDEF tag |
|
|
435
|
+
| didQueryNDEFStatus | ios | Asks the reader session for the NDEF support status of the tag. |
|
|
436
|
+
| didReadNDEFMessage | ios | Retrieves an NDEF message from the tag. |
|
|
437
|
+
| didWirteNDEFMessage | ios | Saves an NDEF message to a writable tag. |
|
|
438
|
+
| didWriteLock | ios | Changes the NDEF tag status to read-only, preventing future write operations. |
|
|
439
|
+
|
|
440
|
+
---
|
|
441
|
+
|
|
442
|
+
## Modules.Nfc.NfcTag
|
|
443
|
+
> Represents an NFC tag that has been discovered
|
|
444
|
+
> Extends Ti.Proxy
|
|
445
|
+
> Platforms: both
|
|
446
|
+
|
|
447
|
+
See also:
|
|
448
|
+
[Tag](http://developer.android.com/reference/android/nfc/Tag.html)
|
|
449
|
+
|
|
450
|
+
### Properties (unique: 2/5)
|
|
451
|
+
| Property | Type | Default | Platform | Description |
|
|
452
|
+
|----------|------|---------|----------|-------------|
|
|
453
|
+
| id | String | — | both | Tag identifier (if it has one) |
|
|
454
|
+
| techList | Array<String> | — | both | Technologies available in this tag, as fully qualified class names. |
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
### Methods (3)
|
|
458
|
+
| Method | Returns | Platform | Description |
|
|
459
|
+
|--------|---------|----------|-------------|
|
|
460
|
+
| getId(—) | String | both | Returns the tag identifier (if it has one) |
|
|
461
|
+
| getTechList(—) | Array<String> | both | Returns the technologies available in this tag, as fully qualified class names. |
|
|
462
|
+
| available(—) | Number | ios | Returns if the tag is available in current session |
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
---
|
|
466
|
+
|
|
467
|
+
## Modules.Nfc.TagTechnology
|
|
468
|
+
> Represents an interface to a specific tag technology.
|
|
469
|
+
> Extends Ti.Proxy
|
|
470
|
+
> Platforms: android
|
|
471
|
+
|
|
472
|
+
NFC tags are based on a number of independently developed technologies and offer a wide range of
|
|
473
|
+
capabilities. The TagTechnology proxies provide access to these different technologies and capabilities.
|
|
474
|
+
The TagTechnology proxy is the base type for more type-specific tag technologies. You will
|
|
475
|
+
work with the type-specific tag technology proxies which provide capabilities for each tag technology.
|
|
476
|
+
|
|
477
|
+
Use one of the <Modules.Nfc.createTagTechnologyIsoDep>, <Modules.Nfc.createTagTechnologyMifareClassic>,
|
|
478
|
+
|
|
479
|
+
### Properties (unique: 1/3)
|
|
480
|
+
| Property | Type | Default | Platform | Description |
|
|
481
|
+
|----------|------|---------|----------|-------------|
|
|
482
|
+
| tag | Modules.Nfc.NfcTag | — | android | The tag technology that has been discovered. |
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
### Methods (4)
|
|
486
|
+
| Method | Returns | Platform | Description |
|
|
487
|
+
|--------|---------|----------|-------------|
|
|
488
|
+
| isValid(—) | Boolean | android | Return true if this tag technology was successfully obtained. |
|
|
489
|
+
| close(—) | void | android | Disable I/O operations to the tag and release resources. |
|
|
490
|
+
| connect(—) | void | android | Enable I/O operations to the tag. |
|
|
491
|
+
| isConnected(—) | Boolean | android | Returns true if connect has completed, and close has not been called, and the t… |
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
---
|
|
495
|
+
|
|
496
|
+
## Modules.Nfc.TagTechnologyIsoDep
|
|
497
|
+
> Provides access to ISO-DEP (ISO 14443-4) properties and I/O operations on a <Modules.Nfc.NfcTag>.
|
|
498
|
+
> Extends Modules.Nfc.TagTechnology
|
|
499
|
+
> Platforms: android
|
|
500
|
+
|
|
501
|
+
Use the <Modules.Nfc.createTagTechnologyIsoDep> method to create this tag technology.
|
|
502
|
+
|
|
503
|
+
See also:
|
|
504
|
+
[IsoDep](http://developer.android.com/reference/android/nfc/tech/IsoDep.html)
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
### Methods (7)
|
|
508
|
+
| Method | Returns | Platform | Description |
|
|
509
|
+
|--------|---------|----------|-------------|
|
|
510
|
+
| getHiLayerResponse(—) | Ti.Buffer | android | Return the higher layer response bytes for NfcB tags. |
|
|
511
|
+
| getHistoricalBytes(—) | Ti.Buffer | android | Return the ISO-DEP historical bytes for NfcA tags. |
|
|
512
|
+
| getMaxTransceiveLength(—) | Number | android | Return the maximum number of bytes that can be sent with `transceive`. |
|
|
513
|
+
| getTimeout(—) | Number | android | Get the current timeout for `transceive` in milliseconds. |
|
|
514
|
+
| isExtendedLengthApduSupported(—) | Boolean | android | Whether the NFC adapter on this device supports extended length APDUs. |
|
|
515
|
+
| setTimeout(timeout) | void | android | Set the timeout of `transceive` in milliseconds. |
|
|
516
|
+
| transceive(data) | Ti.Buffer | android | Send raw ISO-DEP data to the tag and receive the response. |
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
---
|
|
520
|
+
|
|
521
|
+
## Modules.Nfc.TagTechnologyMifareClassic
|
|
522
|
+
> Provides access to MIFARE Classic properties and I/O operations on a <Modules.Nfc.NfcTag>.
|
|
523
|
+
> Extends Modules.Nfc.TagTechnology
|
|
524
|
+
> Platforms: android
|
|
525
|
+
|
|
526
|
+
Use the <Modules.Nfc.createTagTechnologyMifareClassic> method to create this tag technology.
|
|
527
|
+
|
|
528
|
+
See also:
|
|
529
|
+
[MifareClassic](http://developer.android.com/reference/android/nfc/tech/MifareClassic.html)
|
|
530
|
+
|
|
531
|
+
### Constants (3)
|
|
532
|
+
- **KEY_\***: KEY_DEFAULT
|
|
533
|
+
- **KEY_MIFARE_APPLICATION_\***: KEY_MIFARE_APPLICATION_DIRECTORY
|
|
534
|
+
- **KEY_NFC_\***: KEY_NFC_FORUM
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
### Methods (19)
|
|
538
|
+
| Method | Returns | Platform | Description |
|
|
539
|
+
|--------|---------|----------|-------------|
|
|
540
|
+
| authenticateSectorWithKeyA(sectorIndex, key) | Boolean | android | Authenticate a sector with key A. |
|
|
541
|
+
| authenticateSectorWithKeyB(sectorIndex, key) | Boolean | android | Authenticate a sector with key B. |
|
|
542
|
+
| blockToSector(blockIndex) | Number | android | Return the sector that contains a given block. |
|
|
543
|
+
| decrement(blockIndex, value) | void | android | Decrement a value block, storing the result in the temporary block on the tag. |
|
|
544
|
+
| getBlockCount(—) | Number | android | Return the total number of MIFARE Classic blocks. |
|
|
545
|
+
| getBlockCountInSector(sectorIndex) | Number | android | Return the number of blocks in the given sector. |
|
|
546
|
+
| getMaxTransceiveLength(—) | Number | android | Return the maximum number of bytes that can be sent with `transceive`. |
|
|
547
|
+
| getSectorCount(—) | Number | android | Return the number of MIFARE Classic sectors. |
|
|
548
|
+
| getSize(—) | Number | android | Return the size of the tag in bytes. |
|
|
549
|
+
| getTimeout(—) | Number | android | Get the current `transceive` timeout in milliseconds. |
|
|
550
|
+
| getType(—) | Number | android | Return the type of this MIFARE Classic compatible tag. |
|
|
551
|
+
| increment(blockIndex, value) | void | android | Increment a value block, storing the result in the temporary block on the tag. |
|
|
552
|
+
| readBlock(blockIndex) | Ti.Buffer | android | Read 16-byte block. |
|
|
553
|
+
| restore(blockIndex) | void | android | Copy from a value block to the temporary block. |
|
|
554
|
+
| sectorToBlock(sectorIndex) | Number | android | Return the first block of a given sector. |
|
|
555
|
+
| setTimeout(timeout) | void | android | Set the `transceive` timeout in milliseconds. |
|
|
556
|
+
| transceive(data) | Ti.Buffer | android | Send raw NfcA data to the tag and receive the response. |
|
|
557
|
+
| transfer(blockIndex) | void | android | Copy from the temporary block to a value block. |
|
|
558
|
+
| writeBlock(blockIndex, data) | void | android | Write 16-byte block. |
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
---
|
|
562
|
+
|
|
563
|
+
## Modules.Nfc.TagTechnologyMifareUltralight
|
|
564
|
+
> Provides access to MIFARE Ultralight properties and I/O operations on a <Modules.Nfc.NfcTag>.
|
|
565
|
+
> Extends Modules.Nfc.TagTechnology
|
|
566
|
+
> Platforms: android
|
|
567
|
+
|
|
568
|
+
Use the <Modules.Nfc.createTagTechnologyMifareUltralight> method to create this tag technology.
|
|
569
|
+
|
|
570
|
+
See also:
|
|
571
|
+
[MifareUltralight](http://developer.android.com/reference/android/nfc/tech/MifareUltralight.html)
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
### Methods (7)
|
|
575
|
+
| Method | Returns | Platform | Description |
|
|
576
|
+
|--------|---------|----------|-------------|
|
|
577
|
+
| getMaxTransceiveLength(—) | Number | android | Return the maximum number of bytes that can be sent with `transceive`. |
|
|
578
|
+
| getTimeout(—) | Number | android | Get the current `transceive` timeout in milliseconds. |
|
|
579
|
+
| getType(—) | Number | android | Return the MIFARE Ultralight type of the tag. |
|
|
580
|
+
| readPages(pageOffset) | Ti.Buffer | android | Read 4 pages (16 bytes). |
|
|
581
|
+
| setTimeout(timeout) | void | android | Set the `transceive` timeout in milliseconds. |
|
|
582
|
+
| transceive(data) | Ti.Buffer | android | Send raw NfcA data to the tag and receive the response. |
|
|
583
|
+
| writePage(pageOffset, data) | void | android | Write 1 page (4 bytes). |
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
---
|
|
587
|
+
|
|
588
|
+
## Modules.Nfc.TagTechnologyNdef
|
|
589
|
+
> Provides access to NDEF content and operations on a <Modules.Nfc.NfcTag>.
|
|
590
|
+
> Extends Modules.Nfc.TagTechnology
|
|
591
|
+
> Platforms: android
|
|
592
|
+
|
|
593
|
+
Use the <Modules.Nfc.createTagTechnologyNdef> method to create this tag technology.
|
|
594
|
+
|
|
595
|
+
See also:
|
|
596
|
+
[Ndef](http://developer.android.com/reference/android/nfc/tech/Ndef.html)
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
### Methods (8)
|
|
600
|
+
| Method | Returns | Platform | Description |
|
|
601
|
+
|--------|---------|----------|-------------|
|
|
602
|
+
| canMakeReadOnly(—) | Boolean | android | Indicates whether a tag can be made read-only with `makeReadOnly`. |
|
|
603
|
+
| getCachedNdefMessage(—) | Modules.Nfc.NdefMessage | android | Get the <Modules.Nfc.NdefMessage> that was read from the tag at discovery time. |
|
|
604
|
+
| getMaxSize(—) | Number | android | Get the maximum NDEF message size in bytes. |
|
|
605
|
+
| getNdefMessage(—) | Modules.Nfc.NdefMessage | android | Read the current <Modules.Nfc.NdefMessage> on this tag. |
|
|
606
|
+
| getType(—) | String | android | Get the NDEF tag type. |
|
|
607
|
+
| isWritable(—) | Boolean | android | Determine if the tag is writable. |
|
|
608
|
+
| makeReadOnly(—) | Boolean | android | Make a tag read-only. |
|
|
609
|
+
| writeNdefMessage(message) | void | android | Overwrite the <Modules.Nfc.NdefMessage> on this tag. |
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
---
|
|
613
|
+
|
|
614
|
+
## Modules.Nfc.TagTechnologyNdefFormatable
|
|
615
|
+
> Provide access to NDEF format operations on a <Modules.Nfc.NfcTag>.
|
|
616
|
+
> Extends Modules.Nfc.TagTechnology
|
|
617
|
+
> Platforms: android
|
|
618
|
+
|
|
619
|
+
Use the <Modules.Nfc.createTagTechnologyNdefFormatable> method to create this tag technology.
|
|
620
|
+
|
|
621
|
+
See also:
|
|
622
|
+
[NdefFormatable](http://developer.android.com/reference/android/nfc/tech/NdefFormatable.html)
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
### Methods (2)
|
|
626
|
+
| Method | Returns | Platform | Description |
|
|
627
|
+
|--------|---------|----------|-------------|
|
|
628
|
+
| format(message) | void | android | Format a tag as NDEF, and write a <Modules.Nfc.NdefMessage>. |
|
|
629
|
+
| formatReadOnly(message) | void | android | Formats a tag as NDEF, write a <Modules.Nfc.NdefMessage>, and make read-only. |
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
---
|
|
633
|
+
|
|
634
|
+
## Modules.Nfc.TagTechnologyNfcA
|
|
635
|
+
> Provides access to NFC-A (ISO 14443-3A) properties and I/O operations on a <Modules.Nfc.NfcTag>.
|
|
636
|
+
> Extends Modules.Nfc.TagTechnology
|
|
637
|
+
> Platforms: android
|
|
638
|
+
|
|
639
|
+
Use the <Modules.Nfc.createTagTechnologyNfcA> method to create this tag technology.
|
|
640
|
+
|
|
641
|
+
See also:
|
|
642
|
+
[NfcA](http://developer.android.com/reference/android/nfc/tech/NfcA.html)
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
### Methods (6)
|
|
646
|
+
| Method | Returns | Platform | Description |
|
|
647
|
+
|--------|---------|----------|-------------|
|
|
648
|
+
| getAtqa(—) | Ti.Buffer | android | Return the ATQA/SENS_RES bytes from tag discovery. |
|
|
649
|
+
| getMaxTransceiveLength(—) | Number | android | Return the maximum number of bytes that can be sent with `transceive`. |
|
|
650
|
+
| getSak(—) | Number | android | Return the SAK/SEL_RES bytes from tag discovery. |
|
|
651
|
+
| getTimeout(—) | Number | android | Get the current `transceive` timeout in milliseconds. |
|
|
652
|
+
| setTimeout(timeout) | void | android | Set the timeout of `transceive` in milliseconds. |
|
|
653
|
+
| transceive(data) | Ti.Buffer | android | Send raw NFC-A commands to the tag and receive the response. |
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
---
|
|
657
|
+
|
|
658
|
+
## Modules.Nfc.TagTechnologyNfcB
|
|
659
|
+
> Provides access to NFC-B (ISO 14443-3B) properties and I/O operations on a <Modules.Nfc.NfcTag>.
|
|
660
|
+
> Extends Modules.Nfc.TagTechnology
|
|
661
|
+
> Platforms: android
|
|
662
|
+
|
|
663
|
+
Use the <Modules.Nfc.createTagTechnologyNfcB> method to create this tag technology.
|
|
664
|
+
|
|
665
|
+
See also:
|
|
666
|
+
[NfcB](http://developer.android.com/reference/android/nfc/tech/NfcB.html)
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
### Methods (4)
|
|
670
|
+
| Method | Returns | Platform | Description |
|
|
671
|
+
|--------|---------|----------|-------------|
|
|
672
|
+
| getApplicationData(—) | Ti.Buffer | android | Return the Application Data bytes from ATQB/SENSB_RES at tag discovery. |
|
|
673
|
+
| getMaxTransceiveLength(—) | Number | android | Return the maximum number of bytes that can be sent with `transceive`. |
|
|
674
|
+
| getProtocolInfo(—) | Ti.Buffer | android | Return the Protocol Info bytes from ATQB/SENSB_RES at tag discovery. |
|
|
675
|
+
| transceive(data) | Ti.Buffer | android | Send raw NFC-B commands to the tag and receive the response. |
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
---
|
|
679
|
+
|
|
680
|
+
## Modules.Nfc.TagTechnologyNfcF
|
|
681
|
+
> Provides access to NFC-F (JIS 6319-4) properties and I/O operations on a <Modules.Nfc.NfcTag>.
|
|
682
|
+
> Extends Modules.Nfc.TagTechnology
|
|
683
|
+
> Platforms: android
|
|
684
|
+
|
|
685
|
+
Use the <Modules.Nfc.createTagTechnologyNfcF> method to create this tag technology.
|
|
686
|
+
|
|
687
|
+
See also:
|
|
688
|
+
[NfcF](http://developer.android.com/reference/android/nfc/tech/NfcF.html)
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
### Methods (6)
|
|
692
|
+
| Method | Returns | Platform | Description |
|
|
693
|
+
|--------|---------|----------|-------------|
|
|
694
|
+
| getManufacturer(—) | Ti.Buffer | android | Return the Manufacturer bytes from tag discovery. |
|
|
695
|
+
| getMaxTransceiveLength(—) | Number | android | Return the maximum number of bytes that can be sent with `transceive`. |
|
|
696
|
+
| getSystemCode(—) | Ti.Buffer | android | Return the System Code bytes from tag discovery. |
|
|
697
|
+
| getTimeout(—) | Number | android | Get the current `transceive` timeout in milliseconds. |
|
|
698
|
+
| setTimeout(timeout) | void | android | Set the timeout of `transceive` in milliseconds. |
|
|
699
|
+
| transceive(data) | Ti.Buffer | android | Send raw NFC-F commands to the tag and receive the response. |
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
---
|
|
703
|
+
|
|
704
|
+
## Modules.Nfc.TagTechnologyNfcV
|
|
705
|
+
> Provides access to NFC-V (ISO 15693) properties and I/O operations on a <Modules.Nfc.NfcTag>.
|
|
706
|
+
> Extends Modules.Nfc.TagTechnology
|
|
707
|
+
> Platforms: android
|
|
708
|
+
|
|
709
|
+
Use the <Modules.Nfc.createTagTechnologyNfcV> method to create this tag technology.
|
|
710
|
+
|
|
711
|
+
See also:
|
|
712
|
+
[NfcV](http://developer.android.com/reference/android/nfc/tech/NfcV.html)
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
### Methods (4)
|
|
716
|
+
| Method | Returns | Platform | Description |
|
|
717
|
+
|--------|---------|----------|-------------|
|
|
718
|
+
| getDsfId(—) | Number | android | Return the DSF ID bytes from tag discovery. |
|
|
719
|
+
| getMaxTransceiveLength(—) | Number | android | Return the maximum number of bytes that can be sent with `transceive`. |
|
|
720
|
+
| getResponseFlags(—) | Number | android | Return the Response Flag bytes from tag discovery. |
|
|
721
|
+
| transceive(data) | Ti.Buffer | android | Send raw NFC-V commands to the tag and receive the response. |
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
---
|
|
725
|
+
|