@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.
Files changed (102) hide show
  1. package/README.md +27 -61
  2. package/lib/cleanup.js +29 -0
  3. package/lib/commands/agents.js +8 -7
  4. package/lib/commands/skills.js +118 -23
  5. package/lib/config.js +13 -15
  6. package/lib/installer.js +5 -3
  7. package/lib/utils.js +36 -0
  8. package/package.json +1 -1
  9. package/skills/alloy-guides/SKILL.md +188 -0
  10. package/skills/alloy-guides/references/CLI_TASKS.md +233 -0
  11. package/skills/alloy-guides/references/CONCEPTS.md +171 -0
  12. package/skills/alloy-guides/references/CONTROLLERS.md +279 -0
  13. package/skills/alloy-guides/references/MODELS.md +742 -0
  14. package/skills/alloy-guides/references/MODELS_ADVANCED.md +482 -0
  15. package/skills/alloy-guides/references/PURGETSS.md +57 -0
  16. package/skills/alloy-guides/references/VIEWS_DYNAMIC.md +235 -0
  17. package/skills/alloy-guides/references/VIEWS_STYLES.md +375 -0
  18. package/skills/alloy-guides/references/VIEWS_WITHOUT_CONTROLLERS.md +102 -0
  19. package/skills/alloy-guides/references/VIEWS_XML.md +581 -0
  20. package/skills/alloy-guides/references/WIDGETS.md +160 -0
  21. package/skills/alloy-howtos/SKILL.md +179 -0
  22. package/skills/alloy-howtos/references/best_practices.md +121 -0
  23. package/skills/alloy-howtos/references/cli_reference.md +230 -0
  24. package/skills/alloy-howtos/references/config_files.md +158 -0
  25. package/skills/alloy-howtos/references/custom_tags.md +148 -0
  26. package/skills/alloy-howtos/references/debugging_troubleshooting.md +78 -0
  27. package/skills/alloy-howtos/references/samples.md +156 -0
  28. package/skills/purgetss/SKILL.md +184 -181
  29. package/skills/purgetss/references/EXAMPLES.md +8 -6
  30. package/skills/purgetss/references/app-branding.md +5 -0
  31. package/skills/purgetss/references/apply-directive.md +1 -1
  32. package/skills/purgetss/references/class-categories.md +1 -1
  33. package/skills/purgetss/references/class-index-properties.md +618 -0
  34. package/skills/purgetss/references/class-index.md +4 -610
  35. package/skills/purgetss/references/cli-commands.md +41 -410
  36. package/skills/purgetss/references/custom-fonts.md +292 -0
  37. package/skills/purgetss/references/custom-rules.md +1 -1
  38. package/skills/purgetss/references/customization-deep-dive.md +64 -1
  39. package/skills/purgetss/references/icon-fonts.md +208 -118
  40. package/skills/purgetss/references/installation-setup.md +4 -4
  41. package/skills/purgetss/references/migration-guide.md +53 -1
  42. package/skills/purgetss/references/multi-density-images.md +53 -2
  43. package/skills/purgetss/references/svg-pipeline.md +249 -0
  44. package/skills/purgetss/references/tikit-components.md +2 -2
  45. package/skills/purgetss/references/titanium-resets.md +2 -2
  46. package/skills/purgetss/references/ui-ux-design.md +7 -5
  47. package/skills/purgetss/references/version-history.md +71 -82
  48. package/skills/ti-api/SKILL.md +128 -0
  49. package/skills/ti-api/references/api-android.md +675 -0
  50. package/skills/ti-api/references/api-app-platform.md +636 -0
  51. package/skills/ti-api/references/api-core.md +764 -0
  52. package/skills/ti-api/references/api-data-network.md +641 -0
  53. package/skills/ti-api/references/api-media.md +655 -0
  54. package/skills/ti-api/references/api-modules-ble-bluetooth.md +657 -0
  55. package/skills/ti-api/references/api-modules-coremotion-urlsession.md +411 -0
  56. package/skills/ti-api/references/api-modules-map.md +632 -0
  57. package/skills/ti-api/references/api-modules-nfc.md +725 -0
  58. package/skills/ti-api/references/api-modules-social-misc.md +526 -0
  59. package/skills/ti-api/references/api-services.md +700 -0
  60. package/skills/ti-api/references/api-ui-android.md +499 -0
  61. package/skills/ti-api/references/api-ui-extras.md +702 -0
  62. package/skills/ti-api/references/api-ui-ios-animator.md +378 -0
  63. package/skills/ti-api/references/api-ui-ios.md +756 -0
  64. package/skills/ti-api/references/api-ui-lists.md +581 -0
  65. package/skills/ti-api/references/api-ui-text-input.md +607 -0
  66. package/skills/ti-api/references/api-ui-views.md +572 -0
  67. package/skills/ti-api/references/api-ui-windows-navigation.md +676 -0
  68. package/skills/ti-api/references/api-xml-global.md +743 -0
  69. package/skills/ti-guides/SKILL.md +82 -0
  70. package/skills/ti-guides/references/advanced-data-and-images.md +155 -0
  71. package/skills/ti-guides/references/android-manifest.md +97 -0
  72. package/skills/ti-guides/references/app-distribution.md +373 -0
  73. package/skills/ti-guides/references/application-frameworks.md +366 -0
  74. package/skills/ti-guides/references/cli-reference.md +700 -0
  75. package/skills/ti-guides/references/coding-best-practices.md +150 -0
  76. package/skills/ti-guides/references/commonjs-advanced.md +279 -0
  77. package/skills/ti-guides/references/hello-world.md +99 -0
  78. package/skills/ti-guides/references/hyperloop-native-access.md +458 -0
  79. package/skills/ti-guides/references/javascript-primer.md +402 -0
  80. package/skills/ti-guides/references/reserved-words.md +36 -0
  81. package/skills/ti-guides/references/resources.md +172 -0
  82. package/skills/ti-guides/references/style-and-conventions.md +104 -0
  83. package/skills/ti-guides/references/tiapp-config.md +655 -0
  84. package/skills/ti-howtos/SKILL.md +131 -0
  85. package/skills/ti-howtos/references/android-platform-deep-dives.md +609 -0
  86. package/skills/ti-howtos/references/automation-fastlane-appium.md +96 -0
  87. package/skills/ti-howtos/references/buffer-codec-streams.md +162 -0
  88. package/skills/ti-howtos/references/cross-platform-development.md +358 -0
  89. package/skills/ti-howtos/references/debugging-profiling.md +473 -0
  90. package/skills/ti-howtos/references/extending-titanium.md +684 -0
  91. package/skills/ti-howtos/references/google-maps-v2.md +172 -0
  92. package/skills/ti-howtos/references/ios-map-kit.md +149 -0
  93. package/skills/ti-howtos/references/ios-platform-deep-dives.md +595 -0
  94. package/skills/ti-howtos/references/local-data-sources.md +310 -0
  95. package/skills/ti-howtos/references/location-and-maps.md +267 -0
  96. package/skills/ti-howtos/references/media-apis.md +268 -0
  97. package/skills/ti-howtos/references/notification-services.md +539 -0
  98. package/skills/ti-howtos/references/remote-data-sources.md +339 -0
  99. package/skills/ti-howtos/references/tutorials.md +552 -0
  100. package/skills/ti-howtos/references/using-modules.md +182 -0
  101. package/skills/ti-howtos/references/web-content-integration.md +288 -0
  102. package/skills/ti-howtos/references/webpack-build-pipeline.md +125 -0
@@ -0,0 +1,526 @@
1
+ # Modules: Facebook, Identity, Crypto & More API Reference
2
+
3
+ ## Modules.Applesignin
4
+ > A module to use apple signin functionality.
5
+ > Extends Ti.Module
6
+ > Platforms: ios
7
+ > Type: module
8
+
9
+ ### Constants (14)
10
+ - **AUTHORIZATION_SCOPE_\***: AUTHORIZATION_SCOPE_FULLNAME, AUTHORIZATION_SCOPE_EMAIL
11
+ - **BUTTON_STYLE_\***: BUTTON_STYLE_WHITE, BUTTON_STYLE_BLACK
12
+ - **BUTTON_STYLE_WHITE_\***: BUTTON_STYLE_WHITE_OUTLINE
13
+ - **BUTTON_TYPE_\***: BUTTON_TYPE_DEFAULT, BUTTON_TYPE_CONTINUE
14
+ - **BUTTON_TYPE_SIGN_\***: BUTTON_TYPE_SIGN_IN
15
+ - **CREDENTIAL_STATE_\***: CREDENTIAL_STATE_REVOKED, CREDENTIAL_STATE_AUTHORIZED
16
+ - **CREDENTIAL_STATE_NOT_\***: CREDENTIAL_STATE_NOT_FOUNFD
17
+ - **USER_DETECTION_STATUS_\***: USER_DETECTION_STATUS_REAL, USER_DETECTION_STATUS_UNSUPPORTED, USER_DETECTION_STATUS_UNKNOWN
18
+
19
+
20
+ ### Methods (3)
21
+ | Method | Returns | Platform | Description |
22
+ |--------|---------|----------|-------------|
23
+ | authorize(scopes) | void | ios | Request Apple ID authorization. |
24
+ | getCredentialState(userId, callback) | void | ios | Returns the credential state for the given user. |
25
+ | createLoginButton(parameters) | Modules.Applesignin.LoginButton | ios | Creates and returns an instance of <Modules.Apple… |
26
+
27
+ ### Events (1)
28
+ | Event | Platform | Description |
29
+ |-------|----------|-------------|
30
+ | login | ios | Fired at login. |
31
+
32
+ ---
33
+
34
+ ## Modules.Applesignin.LoginButton
35
+ > Built-in login button which can be added on view.
36
+ > Extends Ti.UI.View
37
+ > Platforms: ios
38
+
39
+ ### Properties (unique: 3/49)
40
+ | Property | Type | Platform | Description |
41
+ |----------|------|----------|-------------|
42
+ | borderRadius | Number | ios | The radius, in points, for the rounded corners on… |
43
+ | type | Number | ios | Type for the authorization button. |
44
+ | style | Number | ios | Style for the authorization button. |
45
+
46
+
47
+
48
+
49
+ ---
50
+
51
+ ## Modules.Barcode
52
+ > Add-on Barcode module
53
+ > Extends Ti.Module
54
+ > Platforms: both
55
+ > Type: module
56
+
57
+ ### Properties (unique: 7/39)
58
+ | Property | Type | Platform | Description |
59
+ |----------|------|----------|-------------|
60
+ | allowRotation | Boolean | ios | Value that indicates if the barcode capture shoul… |
61
+ | allowMenu | Boolean | android | Whether or not to allow the built-in ZXing menu t… |
62
+ | allowInstructions | Boolean | android | Whether or not to display helpful instructions or… |
63
+ | copyToClipboard | Boolean | android | Whether or not copy the result to the clipboard |
64
+ | displayedMessage | String | both | Controls the message that is displayed to the end… |
65
+ | useFrontCamera | Boolean | both | Controls whether or not the front camera on the d… |
66
+ | useLED | Boolean | both | Whether or not to use the LED when scanning barco… |
67
+
68
+ ### Constants (30)
69
+ - **FORMAT_\***: FORMAT_NONE, FORMAT_ITF, FORMAT_AZTEC, FORMAT_MAXICODE, FORMAT_CODABAR
70
+ - **FORMAT_CODE_\***: FORMAT_CODE_128, FORMAT_CODE_39, FORMAT_CODE_93
71
+ - **FORMAT_CODE_39_MOD_\***: FORMAT_CODE_39_MOD_43
72
+ - **FORMAT_DATA_\***: FORMAT_DATA_MATRIX
73
+ - **FORMAT_EAN_\***: FORMAT_EAN_8, FORMAT_EAN_13
74
+ - **FORMAT_INTERLEAVED_2_OF_\***: FORMAT_INTERLEAVED_2_OF_5
75
+ - **FORMAT_PDF_\***: FORMAT_PDF_417
76
+ - **FORMAT_QR_\***: FORMAT_QR_CODE
77
+ - **FORMAT_RSS_\***: FORMAT_RSS_14, FORMAT_RSS_EXPANDED
78
+ - **FORMAT_UPC_\***: FORMAT_UPC_E, FORMAT_UPC_A
79
+ - **OTHER_\***: UNKNOWN, URL, SMS, TELEPHONE, TEXT, CALENDAR, GEOLOCATION, EMAIL, CONTACT, BOOKMARK, WIFI
80
+
81
+
82
+ ### Methods (4)
83
+ | Method | Returns | Platform | Description |
84
+ |--------|---------|----------|-------------|
85
+ | cancel(—) | void | both | Cancels and closes the currently open capture win… |
86
+ | canShow(—) | Boolean | ios | Whether the barcode scanner camera is allowed. |
87
+ | capture(dictionary) | void | both | Brings up the camera and begins the capture seque… |
88
+ | parse(dictionary) | void | both | Parses a blob image for barcodes. |
89
+
90
+ ### Events (3)
91
+ | Event | Platform | Description |
92
+ |-------|----------|-------------|
93
+ | success | both | Fired upon a successful barcode scan. |
94
+ | error | both | Sent when an error occurs. |
95
+ | cancel | both | Sent when the scanning process is canceled. |
96
+
97
+ ---
98
+
99
+ ## Modules.Crypto
100
+ > Add-on Crypto module
101
+ > Extends Ti.Module
102
+ > Platforms: both
103
+ > Type: module
104
+
105
+ ### Constants (37)
106
+ - **ALGORITHM_\***: ALGORITHM_AES128, ALGORITHM_DES, ALGORITHM_3DES, ALGORITHM_CAST, ALGORITHM_RC4, ALGORITHM_RC2
107
+ - **BLOCKSIZE_\***: BLOCKSIZE_AES128, BLOCKSIZE_DES, BLOCKSIZE_3DES, BLOCKSIZE_CAST, BLOCKSIZE_RC2
108
+ - **KEYSIZE_\***: KEYSIZE_AES128, KEYSIZE_AES192, KEYSIZE_AES256, KEYSIZE_DES, KEYSIZE_3DES, KEYSIZE_MINCAST, KEYSIZE_MAXCAST, KEYSIZE_MINRC4, KEYSIZE_MAXRC4, KEYSIZE_MINRC2, KEYSIZE_MAXRC2
109
+ - **OPTION_\***: OPTION_PKCS7PADDING, OPTION_ECBMODE
110
+ - **OTHER_\***: ENCRYPT, DECRYPT
111
+ - **STATUS_\***: STATUS_SUCCESS, STATUS_ERROR, STATUS_PARAMERROR, STATUS_BUFFERTOOSMALL, STATUS_MEMORYFAILURE, STATUS_ALIGNMENTERROR, STATUS_DECODEERROR, STATUS_UNIMPLEMENTED
112
+ - **TYPE_\***: TYPE_BLOB, TYPE_HEXSTRING, TYPE_BASE64STRING
113
+
114
+
115
+ ### Methods (2)
116
+ | Method | Returns | Platform | Description |
117
+ |--------|---------|----------|-------------|
118
+ | encodeData(dictionary) | Number | both | Encodes the source into the destination buffer us… |
119
+ | decodeData(dictionary) | String | both | Decodes a source buffer into a string using the s… |
120
+
121
+
122
+ ---
123
+
124
+ ## Modules.Crypto.Cryptor
125
+ > The Cryptor object provides access to a number of symmetric encryption algorithms. Symmetric encryption algorithms come in two "flavors" - block ciphers, and stream ciphers. Block ciphers process data (while both encrypting and decrypting) in discrete chunks of data called blocks; stream ciphers operate on arbitrary sized data.
126
+ > Extends Ti.Proxy
127
+ > Platforms: both
128
+
129
+ ### Properties (unique: 6/8)
130
+ | Property | Type | Platform | Description |
131
+ |----------|------|----------|-------------|
132
+ | resizeBuffer | Boolean | both | Used in the [encrypt](Modules.Crypto.Cryptor.encr… |
133
+ | operation | Number | both | Used in the [capture](Modules.Barcode.capture) an… |
134
+ | algorithm | Number | both | Used in the [encrypt](Modules.Crypto.Cryptor.encr… |
135
+ | options | Number | both | Used in the [encrypt](Modules.Crypto.Cryptor.encr… |
136
+ | key | Ti.Buffer | both | Used in the [encrypt](Modules.Crypto.Cryptor.encr… |
137
+ | initializationVector | Ti.Buffer | both | Used in the [encrypt](Modules.Crypto.Cryptor.encr… |
138
+
139
+
140
+ ### Methods (7)
141
+ | Method | Returns | Platform | Description |
142
+ |--------|---------|----------|-------------|
143
+ | encrypt(dataIn, dataInLength, dataOut, dataOutLength) | Number | both | Stateless, one-shot encryption operation. |
144
+ | decrypt(dataIn, dataInLength, dataOut, dataOutLength) | Number | both | Stateless, one-shot decryption operation. |
145
+ | getOutputLength(dataInLength, final) | Number | both | getOutputLength is used to determine the output b… |
146
+ | update(dataIn, dataInLength, dataOut, dataOutLength) | Number | both | update is used to encrypt or decrypt data. This m… |
147
+ | finish(dataOut, dataOutLength) | Number | both | Finishes encryption and decryption operations and… |
148
+ | reset(initializationVector) | Number | both | reset reinitializes an existing cryptor object wi… |
149
+ | release(—) | Number | both | release will dispose of the internal cryptor data |
150
+
151
+
152
+ ---
153
+
154
+ ## Modules.EncryptedDatabase
155
+ > Provides transparent, secure 256-bit AES encryption of SQLite database files.
156
+ > Extends Ti.Database
157
+ > Platforms: both
158
+ > Type: module
159
+
160
+ ### Properties (unique: 4/14)
161
+ | Property | Type | Platform | Description |
162
+ |----------|------|----------|-------------|
163
+ | hmacAlgorithm | Number | both | The hashing algorithm the encrypted database will… |
164
+ | hmacKdfIterations | Number | both | Number of iterations that the KDF (Key Derivation… |
165
+ | password | String | both | The password used to encrypt sensitive data. |
166
+ | pageSize | Number | android | Setting the PRAGMA cipher_page_size value |
167
+
168
+ ### Constants (3)
169
+ - **HMAC_\***: HMAC_SHA1, HMAC_SHA256, HMAC_SHA512
170
+
171
+
172
+ ### Methods (2)
173
+ | Method | Returns | Platform | Description |
174
+ |--------|---------|----------|-------------|
175
+ | isCipherUpgradeRequired(name) | Boolean | ios | Checks and returns if sqlcipher is required to be… |
176
+ | cipherUpgrade(name) | CipherUpgradeResult | ios | Upgrades sqlcipher used in database. |
177
+
178
+
179
+ ---
180
+
181
+ ## Modules.Facebook
182
+ > Add-on Facebook module.
183
+ > Extends Ti.Module
184
+ > Platforms: both
185
+ > Type: module
186
+
187
+ ### Properties (unique: 10/50)
188
+ | Property | Type | Platform | Description |
189
+ |----------|------|----------|-------------|
190
+ | accessToken | String | both | OAuth token set after a successful `authorize`. |
191
+ | accessTokenExpired | Boolean | both | Returns whether the <Modules.Facebook.accessToken… |
192
+ | accessTokenActive | Boolean | both | Returns `true` if the <Modules.Facebook.accessTok… |
193
+ | appID | String | both | If not explicitly set, the default will be read f… |
194
+ | canPresentOpenGraphActionDialog | Boolean | android | Checks if the device can support the use of the F… |
195
+ | expirationDate | Date | both | Time at which the `accessToken` expires. |
196
+ | loggedIn | Boolean | both | Indicates if the user is logged in. |
197
+ | loginTracking | Number | ios | Gets or sets the desired tracking preference to u… |
198
+ | permissions | Array<String> | both | Array of permissions to request for your app. |
199
+ | uid | String | both | Unique user ID returned from Facebook. |
200
+
201
+ ### Constants (37)
202
+ - **ACTION_TYPE_\***: ACTION_TYPE_NONE, ACTION_TYPE_SEND, ACTION_TYPE_TURN
203
+ - **ACTION_TYPE_ASK_\***: ACTION_TYPE_ASK_FOR
204
+ - **AUDIENCE_\***: AUDIENCE_FRIENDS, AUDIENCE_EVERYONE
205
+ - **AUDIENCE_ONLY_\***: AUDIENCE_ONLY_ME
206
+ - **EVENT_NAME_ADDED_PAYMENT_\***: EVENT_NAME_ADDED_PAYMENT_INFO
207
+ - **EVENT_NAME_ADDED_TO_\***: EVENT_NAME_ADDED_TO_CART
208
+ - **EVENT_NAME_COMPLETED_\***: EVENT_NAME_COMPLETED_REGISTRATION
209
+ - **EVENT_NAME_INITIATED_\***: EVENT_NAME_INITIATED_CHECKOUT
210
+ - **EVENT_NAME_VIEWED_\***: EVENT_NAME_VIEWED_CONTENT
211
+ - **EVENT_PARAM_\***: EVENT_PARAM_CONTENT, EVENT_PARAM_CURRENCY
212
+ - **EVENT_PARAM_CONTENT_\***: EVENT_PARAM_CONTENT_ID, EVENT_PARAM_CONTENT_TYPE
213
+ - **EVENT_PARAM_NUM_\***: EVENT_PARAM_NUM_ITEMS
214
+ - **EVENT_PARAM_PAYMENT_INFO_\***: EVENT_PARAM_PAYMENT_INFO_AVAILABLE
215
+ - **FILTER_\***: FILTER_NONE
216
+ - **FILTER_APP_\***: FILTER_APP_USERS
217
+ - **FILTER_APP_NON_\***: FILTER_APP_NON_USERS
218
+ - **LOGIN_BUTTON_TOOLTIP_BEHAVIOR_\***: LOGIN_BUTTON_TOOLTIP_BEHAVIOR_AUTOMATIC, LOGIN_BUTTON_TOOLTIP_BEHAVIOR_DISABLE
219
+ - **LOGIN_BUTTON_TOOLTIP_BEHAVIOR_FORCE_\***: LOGIN_BUTTON_TOOLTIP_BEHAVIOR_FORCE_DISPLAY
220
+ - **LOGIN_BUTTON_TOOLTIP_STYLE_FRIENDLY_\***: LOGIN_BUTTON_TOOLTIP_STYLE_FRIENDLY_BLUE
221
+ - **LOGIN_BUTTON_TOOLTIP_STYLE_NEUTRAL_\***: LOGIN_BUTTON_TOOLTIP_STYLE_NEUTRAL_GRAY
222
+ - **LOGIN_TRACKING_\***: LOGIN_TRACKING_ENABLED, LOGIN_TRACKING_LIMITED
223
+ - **MESSENGER_BUTTON_MODE_\***: MESSENGER_BUTTON_MODE_CIRCULAR, MESSENGER_BUTTON_MODE_RECTANGULAR
224
+ - **SHARE_DIALOG_MODE_\***: SHARE_DIALOG_MODE_AUTOMATIC, SHARE_DIALOG_MODE_NATIVE, SHARE_DIALOG_MODE_BROWSER, SHARE_DIALOG_MODE_WEB
225
+ - **SHARE_DIALOG_MODE_FEED_\***: SHARE_DIALOG_MODE_FEED_BROWSER, SHARE_DIALOG_MODE_FEED_WEB
226
+ - **SHARE_DIALOG_MODE_SHARE_\***: SHARE_DIALOG_MODE_SHARE_SHEET
227
+
228
+
229
+ ### Methods (17)
230
+ | Method | Returns | Platform | Description |
231
+ |--------|---------|----------|-------------|
232
+ | authorize(—) | void | both | Prompts the user to log in (if not already logged… |
233
+ | createActivityWorker(parameters) | Ti.Proxy | android | Creates a Facebook proxy to hook into the activit… |
234
+ | initialize(—) | void | both | Loads a cached Facebook session if available, the… |
235
+ | logCustomEvent(event, valueToSum, params) | void | both | Logs a custom event to Facebook. |
236
+ | logPurchase(amount, currency, parameters) | void | both | Log a purchase of the specified amount, in the sp… |
237
+ | logout(—) | void | both | Clears the OAuth `accessToken` and logs out the u… |
238
+ | presentShareDialog(params) | void | both | Opens a Facebook link share dialog. |
239
+ | presentPhotoShareDialog(params) | void | both | Opens a Facebook photo share dialog. |
240
+ | refreshPermissionsFromServer(—) | void | both | Makes a request to Facebook to get the latest per… |
241
+ | requestWithGraphPath(path, params, httpMethod, callback) | void | both | Makes a Facebook Graph API request. |
242
+ | requestNewReadPermissions(permissions, callback) | void | both | Makes a request to Facebook for additional read p… |
243
+ | requestNewPublishPermissions(permissions, audience, callback) | void | both | Makes a request to Facebook for additional write … |
244
+ | fetchDeferredAppLink(callback) | void | both | Fetch the deferred app link |
245
+ | setCurrentAccessToken(params) | void | ios | Set a new access token for using Facebook service… |
246
+ | logPushNotificationOpen(payload, action) | void | both | Log an app event that tracks that the application… |
247
+ | setPushNotificationsDeviceToken(deviceToken) | void | both | Sets a device token to register the current appli… |
248
+ | createLoginButton(parameters) | Modules.Facebook.LoginButton | both | Creates and returns an instance of <Modules.Faceb… |
249
+
250
+ ### Events (6)
251
+ | Event | Platform | Description |
252
+ |-------|----------|-------------|
253
+ | login | both | Fired at session login. |
254
+ | logout | both | Fired at session logout. |
255
+ | requestDialogCompleted | both | Fired when the Send Request dialog is closed. |
256
+ | shareCompleted | both | Fired when the Share dialog or Web Share dialog is closed. |
257
+ | inviteCompleted | both | Fired when the Invite dialog is closed. |
258
+ | tokenUpdated | both | Fired when [refreshPermissionsFromServer](Modules.Facebook.refreshPermissionsFr… |
259
+
260
+ ---
261
+
262
+ ## Modules.Facebook.LoginButton
263
+ > A Facebook Login Button.
264
+ > Extends Ti.UI.View
265
+ > Platforms: both
266
+
267
+ ### Properties (unique: 7/79)
268
+ | Property | Type | Platform | Description |
269
+ |----------|------|----------|-------------|
270
+ | audience | Number | both | Default audience to use for Facebook posts if pub… |
271
+ | readPermissions | Array<String> | both | Requested read permissions. |
272
+ | publishPermissions | Array<String> | both | Requested write permissions. |
273
+ | tooltipBehavior | Number | both | Gets or sets the desired tooltip behavior. |
274
+ | tooltipColorStyle | Number | both | Gets or sets the desired tooltip color style. |
275
+ | loginTracking | Number | ios | Gets or sets the desired tracking preference to u… |
276
+ | nonce | String | ios | Gets or sets an optional nonce to use for login a… |
277
+
278
+
279
+
280
+
281
+ ---
282
+
283
+ ## Modules.Geofence
284
+ > Provides a battery-efficient way to monitor a device's movement into or out of a geographic region.
285
+ > Extends Ti.Module
286
+ > Platforms: both
287
+ > Type: module
288
+
289
+ ### Properties (unique: 1/11)
290
+ | Property | Type | Platform | Description |
291
+ |----------|------|----------|-------------|
292
+ | monitoredRegions | Array<Modules.Geofence.Region> | ios | An array of the regions currently being monitored… |
293
+
294
+ ### Constants (7)
295
+ - **LOCATION_STATUS_\***: LOCATION_STATUS_ERROR
296
+ - **LOCATION_STATUS_GEOFENCE_NOT_\***: LOCATION_STATUS_GEOFENCE_NOT_AVAILABLE
297
+ - **LOCATION_STATUS_GEOFENCE_TOO_MANY_\***: LOCATION_STATUS_GEOFENCE_TOO_MANY_GEOFENCES
298
+ - **LOCATION_STATUS_GEOFENCE_TOO_MANY_PENDING_\***: LOCATION_STATUS_GEOFENCE_TOO_MANY_PENDING_INTENTS
299
+ - **REGION_STATE_\***: REGION_STATE_UNKNOWN, REGION_STATE_INSIDE, REGION_STATE_OUTSIDE
300
+
301
+
302
+ ### Methods (7)
303
+ | Method | Returns | Platform | Description |
304
+ |--------|---------|----------|-------------|
305
+ | regionMonitoringAvailable(—) | Boolean | ios | Returns a boolean that indicates if region monito… |
306
+ | requestStateForRegion(—) | void | ios | Asynchronously retrieve the cached state of the s… |
307
+ | isGooglePlayServicesAvailable(—) | Boolean | android | Returns a number value indicating the availabilit… |
308
+ | createRegion(object) | Modules.Geofence.Region | both | Creates a geofence [Region](Modules.Geofence.Regi… |
309
+ | startMonitoringForRegions(Region) | void | both | Starts monitoring the [Region(s)](Modules.Geofenc… |
310
+ | stopMonitoringForRegions(Region) | void | both | Stops monitoring the specified region or regions. |
311
+ | stopMonitoringAllRegions(—) | void | both | Stops monitoring all of the regions that are curr… |
312
+
313
+ ### Events (6)
314
+ | Event | Platform | Description |
315
+ |-------|----------|-------------|
316
+ | error | both | Fired when there is an error, or monitoring failed for a region. |
317
+ | enterregions | both | Fired when the device enters a monitored region. |
318
+ | exitregions | both | Fired when the device exits a monitored region. |
319
+ | monitorregions | both | Fired when [startMonitoringForRegions()](Modules.Geofence.startMonitoringForReg… |
320
+ | regionstate | both | Fired when [requestStateForRegion()](Modules.Geofence.requestStateForRegion) re… |
321
+ | removeregions | android | Fired on Android when regions are removed using `stopMonitoringForRegions` or `… |
322
+
323
+ ---
324
+
325
+ ## Modules.Geofence.Region
326
+ > Represents a geographic region to be monitored.
327
+ > Extends Ti.Proxy
328
+ > Platforms: both
329
+
330
+ ### Properties (unique: 5/8)
331
+ | Property | Type | Platform | Description |
332
+ |----------|------|----------|-------------|
333
+ | identifier | String | both | The unique identifier of the region. |
334
+ | center | Dictionary | both | An object representing the center coordinate for … |
335
+ | radius | Number | both | The radius of the region to monitor in meters. |
336
+ | notifyOnEntry | Boolean | both | A boolean that controls whether the region will n… |
337
+ | notifyOnExit | Boolean | both | A boolean that controlls whether the region will … |
338
+
339
+
340
+ ### Methods (1)
341
+ | Method | Returns | Platform | Description |
342
+ |--------|---------|----------|-------------|
343
+ | containsCoordinate(point) | void | ios | Returns `true` if the coordinates passed to the m… |
344
+
345
+
346
+ ---
347
+
348
+ ## Modules.Https
349
+ > Prevents a man-in-the-middle attack when used with the `Titanium.Network.HTTPClient` class.
350
+ > Extends Ti.Module
351
+ > Platforms: both
352
+ > Type: module
353
+
354
+
355
+ ### Methods (1)
356
+ | Method | Returns | Platform | Description |
357
+ |--------|---------|----------|-------------|
358
+ | createX509CertificatePinningSecurityManager(params) | SecurityManagerProtocol | both | Creates a Security Manager object for the `HTTPCl… |
359
+
360
+
361
+ ---
362
+
363
+ ## Modules.Identity
364
+ > Allows a Titanium application to use the iOS Touch ID / Face ID authentication mechanism.
365
+ > Extends Ti.Module
366
+ > Platforms: both
367
+ > Type: module
368
+
369
+ ### Properties (unique: 5/43)
370
+ | Property | Type | Platform | Description |
371
+ |----------|------|----------|-------------|
372
+ | authenticationPolicy | Number | both | Sets the global authentication policy used in thi… |
373
+ | biometryType | Number | ios | Indicates the type of the biometry supported by t… |
374
+ | hasFaceScanner | Boolean | android | Returns true if the has biometric hardware to per… |
375
+ | hasIrisScanner | Boolean | android | Returns true if the device has biometric hardware… |
376
+ | hasFingerprintScanner | Boolean | android | Returns true if the device has biometric hardware… |
377
+
378
+ ### Constants (35)
379
+ - **ACCESS_CONTROL_\***: ACCESS_CONTROL_OR, ACCESS_CONTROL_AND
380
+ - **ACCESS_CONTROL_APPLICATION_\***: ACCESS_CONTROL_APPLICATION_PASSWORD
381
+ - **ACCESS_CONTROL_DEVICE_\***: ACCESS_CONTROL_DEVICE_PASSCODE
382
+ - **ACCESS_CONTROL_PRIVATE_KEY_\***: ACCESS_CONTROL_PRIVATE_KEY_USAGE
383
+ - **ACCESS_CONTROL_TOUCH_ID_\***: ACCESS_CONTROL_TOUCH_ID_ANY
384
+ - **ACCESS_CONTROL_TOUCH_ID_CURRENT_\***: ACCESS_CONTROL_TOUCH_ID_CURRENT_SET
385
+ - **ACCESS_CONTROL_USER_\***: ACCESS_CONTROL_USER_PRESENCE
386
+ - **ACCESSIBLE_\***: ACCESSIBLE_ALWAYS
387
+ - **ACCESSIBLE_AFTER_FIRST_\***: ACCESSIBLE_AFTER_FIRST_UNLOCK
388
+ - **ACCESSIBLE_AFTER_FIRST_UNLOCK_THIS_DEVICE_\***: ACCESSIBLE_AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY
389
+ - **ACCESSIBLE_ALWAYS_THIS_DEVICE_\***: ACCESSIBLE_ALWAYS_THIS_DEVICE_ONLY
390
+ - **ACCESSIBLE_WHEN_\***: ACCESSIBLE_WHEN_UNLOCKED
391
+ - **ACCESSIBLE_WHEN_PASSCODE_SET_THIS_DEVICE_\***: ACCESSIBLE_WHEN_PASSCODE_SET_THIS_DEVICE_ONLY
392
+ - **ACCESSIBLE_WHEN_UNLOCKED_THIS_DEVICE_\***: ACCESSIBLE_WHEN_UNLOCKED_THIS_DEVICE_ONLY
393
+ - **AUTHENTICATION_POLICY_\***: AUTHENTICATION_POLICY_PASSCODE, AUTHENTICATION_POLICY_BIOMETRICS, AUTHENTICATION_POLICY_WATCH
394
+ - **AUTHENTICATION_POLICY_BIOMETRICS_OR_\***: AUTHENTICATION_POLICY_BIOMETRICS_OR_WATCH
395
+ - **BIOMETRY_TYPE_\***: BIOMETRY_TYPE_NONE
396
+ - **BIOMETRY_TYPE_FACE_\***: BIOMETRY_TYPE_FACE_ID
397
+ - **BIOMETRY_TYPE_TOUCH_\***: BIOMETRY_TYPE_TOUCH_ID
398
+ - **ERROR_APP_\***: ERROR_APP_CANCELLED
399
+ - **ERROR_AUTHENTICATION_\***: ERROR_AUTHENTICATION_FAILED
400
+ - **ERROR_BIOMETRY_\***: ERROR_BIOMETRY_LOCKOUT
401
+ - **ERROR_BIOMETRY_NOT_\***: ERROR_BIOMETRY_NOT_AVAILABLE, ERROR_BIOMETRY_NOT_ENROLLED
402
+ - **ERROR_INVALID_\***: ERROR_INVALID_CONTEXT
403
+ - **ERROR_PASSCODE_NOT_\***: ERROR_PASSCODE_NOT_SET
404
+ - **ERROR_SYSTEM_\***: ERROR_SYSTEM_CANCEL
405
+ - **ERROR_TOUCH_ID_\***: ERROR_TOUCH_ID_LOCKOUT
406
+ - **ERROR_TOUCH_ID_NOT_\***: ERROR_TOUCH_ID_NOT_AVAILABLE, ERROR_TOUCH_ID_NOT_ENROLLED
407
+ - **ERROR_USER_\***: ERROR_USER_CANCEL, ERROR_USER_FALLBACK
408
+
409
+
410
+ ### Methods (5)
411
+ | Method | Returns | Platform | Description |
412
+ |--------|---------|----------|-------------|
413
+ | createKeychainItem(params) | void | both | Create KeychainItem. |
414
+ | authenticate(params) | void | both | Initiates the biometric authentication process. |
415
+ | invalidate(—) | void | both | Invalidates the current biometric dialog. |
416
+ | deviceCanAuthenticate(—) | DeviceCanAuthenticateResult | both | Checks to see if device is configured for biometr… |
417
+ | isSupported(—) | Boolean | both | Determines if the current device supports Touch I… |
418
+
419
+
420
+ ---
421
+
422
+ ## Modules.Identity.KeychainItem
423
+ > Represents a keychain item to communicate with the native iOS Keychain and Android Keystore.
424
+ > Extends Ti.Module
425
+ > Platforms: both
426
+ > Type: module
427
+
428
+
429
+ ### Methods (5)
430
+ | Method | Returns | Platform | Description |
431
+ |--------|---------|----------|-------------|
432
+ | save(value) | void | both | Saves a new value to the native keychain. |
433
+ | read(—) | void | both | Reads an existing value to the native keychain. |
434
+ | update(value) | void | both | Updates an existing value to the native keychain. |
435
+ | reset(—) | void | both | Resets an existing value from the native keychain. |
436
+ | fetchExistence(result) | void | both | Asynchronously determines whether or not a value … |
437
+
438
+ ### Events (4)
439
+ | Event | Platform | Description |
440
+ |-------|----------|-------------|
441
+ | save | both | Triggered when a new keychain item is saved (or an error occurred). |
442
+ | update | both | Triggered when a new keychain item is updated (or an error occurred). |
443
+ | read | both | Triggered when a new keychain item is read (or an error occurred). |
444
+ | reset | both | Triggered when a new keychain item is reset (or an error occurred). |
445
+
446
+ ---
447
+
448
+ ## Modules.PlayServices
449
+ > Allows a Titanium application or module to use Google Play Services.
450
+ > Extends Ti.Module
451
+ > Platforms: android
452
+ > Type: module
453
+
454
+ ### Constants (7)
455
+ - **GOOGLE_PLAY_SERVICES_\***: GOOGLE_PLAY_SERVICES_PACKAGE
456
+ - **GOOGLE_PLAY_SERVICES_VERSION_\***: GOOGLE_PLAY_SERVICES_VERSION_CODE
457
+ - **RESULT_\***: RESULT_SUCCESS
458
+ - **RESULT_SERVICE_\***: RESULT_SERVICE_MISSING, RESULT_SERVICE_UPDATING, RESULT_SERVICE_INVALID
459
+ - **RESULT_SERVICE_VERSION_UPDATE_\***: RESULT_SERVICE_VERSION_UPDATE_REQUIRED
460
+
461
+
462
+ ### Methods (4)
463
+ | Method | Returns | Platform | Description |
464
+ |--------|---------|----------|-------------|
465
+ | makeGooglePlayServicesAvailable(callback) | void | android | Attempts to make Google Play services available o… |
466
+ | isGooglePlayServicesAvailable(—) | Number | android | Verifies that Google Play services is installed a… |
467
+ | isUserResolvableError(—) | Boolean | android | Checks to see if device is configured for Touch I… |
468
+ | getErrorString(—) | String | android | Determines if the current device supports Touch I… |
469
+
470
+
471
+ ---
472
+
473
+ ## Modules.WebDialog
474
+ > Allows a Titanium application to use the Safari Controller (iOS) and Chrome Tabs (Android) to create an embedded browser.
475
+ > Extends Ti.Module
476
+ > Platforms: both
477
+ > Type: module
478
+
479
+ ### Constants (3)
480
+ - **DISMISS_BUTTON_STYLE_\***: DISMISS_BUTTON_STYLE_DONE, DISMISS_BUTTON_STYLE_CLOSE, DISMISS_BUTTON_STYLE_CANCEL
481
+
482
+
483
+ ### Methods (5)
484
+ | Method | Returns | Platform | Description |
485
+ |--------|---------|----------|-------------|
486
+ | isOpen(—) | Boolean | ios | Indicates if the web dialog is open. |
487
+ | isSupported(—) | Boolean | both | Indicates if the web dialog is supported. |
488
+ | open(params) | void | both | Opens the web dialog with the options provided. |
489
+ | close(—) | void | both | Programmatically closes the web dialog. |
490
+ | createAuthenticationSession(parameters) | Modules.WebDialog.AuthenticationSession | ios | Creates and returns an instance of <Modules.WebDi… |
491
+
492
+ ### Events (4)
493
+ | Event | Platform | Description |
494
+ |-------|----------|-------------|
495
+ | open | ios | The open event is fired after the web dialog has opened. |
496
+ | close | ios | The close event is fired when the web dialog is closed by the user or programma… |
497
+ | load | ios | Fired when the initial URL load is complete. |
498
+ | redirect | ios | Fired when the browser is redirected to another URL before the first page load … |
499
+
500
+ ---
501
+
502
+ ## Modules.WebDialog.AuthenticationSession
503
+ > Authenticate a user with a web service, even if the web service is run by a third party.
504
+ > Extends Ti.Proxy
505
+ > Platforms: ios
506
+
507
+ ### Properties (unique: 2/4)
508
+ | Property | Type | Platform | Description |
509
+ |----------|------|----------|-------------|
510
+ | url | String | ios | The initial URL pointing to the authentication we… |
511
+ | scheme | String | ios | The custom URL scheme that the app expects in the… |
512
+
513
+
514
+ ### Methods (2)
515
+ | Method | Returns | Platform | Description |
516
+ |--------|---------|----------|-------------|
517
+ | start(—) | Boolean | ios | Starts the `AuthenticationSession` instance after… |
518
+ | cancel(—) | void | ios | Cancel an authentication-session. |
519
+
520
+ ### Events (1)
521
+ | Event | Platform | Description |
522
+ |-------|----------|-------------|
523
+ | callback | ios | The callback which is called when the session is completed successfully or canc… |
524
+
525
+ ---
526
+