@maccesar/titools 3.3.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 +6 -3
- 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 +15 -0
- package/skills/purgetss/references/custom-fonts.md +39 -36
- 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 +2 -0
- 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 +12 -0
- 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,675 @@
|
|
|
1
|
+
# Ti.Android API Reference
|
|
2
|
+
|
|
3
|
+
## Ti.Android
|
|
4
|
+
> The top-level Android module.
|
|
5
|
+
> Extends Ti.Module
|
|
6
|
+
> Platforms: android
|
|
7
|
+
> Type: module
|
|
8
|
+
|
|
9
|
+
### Properties (unique: 4/240)
|
|
10
|
+
| Property | Type | Platform | Description |
|
|
11
|
+
|----------|------|----------|-------------|
|
|
12
|
+
| R | Ti.Android.R | android | Accessor for Android system resources. |
|
|
13
|
+
| currentActivity | Ti.Android.Activity | android | References the top-most window's activity. |
|
|
14
|
+
| currentService | Ti.Android.Service | android | Service in the active context. |
|
|
15
|
+
| rootActivity | Ti.Android.Activity | android | The first activity launched by the application. |
|
|
16
|
+
|
|
17
|
+
### Constants (233)
|
|
18
|
+
- **ACTION_\***: ACTION_ANSWER, ACTION_CALL, ACTION_CHOOSER, ACTION_DEFAULT, ACTION_DELETE, ACTION_DIAL, ACTION_EDIT, ACTION_INSERT, ACTION_MAIN, ACTION_PICK, ACTION_REBOOT, ACTION_RUN, ACTION_SEARCH, ACTION_SEND, ACTION_SENDTO, ACTION_SHUTDOWN, ACTION_SYNC, ACTION_VIEW
|
|
19
|
+
- **ACTION_AIRPLANE_MODE_\***: ACTION_AIRPLANE_MODE_CHANGED
|
|
20
|
+
- **ACTION_ALL_\***: ACTION_ALL_APPS
|
|
21
|
+
- **ACTION_ATTACH_\***: ACTION_ATTACH_DATA
|
|
22
|
+
- **ACTION_BATTERY_\***: ACTION_BATTERY_CHANGED, ACTION_BATTERY_LOW, ACTION_BATTERY_OKAY
|
|
23
|
+
- **ACTION_BOOT_\***: ACTION_BOOT_COMPLETED
|
|
24
|
+
- **ACTION_BUG_\***: ACTION_BUG_REPORT
|
|
25
|
+
- **ACTION_CALL_\***: ACTION_CALL_BUTTON
|
|
26
|
+
- **ACTION_CAMERA_\***: ACTION_CAMERA_BUTTON
|
|
27
|
+
- **ACTION_CLOSE_SYSTEM_\***: ACTION_CLOSE_SYSTEM_DIALOGS
|
|
28
|
+
- **ACTION_CONFIGURATION_\***: ACTION_CONFIGURATION_CHANGED
|
|
29
|
+
- **ACTION_CREATE_\***: ACTION_CREATE_SHORTCUT
|
|
30
|
+
- **ACTION_DATE_\***: ACTION_DATE_CHANGED
|
|
31
|
+
- **ACTION_DEVICE_STORAGE_\***: ACTION_DEVICE_STORAGE_LOW
|
|
32
|
+
- **ACTION_GET_\***: ACTION_GET_CONTENT
|
|
33
|
+
- **ACTION_GTALK_SERVICE_\***: ACTION_GTALK_SERVICE_CONNECTED, ACTION_GTALK_SERVICE_DISCONNECTED
|
|
34
|
+
- **ACTION_HEADSET_\***: ACTION_HEADSET_PLUG
|
|
35
|
+
- **ACTION_INPUT_METHOD_\***: ACTION_INPUT_METHOD_CHANGED
|
|
36
|
+
- **ACTION_INSERT_OR_\***: ACTION_INSERT_OR_EDIT
|
|
37
|
+
- **ACTION_MANAGE_PACKAGE_\***: ACTION_MANAGE_PACKAGE_STORAGE
|
|
38
|
+
- **ACTION_MEDIA_\***: ACTION_MEDIA_BUTTON, ACTION_MEDIA_CHECKING, ACTION_MEDIA_EJECT, ACTION_MEDIA_MOUNTED, ACTION_MEDIA_NOFS, ACTION_MEDIA_REMOVED, ACTION_MEDIA_SHARED, ACTION_MEDIA_UNMOUNTABLE, ACTION_MEDIA_UNMOUNTED
|
|
39
|
+
- **ACTION_MEDIA_BAD_\***: ACTION_MEDIA_BAD_REMOVAL
|
|
40
|
+
- **ACTION_MEDIA_SCANNER_\***: ACTION_MEDIA_SCANNER_FINISHED, ACTION_MEDIA_SCANNER_STARTED
|
|
41
|
+
- **ACTION_MEDIA_SCANNER_SCAN_\***: ACTION_MEDIA_SCANNER_SCAN_FILE
|
|
42
|
+
- **ACTION_NEW_OUTGOING_\***: ACTION_NEW_OUTGOING_CALL
|
|
43
|
+
- **ACTION_PACKAGE_\***: ACTION_PACKAGE_ADDED, ACTION_PACKAGE_CHANGED, ACTION_PACKAGE_REMOVED, ACTION_PACKAGE_REPLACED, ACTION_PACKAGE_RESTARTED
|
|
44
|
+
- **ACTION_PACKAGE_DATA_\***: ACTION_PACKAGE_DATA_CLEARED
|
|
45
|
+
- **ACTION_PICK_\***: ACTION_PICK_ACTIVITY
|
|
46
|
+
- **ACTION_POWER_\***: ACTION_POWER_CONNECTED, ACTION_POWER_DISCONNECTED
|
|
47
|
+
- **ACTION_POWER_USAGE_\***: ACTION_POWER_USAGE_SUMMARY
|
|
48
|
+
- **ACTION_PROVIDER_\***: ACTION_PROVIDER_CHANGED
|
|
49
|
+
- **ACTION_SCREEN_\***: ACTION_SCREEN_OFF, ACTION_SCREEN_ON
|
|
50
|
+
- **ACTION_SEARCH_LONG_\***: ACTION_SEARCH_LONG_PRESS
|
|
51
|
+
- **ACTION_SEND_\***: ACTION_SEND_MULTIPLE
|
|
52
|
+
- **ACTION_SET_\***: ACTION_SET_WALLPAPER
|
|
53
|
+
- **ACTION_SYSTEM_\***: ACTION_SYSTEM_TUTORIAL
|
|
54
|
+
- **ACTION_TIME_\***: ACTION_TIME_CHANGED, ACTION_TIME_TICK
|
|
55
|
+
- **ACTION_UID_\***: ACTION_UID_REMOVED
|
|
56
|
+
- **ACTION_USER_\***: ACTION_USER_PRESENT
|
|
57
|
+
- **ACTION_VOICE_\***: ACTION_VOICE_COMMAND
|
|
58
|
+
- **ACTION_WALLPAPER_\***: ACTION_WALLPAPER_CHANGED
|
|
59
|
+
- **ACTION_WEB_\***: ACTION_WEB_SEARCH
|
|
60
|
+
- **CATEGORY_\***: CATEGORY_ALTERNATIVE, CATEGORY_BROWSABLE, CATEGORY_DEFAULT, CATEGORY_EMBED, CATEGORY_HOME, CATEGORY_INFO, CATEGORY_LAUNCHER, CATEGORY_MONKEY, CATEGORY_OPENABLE, CATEGORY_PREFERENCE, CATEGORY_TAB, CATEGORY_TEST, CATEGORY_ALARM, CATEGORY_CALL, CATEGORY_EMAIL, CATEGORY_ERROR, CATEGORY_EVENT, CATEGORY_MESSAGE, CATEGORY_PROGRESS, CATEGORY_PROMO, CATEGORY_RECOMMENDATION, CATEGORY_SERVICE, CATEGORY_SOCIAL, CATEGORY_STATUS, CATEGORY_TRANSPORT
|
|
61
|
+
- **CATEGORY_DEVELOPMENT_\***: CATEGORY_DEVELOPMENT_PREFERENCE
|
|
62
|
+
- **CATEGORY_FRAMEWORK_INSTRUMENTATION_\***: CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST
|
|
63
|
+
- **CATEGORY_SAMPLE_\***: CATEGORY_SAMPLE_CODE
|
|
64
|
+
- **CATEGORY_SELECTED_\***: CATEGORY_SELECTED_ALTERNATIVE
|
|
65
|
+
- **CATEGORY_UNIT_\***: CATEGORY_UNIT_TEST
|
|
66
|
+
- **DEFAULT_\***: DEFAULT_ALL, DEFAULT_LIGHTS, DEFAULT_SOUND, DEFAULT_VIBRATE
|
|
67
|
+
- **EXTRA_\***: EXTRA_BCC, EXTRA_CC, EXTRA_EMAIL, EXTRA_INTENT, EXTRA_REPLACING, EXTRA_STREAM, EXTRA_SUBJECT, EXTRA_TEMPLATE, EXTRA_TEXT, EXTRA_TITLE, EXTRA_UID
|
|
68
|
+
- **EXTRA_ALARM_\***: EXTRA_ALARM_COUNT
|
|
69
|
+
- **EXTRA_DATA_\***: EXTRA_DATA_REMOVED
|
|
70
|
+
- **EXTRA_DONT_KILL_\***: EXTRA_DONT_KILL_APP
|
|
71
|
+
- **EXTRA_KEY_\***: EXTRA_KEY_EVENT
|
|
72
|
+
- **EXTRA_PHONE_\***: EXTRA_PHONE_NUMBER
|
|
73
|
+
- **EXTRA_SHORTCUT_\***: EXTRA_SHORTCUT_ICON, EXTRA_SHORTCUT_INTENT, EXTRA_SHORTCUT_NAME
|
|
74
|
+
- **EXTRA_SHORTCUT_ICON_\***: EXTRA_SHORTCUT_ICON_RESOURCE
|
|
75
|
+
- **FILL_IN_\***: FILL_IN_ACTION, FILL_IN_CATEGORIES, FILL_IN_COMPONENT, FILL_IN_DATA, FILL_IN_PACKAGE
|
|
76
|
+
- **FLAG_\***: FLAG_IMMUTABLE, FLAG_MUTABLE, FLAG_INSISTENT
|
|
77
|
+
- **FLAG_ACTIVITY_BROUGHT_TO_\***: FLAG_ACTIVITY_BROUGHT_TO_FRONT
|
|
78
|
+
- **FLAG_ACTIVITY_CLEAR_\***: FLAG_ACTIVITY_CLEAR_TOP
|
|
79
|
+
- **FLAG_ACTIVITY_CLEAR_WHEN_TASK_\***: FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
|
|
80
|
+
- **FLAG_ACTIVITY_EXCLUDE_FROM_\***: FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
|
|
81
|
+
- **FLAG_ACTIVITY_FORWARD_\***: FLAG_ACTIVITY_FORWARD_RESULT
|
|
82
|
+
- **FLAG_ACTIVITY_LAUNCHED_FROM_\***: FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
|
|
83
|
+
- **FLAG_ACTIVITY_MULTIPLE_\***: FLAG_ACTIVITY_MULTIPLE_TASK
|
|
84
|
+
- **FLAG_ACTIVITY_NEW_\***: FLAG_ACTIVITY_NEW_TASK
|
|
85
|
+
- **FLAG_ACTIVITY_NO_\***: FLAG_ACTIVITY_NO_ANIMATION, FLAG_ACTIVITY_NO_HISTORY
|
|
86
|
+
- **FLAG_ACTIVITY_NO_USER_\***: FLAG_ACTIVITY_NO_USER_ACTION
|
|
87
|
+
- **FLAG_ACTIVITY_PREVIOUS_IS_\***: FLAG_ACTIVITY_PREVIOUS_IS_TOP
|
|
88
|
+
- **FLAG_ACTIVITY_REORDER_TO_\***: FLAG_ACTIVITY_REORDER_TO_FRONT
|
|
89
|
+
- **FLAG_ACTIVITY_RESET_TASK_IF_\***: FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
|
|
90
|
+
- **FLAG_ACTIVITY_SINGLE_\***: FLAG_ACTIVITY_SINGLE_TOP
|
|
91
|
+
- **FLAG_AUTO_\***: FLAG_AUTO_CANCEL
|
|
92
|
+
- **FLAG_CANCEL_\***: FLAG_CANCEL_CURRENT
|
|
93
|
+
- **FLAG_DEBUG_LOG_\***: FLAG_DEBUG_LOG_RESOLUTION
|
|
94
|
+
- **FLAG_FROM_\***: FLAG_FROM_BACKGROUND
|
|
95
|
+
- **FLAG_GRANT_READ_URI_\***: FLAG_GRANT_READ_URI_PERMISSION
|
|
96
|
+
- **FLAG_GRANT_WRITE_URI_\***: FLAG_GRANT_WRITE_URI_PERMISSION
|
|
97
|
+
- **FLAG_NO_\***: FLAG_NO_CREATE, FLAG_NO_CLEAR
|
|
98
|
+
- **FLAG_ONE_\***: FLAG_ONE_SHOT
|
|
99
|
+
- **FLAG_ONGOING_\***: FLAG_ONGOING_EVENT
|
|
100
|
+
- **FLAG_ONLY_ALERT_\***: FLAG_ONLY_ALERT_ONCE
|
|
101
|
+
- **FLAG_RECEIVER_REGISTERED_\***: FLAG_RECEIVER_REGISTERED_ONLY
|
|
102
|
+
- **FLAG_SHOW_\***: FLAG_SHOW_LIGHTS
|
|
103
|
+
- **FLAG_UPDATE_\***: FLAG_UPDATE_CURRENT
|
|
104
|
+
- **FOREGROUND_SERVICE_TYPE_\***: FOREGROUND_SERVICE_TYPE_MANIFEST, FOREGROUND_SERVICE_TYPE_NONE, FOREGROUND_SERVICE_TYPE_LOCATION, FOREGROUND_SERVICE_TYPE_MICROPHONE, FOREGROUND_SERVICE_TYPE_CAMERA
|
|
105
|
+
- **FOREGROUND_SERVICE_TYPE_CONNECTED_\***: FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
|
|
106
|
+
- **FOREGROUND_SERVICE_TYPE_MEDIA_\***: FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK, FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION
|
|
107
|
+
- **FOREGROUND_SERVICE_TYPE_PHONE_\***: FOREGROUND_SERVICE_TYPE_PHONE_CALL
|
|
108
|
+
- **IMPORTANCE_\***: IMPORTANCE_DEFAULT, IMPORTANCE_HIGH, IMPORTANCE_LOW, IMPORTANCE_MAX, IMPORTANCE_MIN, IMPORTANCE_NONE, IMPORTANCE_UNSPECIFIED
|
|
109
|
+
- **NAVIGATION_MODE_\***: NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_TABS
|
|
110
|
+
- **PENDING_INTENT_FOR_\***: PENDING_INTENT_FOR_ACTIVITY, PENDING_INTENT_FOR_BROADCAST, PENDING_INTENT_FOR_SERVICE
|
|
111
|
+
- **PENDING_INTENT_MAX_\***: PENDING_INTENT_MAX_VALUE
|
|
112
|
+
- **PRIORITY_\***: PRIORITY_MAX, PRIORITY_HIGH, PRIORITY_DEFAULT, PRIORITY_LOW, PRIORITY_MIN
|
|
113
|
+
- **RESULT_\***: RESULT_CANCELED, RESULT_OK
|
|
114
|
+
- **RESULT_FIRST_\***: RESULT_FIRST_USER
|
|
115
|
+
- **SCREEN_ORIENTATION_\***: SCREEN_ORIENTATION_BEHIND, SCREEN_ORIENTATION_LANDSCAPE, SCREEN_ORIENTATION_NOSENSOR, SCREEN_ORIENTATION_PORTRAIT, SCREEN_ORIENTATION_SENSOR, SCREEN_ORIENTATION_UNSPECIFIED, SCREEN_ORIENTATION_USER
|
|
116
|
+
- **SHOW_AS_ACTION_\***: SHOW_AS_ACTION_ALWAYS, SHOW_AS_ACTION_NEVER
|
|
117
|
+
- **SHOW_AS_ACTION_COLLAPSE_ACTION_\***: SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW
|
|
118
|
+
- **SHOW_AS_ACTION_IF_\***: SHOW_AS_ACTION_IF_ROOM
|
|
119
|
+
- **SHOW_AS_ACTION_WITH_\***: SHOW_AS_ACTION_WITH_TEXT
|
|
120
|
+
- **START_NOT_\***: START_NOT_STICKY
|
|
121
|
+
- **START_REDELIVER_\***: START_REDELIVER_INTENT
|
|
122
|
+
- **STREAM_\***: STREAM_ALARM, STREAM_DEFAULT, STREAM_MUSIC, STREAM_NOTIFICATION, STREAM_RING, STREAM_SYSTEM
|
|
123
|
+
- **STREAM_VOICE_\***: STREAM_VOICE_CALL
|
|
124
|
+
- **TILE_STATE_\***: TILE_STATE_UNAVAILABLE, TILE_STATE_INACTIVE, TILE_STATE_ACTIVE
|
|
125
|
+
- **URI_INTENT_\***: URI_INTENT_SCHEME
|
|
126
|
+
- **VISIBILITY_\***: VISIBILITY_PRIVATE, VISIBILITY_PUBLIC, VISIBILITY_SECRET
|
|
127
|
+
- **WAKE_LOCK_\***: WAKE_LOCK_PARTIAL, WAKE_LOCK_FULL
|
|
128
|
+
- **WAKE_LOCK_ACQUIRE_CAUSES_\***: WAKE_LOCK_ACQUIRE_CAUSES_WAKEUP
|
|
129
|
+
- **WAKE_LOCK_ON_AFTER_\***: WAKE_LOCK_ON_AFTER_RELEASE
|
|
130
|
+
- **WAKE_LOCK_SCREEN_\***: WAKE_LOCK_SCREEN_DIM, WAKE_LOCK_SCREEN_BRIGHT
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Methods (20)
|
|
134
|
+
| Method | Returns | Platform | Description |
|
|
135
|
+
|--------|---------|----------|-------------|
|
|
136
|
+
| createIntentChooser(intent, title) | Ti.Android.Intent | android | Creates an activity chooser intent, used to allow… |
|
|
137
|
+
| createPendingIntent(parameters) | Ti.Android.PendingIntent | android | Creates a [PendingIntent](Titanium.Android.Pendin… |
|
|
138
|
+
| createService(intent) | Ti.Android.Service | android | Create a <Titanium.Android.Service> so you can st… |
|
|
139
|
+
| createServiceIntent(options) | Ti.Android.Intent | android | Create an `Intent` to be used to start a service. |
|
|
140
|
+
| hasPermission(permission) | Boolean | android | Returns `true` if the app has permission access. |
|
|
141
|
+
| requestPermissions(permissions, callback) | Promise<RequestPermissionAccessResult> | android | Request for permission access. |
|
|
142
|
+
| isServiceRunning(intent) | Boolean | android | Check on state of Service. |
|
|
143
|
+
| registerBroadcastReceiver(broadcastReceiver, actions) | void | android | Registers broadcast receiver for the given action… |
|
|
144
|
+
| unregisterBroadcastReceiver(broadcastReceiver) | void | android | Unregisters a broadcast receiver. |
|
|
145
|
+
| startService(intent) | void | android | Starts a simple service. |
|
|
146
|
+
| stopService(intent) | void | android | Stop a simple service that was started with `star… |
|
|
147
|
+
| createBroadcastIntent(parameters) | Ti.Android.Intent | android | Create an `Intent` to be used in a broadcast. |
|
|
148
|
+
| createBigPictureStyle(parameters) | Ti.Android.BigPictureStyle | android | Creates and returns an instance of <Titanium.Andr… |
|
|
149
|
+
| createBigTextStyle(parameters) | Ti.Android.BigTextStyle | android | Creates and returns an instance of <Titanium.Andr… |
|
|
150
|
+
| createBroadcastReceiver(parameters) | Ti.Android.BroadcastReceiver | android | Creates and returns an instance of <Titanium.Andr… |
|
|
151
|
+
| createIntent(parameters) | Ti.Android.Intent | android | Creates and returns an instance of <Titanium.Andr… |
|
|
152
|
+
| createNotification(parameters) | Ti.Android.Notification | android | Creates and returns an instance of <Titanium.Andr… |
|
|
153
|
+
| createNotificationChannel(parameters) | Ti.Android.NotificationChannel | android | Creates and returns an instance of <Titanium.Andr… |
|
|
154
|
+
| createQuickSettingsService(parameters) | Ti.Android.QuickSettingsService | android | Creates and returns an instance of <Titanium.Andr… |
|
|
155
|
+
| createRemoteViews(parameters) | Ti.Android.RemoteViews | android | Creates and returns an instance of <Titanium.Andr… |
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Ti.Android.ActionBar
|
|
161
|
+
> An action bar is a window feature that identifies the application and user location, and provides user actions and navigation modes.
|
|
162
|
+
> Extends Ti.Proxy
|
|
163
|
+
> Platforms: android
|
|
164
|
+
|
|
165
|
+
### Properties (unique: 12/15)
|
|
166
|
+
| Property | Type | Platform | Description |
|
|
167
|
+
|----------|------|----------|-------------|
|
|
168
|
+
| backgroundImage | String | android | The background image for the action bar, specifie… |
|
|
169
|
+
| displayHomeAsUp | Boolean | android | Displays an "up" affordance on the "home" area of… |
|
|
170
|
+
| homeAsUpIndicator | String \| Number \| Ti.Blob | android | Sets a custom icon for the "home" button in the c… |
|
|
171
|
+
| homeButtonEnabled | Boolean | android | Enable or disable the "home" button in the corner… |
|
|
172
|
+
| icon | String \| Number \| Ti.Blob | android | Sets the application icon displayed in the "home"… |
|
|
173
|
+
| logo | String \| Number \| Ti.Blob | android | Sets the application logo displayed in the "home"… |
|
|
174
|
+
| navigationMode | Number | android | Controls the navigation mode. |
|
|
175
|
+
| onHomeIconItemSelected | Callback | android | Callback function called when the home icon is cl… |
|
|
176
|
+
| subtitle | String | android | Sets the subtitle of the action bar. |
|
|
177
|
+
| title | String | android | Sets the title of the action bar. |
|
|
178
|
+
| customView | Ti.UI.View | android | Sets a view to be used for a custom navigation mo… |
|
|
179
|
+
| visible | Boolean | android | Gets or sets the action bar visibility state. |
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### Methods (4)
|
|
183
|
+
| Method | Returns | Platform | Description |
|
|
184
|
+
|--------|---------|----------|-------------|
|
|
185
|
+
| hide(—) | void | android | Hides the action bar if it is currently showing. |
|
|
186
|
+
| setDisplayShowHomeEnabled(show) | void | android | Shows or hides the action bar home icon |
|
|
187
|
+
| setDisplayShowTitleEnabled(show) | void | android | Shows or hides the action bar title/subtitle |
|
|
188
|
+
| show(—) | void | android | Shows the action bar if it is currently hidden. |
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Ti.Android.Activity
|
|
194
|
+
> The Titanium binding of an Android Activity.
|
|
195
|
+
> Extends Ti.Proxy
|
|
196
|
+
> Platforms: android
|
|
197
|
+
|
|
198
|
+
### Properties (unique: 13/16)
|
|
199
|
+
| Property | Type | Platform | Description |
|
|
200
|
+
|----------|------|----------|-------------|
|
|
201
|
+
| actionBar | Ti.Android.ActionBar | android | The action bar for this activity. |
|
|
202
|
+
| intent | Ti.Android.Intent | android | The last `Intent` received by this activity. |
|
|
203
|
+
| onCreate | Callback<ActivityLifecycleCallbackObject> | android | Callback function called when the Android activit… |
|
|
204
|
+
| onCreateOptionsMenu | Callback<OptionsMenuCallbackObject> | android | Callback function called to initially create an A… |
|
|
205
|
+
| onDestroy | Callback<ActivityLifecycleCallbackObject> | android | Callback function called when the Android activit… |
|
|
206
|
+
| onPause | Callback<ActivityLifecycleCallbackObject> | android | Callback function called when the Android activit… |
|
|
207
|
+
| onPrepareOptionsMenu | Callback<OptionsMenuCallbackObject> | android | Callback function called to prepare an options me… |
|
|
208
|
+
| onRestart | Callback<ActivityLifecycleCallbackObject> | android | Callback function called when the Android activit… |
|
|
209
|
+
| onResume | Callback<ActivityLifecycleCallbackObject> | android | Callback function called when the Android activit… |
|
|
210
|
+
| onStart | Callback<ActivityLifecycleCallbackObject> | android | Callback function called when the Android activit… |
|
|
211
|
+
| onStop | Callback<ActivityLifecycleCallbackObject> | android | Callback function called when the Android activit… |
|
|
212
|
+
| requestedOrientation | Number | android | Specifies a specific orientation for this activit… |
|
|
213
|
+
| supportToolbar | Ti.UI.Toolbar | android | Toolbar instance that serves as ActionBar |
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### Methods (11)
|
|
217
|
+
| Method | Returns | Platform | Description |
|
|
218
|
+
|--------|---------|----------|-------------|
|
|
219
|
+
| finish(—) | void | android | Closes this activity. |
|
|
220
|
+
| getString(resourceId, format) | String | android | Gets an Android or Application string using the s… |
|
|
221
|
+
| invalidateOptionsMenu(—) | void | android | Declares that the option menu has changed and sho… |
|
|
222
|
+
| setRequestedOrientation(orientation) | void | android | Sets the requested Activity orientation. |
|
|
223
|
+
| setResult(resultCode, intent) | void | android | Sets the result of this activity using an `Intent… |
|
|
224
|
+
| setSupportActionBar(toolbar) | void | android | Sets a toolbar instance to be used as an ActionBa… |
|
|
225
|
+
| startActivity(intent) | void | android | Starts a new activity, using the passed in `Inten… |
|
|
226
|
+
| startActivityForResult(intent, callback) | void | android | The same as `startActivity`, but also accepts a c… |
|
|
227
|
+
| openOptionsMenu(—) | void | android | Programmatically opens the options menu. |
|
|
228
|
+
| sendBroadcast(intent) | void | android | Broadcast the passed in `Intent` to all `Broadcas… |
|
|
229
|
+
| sendBroadcastWithPermission(intent, receiverPermission) | void | android | Broadcast the passed in `Intent` to all `Broadcas… |
|
|
230
|
+
|
|
231
|
+
### Events (4)
|
|
232
|
+
| Event | Platform | Description |
|
|
233
|
+
|-------|----------|-------------|
|
|
234
|
+
| newintent | android | Fired when the activity is already running and an intent different than the one… |
|
|
235
|
+
| onIntent | android | Fired when the activity is launched. |
|
|
236
|
+
| userleavehint | android | Fired when the activity is about to go into the background as a result of user … |
|
|
237
|
+
| userinteraction | android | Called whenever a key, touch, or trackball event is dispatched to the activity. |
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Ti.Android.BigPictureStyle
|
|
242
|
+
> Helper object for generating large-format notifications that include a large image attachment.
|
|
243
|
+
> Extends Ti.Proxy
|
|
244
|
+
> Platforms: android
|
|
245
|
+
|
|
246
|
+
### Properties (unique: 5/8)
|
|
247
|
+
| Property | Type | Platform | Description |
|
|
248
|
+
|----------|------|----------|-------------|
|
|
249
|
+
| bigLargeIcon | Number \| String | android | Override the <Titanium.Android.Notification.large… |
|
|
250
|
+
| bigPicture | Number \| String \| Ti.Blob \| Ti.Filesystem.File | android | Provide the bitmap to be used as the payload for … |
|
|
251
|
+
| bigContentTitle | String | android | Overrides <Titanium.Android.Notification.contentT… |
|
|
252
|
+
| decodeRetries | Number | android | Number of times to retry decoding the bitmap at b… |
|
|
253
|
+
| summaryText | String | android | Set the first line of text after the detail secti… |
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Ti.Android.BigTextStyle
|
|
261
|
+
> Helper object for generating large-format notifications that include a lot of text.
|
|
262
|
+
> Extends Ti.Proxy
|
|
263
|
+
> Platforms: android
|
|
264
|
+
|
|
265
|
+
### Properties (unique: 3/6)
|
|
266
|
+
| Property | Type | Platform | Description |
|
|
267
|
+
|----------|------|----------|-------------|
|
|
268
|
+
| bigText | String | android | Sets the longer text to be displayed in the big f… |
|
|
269
|
+
| bigContentTitle | String | android | Overrides <Titanium.Android.Notification.contentT… |
|
|
270
|
+
| summaryText | String | android | Set the first line of text after the detail secti… |
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Ti.Android.BroadcastReceiver
|
|
278
|
+
> Monitor and handle Android system broadcasts.
|
|
279
|
+
> Extends Ti.Proxy
|
|
280
|
+
> Platforms: android
|
|
281
|
+
|
|
282
|
+
### Properties (unique: 2/5)
|
|
283
|
+
| Property | Type | Platform | Description |
|
|
284
|
+
|----------|------|----------|-------------|
|
|
285
|
+
| onReceived | Callback<Object> | android | The function called when a broadcast is received. |
|
|
286
|
+
| url | String | android | URL of the JavaScript file to handle the broadcas… |
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Ti.Android.Intent
|
|
294
|
+
> Message objects passed between Android application components.
|
|
295
|
+
> Extends Ti.Proxy
|
|
296
|
+
> Platforms: android
|
|
297
|
+
|
|
298
|
+
### Properties (unique: 7/10)
|
|
299
|
+
| Property | Type | Platform | Description |
|
|
300
|
+
|----------|------|----------|-------------|
|
|
301
|
+
| action | String | android | The action associated with this intent. |
|
|
302
|
+
| className | String | android | The Java class name of the activity associated wi… |
|
|
303
|
+
| data | String | android | The Intent's Data URI. |
|
|
304
|
+
| flags | Number | android | Intent flags. |
|
|
305
|
+
| packageName | String | android | The fully-qualified Java package name of the acti… |
|
|
306
|
+
| type | String | android | The MIME type for this Intent. |
|
|
307
|
+
| url | String | android | The URL to a Titanium JavaScript Activity. |
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
### Methods (12)
|
|
311
|
+
| Method | Returns | Platform | Description |
|
|
312
|
+
|--------|---------|----------|-------------|
|
|
313
|
+
| addCategory(name) | void | android | Adds a category to this Intent. |
|
|
314
|
+
| addFlags(flags) | void | android | Adds to the existing flags on the `Intent`. |
|
|
315
|
+
| getBlobExtra(name) | Ti.Blob | android | Get a <Titanium.Blob> property from this `Intent`. |
|
|
316
|
+
| getBooleanExtra(name, default) | Boolean | android | Get a boolean property from this Intent. |
|
|
317
|
+
| getData(—) | String | android | Get the Data URI from this `Intent`. |
|
|
318
|
+
| getDoubleExtra(name, default) | Number | android | Get a double property from this `Intent`. |
|
|
319
|
+
| getIntExtra(name, default) | Number | android | Get an integer property from this `Intent`. |
|
|
320
|
+
| getLongExtra(name, default) | Number | android | Get a long property from this `Intent`. |
|
|
321
|
+
| getStringExtra(name) | String | android | Get a string property from this `Intent`. |
|
|
322
|
+
| hasExtra(name) | Boolean | android | Returns `true` if this `Intent` has the specified… |
|
|
323
|
+
| putExtra(name, value) | void | android | Puts an extra property on this `Intent`. |
|
|
324
|
+
| putExtraUri(name, value) | void | android | Put a URI property on this `Intent` (useful for <… |
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## Ti.Android.Menu
|
|
330
|
+
> The Titanium binding of an Android Options Menu.
|
|
331
|
+
> Extends Ti.Proxy
|
|
332
|
+
> Platforms: android
|
|
333
|
+
|
|
334
|
+
### Properties (unique: 1/4)
|
|
335
|
+
| Property | Type | Platform | Description |
|
|
336
|
+
|----------|------|----------|-------------|
|
|
337
|
+
| items | Array<Titanium.Android.MenuItem> | android | Array of menu items in this menu. |
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
### Methods (11)
|
|
341
|
+
| Method | Returns | Platform | Description |
|
|
342
|
+
|--------|---------|----------|-------------|
|
|
343
|
+
| add(options) | Ti.Android.MenuItem | android | Creates a <Titanium.Android.MenuItem> from the pa… |
|
|
344
|
+
| clear(—) | void | android | Clears all items from this menu. |
|
|
345
|
+
| close(—) | void | android | Closes the menu, if visible. |
|
|
346
|
+
| findItem(item) | Ti.Android.MenuItem | android | Locates a [MenuItem](Titanium.Android.MenuItem) i… |
|
|
347
|
+
| getItem(index) | Ti.Android.MenuItem | android | Returns the [MenuItem](Titanium.Android.MenuItem)… |
|
|
348
|
+
| hasVisibleItems(—) | Boolean | android | Returns `true` if this menu has visible items. |
|
|
349
|
+
| removeGroup(groupId) | void | android | Removes all menu items with the specified [groupI… |
|
|
350
|
+
| removeItem(itemId) | void | android | Removes a specific [MenuItem](Titanium.Android.Me… |
|
|
351
|
+
| setGroupEnabled(groupId, enabled) | void | android | Enables or disables a group of menu items identif… |
|
|
352
|
+
| setGroupVisible(groupId, visible) | void | android | Shows or hides a group of menu items identified b… |
|
|
353
|
+
| size(—) | Number | android | Number of items in this menu. |
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## Ti.Android.MenuItem
|
|
359
|
+
> The Titanium binding of an Android menu item.
|
|
360
|
+
> Extends Ti.Proxy
|
|
361
|
+
> Platforms: android
|
|
362
|
+
|
|
363
|
+
### Properties (unique: 16/19)
|
|
364
|
+
| Property | Type | Platform | Description |
|
|
365
|
+
|----------|------|----------|-------------|
|
|
366
|
+
| accessibilityHint | String | android | Briefly describes what performing an action (such… |
|
|
367
|
+
| accessibilityLabel | String | android | A succinct label identifying the view for the dev… |
|
|
368
|
+
| accessibilityValue | String | android | A string describing the value (if any) of the vie… |
|
|
369
|
+
| actionView | Ti.UI.View | android | Custom view that replaces the default menu item b… |
|
|
370
|
+
| actionViewExpanded | Boolean | android | True if this menu item's action view has been exp… |
|
|
371
|
+
| checkable | Boolean | android | Determines if the item can be checked. |
|
|
372
|
+
| checked | Boolean | android | Determines if the item is checked. |
|
|
373
|
+
| enabled | Boolean | android | Determines if the item is enabled. |
|
|
374
|
+
| groupId | Number | android | Group ID for this item. |
|
|
375
|
+
| icon | Number \| String | android | Icon to display for the this menu item. |
|
|
376
|
+
| itemId | Number | android | Item ID for this item. |
|
|
377
|
+
| order | Number | android | Integer used for controlling the category and sor… |
|
|
378
|
+
| showAsAction | Number | android | A set of flags that controls how this item appear… |
|
|
379
|
+
| title | String | android | Title of the item. |
|
|
380
|
+
| titleCondensed | String | android | Shortened version of the item's title. |
|
|
381
|
+
| visible | Boolean | android | Determines whether the menu item is visible. |
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
### Methods (11)
|
|
385
|
+
| Method | Returns | Platform | Description |
|
|
386
|
+
|--------|---------|----------|-------------|
|
|
387
|
+
| collapseActionView(—) | void | android | Collapse the action view associated with this men… |
|
|
388
|
+
| expandActionView(—) | void | android | Expand the action view associated with this menu … |
|
|
389
|
+
| isActionViewExpanded(—) | Boolean | android | Returns the [actionViewExpanded](Titanium.Android… |
|
|
390
|
+
| isCheckable(—) | Boolean | android | Returns the [checkable](Titanium.Android.MenuItem… |
|
|
391
|
+
| isChecked(—) | Boolean | android | Returns the [checked](Titanium.Android.MenuItem.c… |
|
|
392
|
+
| isEnabled(—) | Boolean | android | Returns the [enabled](Titanium.Android.MenuItem.e… |
|
|
393
|
+
| isVisible(—) | Boolean | android | Returns the [visible](Titanium.Android.MenuItem.v… |
|
|
394
|
+
| setCheckable(checkable) | void | android | Sets the [checkable](Titanium.Android.MenuItem.ch… |
|
|
395
|
+
| setChecked(enabled) | void | android | Sets the [checked](Titanium.Android.MenuItem.chec… |
|
|
396
|
+
| setEnabled(enabled) | void | android | Sets the [enabled](Titanium.Android.MenuItem.enab… |
|
|
397
|
+
| setVisible(visible) | void | android | Sets the [visible](Titanium.Android.MenuItem.visi… |
|
|
398
|
+
|
|
399
|
+
### Events (3)
|
|
400
|
+
| Event | Platform | Description |
|
|
401
|
+
|-------|----------|-------------|
|
|
402
|
+
| click | android | Fired when the user clicks the menu item. |
|
|
403
|
+
| expand | android | Fired when the action view has been expanded. |
|
|
404
|
+
| collapse | android | Fired when the action view has been collapsed. |
|
|
405
|
+
|
|
406
|
+
---
|
|
407
|
+
|
|
408
|
+
## Ti.Android.Notification
|
|
409
|
+
> UI notifications that can be sent while the application is in the background.
|
|
410
|
+
> Extends Ti.Proxy
|
|
411
|
+
> Platforms: android
|
|
412
|
+
|
|
413
|
+
### Properties (unique: 26/29)
|
|
414
|
+
| Property | Type | Platform | Description |
|
|
415
|
+
|----------|------|----------|-------------|
|
|
416
|
+
| audioStreamType | Number | android | The audio stream type to use when playing the sou… |
|
|
417
|
+
| category | String | android | Sets the notification's category. |
|
|
418
|
+
| channelId | String | android | The channel id specified for the notification. |
|
|
419
|
+
| contentIntent | Ti.Android.PendingIntent | android | The `PendingIntent` to execute when the expanded … |
|
|
420
|
+
| contentText | String | android | Description text of the notification. |
|
|
421
|
+
| contentTitle | String | android | Title of the notification. |
|
|
422
|
+
| contentView | Ti.Android.RemoteViews | android | Custom layout to display in the notification. |
|
|
423
|
+
| defaults | Number | android | Specifies which values should be taken from the d… |
|
|
424
|
+
| deleteIntent | Ti.Android.PendingIntent | android | The `PendingIntent` to execute when the status en… |
|
|
425
|
+
| flags | Number | android | Set of flags for the notification. |
|
|
426
|
+
| groupKey | String | android | The group key that the notification will belong t… |
|
|
427
|
+
| groupSummary | Boolean | android | Specifies if this is a group summary notification. |
|
|
428
|
+
| icon | Number \| String | android | Notification icon, specified as an Android resour… |
|
|
429
|
+
| largeIcon | Number \| String | android | Add a large icon to the notification (and the tic… |
|
|
430
|
+
| color | String | android | Accent color used behind icon. |
|
|
431
|
+
| ledARGB | Number | android | The color for the LED to blink. |
|
|
432
|
+
| ledOffMS | Number | android | The number of milliseconds for the LED to be off … |
|
|
433
|
+
| ledOnMS | Number | android | The number of milliseconds for the LED to be on w… |
|
|
434
|
+
| number | Number | android | The number of events that this notification repre… |
|
|
435
|
+
| priority | Number | android | Sets the priority of the notification. |
|
|
436
|
+
| sound | String | android | A URL to the sound to play. |
|
|
437
|
+
| style | Ti.Android.BigTextStyle \| Ti.Android.BigPictureStyle | android | Style object that can apply a rich notification s… |
|
|
438
|
+
| tickerText | String | android | Text to scroll across the screen when this item i… |
|
|
439
|
+
| visibility | Number | android | Allows user to conceal private information of the… |
|
|
440
|
+
| wakeLock | wakeLockOptions | android | Will wake up the device for the given time (in mi… |
|
|
441
|
+
| when | Date \| Number | android | The timestamp for the notification (defaults to t… |
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
### Methods (3)
|
|
445
|
+
| Method | Returns | Platform | Description |
|
|
446
|
+
|--------|---------|----------|-------------|
|
|
447
|
+
| setLatestEventInfo(contentTitle, contentText, contentIntent) | void | android | Sets the latest event info using the built-in not… |
|
|
448
|
+
| setProgress(max, progress, indeterminate) | void | android | Set the progress this notification represents. |
|
|
449
|
+
| addAction(icon, title, intent) | void | android | Add an action button to the notification |
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
---
|
|
453
|
+
|
|
454
|
+
## Ti.Android.NotificationChannel
|
|
455
|
+
> Module for notification channels.
|
|
456
|
+
> Extends Ti.Proxy
|
|
457
|
+
> Platforms: android
|
|
458
|
+
|
|
459
|
+
### Properties (unique: 13/16)
|
|
460
|
+
| Property | Type | Platform | Description |
|
|
461
|
+
|----------|------|----------|-------------|
|
|
462
|
+
| bypassDnd | Boolean | android | Whether or not notifications posted to this chann… |
|
|
463
|
+
| description | String | android | User visible description of this channel. |
|
|
464
|
+
| enableLights | Boolean | android | Whether notifications posted to this channel shou… |
|
|
465
|
+
| enableVibration | Boolean | android | Whether notification posted to this channel shoul… |
|
|
466
|
+
| groupId | String | android | Group id this channel belongs to. |
|
|
467
|
+
| importance | Number | android | The audio stream type to use when playing the sou… |
|
|
468
|
+
| id | String | android | The channel id specified for the notification cha… |
|
|
469
|
+
| lightColor | Number | android | The notification light color for notifications po… |
|
|
470
|
+
| lockscreenVisibility | Number | android | Whether or not notifications posted to this chann… |
|
|
471
|
+
| name | String | android | The visible name of this channel. The recommended… |
|
|
472
|
+
| showBadge | Boolean | android | Whether notifications posted to this channel can … |
|
|
473
|
+
| sound | String | android | A URL to the sound to play. |
|
|
474
|
+
| vibratePattern | Array<Number> | android | The vibration pattern for notifications posted to… |
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
---
|
|
480
|
+
|
|
481
|
+
## Ti.Android.NotificationManager
|
|
482
|
+
> Module for managing notifications.
|
|
483
|
+
> Extends Ti.Module
|
|
484
|
+
> Platforms: android
|
|
485
|
+
> Type: module
|
|
486
|
+
|
|
487
|
+
### Properties (unique: 1/15)
|
|
488
|
+
| Property | Type | Platform | Description |
|
|
489
|
+
|----------|------|----------|-------------|
|
|
490
|
+
| notificationChannels | Dictionary<NotificationChannels> | android | Returns an object with the ID and name of the not… |
|
|
491
|
+
|
|
492
|
+
### Constants (11)
|
|
493
|
+
- **DEFAULT_\***: DEFAULT_ALL, DEFAULT_LIGHTS, DEFAULT_SOUND, DEFAULT_VIBRATE
|
|
494
|
+
- **FLAG_\***: FLAG_INSISTENT
|
|
495
|
+
- **FLAG_AUTO_\***: FLAG_AUTO_CANCEL
|
|
496
|
+
- **FLAG_NO_\***: FLAG_NO_CLEAR
|
|
497
|
+
- **FLAG_ONGOING_\***: FLAG_ONGOING_EVENT
|
|
498
|
+
- **FLAG_ONLY_ALERT_\***: FLAG_ONLY_ALERT_ONCE
|
|
499
|
+
- **FLAG_SHOW_\***: FLAG_SHOW_LIGHTS
|
|
500
|
+
- **STREAM_\***: STREAM_DEFAULT
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
### Methods (6)
|
|
504
|
+
| Method | Returns | Platform | Description |
|
|
505
|
+
|--------|---------|----------|-------------|
|
|
506
|
+
| cancel(id) | void | android | Cancels a previously displayed notification. |
|
|
507
|
+
| cancelAll(—) | void | android | Cancels all previously displayed notifications. |
|
|
508
|
+
| notify(id, notification) | void | android | Adds a persistent notification to the status bar. |
|
|
509
|
+
| createNotificationChannel(parameters) | Ti.Android.NotificationChannel | android | Create a notification channel. |
|
|
510
|
+
| deleteNotificationChannel(id) | void | android | Deletes a notification channel. |
|
|
511
|
+
| areNotificationsEnabled(—) | Boolean | android | Returns whether showing notifications is enabled … |
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
---
|
|
515
|
+
|
|
516
|
+
## Ti.Android.PendingIntent
|
|
517
|
+
> The Titanium binding of an Android `PendingIntent`.
|
|
518
|
+
> Extends Ti.Proxy
|
|
519
|
+
> Platforms: android
|
|
520
|
+
|
|
521
|
+
### Properties (unique: 3/6)
|
|
522
|
+
| Property | Type | Platform | Description |
|
|
523
|
+
|----------|------|----------|-------------|
|
|
524
|
+
| flags | Number | android | Flags used for creating the Pending Intent. |
|
|
525
|
+
| intent | Ti.Android.Intent | android | The intent data to pass to the [Activity](Titaniu… |
|
|
526
|
+
| updateCurrentIntent | Boolean | android | If this property is true, flag <Titanium.Android.… |
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
## Ti.Android.QuickSettingsService
|
|
534
|
+
> Android service for creating custom quick settings tiles and handling user's interaction with them.
|
|
535
|
+
> Extends Ti.Android.Service
|
|
536
|
+
> Platforms: android
|
|
537
|
+
|
|
538
|
+
### Properties (unique: 3/8)
|
|
539
|
+
| Property | Type | Platform | Description |
|
|
540
|
+
|----------|------|----------|-------------|
|
|
541
|
+
| icon | String \| Ti.Blob \| Ti.Filesystem.File | android | Changes the Tile's icon. |
|
|
542
|
+
| state | Number | android | Sets the state of the Tile. |
|
|
543
|
+
| label | String | android | The Tile's label. |
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
### Methods (12)
|
|
547
|
+
| Method | Returns | Platform | Description |
|
|
548
|
+
|--------|---------|----------|-------------|
|
|
549
|
+
| updateTile(—) | void | android | Applies current tile's properties. |
|
|
550
|
+
| setIcon(icon) | void | android | Changes the Tile's icon. |
|
|
551
|
+
| setState(state) | void | android | Sets the state of the Tile. |
|
|
552
|
+
| setLabel(label) | void | android | Changes the Tile's label. |
|
|
553
|
+
| getIcon(—) | String \| Ti.Blob \| Ti.Filesystem.File | android | Returns the Tile's current icon. |
|
|
554
|
+
| getState(—) | Number | android | Returns the Tile's current state. |
|
|
555
|
+
| getLabel(—) | String | android | Returns the Tile's current label. |
|
|
556
|
+
| isLocked(—) | Boolean | android | Returns 'true' if the device is currently locked,… |
|
|
557
|
+
| isSecure(—) | Boolean | android | Returns 'true' if the device is in secure state, … |
|
|
558
|
+
| showDialog(options) | void | android | Opens an Alert dialog. |
|
|
559
|
+
| startActivityAndCollapse(intent) | void | android | Collapses the quick settings menu and starts an a… |
|
|
560
|
+
| unlockAndRun(jsCode) | void | android | Prompts the user to unlock the device and runs th… |
|
|
561
|
+
|
|
562
|
+
### Events (9)
|
|
563
|
+
| Event | Platform | Description |
|
|
564
|
+
|-------|----------|-------------|
|
|
565
|
+
| startlistening | android | Tile is listening for events. |
|
|
566
|
+
| stoplistening | android | Tile has stopped listening for events. |
|
|
567
|
+
| tileadded | android | The Tile has been added in the quick menu. |
|
|
568
|
+
| tileremoved | android | The Tile has been removed from the quick menu. |
|
|
569
|
+
| tiledialogoptionselected | android | An item from the single choice menu has been selected. |
|
|
570
|
+
| tiledialogcancelled | android | Dispatched when the alert dialog has been cancelled. |
|
|
571
|
+
| tiledialogpositive | android | Dispatched when the positive (index 0) button has been clicked. |
|
|
572
|
+
| tiledialogneutral | android | Dispatched when the neutral (index 1) button has been clicked. |
|
|
573
|
+
| tiledialognegative | android | Dispatched when the negative (index 2) button has been clicked. |
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
## Ti.Android.R
|
|
578
|
+
> The Titanium binding of the native Android `R` class, giving access to Android system-wide resources or application resources.
|
|
579
|
+
> Extends Ti.Proxy
|
|
580
|
+
> Platforms: android
|
|
581
|
+
|
|
582
|
+
### Properties (unique: 22/25)
|
|
583
|
+
| Property | Type | Platform | Description |
|
|
584
|
+
|----------|------|----------|-------------|
|
|
585
|
+
| anim | Object | android | Animation resources. See [R.anim](https://develop… |
|
|
586
|
+
| animator | Object | android | Animator resources. See [R.animator](https://deve… |
|
|
587
|
+
| array | Object | android | Array resources. See [R.array](https://developer.… |
|
|
588
|
+
| attr | Object | android | Attribute resources. See [R.attr](https://develop… |
|
|
589
|
+
| bool | Object | android | Boolean resources. See [R.bool](https://developer… |
|
|
590
|
+
| color | Object | android | Color resources. See [R.color](https://developer.… |
|
|
591
|
+
| dimen | Object | android | Dimension resources. See [https://developer.andro… |
|
|
592
|
+
| drawable | Object | android | Drawable resources. See [R.drawable](https://deve… |
|
|
593
|
+
| fraction | Object | android | Fraction resources. See [R.fraction](https://deve… |
|
|
594
|
+
| id | Object | android | ID resources. See [R.id](https://developer.androi… |
|
|
595
|
+
| integer | Object | android | Integer resources. See [R.integer](https://develo… |
|
|
596
|
+
| interpolator | Object | android | Interpolator resources. See [R.fraction](https://… |
|
|
597
|
+
| layout | Object | android | Layout resources. See [R.layout](https://develope… |
|
|
598
|
+
| menu | Object | android | Menu resources. See [R.menu](https://developer.an… |
|
|
599
|
+
| mipmap | Object | android | Mipmap resources. See [R.mipmap](https://develope… |
|
|
600
|
+
| plurals | Object | android | Plurals resources. See [R.plurals](https://develo… |
|
|
601
|
+
| raw | Object | android | Raw resources. See [R.raw](https://developer.andr… |
|
|
602
|
+
| string | Object | android | String resources. See [R.string](https://develope… |
|
|
603
|
+
| style | Object | android | Style resources. See [R.style](https://developer.… |
|
|
604
|
+
| styleable | Object | android | Styleable resources. See [R.styleable](https://de… |
|
|
605
|
+
| transition | Object | android | Transition resources. See [R.transition](https://… |
|
|
606
|
+
| xml | Object | android | XML resources. See [R.xml](https://developer.andr… |
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
---
|
|
612
|
+
|
|
613
|
+
## Ti.Android.RemoteViews
|
|
614
|
+
> The Titanium binding of [Android RemoteViews](https://developer.android.com/reference/android/widget/RemoteViews.html).
|
|
615
|
+
> Extends Ti.Proxy
|
|
616
|
+
> Platforms: android
|
|
617
|
+
|
|
618
|
+
### Properties (unique: 2/5)
|
|
619
|
+
| Property | Type | Platform | Description |
|
|
620
|
+
|----------|------|----------|-------------|
|
|
621
|
+
| layoutId | Number | android | Android layout resource ID for the view to displa… |
|
|
622
|
+
| packageName | String | android | Package name that the resource ID lives in. Optio… |
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
### Methods (13)
|
|
626
|
+
| Method | Returns | Platform | Description |
|
|
627
|
+
|--------|---------|----------|-------------|
|
|
628
|
+
| setBoolean(viewId, methodName, value) | void | android | Calls a method taking a single `boolean` argument… |
|
|
629
|
+
| setChronometer(viewId, base, format, started) | void | android | Sets the base time, format string, and started fl… |
|
|
630
|
+
| setDouble(viewId, methodName, value) | void | android | Calls a method taking a single `double` argument … |
|
|
631
|
+
| setImageViewResource(viewId, srcId) | void | android | Sets the image for an image view in the remote vi… |
|
|
632
|
+
| setImageViewUri(viewId, uri) | void | android | Sets the image for an image view in the remote vi… |
|
|
633
|
+
| setInt(viewId, methodName, value) | void | android | Calls a method taking a single `int` argument on … |
|
|
634
|
+
| setOnClickPendingIntent(viewId, pendingIntent) | void | android | Launches a <Titanium.Android.PendingIntent> when … |
|
|
635
|
+
| setProgressBar(viewId, max, progress, indeterminate) | void | android | Sets the progress, max value, and indeterminate f… |
|
|
636
|
+
| setString(viewId, methodName, value) | void | android | Calls a method taking a single String argument on… |
|
|
637
|
+
| setTextColor(viewId, color) | void | android | Sets the text color of a view in the remote view … |
|
|
638
|
+
| setTextViewText(viewId, text) | void | android | Sets the text of a text view in the remote view h… |
|
|
639
|
+
| setUri(viewId, methodName, value) | void | android | Calls a method taking one URI on a view in the re… |
|
|
640
|
+
| setViewVisibility(viewId, visibility) | void | android | Sets the visibility of a view in the remote view … |
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
---
|
|
644
|
+
|
|
645
|
+
## Ti.Android.Service
|
|
646
|
+
> Android application component that executes in the background.
|
|
647
|
+
> Extends Ti.Proxy
|
|
648
|
+
> Platforms: android
|
|
649
|
+
|
|
650
|
+
### Properties (unique: 2/5)
|
|
651
|
+
| Property | Type | Platform | Description |
|
|
652
|
+
|----------|------|----------|-------------|
|
|
653
|
+
| intent | Ti.Android.Intent | android | The intent used to start or bind to the Service. |
|
|
654
|
+
| serviceInstanceId | Number | android | A service can be started more than once -- this n… |
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
### Methods (4)
|
|
658
|
+
| Method | Returns | Platform | Description |
|
|
659
|
+
|--------|---------|----------|-------------|
|
|
660
|
+
| foregroundCancel(—) | void | android | Puts the service into the "background" state and … |
|
|
661
|
+
| foregroundNotify(id, notification, foregroundServiceType) | void | android | Puts the service into the "foreground" state and … |
|
|
662
|
+
| start(—) | void | android | Starts the Service. |
|
|
663
|
+
| stop(—) | void | android | Stops this running instance of the Service. |
|
|
664
|
+
|
|
665
|
+
### Events (5)
|
|
666
|
+
| Event | Platform | Description |
|
|
667
|
+
|-------|----------|-------------|
|
|
668
|
+
| pause | android | For Javascript-based services that you create, `pause` fires after each time th… |
|
|
669
|
+
| resume | android | For JavaScript-based Services which you create, `resume` fires each time the Ja… |
|
|
670
|
+
| start | android | Fired when the bound service instance starts. |
|
|
671
|
+
| stop | android | Fired when the bound service instance stops. |
|
|
672
|
+
| taskremoved | android | Fired when the task that comes from the service's application has been removed. |
|
|
673
|
+
|
|
674
|
+
---
|
|
675
|
+
|