@maccesar/titools 2.10.1 → 3.1.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/AGENTS-VERCEL-RESEARCH.md +23 -12
- package/README.md +81 -182
- package/agents/ti-pro.md +8 -14
- package/lib/cleanup.js +13 -0
- package/lib/commands/skills.js +2 -1
- package/lib/config.js +9 -11
- package/lib/platform.js +1 -1
- package/package.json +2 -3
- package/skills/alloy-guides/SKILL.md +0 -190
- package/skills/alloy-guides/references/CLI_TASKS.md +0 -233
- package/skills/alloy-guides/references/CONCEPTS.md +0 -171
- package/skills/alloy-guides/references/CONTROLLERS.md +0 -279
- package/skills/alloy-guides/references/MODELS.md +0 -1214
- package/skills/alloy-guides/references/PURGETSS.md +0 -46
- package/skills/alloy-guides/references/VIEWS_DYNAMIC.md +0 -235
- package/skills/alloy-guides/references/VIEWS_STYLES.md +0 -375
- package/skills/alloy-guides/references/VIEWS_WITHOUT_CONTROLLERS.md +0 -102
- package/skills/alloy-guides/references/VIEWS_XML.md +0 -581
- package/skills/alloy-guides/references/WIDGETS.md +0 -160
- package/skills/alloy-howtos/SKILL.md +0 -181
- package/skills/alloy-howtos/references/best_practices.md +0 -121
- package/skills/alloy-howtos/references/cli_reference.md +0 -230
- package/skills/alloy-howtos/references/config_files.md +0 -158
- package/skills/alloy-howtos/references/custom_tags.md +0 -148
- package/skills/alloy-howtos/references/debugging_troubleshooting.md +0 -78
- package/skills/alloy-howtos/references/samples.md +0 -156
- package/skills/ti-api/SKILL.md +0 -109
- package/skills/ti-api/references/api-android.md +0 -675
- package/skills/ti-api/references/api-app-platform.md +0 -636
- package/skills/ti-api/references/api-core.md +0 -764
- package/skills/ti-api/references/api-data-network.md +0 -641
- package/skills/ti-api/references/api-media.md +0 -655
- package/skills/ti-api/references/api-modules-ble-bluetooth.md +0 -657
- package/skills/ti-api/references/api-modules-coremotion-urlsession.md +0 -411
- package/skills/ti-api/references/api-modules-map.md +0 -632
- package/skills/ti-api/references/api-modules-nfc.md +0 -725
- package/skills/ti-api/references/api-modules-social-misc.md +0 -526
- package/skills/ti-api/references/api-services.md +0 -700
- package/skills/ti-api/references/api-ui-android.md +0 -499
- package/skills/ti-api/references/api-ui-extras.md +0 -702
- package/skills/ti-api/references/api-ui-ios-animator.md +0 -378
- package/skills/ti-api/references/api-ui-ios.md +0 -756
- package/skills/ti-api/references/api-ui-lists.md +0 -581
- package/skills/ti-api/references/api-ui-text-input.md +0 -607
- package/skills/ti-api/references/api-ui-views.md +0 -572
- package/skills/ti-api/references/api-ui-windows-navigation.md +0 -676
- package/skills/ti-api/references/api-xml-global.md +0 -743
- package/skills/ti-guides/SKILL.md +0 -75
- package/skills/ti-guides/references/advanced-data-and-images.md +0 -155
- package/skills/ti-guides/references/android-manifest.md +0 -97
- package/skills/ti-guides/references/app-distribution.md +0 -373
- package/skills/ti-guides/references/application-frameworks.md +0 -366
- package/skills/ti-guides/references/cli-reference.md +0 -700
- package/skills/ti-guides/references/coding-best-practices.md +0 -150
- package/skills/ti-guides/references/commonjs-advanced.md +0 -279
- package/skills/ti-guides/references/hello-world.md +0 -99
- package/skills/ti-guides/references/hyperloop-native-access.md +0 -458
- package/skills/ti-guides/references/javascript-primer.md +0 -402
- package/skills/ti-guides/references/reserved-words.md +0 -36
- package/skills/ti-guides/references/resources.md +0 -172
- package/skills/ti-guides/references/style-and-conventions.md +0 -104
- package/skills/ti-guides/references/tiapp-config.md +0 -655
- package/skills/ti-howtos/SKILL.md +0 -143
- package/skills/ti-howtos/references/android-platform-deep-dives.md +0 -609
- package/skills/ti-howtos/references/automation-fastlane-appium.md +0 -96
- package/skills/ti-howtos/references/buffer-codec-streams.md +0 -162
- package/skills/ti-howtos/references/cross-platform-development.md +0 -358
- package/skills/ti-howtos/references/debugging-profiling.md +0 -473
- package/skills/ti-howtos/references/extending-titanium.md +0 -684
- package/skills/ti-howtos/references/google-maps-v2.md +0 -172
- package/skills/ti-howtos/references/ios-map-kit.md +0 -149
- package/skills/ti-howtos/references/ios-platform-deep-dives.md +0 -595
- package/skills/ti-howtos/references/local-data-sources.md +0 -310
- package/skills/ti-howtos/references/location-and-maps.md +0 -267
- package/skills/ti-howtos/references/media-apis.md +0 -268
- package/skills/ti-howtos/references/notification-services.md +0 -539
- package/skills/ti-howtos/references/remote-data-sources.md +0 -339
- package/skills/ti-howtos/references/tutorials.md +0 -552
- package/skills/ti-howtos/references/using-modules.md +0 -182
- package/skills/ti-howtos/references/web-content-integration.md +0 -288
- package/skills/ti-howtos/references/webpack-build-pipeline.md +0 -125
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
# Ti.UI.Android API Reference
|
|
2
|
-
|
|
3
|
-
## Ti.UI.Android
|
|
4
|
-
> The Android-specific UI capabilities. All properties, methods and events in this namespace will only work on Android systems. #### Drawer Layout The drawer-layout components acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from one or both vertical edges of the window. It is represented by a `centerView` and optional `leftView` and `rightView` components that can be swiped in and out with additional configuration and transitions. Learn more about drawer-layouts in it's dedicated <Titanium.UI.Android.DrawerLayout> docs.
|
|
5
|
-
> Extends Ti.Module
|
|
6
|
-
> Platforms: android
|
|
7
|
-
> Type: module
|
|
8
|
-
|
|
9
|
-
## Examples
|
|
10
|
-
|
|
11
|
-
### Android Preferences Example
|
|
12
|
-
|
|
13
|
-
Create preferences interface for the application.
|
|
14
|
-
|
|
15
|
-
#### `app.js`
|
|
16
|
-
``` js
|
|
17
|
-
const button = Ti.UI.createButton({
|
|
18
|
-
title: 'Click to Open Preferences'
|
|
19
|
-
});
|
|
20
|
-
button.addEventListener('click', function() {
|
|
21
|
-
Ti.API.info('Current value for editText: ' + Ti.App.Properties.getString('editText'));
|
|
22
|
-
Ti.UI.Android.openPreferences();
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
*(See full overview in titanium-docs)*
|
|
26
|
-
|
|
27
|
-
### Constants (101)
|
|
28
|
-
- **FLAG_LAYOUT_NO_\***: FLAG_LAYOUT_NO_LIMITS
|
|
29
|
-
- **FLAG_TRANSLUCENT_\***: FLAG_TRANSLUCENT_NAVIGATION, FLAG_TRANSLUCENT_STATUS
|
|
30
|
-
- **GRAVITY_\***: GRAVITY_BOTTOM, GRAVITY_CENTER, GRAVITY_END, GRAVITY_FILL, GRAVITY_LEFT, GRAVITY_RIGHT, GRAVITY_START, GRAVITY_TOP
|
|
31
|
-
- **GRAVITY_AXIS_\***: GRAVITY_AXIS_CLIP, GRAVITY_AXIS_SPECIFIED
|
|
32
|
-
- **GRAVITY_AXIS_PULL_\***: GRAVITY_AXIS_PULL_AFTER, GRAVITY_AXIS_PULL_BEFORE
|
|
33
|
-
- **GRAVITY_AXIS_X_\***: GRAVITY_AXIS_X_SHIFT
|
|
34
|
-
- **GRAVITY_AXIS_Y_\***: GRAVITY_AXIS_Y_SHIFT
|
|
35
|
-
- **GRAVITY_CENTER_\***: GRAVITY_CENTER_HORIZONTAL, GRAVITY_CENTER_VERTICAL
|
|
36
|
-
- **GRAVITY_CLIP_\***: GRAVITY_CLIP_HORIZONTAL, GRAVITY_CLIP_VERTICAL
|
|
37
|
-
- **GRAVITY_DISPLAY_CLIP_\***: GRAVITY_DISPLAY_CLIP_HORIZONTAL, GRAVITY_DISPLAY_CLIP_VERTICAL
|
|
38
|
-
- **GRAVITY_FILL_\***: GRAVITY_FILL_HORIZONTAL, GRAVITY_FILL_VERTICAL
|
|
39
|
-
- **GRAVITY_HORIZONTAL_GRAVITY_\***: GRAVITY_HORIZONTAL_GRAVITY_MASK
|
|
40
|
-
- **GRAVITY_NO_\***: GRAVITY_NO_GRAVITY
|
|
41
|
-
- **GRAVITY_RELATIVE_HORIZONTAL_GRAVITY_\***: GRAVITY_RELATIVE_HORIZONTAL_GRAVITY_MASK
|
|
42
|
-
- **GRAVITY_RELATIVE_LAYOUT_\***: GRAVITY_RELATIVE_LAYOUT_DIRECTION
|
|
43
|
-
- **GRAVITY_VERTICAL_GRAVITY_\***: GRAVITY_VERTICAL_GRAVITY_MASK
|
|
44
|
-
- **OVER_SCROLL_\***: OVER_SCROLL_ALWAYS, OVER_SCROLL_NEVER
|
|
45
|
-
- **OVER_SCROLL_IF_CONTENT_\***: OVER_SCROLL_IF_CONTENT_SCROLLS
|
|
46
|
-
- **PIXEL_FORMAT_\***: PIXEL_FORMAT_OPAQUE, PIXEL_FORMAT_TRANSLUCENT, PIXEL_FORMAT_TRANSPARENT, PIXEL_FORMAT_UNKNOWN
|
|
47
|
-
- **PIXEL_FORMAT_A_\***: PIXEL_FORMAT_A_8
|
|
48
|
-
- **PIXEL_FORMAT_L_\***: PIXEL_FORMAT_L_8
|
|
49
|
-
- **PIXEL_FORMAT_LA_\***: PIXEL_FORMAT_LA_88
|
|
50
|
-
- **PIXEL_FORMAT_RGB_\***: PIXEL_FORMAT_RGB_332, PIXEL_FORMAT_RGB_565, PIXEL_FORMAT_RGB_888
|
|
51
|
-
- **PIXEL_FORMAT_RGBA_\***: PIXEL_FORMAT_RGBA_4444, PIXEL_FORMAT_RGBA_5551, PIXEL_FORMAT_RGBA_8888
|
|
52
|
-
- **PIXEL_FORMAT_RGBX_\***: PIXEL_FORMAT_RGBX_8888
|
|
53
|
-
- **PROGRESS_INDICATOR_\***: PROGRESS_INDICATOR_DIALOG, PROGRESS_INDICATOR_INDETERMINANT, PROGRESS_INDICATOR_DETERMINANT
|
|
54
|
-
- **PROGRESS_INDICATOR_STATUS_\***: PROGRESS_INDICATOR_STATUS_BAR
|
|
55
|
-
- **SCROLL_FLAG_\***: SCROLL_FLAG_SCROLL, SCROLL_FLAG_SNAP
|
|
56
|
-
- **SCROLL_FLAG_ENTER_\***: SCROLL_FLAG_ENTER_ALWAYS
|
|
57
|
-
- **SCROLL_FLAG_ENTER_ALWAYS_\***: SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED
|
|
58
|
-
- **SCROLL_FLAG_EXIT_UNTIL_\***: SCROLL_FLAG_EXIT_UNTIL_COLLAPSED
|
|
59
|
-
- **SCROLL_FLAG_NO_\***: SCROLL_FLAG_NO_SCROLL
|
|
60
|
-
- **SCROLL_FLAG_SNAP_\***: SCROLL_FLAG_SNAP_MARGINS
|
|
61
|
-
- **SOFT_INPUT_ADJUST_\***: SOFT_INPUT_ADJUST_PAN, SOFT_INPUT_ADJUST_RESIZE, SOFT_INPUT_ADJUST_NOTHING, SOFT_INPUT_ADJUST_UNSPECIFIED
|
|
62
|
-
- **SOFT_INPUT_STATE_\***: SOFT_INPUT_STATE_HIDDEN, SOFT_INPUT_STATE_UNSPECIFIED, SOFT_INPUT_STATE_VISIBLE
|
|
63
|
-
- **SOFT_INPUT_STATE_ALWAYS_\***: SOFT_INPUT_STATE_ALWAYS_HIDDEN, SOFT_INPUT_STATE_ALWAYS_VISIBLE
|
|
64
|
-
- **SOFT_KEYBOARD_DEFAULT_ON_\***: SOFT_KEYBOARD_DEFAULT_ON_FOCUS
|
|
65
|
-
- **SOFT_KEYBOARD_HIDE_ON_\***: SOFT_KEYBOARD_HIDE_ON_FOCUS
|
|
66
|
-
- **SOFT_KEYBOARD_SHOW_ON_\***: SOFT_KEYBOARD_SHOW_ON_FOCUS
|
|
67
|
-
- **STATUS_BAR_\***: STATUS_BAR_LIGHT
|
|
68
|
-
- **SWITCH_STYLE_\***: SWITCH_STYLE_CHECKBOX, SWITCH_STYLE_TOGGLEBUTTON, SWITCH_STYLE_SWITCH
|
|
69
|
-
- **TAB_MODE_\***: TAB_MODE_FIXED, TAB_MODE_SCROLLABLE
|
|
70
|
-
- **TABS_STYLE_\***: TABS_STYLE_DEFAULT
|
|
71
|
-
- **TABS_STYLE_BOTTOM_\***: TABS_STYLE_BOTTOM_NAVIGATION
|
|
72
|
-
- **TRANSITION_\***: TRANSITION_EXPLODE, TRANSITION_NONE
|
|
73
|
-
- **TRANSITION_CHANGE_\***: TRANSITION_CHANGE_BOUNDS, TRANSITION_CHANGE_TRANSFORM
|
|
74
|
-
- **TRANSITION_CHANGE_CLIP_\***: TRANSITION_CHANGE_CLIP_BOUNDS
|
|
75
|
-
- **TRANSITION_CHANGE_IMAGE_\***: TRANSITION_CHANGE_IMAGE_TRANSFORM
|
|
76
|
-
- **TRANSITION_FADE_\***: TRANSITION_FADE_IN, TRANSITION_FADE_OUT
|
|
77
|
-
- **TRANSITION_SLIDE_\***: TRANSITION_SLIDE_TOP, TRANSITION_SLIDE_RIGHT, TRANSITION_SLIDE_BOTTOM, TRANSITION_SLIDE_LEFT
|
|
78
|
-
- **WEBVIEW_LOAD_\***: WEBVIEW_LOAD_DEFAULT
|
|
79
|
-
- **WEBVIEW_LOAD_CACHE_\***: WEBVIEW_LOAD_CACHE_ONLY
|
|
80
|
-
- **WEBVIEW_LOAD_CACHE_ELSE_\***: WEBVIEW_LOAD_CACHE_ELSE_NETWORK
|
|
81
|
-
- **WEBVIEW_LOAD_NO_\***: WEBVIEW_LOAD_NO_CACHE
|
|
82
|
-
- **WEBVIEW_PLUGINS_\***: WEBVIEW_PLUGINS_OFF, WEBVIEW_PLUGINS_ON
|
|
83
|
-
- **WEBVIEW_PLUGINS_ON_\***: WEBVIEW_PLUGINS_ON_DEMAND
|
|
84
|
-
- **WEBVIEW_SCROLLBARS_\***: WEBVIEW_SCROLLBARS_DEFAULT
|
|
85
|
-
- **WEBVIEW_SCROLLBARS_HIDE_\***: WEBVIEW_SCROLLBARS_HIDE_VERTICAL, WEBVIEW_SCROLLBARS_HIDE_HORIZONTAL, WEBVIEW_SCROLLBARS_HIDE_ALL
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### Methods (12)
|
|
89
|
-
| Method | Returns | Platform | Description |
|
|
90
|
-
|--------|---------|----------|-------------|
|
|
91
|
-
| harmonizedColor(color) | String | android | Creates a harmonizing color |
|
|
92
|
-
| moveToBackground(—) | void | android | Moves the app to the background |
|
|
93
|
-
| hideSoftKeyboard(—) | void | android | Hides the soft keyboard. |
|
|
94
|
-
| openPreferences(—) | void | android | Opens an application preferences dialog, using the native Android system settin… |
|
|
95
|
-
| getColorResource(resourceIdOrColorName) | Ti.UI.Color | android | Returns a <Ti.Color> instance for a color defined by the system or user resourc… |
|
|
96
|
-
| createCardView(parameters) | Ti.UI.Android.CardView | android | Creates and returns an instance of <Titanium.UI.Android.CardView>. |
|
|
97
|
-
| createCollapseToolbar(parameters) | Ti.UI.Android.CollapseToolbar | android | Creates and returns an instance of <Titanium.UI.Android.CollapseToolbar>. |
|
|
98
|
-
| createDrawerLayout(parameters) | Ti.UI.Android.DrawerLayout | android | Creates and returns an instance of <Titanium.UI.Android.DrawerLayout>. |
|
|
99
|
-
| createFloatingActionButton(parameters) | Ti.UI.Android.FloatingActionButton | android | Creates and returns an instance of <Titanium.UI.Android.FloatingActionButton>. |
|
|
100
|
-
| createProgressIndicator(parameters) | Ti.UI.Android.ProgressIndicator | android | Creates and returns an instance of <Titanium.UI.Android.ProgressIndicator>. |
|
|
101
|
-
| createSearchView(parameters) | Ti.UI.Android.SearchView | android | Creates and returns an instance of <Titanium.UI.Android.SearchView>. |
|
|
102
|
-
| createSnackbar(parameters) | Ti.UI.Android.Snackbar | android | Creates and returns an instance of <Titanium.UI.Android.Snackbar>. |
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## Ti.UI.Android.CardView
|
|
108
|
-
> CardView provides a layout container with rounded corners and a shadow indicating the view is elevated.
|
|
109
|
-
> Extends Ti.UI.View
|
|
110
|
-
> Platforms: android
|
|
111
|
-
|
|
112
|
-
| Android |
|
|
113
|
-
| ------- |
|
|
114
|
-
|  |
|
|
115
|
-
|
|
116
|
-
Use a CardView to layout content that:
|
|
117
|
-
|
|
118
|
-
* Comprises multiple data types
|
|
119
|
-
* Does not require direct comparison
|
|
120
|
-
* Supports variable length content or displays more than three lines of text
|
|
121
|
-
* Contains rich content or interactive elements, such as comments or a favorite button
|
|
122
|
-
|
|
123
|
-
If you are displaying a collection of the same type in a uniform layout without many actions,
|
|
124
|
-
use a [ListView](Titanium.UI.ListView) or [TableView](Titanium.UI.TableView) instead.
|
|
125
|
-
|
|
126
|
-
For design guidelines, see
|
|
127
|
-
|
|
128
|
-
*(See full overview in titanium-docs)*
|
|
129
|
-
|
|
130
|
-
### Properties (unique: 11/65)
|
|
131
|
-
| Property | Type | Default | Platform | Description |
|
|
132
|
-
|----------|------|---------|----------|-------------|
|
|
133
|
-
| backgroundColor | String | — | android | Background color for CardView as a color name or hex triplet. |
|
|
134
|
-
| borderRadius | Number | 0 | android | Corner radius for CardView. |
|
|
135
|
-
| elevation | Number | — | android | Elevation for CardView. |
|
|
136
|
-
| maxElevation | Number | — | android | Maximum Elevation for CardView. |
|
|
137
|
-
| preventCornerOverlap | Boolean | false | android | Add padding to CardView on API level 20 and before to prevent intersections bet… |
|
|
138
|
-
| useCompatPadding | Boolean | false | android | Add padding on API level 21 and above to have the same measurements with previo… |
|
|
139
|
-
| padding | Number | — | android | Inner padding between the edges of the Card and children of the CardView. |
|
|
140
|
-
| paddingBottom | Number | — | android | Inner padding between the bottom edge of the Card and children of the CardView. |
|
|
141
|
-
| paddingLeft | Number | — | android | Inner padding between the left edge of the Card and children of the CardView. |
|
|
142
|
-
| paddingRight | Number | — | android | Inner padding between the right edge of the Card and children of the CardView. |
|
|
143
|
-
| paddingTop | Number | — | android | Inner padding between the top edge of the Card and children of the CardView. |
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## Ti.UI.Android.CollapseToolbar
|
|
151
|
-
> A collapsing toolbar layout.
|
|
152
|
-
> Extends Ti.UI.View
|
|
153
|
-
> Platforms: android
|
|
154
|
-
|
|
155
|
-
| Android |
|
|
156
|
-
| ------- |
|
|
157
|
-
|  |
|
|
158
|
-
|
|
159
|
-
CollapseToolbar acts as a top-level container for window content that allows to set a parallax image and title
|
|
160
|
-
in the toolbar. The main content goes into `centerView` and will automatically be scrollable.
|
|
161
|
-
|
|
162
|
-
### Properties (unique: 11/18)
|
|
163
|
-
| Property | Type | Default | Platform | Description |
|
|
164
|
-
|----------|------|---------|----------|-------------|
|
|
165
|
-
| barColor | String | — | android | Background color of the extended toolbar when no image is shown. |
|
|
166
|
-
| contentScrimColor | String | — | android | Background color of the small toolbar when the content is scrolled up. |
|
|
167
|
-
| image | String | — | android | Background image for the full size toolbar. Has a parallax effect when scrollin… |
|
|
168
|
-
| imageHeight | Number | 250 | android | Height of the image. Use `height` for the height of the extended toolbar. |
|
|
169
|
-
| title | String | — | android | Title of the toolbar. |
|
|
170
|
-
| color | String | — | android | Color of the title. |
|
|
171
|
-
| navigationIconColor | String | — | android | Color of the back arrow. |
|
|
172
|
-
| contentView | Ti.UI.View | — | android | Main view below the toolbar. |
|
|
173
|
-
| displayHomeAsUp | Boolean | — | android | Displays an "up" affordance on the "home" area of the action bar. |
|
|
174
|
-
| flags | Number | — | android | Scroll flags. Check [Android documentation](https://developer.android.com/refer… |
|
|
175
|
-
| onHomeIconItemSelected | Callback | — | android | Callback function called when the home icon is clicked. |
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
---
|
|
181
|
-
|
|
182
|
-
## Ti.UI.Android.DrawerLayout
|
|
183
|
-
> A panel that displays the app's main navigation options on the left edge of the screen.
|
|
184
|
-
> Extends Ti.UI.View
|
|
185
|
-
> Platforms: android
|
|
186
|
-
|
|
187
|
-
| Android |
|
|
188
|
-
| ------- |
|
|
189
|
-
|  |
|
|
190
|
-
|
|
191
|
-
DrawerLayout acts as a top-level container for window content that allows for interactive "drawer"
|
|
192
|
-
views to be pulled out from one or both vertical edges of the window.
|
|
193
|
-
|
|
194
|
-
As per the Android Design guide, any drawers positioned to the left/start should always contain
|
|
195
|
-
content for navigating around the application, whereas any drawers positioned to the right/end
|
|
196
|
-
should always contain actions to take on the current content.
|
|
197
|
-
|
|
198
|
-
For design guidelines, see
|
|
199
|
-
[Google Design Guidelines: DrawerLayout](https://developer.android.com/training/implementing-navigation/nav-drawer.html)
|
|
200
|
-
|
|
201
|
-
### Properties (unique: 15/80)
|
|
202
|
-
| Property | Type | Default | Platform | Description |
|
|
203
|
-
|----------|------|---------|----------|-------------|
|
|
204
|
-
| isLeftOpen | Boolean | false | android | Determine whether the left drawer is open |
|
|
205
|
-
| isRightOpen | Boolean | false | android | Determine whether the right drawer is open |
|
|
206
|
-
| isLeftVisible | Boolean | false | android | Determine whether the left drawer is visible |
|
|
207
|
-
| isRightVisible | Boolean | false | android | Determine whether the right drawer is visible |
|
|
208
|
-
| leftWidth | Number | — | android | Get or set the width of the left drawer |
|
|
209
|
-
| rightWidth | Number | — | android | Get or set the width of the right drawer |
|
|
210
|
-
| leftView | Ti.UI.View | — | android | Get or set the view of the left drawer |
|
|
211
|
-
| rightView | Ti.UI.View | — | android | Get or set the view of the right drawer |
|
|
212
|
-
| centerView | Ti.UI.View | — | android | Get or set the center view |
|
|
213
|
-
| drawerIndicatorEnabled | Boolean | true | android | Determine the drawer indicator status |
|
|
214
|
-
| drawerLockMode | Number | <Titanium.UI.Android.DrawerLayout.LOCK_MODE_UNDEFINED> | android | Get or set the drawerLockMode |
|
|
215
|
-
| leftDrawerLockMode | Number | <Titanium.UI.Android.DrawerLayout.LOCK_MODE_UNDEFINED> | android | Get or set lock mode for the left drawer |
|
|
216
|
-
| rightDrawerLockMode | Number | <Titanium.UI.Android.DrawerLayout.LOCK_MODE_UNDEFINED> | android | Get or set lock mode for the right drawer |
|
|
217
|
-
| toolbarEnabled | Boolean | true | android | Determine whether to enable the toolbar. |
|
|
218
|
-
| toolbar | Ti.UI.Toolbar | — | android | A Toolbar instance to use as a toolbar. |
|
|
219
|
-
|
|
220
|
-
### Constants (4)
|
|
221
|
-
- **LOCK_MODE_\***: LOCK_MODE_UNDEFINED, LOCK_MODE_UNLOCKED
|
|
222
|
-
- **LOCK_MODE_LOCKED_\***: LOCK_MODE_LOCKED_CLOSED, LOCK_MODE_LOCKED_OPEN
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
### Methods (7)
|
|
226
|
-
| Method | Returns | Platform | Description |
|
|
227
|
-
|--------|---------|----------|-------------|
|
|
228
|
-
| toggleLeft(—) | void | android | Toggle the visibility of the left view. |
|
|
229
|
-
| openLeft(—) | void | android | Open the left view. |
|
|
230
|
-
| closeLeft(—) | void | android | Close the left view. |
|
|
231
|
-
| toggleRight(—) | void | android | Toggle the visibility of the right view. |
|
|
232
|
-
| openRight(—) | void | android | Open the right view. |
|
|
233
|
-
| closeRight(—) | void | android | Close the right view. |
|
|
234
|
-
| interceptTouchEvent(view, disallowIntercept) | void | android | Disallow touch events on a specific view. |
|
|
235
|
-
|
|
236
|
-
### Events (4)
|
|
237
|
-
| Event | Platform | Description |
|
|
238
|
-
|-------|----------|-------------|
|
|
239
|
-
| open | android | Fired when the drawer view is opened. |
|
|
240
|
-
| close | android | Fired when the drawer view is closed. |
|
|
241
|
-
| change | android | Fired when the motion state of the drawer view changes. |
|
|
242
|
-
| slide | android | Fired when the drawer view changes it's position. |
|
|
243
|
-
|
|
244
|
-
---
|
|
245
|
-
|
|
246
|
-
## Ti.UI.Android.FloatingActionButton
|
|
247
|
-
> A floating action button (FAB) is a circular button that triggers the primary action in your app's UI.
|
|
248
|
-
> Extends Ti.UI.View
|
|
249
|
-
> Platforms: android
|
|
250
|
-
|
|
251
|
-
For design guidelines, see
|
|
252
|
-
[Material design: Snackbars](https://material.io/components/buttons-floating-action-button)
|
|
253
|
-
|
|
254
|
-
### Properties (unique: 4/30)
|
|
255
|
-
| Property | Type | Default | Platform | Description |
|
|
256
|
-
|----------|------|---------|----------|-------------|
|
|
257
|
-
| customSize | Number | — | android | Size of the button |
|
|
258
|
-
| maxImageSize | Number | — | android | Size of the image inside the button |
|
|
259
|
-
| image | String \| Number \| Ti.Blob | — | android | Image inside the button (the icon) |
|
|
260
|
-
| iconSize | String | — | android | Predefined button size |
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
### Events (1)
|
|
265
|
-
| Event | Platform | Description |
|
|
266
|
-
|-------|----------|-------------|
|
|
267
|
-
| click | android | Fired when the button is clicked |
|
|
268
|
-
|
|
269
|
-
---
|
|
270
|
-
|
|
271
|
-
## Ti.UI.Android.ProgressIndicator
|
|
272
|
-
> A progress dialog or a horizontal progress bar in the title of the window.
|
|
273
|
-
> Extends Ti.UI.View
|
|
274
|
-
> Platforms: android
|
|
275
|
-
|
|
276
|
-
| Android |
|
|
277
|
-
| ------- |
|
|
278
|
-
|  |
|
|
279
|
-
|
|
280
|
-
A progress indicator can be used to show the progress of an operation in the UI to let the
|
|
281
|
-
user know that some action is taking place. It is used to indicate an ongoing activity of
|
|
282
|
-
determinate or indeterminate length.
|
|
283
|
-
|
|
284
|
-
Use the <Titanium.UI.Android.createProgressIndicator> method or **`<ProgressIndicator>`** Alloy
|
|
285
|
-
element to create a progress indicator.
|
|
286
|
-
|
|
287
|
-
A progress indicator can be either a progress dialog or a horizontal progress bar in the title
|
|
288
|
-
of the window. The progress dialog is a modal dialog that blocks the UI. See also:
|
|
289
|
-
|
|
290
|
-
### Properties (unique: 8/29)
|
|
291
|
-
| Property | Type | Default | Platform | Description |
|
|
292
|
-
|----------|------|---------|----------|-------------|
|
|
293
|
-
| cancelable | Boolean | — | android | When `true` allows the user to cancel the progress dialog by pressing the BACK … |
|
|
294
|
-
| canceledOnTouchOutside | Boolean | false | android | When `cancelable` is set to `true` and this is set to `true`, the dialog is can… |
|
|
295
|
-
| message | String | — | android | Message text. |
|
|
296
|
-
| messageid | String | — | android | Key identifying a string in the locale file to use for the message text. |
|
|
297
|
-
| min | Number | — | android | Minimum value of the progress bar. |
|
|
298
|
-
| max | Number | — | android | Maximum value of the progress bar. |
|
|
299
|
-
| location | Number | <Titanium.UI.Android.PROGRESS_INDICATOR_DIALOG> | android | Location for the progress indicator. |
|
|
300
|
-
| type | Number | <Titanium.UI.Android.PROGRESS_INDICATOR_INDETERMINANT> | android | Type for the progress indicator. |
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
### Methods (2)
|
|
304
|
-
| Method | Returns | Platform | Description |
|
|
305
|
-
|--------|---------|----------|-------------|
|
|
306
|
-
| hide(options) | void | android | Hides the progress indicator and stops the animation. |
|
|
307
|
-
| show(options) | void | android | Shows the progress indicator and starts the animation. |
|
|
308
|
-
|
|
309
|
-
### Events (1)
|
|
310
|
-
| Event | Platform | Description |
|
|
311
|
-
|-------|----------|-------------|
|
|
312
|
-
| cancel | android | Fired when the user has canceled the progress indicator dialog. |
|
|
313
|
-
|
|
314
|
-
### Related Types
|
|
315
|
-
|
|
316
|
-
#### AnimatedOptions
|
|
317
|
-
> A JavaScript object holding an `animated` property. Used for many UI methods as a means of specifying some transition should be animated.
|
|
318
|
-
|
|
319
|
-
| Property | Type | Description |
|
|
320
|
-
|----------|------|-------------|
|
|
321
|
-
| animated | Boolean | If `true`, animate a transition for the method/value change. Note that for most… |
|
|
322
|
-
|
|
323
|
-
---
|
|
324
|
-
|
|
325
|
-
## Ti.UI.Android.SearchView
|
|
326
|
-
> A specialized text field for entering search text.
|
|
327
|
-
> Extends Ti.UI.View
|
|
328
|
-
> Platforms: android
|
|
329
|
-
|
|
330
|
-
| Android |
|
|
331
|
-
| ------- |
|
|
332
|
-
|  |
|
|
333
|
-
|
|
334
|
-
`SearchView` provides a user interface to enter a search query and submit a request to a search provider.
|
|
335
|
-
|
|
336
|
-
Search views are most commonly used for filtering the rows in a [TableView](Titanium.UI.TableView).
|
|
337
|
-
Similar to [SearchBar](Titanium.UI.SearchBar), you can add a search view to a table view by setting the table view's
|
|
338
|
-
[search](Titanium.UI.TableView.search) property. A search view can be used without a `TableView`.
|
|
339
|
-
|
|
340
|
-
You can also use a `SearchView` object as the <Titanium.UI.ListView.searchView>
|
|
341
|
-
property of a [ListView](Titanium.UI.ListView) object.
|
|
342
|
-
|
|
343
|
-
You can also add `SearchView` to an `ActionBar` as a view (see example below).
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
*(See full overview in titanium-docs)*
|
|
347
|
-
|
|
348
|
-
### Properties (unique: 7/68)
|
|
349
|
-
| Property | Type | Default | Platform | Description |
|
|
350
|
-
|----------|------|---------|----------|-------------|
|
|
351
|
-
| color | String | — | android | Color of the text in this SearchView, as a color name or hex triplet. |
|
|
352
|
-
| hintText | String | no hint text | android | Text to show when the search view field is not focused. |
|
|
353
|
-
| hintTextColor | String | Default Android theme's hint text color. | android | Color of hint text that displays when field is empty. |
|
|
354
|
-
| value | String | — | android | Value of the search view. |
|
|
355
|
-
| iconified | Boolean | undefined | android | Iconifies or expands the search view |
|
|
356
|
-
| iconifiedByDefault | Boolean | true | android | Sets the default or resting state of the search view |
|
|
357
|
-
| submitEnabled | Boolean | undefined | android | Whether to display the submit button when necessary or never display. |
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
### Methods (2)
|
|
361
|
-
| Method | Returns | Platform | Description |
|
|
362
|
-
|--------|---------|----------|-------------|
|
|
363
|
-
| blur(—) | void | android | Causes the search view to lose focus. |
|
|
364
|
-
| focus(—) | void | android | Causes the search view to gain focus. |
|
|
365
|
-
|
|
366
|
-
### Events (5)
|
|
367
|
-
| Event | Platform | Description |
|
|
368
|
-
|-------|----------|-------------|
|
|
369
|
-
| focus | android | Fired when the search view gains focus. |
|
|
370
|
-
| blur | android | Fired when the search view loses focus. |
|
|
371
|
-
| cancel | android | Fired when the cancel button is pressed. |
|
|
372
|
-
| change | android | Fired when the value of the search view changes. |
|
|
373
|
-
| submit | android | If the search query is not empty, fired when the search button is clicked on so… |
|
|
374
|
-
|
|
375
|
-
---
|
|
376
|
-
|
|
377
|
-
## Ti.UI.Android.Snackbar
|
|
378
|
-
> Snackbars provide brief messages about app processes at the bottom of the screen.
|
|
379
|
-
> Extends Ti.UI.View
|
|
380
|
-
> Platforms: android
|
|
381
|
-
|
|
382
|
-
| Android |
|
|
383
|
-
| ------- |
|
|
384
|
-
|  |
|
|
385
|
-
|
|
386
|
-
For design guidelines, see
|
|
387
|
-
[Material design: Snackbars](https://material.io/components/snackbars)
|
|
388
|
-
|
|
389
|
-
### Properties (unique: 3/27)
|
|
390
|
-
| Property | Type | Default | Platform | Description |
|
|
391
|
-
|----------|------|---------|----------|-------------|
|
|
392
|
-
| length | Number | LENGTH_SHORT | android | Display time of the Snackbar |
|
|
393
|
-
| action | String | — | android | Text of the right hand action button |
|
|
394
|
-
| message | String | — | android | Text of Snackbar |
|
|
395
|
-
|
|
396
|
-
### Constants (3)
|
|
397
|
-
- **LENGTH_\***: LENGTH_SHORT, LENGTH_LONG, LENGTH_INDEFINITE
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
### Methods (1)
|
|
401
|
-
| Method | Returns | Platform | Description |
|
|
402
|
-
|--------|---------|----------|-------------|
|
|
403
|
-
| show(options) | void | android | Show the Snackbar |
|
|
404
|
-
|
|
405
|
-
### Events (1)
|
|
406
|
-
| Event | Platform | Description |
|
|
407
|
-
|-------|----------|-------------|
|
|
408
|
-
| click | android | Fired when the action button is clicked |
|
|
409
|
-
|
|
410
|
-
### Related Types
|
|
411
|
-
|
|
412
|
-
#### AnimatedOptions
|
|
413
|
-
> A JavaScript object holding an `animated` property. Used for many UI methods as a means of specifying some transition should be animated.
|
|
414
|
-
|
|
415
|
-
| Property | Type | Description |
|
|
416
|
-
|----------|------|-------------|
|
|
417
|
-
| animated | Boolean | If `true`, animate a transition for the method/value change. Note that for most… |
|
|
418
|
-
|
|
419
|
-
---
|
|
420
|
-
|
|
421
|
-
## Ti.UI.iPad.Popover
|
|
422
|
-
> A Popover is used to manage the presentation of content in a popover.
|
|
423
|
-
> Extends Ti.UI.View
|
|
424
|
-
> Platforms: ios
|
|
425
|
-
|
|
426
|
-
A popover is created using the <Titanium.UI.iPad.createPopover> method or **`<Popover>`** Alloy element.
|
|
427
|
-
|
|
428
|
-
Popovers are used to present information temporarily, but in a way that does not take over
|
|
429
|
-
the entire screen in the way that a modal view does. The popover content is layered on top of
|
|
430
|
-
the existing content in a special type of window. The popover remains visible until the user
|
|
431
|
-
taps outside of the popover window or it is explicitly dismissed.
|
|
432
|
-
|
|
433
|
-
Do not add top-level view containers, such as a `SplitWindow` or `TabGroup`, to a popover.
|
|
434
|
-
Adding top-level view containers may have unintended side effects. See the [contentView](Titanium.UI.iPad.Popover.contentView)
|
|
435
|
-
property for more information.
|
|
436
|
-
|
|
437
|
-
### Properties (unique: 4/13)
|
|
438
|
-
| Property | Type | Default | Platform | Description |
|
|
439
|
-
|----------|------|---------|----------|-------------|
|
|
440
|
-
| backgroundColor | String \| Ti.UI.Color | undefined (behaves as transparent) | ios | Sets the background color of the popover. |
|
|
441
|
-
| arrowDirection | Number | — | ios | Indicates the arrow direction of the popover. |
|
|
442
|
-
| contentView | Ti.UI.View | — | ios | View to use for the popover content. Must be set before calling the `show()` me… |
|
|
443
|
-
| passthroughViews | Array<Titanium.UI.View> | — | ios | Passthrough views to use when the popover is shown. |
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
### Methods (2)
|
|
447
|
-
| Method | Returns | Platform | Description |
|
|
448
|
-
|--------|---------|----------|-------------|
|
|
449
|
-
| hide(options) | void | ios | Hides the popover. |
|
|
450
|
-
| show(options) | void | ios | Displays the popover. |
|
|
451
|
-
|
|
452
|
-
### Events (1)
|
|
453
|
-
| Event | Platform | Description |
|
|
454
|
-
|-------|----------|-------------|
|
|
455
|
-
| hide | ios | Fired when the popover is hidden. |
|
|
456
|
-
|
|
457
|
-
### Related Types
|
|
458
|
-
|
|
459
|
-
#### AnimatedOptions
|
|
460
|
-
> A JavaScript object holding an `animated` property. Used for many UI methods as a means of specifying some transition should be animated.
|
|
461
|
-
|
|
462
|
-
| Property | Type | Description |
|
|
463
|
-
|----------|------|-------------|
|
|
464
|
-
| animated | Boolean | If `true`, animate a transition for the method/value change. Note that for most… |
|
|
465
|
-
|
|
466
|
-
#### ShowPopoverParams
|
|
467
|
-
> Dictionary of options for <Titanium.UI.iPad.Popover.show>.
|
|
468
|
-
|
|
469
|
-
| Property | Type | Description |
|
|
470
|
-
|----------|------|-------------|
|
|
471
|
-
| animated | Boolean | Indicates whether to animate showing the popover. |
|
|
472
|
-
| rect | Dimension | Sets the arrow position of the popover relative to the attached view object's d… |
|
|
473
|
-
| view | Ti.UI.View | Attaches the popover to the specified view when showing the popover. |
|
|
474
|
-
|
|
475
|
-
---
|
|
476
|
-
|
|
477
|
-
## Ti.UI.iPad
|
|
478
|
-
> iPad specific UI capabilities.
|
|
479
|
-
> Extends Ti.Module
|
|
480
|
-
> Platforms: ios
|
|
481
|
-
> Type: module
|
|
482
|
-
|
|
483
|
-
All properties, methods and events in this namespace will only work on the Apple iPad devices.
|
|
484
|
-
|
|
485
|
-
For iOS UI programming guidelines, review the
|
|
486
|
-
[iOS Human Interface Guidelines](https://developer.apple.com/ios/human-interface-guidelines/overview/themes/).
|
|
487
|
-
|
|
488
|
-
### Constants (6)
|
|
489
|
-
- **POPOVER_ARROW_DIRECTION_\***: POPOVER_ARROW_DIRECTION_ANY, POPOVER_ARROW_DIRECTION_DOWN, POPOVER_ARROW_DIRECTION_LEFT, POPOVER_ARROW_DIRECTION_RIGHT, POPOVER_ARROW_DIRECTION_UNKNOWN, POPOVER_ARROW_DIRECTION_UP
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
### Methods (1)
|
|
493
|
-
| Method | Returns | Platform | Description |
|
|
494
|
-
|--------|---------|----------|-------------|
|
|
495
|
-
| createPopover(parameters) | Ti.UI.iPad.Popover | ios | Creates and returns an instance of <Titanium.UI.iPad.Popover>. |
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
---
|
|
499
|
-
|