@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,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ti-api
|
|
3
|
+
description: 'Use when looking up properties, methods, events, constants, or type signatures for any Titanium API: `Ti.UI`, `Ti.Android`, `Ti.App`, `Ti.Media`, `Ti.Network`, `Ti.Database`, `Ti.Filesystem`, `Ti.Geolocation`, `Ti.Contacts`, `Ti.Calendar`, `Global`, `Ti.XML`, or third-party modules (Map, BLE, NFC, Facebook, Identity, CoreMotion, URLSession). Triggers include `tiapp.xml` in the project root, or any code that references `Ti.*` or `Modules.*`.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ti-api
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
API reference for the Titanium SDK and TiDev-maintained modules. Use it to look up properties, methods, events, constants, and type signatures across ~360 APIs grouped into 20 reference files.
|
|
11
|
+
|
|
12
|
+
## When to use
|
|
13
|
+
|
|
14
|
+
Use this skill when:
|
|
15
|
+
|
|
16
|
+
- Writing or reviewing code that calls any `Ti.*` or `Modules.*` API
|
|
17
|
+
- Verifying a property name, type, default, or platform availability
|
|
18
|
+
- Confirming a method signature, parameter list, or return type
|
|
19
|
+
- Looking up event names and event-object payloads
|
|
20
|
+
- Checking platform support (`android`, `ios`, or `both`) for an API
|
|
21
|
+
|
|
22
|
+
Do NOT use for:
|
|
23
|
+
|
|
24
|
+
- Alloy MVC concepts, controllers, models (use `alloy-guides`)
|
|
25
|
+
- Alloy CLI and configuration files (use `alloy-howtos`)
|
|
26
|
+
- Titanium project setup, `tiapp.xml`, distribution, Hyperloop (use `ti-guides`)
|
|
27
|
+
- Native module dependency updates (use `ti-module-update`)
|
|
28
|
+
|
|
29
|
+
## How to use this skill
|
|
30
|
+
|
|
31
|
+
1. Identify which namespace the API belongs to.
|
|
32
|
+
2. Look up the matching reference file in the table below.
|
|
33
|
+
3. Read the reference file for full property / method / event tables.
|
|
34
|
+
|
|
35
|
+
## Namespace lookup
|
|
36
|
+
|
|
37
|
+
| Namespace examples | Reference | Coverage |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `Ti.UI.View`, `Ti.UI.Label`, `Ti.UI.Button`, `Ti.UI.ImageView`, ... | [api-ui-views.md](references/api-ui-views.md) | Ti.UI Core Views (13 APIs) |
|
|
40
|
+
| `Ti.UI.Window`, `Ti.UI.NavigationWindow`, `Ti.UI.TabGroup`, `Ti.UI.Tab`, ... | [api-ui-windows-navigation.md](references/api-ui-windows-navigation.md) | Ti.UI Windows & Navigation (7 APIs) |
|
|
41
|
+
| `Ti.UI.TextField`, `Ti.UI.TextArea`, `Ti.UI.SearchBar`, `Ti.UI.AttributedString`, ... | [api-ui-text-input.md](references/api-ui-text-input.md) | Ti.UI Text & Input (9 APIs) |
|
|
42
|
+
| `Ti.UI.ListView`, `Ti.UI.ListItem`, `Ti.UI.ListSection`, `Ti.UI.TableView`, ... | [api-ui-lists.md](references/api-ui-lists.md) | Ti.UI Lists & Tables (8 APIs) |
|
|
43
|
+
| `Ti.UI.Animation`, `Ti.UI.Matrix2D`, `Ti.UI.Matrix3D`, `Ti.UI.WebView`, ... | [api-ui-extras.md](references/api-ui-extras.md) | Ti.UI Extras (13 APIs) |
|
|
44
|
+
| `Ti.UI.iOS` | [api-ui-ios.md](references/api-ui-ios.md) | Ti.UI.iOS (36 APIs) |
|
|
45
|
+
| `Ti.UI.iOS` Animator / Physics | [api-ui-ios-animator.md](references/api-ui-ios-animator.md) | Ti.UI.iOS Animator & Physics (8 APIs) |
|
|
46
|
+
| `Ti.UI.Android`, `Ti.UI.iPad` | [api-ui-android.md](references/api-ui-android.md) | Ti.UI.Android (10 APIs) |
|
|
47
|
+
| `Ti.Android`, `Ti.Android.ActionBar`, `Ti.Android.Activity`, ... | [api-android.md](references/api-android.md) | Ti.Android (17 APIs) |
|
|
48
|
+
| `Ti.App`, `Ti.App.Properties`, `Ti.App.iOS`, `Ti.Platform`, ... | [api-app-platform.md](references/api-app-platform.md) | Ti.App & Ti.Platform (18 APIs) |
|
|
49
|
+
| `Ti.Media`, `Ti.Media.AudioPlayer`, `Ti.Media.AudioRecorder`, ... | [api-media.md](references/api-media.md) | Ti.Media (9 APIs) |
|
|
50
|
+
| `Ti.Network`, `Ti.Database`, `Ti.Database.DB`, `Ti.Filesystem`, ... | [api-data-network.md](references/api-data-network.md) | Ti.Network, Ti.Database & Ti.Filesystem (14 APIs) |
|
|
51
|
+
| `Ti.Geolocation`, `Ti.Contacts`, `Ti.Calendar`, `Ti.WatchSession`, ... | [api-services.md](references/api-services.md) | Ti.Geolocation, Ti.Contacts, Ti.Calendar & Ti.WatchSession (15 APIs) |
|
|
52
|
+
| `Titanium`, `Ti.UI` (root), `Ti.API`, `Ti.Accelerometer`, ... | [api-core.md](references/api-core.md) | Ti Core (16 APIs) |
|
|
53
|
+
| `Ti.XML`, `Ti.XML.Attr`, `Ti.XML.CDATASection`, Global APIs | [api-xml-global.md](references/api-xml-global.md) | Ti.XML & Global (25 APIs) |
|
|
54
|
+
| `Modules.Map`, `Modules.Map.Annotation`, `Modules.Map.Camera`, ... | [api-modules-map.md](references/api-modules-map.md) | Modules: Map (11 APIs) |
|
|
55
|
+
| `Modules.Applesignin`, `Modules.Barcode`, `Modules.Crypto`, Facebook, Identity, ... | [api-modules-social-misc.md](references/api-modules-social-misc.md) | Modules: Facebook, Identity, Crypto & More (16 APIs) |
|
|
56
|
+
| `Modules.BLE`, `Modules.BLE.Beacon`, `Modules.BLE.BeaconRegion`, ... | [api-modules-ble-bluetooth.md](references/api-modules-ble-bluetooth.md) | Modules: BLE & Bluetooth (20 APIs) |
|
|
57
|
+
| `Modules.Nfc`, `Modules.Nfc.MifareTagTechnology`, `Modules.Nfc.NdefMessage`, ... | [api-modules-nfc.md](references/api-modules-nfc.md) | Modules: NFC (28 APIs) |
|
|
58
|
+
| `Modules.CoreMotion`, `Modules.CoreMotion.Accelerometer`, URLSession, ... | [api-modules-coremotion-urlsession.md](references/api-modules-coremotion-urlsession.md) | Modules: CoreMotion & URLSession (12 APIs) |
|
|
59
|
+
|
|
60
|
+
## Quick lookup by common task
|
|
61
|
+
|
|
62
|
+
| Task | API | Reference |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| Create a window | `Ti.UI.Window` | [api-ui-windows-navigation.md](references/api-ui-windows-navigation.md) |
|
|
65
|
+
| HTTP request | `Ti.Network.HTTPClient` | [api-data-network.md](references/api-data-network.md) |
|
|
66
|
+
| Show an alert | `Ti.UI.AlertDialog` | [api-ui-windows-navigation.md](references/api-ui-windows-navigation.md) |
|
|
67
|
+
| Play audio | `Ti.Media.AudioPlayer` | [api-media.md](references/api-media.md) |
|
|
68
|
+
| Read a file | `Ti.Filesystem.File` | [api-data-network.md](references/api-data-network.md) |
|
|
69
|
+
| SQLite query | `Ti.Database.DB` | [api-data-network.md](references/api-data-network.md) |
|
|
70
|
+
| GPS location | `Ti.Geolocation` | [api-services.md](references/api-services.md) |
|
|
71
|
+
| Push notifications | `Ti.App.iOS` / Android FCM | [api-app-platform.md](references/api-app-platform.md) |
|
|
72
|
+
| ListView | `Ti.UI.ListView` | [api-ui-lists.md](references/api-ui-lists.md) |
|
|
73
|
+
| Camera / gallery | `Ti.Media` | [api-media.md](references/api-media.md) |
|
|
74
|
+
| Map view | `Modules.Map.View` | [api-modules-map.md](references/api-modules-map.md) |
|
|
75
|
+
| BLE scanning | `Modules.BLE` | [api-modules-ble-bluetooth.md](references/api-modules-ble-bluetooth.md) |
|
|
76
|
+
| Animation | `Ti.UI.Animation` | [api-ui-extras.md](references/api-ui-extras.md) |
|
|
77
|
+
| WebView | `Ti.UI.WebView` | [api-ui-extras.md](references/api-ui-extras.md) |
|
|
78
|
+
| Contacts | `Ti.Contacts` | [api-services.md](references/api-services.md) |
|
|
79
|
+
|
|
80
|
+
## Reading the reference tables
|
|
81
|
+
|
|
82
|
+
Each API entry includes:
|
|
83
|
+
|
|
84
|
+
- **Summary** — one-line description
|
|
85
|
+
- **Extends** — parent type (inherited properties / methods are not repeated)
|
|
86
|
+
- **Platforms** — `both` (Android + iOS), `android`, or `ios`
|
|
87
|
+
- **Properties table** — unique properties (not inherited), with type, default, platform
|
|
88
|
+
- **Methods table** — unique methods with parameters, return type, platform
|
|
89
|
+
- **Events table** — unique events with platform and description
|
|
90
|
+
- **Related Types** — inline struct definitions used by that API
|
|
91
|
+
|
|
92
|
+
### Property counts
|
|
93
|
+
|
|
94
|
+
Tables show `unique: X / Y` where `X` is properties defined on this class and `Y` is total including inherited. For inherited properties, check the parent class.
|
|
95
|
+
|
|
96
|
+
## API coverage
|
|
97
|
+
|
|
98
|
+
| Category | APIs | Reference |
|
|
99
|
+
|---|---|---|
|
|
100
|
+
| Ti.UI Core Views | 13 | `api-ui-views.md` |
|
|
101
|
+
| Ti.UI Windows & Navigation | 7 | `api-ui-windows-navigation.md` |
|
|
102
|
+
| Ti.UI Text & Input | 9 | `api-ui-text-input.md` |
|
|
103
|
+
| Ti.UI Lists & Tables | 8 | `api-ui-lists.md` |
|
|
104
|
+
| Ti.UI Extras | 13 | `api-ui-extras.md` |
|
|
105
|
+
| Ti.UI.iOS | 36 | `api-ui-ios.md` |
|
|
106
|
+
| Ti.UI.iOS Animator & Physics | 8 | `api-ui-ios-animator.md` |
|
|
107
|
+
| Ti.UI.Android | 10 | `api-ui-android.md` |
|
|
108
|
+
| Ti.Android | 17 | `api-android.md` |
|
|
109
|
+
| Ti.App & Ti.Platform | 18 | `api-app-platform.md` |
|
|
110
|
+
| Ti.Media | 9 | `api-media.md` |
|
|
111
|
+
| Ti.Network, Ti.Database & Ti.Filesystem | 14 | `api-data-network.md` |
|
|
112
|
+
| Ti.Geolocation, Ti.Contacts, Ti.Calendar & Ti.WatchSession | 15 | `api-services.md` |
|
|
113
|
+
| Ti Core | 16 | `api-core.md` |
|
|
114
|
+
| Ti.XML & Global | 25 | `api-xml-global.md` |
|
|
115
|
+
| Modules: Map | 11 | `api-modules-map.md` |
|
|
116
|
+
| Modules: Facebook, Identity, Crypto & More | 16 | `api-modules-social-misc.md` |
|
|
117
|
+
| Modules: BLE & Bluetooth | 20 | `api-modules-ble-bluetooth.md` |
|
|
118
|
+
| Modules: NFC | 28 | `api-modules-nfc.md` |
|
|
119
|
+
| Modules: CoreMotion & URLSession | 12 | `api-modules-coremotion-urlsession.md` |
|
|
120
|
+
|
|
121
|
+
## Related skills
|
|
122
|
+
|
|
123
|
+
| Task | Use this skill |
|
|
124
|
+
|---|---|
|
|
125
|
+
| Alloy MVC concepts, controllers, models, data binding | `alloy-guides` |
|
|
126
|
+
| Alloy CLI, `alloy.jmk`, `config.json`, debugging | `alloy-howtos` |
|
|
127
|
+
| Titanium SDK config, Hyperloop, app distribution | `ti-guides` |
|
|
128
|
+
| Native module dependency updates | `ti-module-update` |
|