The main Titanium.UI module.
The UI module is responsible for native user-interface components and interaction inside Titanium. The goal of the UI module is to provide a native experience along with native performance by compiling Javascript code into their native counterparts as part of the build process.
The UI module is broken down into 3 major area:
Views - Views are containers that host visual elements such as
controls or other views. Views can have their properties customized, such as their border color
and radius, can fire events such as swipe events or touches, and can optionally contain a
hierarchy or other views as children. In Titanium, most views are specialized to perform both a
visual function and set of interaction behaviors such as Table View or
Coverflow View. Views are always named with the suffix View
.
Controls - controls, or sometimes referred as widgets, are visual elements such as sliders, buttons and switches. They provide a visual element which has a defined behavior and typical have special configuration and special events. Controls themselves are views and also inherit a views properties, functions and events.
Windows - Windows are typically top-level visual constructs that are the main part of your interface. An application will always have at least one window and windows can take different shapes and sizes, can have display and interaction properties such as fullscreen or modal and can be customized, such as changing their opacity or background color. Windows themselves are views and also inherit a views properties, functions and events. There are a few specialization of Windows such as a Tab Group which offer additional behavior beyond the basic Window.
Titanium uses the Factory Pattern for constructing objects and a general naming pattern for APIs. For example, to construct a Alert Dialog, you call the method createAlertDialog. To create a TextArea, you call the method createTextArea. Once an object is created, it will be available until it goes out of scope.
UI objects are optimized by Titanium to not be realized into the drawing context and placed into
the device UI surface until needed. That means that you can create UI objects, set their
properties and add them to their hierarchy without much worry about memory or performance.
When the native drawing surface needs to render a specific view or control, Titanium will
automatically create the view as needed. Additionally, Titanium is optimized to also release
memory once the view is no longer needed, on screen or in low memory situations. However, it's
a good idea to help Titanium along in certain cases where you are no longer using objects. For
example, you should call close
on a Window instance when you are no
longer using it. You can safely call open
on the window again to re-open it.
Be careful with the objects that are created in app.js
but only used once. Since the app.js
context is global and generally is not garbage collected until the application exits, you
should think about the design of your application as it relates to this fact.
Window objects that are opened up with the url
property to another
JavaScript file provide a nice way to decompose your application into smaller units.
Additionally, Window objects created with a url
value run in a separate JavaScript context
and thread. While all UI processing is done on the main UI thread, other processing inside
a Window or the app.js
that does not have UI interaction will run in its own thread.
The other benefit of using the url
property is that when the window is closed, resources
allocated in the window's context can be immediately cleaned up, saving resources such as
memory and CPU.
For more information, see the sections "Sub-contexts" and "Passing Data Between Contexts" on the Window reference page.
Titanium components are designed to be portable across as many platforms as it supports. However, there are cases where a device either does not support a specific feature or capability or where it support additional functionality. For cases where the device OS supports capabilities that other platforms do not, we attempt to place those capabilities in a separate namespace, such as Titanium.UI.iPhone. However, in cases where the control is in a common namespace and support additional features, we continue to place that functionality directly on the object.
Event listeners must be defined before their respective events are likely to be fired, otherwise they are not guaranteed to be called. The open and focus Window event listeners, for instance, must be defined before the window is opened.
Evaluating events as late as possible while bearing the above consideration in mind, however, can significantly improve application responsiveness. For example, an event listener for a click event may be defined after the parent window has been opened.
Many UI components have properties that control their color.
Colors may be specified as a hex triplet to determine the red, green and blue channels. Thus,
'#000000'
is specified for black, '#ff0000'
for red, '#00ff00'
for green, '#0000ff'
for
blue, and '#ffffff'
for white, etc. A channel may be abbreviated when its two hex digits are
identical, such as '#000'
, '#f00'
, '#0f0#'
, '#00f'
and '#fff'
for the above colors,
respectively.
An additional alpha channel is supported as a prefix to the hex triplet. So, to make
the purple-like color '#ff00ff'
semi-opaque, you could use an alpha value of '55'
, giving,
'#55ff00ff'
or '#5f0f'
.
Note that while the pound symbol, #
, is not mandatory on iOS when using the hex triplet format,
it is recommended to include it to provide compatibility with other platforms.
iOS also accepts colors specified in the form, rgb(R,G,B)
and rgba(R,G,B,A)
, with the color
channels inside the parethesis represented by integer numbers between 0
and 255
and the
alpha channel by a float number between 0
and 1.0
(transparent to opaque, respectively).
For example, an opaque purple could be obtained using 'rgb(255,0,255)'
and a semi-opaque purple
using 'rgba(255,0,255,0.3)'
. Note that although this format will work if the rgb
or rgba
prefix is omitted, this is not officially supported and thus not recommended.
Alternatively, the following set of color names are recognized.
'aqua'
, 'black'
, 'blue'
, 'brown'
, 'cyan'
, 'darkgray'
, 'fuchsia'
, 'gray'
,
'green'
, 'lightgray'
, 'lime'
, 'magenta'
, 'maroon'
, 'navy'
, 'olive'
, 'orange'
,
'pink'
, 'purple'
, 'red'
, 'silver'
, 'teal'
, 'white'
, 'yellow'
.
All color properties also accept a value of 'transparent'
.
On Android, if you want to create a semi-transparent window, set the opacity
property before opening the window.
On iOS, you can set a global tinting using tintColor. All child views will inherit
the tint color by default and are able to override the color using tintColor
on their own views.
The default tintColor
on iOS is the blue (system-color).
If a color property is undefined, the default color of the particular UI element is applied. If a color value is not valid on iOS, the default color is applied, whereas, on Android, the color yellow is applied.
The following example demonstrates all the color formats, and color names, that are intended to be supported by Titanium. See the description section for details.
var colorArray = [
'#ff00ff', '#f0f', 'rgb(255,0,255)',
'transparent', '#55ff00ff', '#5f0f', 'rgba(255,0,255,0.3)',
'aqua', 'black', 'blue', 'brown', 'cyan', 'darkgray', 'fuchsia', 'gray', 'green',
'lightgray', 'lime', 'magenta', 'maroon', 'navy', 'olive', 'orange', 'pink',
'purple', 'red', 'silver', 'teal', 'white', 'yellow',
];
var win = Ti.UI.createWindow({
backgroundColor: 'black',
exitOnClose: true,
fullscreen: false,
layout: 'vertical',
title: 'Color Demo'
});
var rows = [];
var row;
for (var i=0, ilen = colorArray.length; i < ilen; i++){
row = Ti.UI.createTableViewRow({
color:'black',
backgroundColor: colorArray[i],
title: colorArray[i],
height: 40
});
rows.push(row);
}
var table = Ti.UI.createTableView({
data: rows,
backgroundColor: 'white'
});
win.add(table);
win.open();
Use with Animation.curve to specify an animation that starts slowly and speeds up.
Use with Animation.curve to specify an animation that starts slowly and speeds up.
Use with Animation.curve to specify an animation that starts slowly, and speeds up, then slows down at the end of the animation.
Use with Animation.curve to specify an animation that starts quickly, then slows down at the end of the animation.
Use with Animation.curve to specify an animation that starts quickly, then slows down at the end of the animation.
Use with Animation.curve to specify an animation that proceeds at a constant rate.
Use with Animation.curve to specify an animation that proceeds at a constant rate.
Use with Attribute.type to specify a background color.
Requires: iOS 6.0 and later
Use a color name or hex value for Attribute.value.
See Attribute for more information.
Use with Attribute.type to apply a different baseline to the text.
Requires: iOS 7.0 and later
Set Attribute.value to a number to specify how many pixels to raise or lower the text.
See Attribute for more information.
Use with Attribute.type to stretch the text horizontally.
Requires: iOS 7.0 and later
Set Attribute.value to a float value to specify how much to stretch the text.
For iOS, the default value is 0.0 and has no minimum/maximum range specified. For Windows, the default value is 0.0 and the valid range is between 0.5 and 1.0.
See Attribute for more information.
Use with Attribute.type to specify a font.
Requires: iOS 6.0 and later
Use a Font dictionary for Attribute.value.
See Attribute for more information.
Use with Attribute.type to specify a font color.
Requires: iOS 6.0 and later
Use a color name or hex value for Attribute.value.
See Attribute for more information.
Use with Attribute.type to specify kerning (space between characters).
Requires: iOS 6.0 and later
Set Attribute.value to a float value specifying how many pixels to increase the character spacing.
See Attribute for more information.
Use with Attribute.value to use a letterpress text effect.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_TEXT_EFFECT.
See Attribute for more information.
Use with Attribute.type to enable or disable ligatures.
Requires: iOS 6.0 and later
Set Attribute.value to 1
to enable ligatures, else 0
to disable.
Ligatures are only supported on certain fonts.
See Attribute for more information.
Use with Attribute.type to wrap and truncate the text.
Requires: iOS 7.0 and later
Set Attribute.value to a Titanium.UI.ATTRIBUTE_LINE_BREAK_*
constant.
See Attribute for more information on type modes.
Use with Attribute.value to wrap words at word boundaries.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_LINE_BREAK.
See Attribute for more information.
Use with Attribute.value to set lines to not draw past the edge of the text container.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_LINE_BREAK.
See Attribute for more information.
Use with Attribute.value to use ellipsis glyph at the beginning of the line for missing text.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_LINE_BREAK.
See Attribute for more information.
Use with Attribute.value to use ellipsis glyph at the middle of the line for missing text.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_LINE_BREAK.
See Attribute for more information.
Use with Attribute.value to use ellipsis glyph at the end of the line for missing text.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_LINE_BREAK.
See Attribute for more information.
Use with Attribute.value to wrap words at word boundaries.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_LINE_BREAK.
See Attribute for more information.
Use with Attribute.type to create a link.
Requires: iOS 7.0 and later
Set Attribute.value to a URL.
Use the Label's link event to determine when the user triggers a long press (not a click) event on the linked text.
See Attribute for more information.
Use with Attribute.type to skew the text.
Requires: iOS 7.0 and later
Set Attribute.value to a float value to specify how much to skew the text.
See Attribute for more information.
Use with Attribute.type to display a shadow behind the text.
Requires: iOS 6.0 and later
Set Attribute.value to a Shadow dictionary.
See Attribute for more information.
Use with Attribute.type to change the color of the horizontal line.
Requires: iOS 7.0 and later
Use a color name or hex value for Attribute.value.
See Attribute for more information.
Use with Attribute.type to place a horizontal line through the text.
Requires: iOS 6.0 and later
Set the value
property to a Titanium.UI.ATTRIBUTE_UNDERLINE_*
constant.
See Attribute for more information.
Use with Attribute.type to specify a color for the stroke text.
Requires: iOS 6.0 and later
Use a color name or hex value for the value
property in the attributes dictionary.
See Attribute for more information on type modes.
Use with Attribute.type to specify the width of the stroke text.
Requires: iOS 6.0 and later
Set Attribute.value to a float value specifying the size of stroke width as a percentage of the font size. A positive value displays an outline of the charater, while a negative value fills the character.
See Attribute for more information.
Use with Attribute.type to place the text in a lower position.
Use with Attribute.type to place the text in a lower position.
See Attribute for more information.
Use with Attribute.type to place the text in an upper position.
Use with Attribute.type to place the text in an upper position.
See Attribute for more information.
Use with Attribute.type to apply a text effect.
Requires: iOS 7.0 and later
Set Attribute.value to Titainium.UI.ATTRIBUTE_LETTERPRESS_STYLE
to apply a
letterpress effect to the text.
See Attribute for more information.
Use with Attribute.type to place a horizontal line under the text.
Requires: iOS 6.0 and later
Set the value
property to a Titanium.UI.ATTRIBUTE_UNDERLINE_*
constant.
See Attribute for more information.
Use with Attribute.value to draw a line only underneath or through words.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.type to change the color of the horizontal line.
Requires: iOS 7.0 and later
Use a color name or hex value for Attribute.value.
See Attribute for more information.
Use with Attribute.value to draw a dashed line.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.value to draw an alternating line of dashes and dots.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.value to draw an alternating line of dashes and two dots.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.value to draw a dotted line.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.value to draw a solid line.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.value to draw a double line.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.value to not draw a line.
Requires: iOS 6.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.value to draw a single line.
Requires: iOS 6.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.value to draw a thick line.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is either ATTRIBUTE_UNDERLINES_STYLE or ATTRIBUTE_STRIKETHROUGH_STYLE.
See Attribute for more information.
Use with Attribute.type to control the direction of the text.
Requires: iOS 7.0 and later
Set Attribute.value to a Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_*
constant.
See Attribute for more information on type modes.
Use with Attribute.value to use the embedded text direction.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_WRITING_DIRECTION.
See Attribute for more information.
Use with Attribute.value to write text left to right.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_WRITING_DIRECTION.
See Attribute for more information.
Use with Attribute.value to use the Unicode Bidirection Algorithm rules P2 and P3 to determine which direction to use.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_WRITING_DIRECTION.
See Attribute for more information.
Use with Attribute.value to override the text direction.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_WRITING_DIRECTION.
See Attribute for more information.
Use with Attribute.value to write text right to left.
Requires: iOS 7.0 and later
Use this constant when Attribute.type is ATTRIBUTE_WRITING_DIRECTION.
See Attribute for more information.
Converts strings formatted as addresses into clickable links.
Converts strings formatted as addresses into clickable links.
This property has been removed
6.0.0 Use <Titanium.UI.AUTOLINK_MAP_ADDRESSES> instead.
Requires: iOS 4.0 and later
Converts all detectable types of data into clickable links.
Converts all detectable types of data into clickable links.
This property has been removed since 6.0.0
Use <Titanium.UI.AUTOLINK_ALL> instead.
Converts strings formatted as calendar events into clickable links.
Converts strings formatted as calendar events into clickable links.
This property has been removed
6.0.0 Use <Titanium.UI.AUTOLINK_CALENDAR> instead.
Requires: iOS 4.0 and later
Converts strings formatted as URLs into clickable links.
Converts strings formatted as URLs into clickable links.
This property has been removed since 6.0.0
Use <Titanium.UI.AUTOLINK_URLS> instead.
Disables converting strings into clickable links.
Disables converting strings into clickable links.
This property has been removed since 6.0.0
Use <Titanium.UI.AUTOLINK_NONE> instead.
Converts strings formatted as phone numbers into clickable links.
Converts strings formatted as phone numbers into clickable links.
This property has been removed since 6.0.0
Use <Titanium.UI.AUTOLINK_PHONE_NUMBERS> instead.
Specifies the expectation of an address.
Requires: iOS 10.0 and later Android 8.0 and later
Specifies the expectation of a city name.
Requires: iOS 10.0 and later
Specifies the expectation of a city name combined with a state name.
Requires: iOS 10.0 and later
Specifies the expectation of the first line of a street address.
Requires: iOS 10.0 and later
Specifies the expectation of the second line of a street address.
Requires: iOS 10.0 and later
Specifies the expectation of a state name.
Requires: iOS 10.0 and later
Specifies the expectation of a card expiration date.
Requires: Android 8.0 and later
Specifies the expectation of a card expectation day.
Requires: Android 8.0 and later
Specifies the expectation of a card expectation month.
Requires: Android 8.0 and later
Specifies the expectation of a card expectation year.
Requires: Android 8.0 and later
Specifies the expectation of a card number.
Requires: iOS 10.0 and later Android 8.0 and later
Specifies the expectation of a card security code.
Requires: Android 8.0 and later
Specifies the expectation of a country name.
Requires: iOS 10.0 and later
Specifies the expectation of an email address.
Requires: iOS 10.0 and later Android 8.0 and later
Specifies the expectation of a family name.
Requires: iOS 10.0 and later
Specifies the expectation of a given name.
Requires: iOS 10.0 and later
Specifies the expectation of a job title.
Requires: iOS 10.0 and later
Specifies the expectation of a location, such as a point of interest, an address, or another way to identify a location.
Requires: iOS 10.0 and later
Specifies the expectation of a middle name.
Requires: iOS 10.0 and later
Specifies the expectation of a name.
Requires: iOS 10.0 and later Android 8.0 and later
Specifies the expectation of a prefix or title, such as 'Dr.'
Requires: iOS 10.0 and later
Specifies the expectation of a prefix or title, such as 'Dr.'
Requires: iOS 10.0 and later
Specifies the expectation of a suffix, such as 'Jr.'
Requires: iOS 10.0 and later
Specifies the expectation of a suffix, such as 'Jr.'
Requires: iOS 10.0 and later
Specifies the expectation of a nickname.
Requires: iOS 10.0 and later
Specifies the expectation of an organization name.
Requires: iOS 10.0 and later
Specifies the expectation of a password.
Requires: iOS 11.0 and later Android 8.0 and later
Specifies the expectation of a telephone number.
Requires: iOS 10.0 and later Android 8.0 and later
Specifies the expectation of a postal code.
Requires: iOS 10.0 and later Android 8.0 and later
Specifies the expectation of a sublocality.
Requires: iOS 10.0 and later
Specifies the expectation of a URL.
Requires: iOS 10.0 and later
Specifies the expectation of an account or login name.
Requires: iOS 11.0 and later Android 8.0 and later
Converts all detectable types of data into clickable links.
Converts all detectable types of data into clickable links.
Two or more autolink constants can be combined using bitwise or. On iOS: Use with the Titanium.UI.TextArea.autoLink property.
On Android: Use with Titanium.UI.TextArea.autoLink, Titanium.UI.TextField.autoLink, and Titanium.UI.Label.autoLink properties.
Converts strings formatted as calendar events into clickable links.
Requires: iOS 4.0 and later
Use with the Titanium.UI.TextArea.autoLink property. Two or more autolink constants can be combined using bitwise or.
Converts strings formatted as email addresses into clickable links.
Converts strings formatted as email addresses into clickable links.
Two or more autolink constants can be combined using bitwise or. On iOS: Use with the Titanium.UI.TextArea.autoLink property. This property will also convert strings formatted as URLs into clickable links.
On Android: Use with Titanium.UI.TextArea.autoLink, Titanium.UI.TextField.autoLink, and Titanium.UI.Label.autoLink properties.
Converts strings formatted as addresses into clickable links.
Requires: iOS 4.0 and later
Two or more autolink constants can be combined using bitwise or. On iOS: Use with the Titanium.UI.TextArea.autoLink property.
On Android: Use with Titanium.UI.TextArea.autoLink, Titanium.UI.TextField.autoLink, and Titanium.UI.Label.autoLink properties.
Disables converting strings into clickable links.
Disables converting strings into clickable links.
Two or more autolink constants can be combined using bitwise or. On iOS: Use with the Titanium.UI.TextArea.autoLink property.
On Android: Use with Titanium.UI.TextArea.autoLink, Titanium.UI.TextField.autoLink, and Titanium.UI.Label.autoLink properties.
Converts strings formatted as phone numbers into clickable links.
Converts strings formatted as phone numbers into clickable links.
Two or more autolink constants can be combined using bitwise or. On iOS: Use with the Titanium.UI.TextArea.autoLink property.
On Android: Use with Titanium.UI.TextArea.autoLink, Titanium.UI.TextField.autoLink, and Titanium.UI.Label.autoLink properties.
Converts strings formatted as URLs into clickable links.
Converts strings formatted as URLs into clickable links.
Two or more autolink constants can be combined using bitwise or. On iOS: Use with the Titanium.UI.TextArea.autoLink property. This property will also convert strings formatted as email addresses into clickable links.
On Android: Use with Titanium.UI.TextArea.autoLink, Titanium.UI.TextField.autoLink, and Titanium.UI.Label.autoLink properties.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_CLEAR> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_COLOR> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_COLOR_BURN> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_COLOR_DODGE> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_COPY> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_DARKEN> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_DESTINATION_ATOP> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_DESTINATION_IN> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_DESTINATION_OUT> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_DESTINATION_OVER> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_DIFFERENCE> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_EXCLUSION> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_HARD_LIGHT> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_HUE> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_LIGHTEN> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_LUMINOSITY> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_MULTIPLY> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_NORMAL> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_OVERLAY> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_PLUS_DARKER> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_PLUS_LIGHTER> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_SATURATION> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_SCREEN> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_SOFT_LIGHT> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_SOURCE_ATOP> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_SOURCE_IN> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_SOURCE_OUT> instead.
Use with MaskedImage.mode to specify a blend mode.
Use with MaskedImage.mode to specify a blend mode.
This property has been removed since 6.0.0
Use <Titanium.UI.iOS.BLEND_MODE_XOR> instead.
Specifies the time and date that you want the system to remove the clipboard items from the clipboard.
Requires: iOS 10.0 and later
Specifies that the clipboard items should not be available to other devices through Handoff.
Requires: iOS 10.0 and later
Specifies that all the edges of the window can extend.
Specifies that all the edges of the window can extend.
One of the group of constants for the Titanium.UI.Window.extendEdges property.
Specifies that the bottom edge of the window can extend.
Specifies that the bottom edge of the window can extend.
One of the group of constants for the Titanium.UI.Window.extendEdges property.
Specifies that the left edge of the window can extend.
Specifies that the left edge of the window can extend.
One of the group of constants for the Titanium.UI.Window.extendEdges property.
Specifies that none of the edges of the window can extend.
Specifies that none of the edges of the window can extend.
One of the group of constants for the Titanium.UI.Window.extendEdges property.
Specifies that the right edge of the window can extend.
Specifies that the right edge of the window can extend.
One of the group of constants for the Titanium.UI.Window.extendEdges property.
Specifies that the top edge of the window can extend.
Specifies that the top edge of the window can extend.
One of the group of constants for the Titanium.UI.Window.extendEdges property.
Constant value for face-down orientation.
Constant value for face-down orientation.
One of the group of orientation constants for the Titanium.Gesture module, PORTRAIT, UPSIDE_PORTRAIT, LANDSCAPE_LEFT, LANDSCAPE_RIGHT, FACE_UP, FACE_DOWN, and UNKNOWN.
Constant value for face-up orientation.
Constant value for face-up orientation.
One of the group of orientation constants for the Titanium.Gesture module, PORTRAIT, UPSIDE_PORTRAIT, LANDSCAPE_LEFT, LANDSCAPE_RIGHT, FACE_UP, FACE_DOWN, and UNKNOWN.
FILL behavior for UI layout.
FILL behavior for UI layout.
The FILL behavior means the view will grow its size to fill its parent.
Release free space when hiding an object.
Release free space when hiding an object.
Keeps free space when hiding an object.
Keeps free space when hiding an object.
Use when creating a TextField to specify the hintType as animated.
Use when creating a TextField to specify the hintType as animated.
Use when creating a TextField to specify the hintType as static.
deprecated since 6.2.0
Use a bezel-style border on the input field.
Use a bezel-style border on the input field.
Use with the Titanium.UI.TextField.borderStyle property.
Use a simple line border on the input field.
Use a simple line border on the input field.
Use with the Titanium.UI.TextField.borderStyle property.
Use no border on the input field.
Use no border on the input field.
Use with the Titanium.UI.TextField.borderStyle property.
Use a rounded-rectangle border on the input field.
Use a rounded-rectangle border on the input field.
Use with the Titanium.UI.TextField.borderStyle property.
Always show buttons on the input field.
Always show buttons on the input field.
Use with the Titanium.UI.TextField.clearButtonMode, Titanium.UI.TextField.leftButtonMode, and Titanium.UI.TextField.rightButtonMode properties.
Never show buttons on the input field.
Never show buttons on the input field.
Use with the Titanium.UI.TextField.clearButtonMode, Titanium.UI.TextField.leftButtonMode, and Titanium.UI.TextField.rightButtonMode properties.
Show buttons on the input field when it loses focus.
Show buttons on the input field when it loses focus.
Use with the Titanium.UI.TextField.clearButtonMode, Titanium.UI.TextField.leftButtonMode, and Titanium.UI.TextField.rightButtonMode properties.
Show buttons on the input field when it gains focus.
Show buttons on the input field when it gains focus.
Use with the Titanium.UI.TextField.clearButtonMode, Titanium.UI.TextField.leftButtonMode, and Titanium.UI.TextField.rightButtonMode properties.
Use a keyboard with a number pad only, with the pad keyboard layout. Accepts only numbers.
Use with the Titanium.UI.TextField.inputType properties. This overrides any changes Titanium.UI.TextField.keyboardType does to the inputType of the Android device.
Use an ASCII keyboard, with the standard keyboard layout.
Use an ASCII keyboard, with the standard keyboard layout.
Use with the Titanium.UI.TextField.inputType properties. This overrides any changes Titanium.UI.TextField.keyboardType does to the inputType of the Android device.
Use a keyboard appearance suitable for entering text on an alert.
deprecated since 5.4.0
Use the platform-specific dark keyboard appearance.
Use the platform-specific dark keyboard appearance.
Use the platform-specific default keyboard appearance.
Use the platform-specific default keyboard appearance.
Use the platform-specific light keyboard appearance.
Use the platform-specific light keyboard appearance.
Use an ASCII keyboard, with the standard keyboard layout.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_ASCII> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard with decimal numbers only, with the pad keyboard layout.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_DECIMAL_PAD> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
On iPad, this behaves the same as KEYBOARD_DEFAULT.
Use the default keyboard, depending on the platform.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_DEFAULT> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard suitable for composing email, with the standard keyboard layout.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_EMAIL> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard suitable for entering names and phone numbers, with the pad keyboard layout.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_NAMEPHONE_PAD> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard with numbers and punctuation only, with the standard keyboard layout.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_NUMBERS_PUNCTUATION> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard with a number pad only, with the pad keyboard layout.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_NUMBER_PAD> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
On iPad, this behaves the same as KEYBOARD_NUMBERS_PUNCTUATION.
Use a keyboard with a phone-style number pad, with the pad keyboard layout.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_PHONE_PAD> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
On iPad, this behaves the same as KEYBOARD_NUMBERS_PUNCTUATION.
Use an ASCII keyboard, with the standard keyboard layout.
Use an ASCII keyboard, with the standard keyboard layout.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard with decimal numbers only, with the pad keyboard layout.
Use a keyboard with decimal numbers only, with the pad keyboard layout.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
On iPad, this behaves the same as KEYBOARD_TYPE_DEFAULT. type: Number
Use the default keyboard, depending on the platform.
Use the default keyboard, depending on the platform.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard suitable for composing email, with the standard keyboard layout.
Use a keyboard suitable for composing email, with the standard keyboard layout.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard suitable for entering names and phone numbers, with the pad keyboard layout.
Use a keyboard suitable for entering names and phone numbers, with the pad keyboard layout.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard with numbers and punctuation only, with the standard keyboard layout.
Use a keyboard with numbers and punctuation only, with the standard keyboard layout.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard with a number pad only, with the pad keyboard layout.
Use a keyboard with a number pad only, with the pad keyboard layout.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
On iPad, this behaves the same as KEYBOARD_TYPE_NUMBERS_PUNCTUATION.
Use a keyboard with a phone-style number pad, with the pad keyboard layout.
Use a keyboard with a phone-style number pad, with the pad keyboard layout.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
On iPad, this behaves the same as KEYBOARD_TYPE_NUMBERS_PUNCTUATION.
Use a keyboard optimized for twitter text entry, with easy access to the and
Use a keyboard optimized for twitter text entry, with easy access to the and
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard optimized for entering URLs, with the standard keyboard layout.
Use a keyboard optimized for entering URLs, with the standard keyboard layout.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Use a keyboard optimized for web search terms and URL entry.
Use a keyboard optimized for web search terms and URL entry.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties. This type features the space and . characters prominently.
Note: This keyboard automatically sets the return key to "Go" (localized).
Use a keyboard optimized for entering URLs, with the standard keyboard layout.
deprecated since 5.2.0
Use <Titanium.UI.KEYBOARD_TYPE_URL> instead.
Use with the Titanium.UI.TextField.keyboardType and Titanium.UI.TextArea.keyboardType properties.
Standard landscape orientation (home button on left).
Standard landscape orientation (home button on left).
One of the group of orientation constants for the Titanium.Gesture module, PORTRAIT, UPSIDE_PORTRAIT, LANDSCAPE_LEFT, LANDSCAPE_RIGHT, FACE_UP, FACE_DOWN, and UNKNOWN.
Reverse landscape orientation (home button on right).
Reverse landscape orientation (home button on right).
One of the group of orientation constants for the Titanium.Gesture module, PORTRAIT, UPSIDE_PORTRAIT, LANDSCAPE_LEFT, LANDSCAPE_RIGHT, FACE_UP, FACE_DOWN, and UNKNOWN.
Displays a checkmark on the right side of an item in a list view.
Displays a checkmark on the right side of an item in a list view.
Use to indicate an item in a list is selected.
Displays a detail disclosure button on the right side of an item in a list view.
Displays a detail disclosure button on the right side of an item in a list view.
Use to indicate that selecting this item results in the display of a detailed view of that item.
Displays a disclosure indicator on the right side of an item in a list view.
Displays a disclosure indicator on the right side of an item in a list view.
Use to indicate that selecting this item results in the display of another list, reflecting the next level in the data model hierarchy.
Do not display anything on the right side of an item in a list view.
Do not display anything on the right side of an item in a list view.
A built-in style for an item with a right-aligned title label on the left side of the cell, which is next to a left-aligned subtitle label.
The title label value and subtitle label value bind to the title
and subtitle
properties, respectively, of the data item. If a property is not set, that element is not
displayed.
A built-in style for an item with an image view and left-aligned title label.
A built-in style for an item with an image view and left-aligned title label.
The text label value and image value bind to the title
and image
properties, respectively,
of the data item. If a property is not set, that element is not displayed.
On Android, the image appears on the right side of the cell, and on iOS, the image appears on the left side of the cell.
A built-in style for a item with an image view; a left-aligned title label; and a right-aligned subtitle label.
A built-in style for a item with an image view; a left-aligned title label; and a right-aligned subtitle label.
The title label value, subtitle label value and image value bind to the title
, subtitle
and image
properties, respectively, of the data item. If a property is not set, that
element is not displayed.
A built-in style for an item with an image view; a black, left-aligned title label across the top of the cell and a subtitle label below it.
The title label value, subtitle label value and image value bind to the title
, subtitle
and image
properties, respectively, of the data item. If a property is not set, that
element is not displayed.
Specifies a long duration for an Android Toast notification (Titanium.UI.Notification).
Specifies a long duration for an Android Toast notification (Titanium.UI.Notification).
Specifies a short duration for an Android Toast notification (Titanium.UI.Notification).
Specifies a short duration for an Android Toast notification (Titanium.UI.Notification).
Use a picker with a countdown timer appearance, showing hours and minutes.
Use a picker with a countdown timer appearance, showing hours and minutes.
For an actual countdown timer, the application is responsible for setting a timer to update the picker values.
Use a plain picker (for values other than date or time).
Use a plain picker (for values other than date or time).
Orientation constant for portrait mode orientation.
Orientation constant for portrait mode orientation.
One of the group of orientation constants for the Titanium.Gesture module, PORTRAIT, UPSIDE_PORTRAIT, LANDSCAPE_LEFT, LANDSCAPE_RIGHT, FACE_UP, FACE_DOWN, and UNKNOWN.
Set the return key text to "Continue".
Requires: iOS 9.0 and later
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Note: This constant is only available on iOS devices running iOS 9 or later. Older iOS devices will display RETURNKEY_DEFAULT.
Use the default return key on the virtual keyboard.
Use the default return key on the virtual keyboard.
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
On Android devices, the default return key displays a graphical arrow.
Set the return key text to "Done".
Set the return key text to "Done".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Emergency Call".
Set the return key text to "Emergency Call".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Go".
Set the return key text to "Go".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Google".
Set the return key text to "Google".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Join".
Set the return key text to "Join".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Next".
Set the return key text to "Next".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Route".
Set the return key text to "Route".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Search".
Set the return key text to "Search".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Send".
Set the return key text to "Send".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
Set the return key text to "Yahoo".
Set the return key text to "Yahoo".
Use with the Titanium.UI.TextField.returnKeyType and Titanium.UI.TextArea.returnKeyType properties.
SIZE behavior for UI layout.
SIZE behavior for UI layout.
The SIZE behavior means the view will constrain its size fit its contents.
The row divider is hidden.
The row divider is hidden.
The row divider is shown as a single line.
The row divider is shown as a single line.
Center align text.
Center align text.
Use with the Titanium.UI.TextField.textAlign, Titanium.UI.Button.textAlign and Titanium.UI.TextArea.textAlign properties.
This constant is a string on Android, and a number on iOS.
Justify align text.
Justify align text.
Use with the Titanium.UI.TextField.textAlign, Titanium.UI.Button.textAlign and Titanium.UI.TextArea.textAlign properties.
This constant is a number and only available on iOS.
Left align text.
Left align text.
Use with the Titanium.UI.TextField.textAlign, Titanium.UI.Button.textAlign and Titanium.UI.TextArea.textAlign properties.
This constant is a string on Android, and a number on iOS.
Right align text.
Right align text.
Use with the Titanium.UI.TextField.textAlign, Titanium.UI.Button.textAlign and Titanium.UI.TextArea.textAlign properties.
This constant is a string on Android, and a number on iOS.
Auto-capitalize all text in the input field.
Auto-capitalize all text in the input field.
Use with the Titanium.UI.TextField.autocapitalization and Titanium.UI.TextArea.autocapitalization properties.
Do not auto-capitalize.
Do not auto-capitalize.
Use with the Titanium.UI.TextField.autocapitalization and Titanium.UI.TextArea.autocapitalization properties.
Use sentence-style auto-capitalization in the input field.
Use sentence-style auto-capitalization in the input field.
Use with the Titanium.UI.TextField.autocapitalization and Titanium.UI.TextArea.autocapitalization properties.
Auto-capitalize the first letter of each word in the input field.
Auto-capitalize the first letter of each word in the input field.
Use with the Titanium.UI.TextField.autocapitalization and Titanium.UI.TextArea.autocapitalization properties.
Add ellipses before the first character that doesnt fit.
Add ellipses before the first character that doesnt fit.
One of the group of constants for the Titanium.UI.Label.ellipsize property.
Lines are simply not drawn past the edge of the text container.
Lines are simply not drawn past the edge of the text container.
One of the group of constants for the Titanium.UI.Label.ellipsize property.
Add ellipses at the end of the label if the text is too large to fit.
Add ellipses at the end of the label if the text is too large to fit.
One of the group of constants for the Titanium.UI.Label.ellipsize property.
Turns on a marquee effect of the label if the text is too large to fit. (This requires Titanium.UI.Label.focusable to be true)
One of the group of constants for the Titanium.UI.Label.ellipsize property.
Add ellipses in the middle of the label if the text is too large to fit.
Add ellipses in the middle of the label if the text is too large to fit.
One of the group of constants for the Titanium.UI.Label.ellipsize property.
Disables ellipsizing of the label. The text will be cut off if it is too long.
One of the group of constants for the Titanium.UI.Label.ellipsize property.
Add ellipses at the beginning of the label if the text is too large to fit.
Add ellipses at the beginning of the label if the text is too large to fit.
One of the group of constants for the Titanium.UI.Label.ellipsize property.
Add ellipses at word boundaries, unless the word itself doesn't fit on a single line.
Add ellipses at word boundaries, unless the word itself doesn't fit on a single line.
One of the group of constants for the Titanium.UI.Label.ellipsize property.
Align text to the bottom of the view.
Align text to the bottom of the view.
Use with the Titanium.UI.TextField.verticalAlign and Titanium.UI.TextArea.verticalAlign properties.
This constant is a string on Android, and a number on iOS.
Vertically align text to the center of the view.
Vertically align text to the center of the view.
Use with the Titanium.UI.TextField.verticalAlign and Titanium.UI.TextArea.verticalAlign properties.
This constant is a string on Android, and a number on iOS.
Align text to the top of the view.
Align text to the top of the view.
Use with the Titanium.UI.TextField.verticalAlign and Titanium.UI.TextArea.verticalAlign properties.
This constant is a string on Android, and a number on iOS.
Unit constant representing units in centimeters.
Unit constant representing units in centimeters.
Unit constant representing units in density-independent pixels.
Unit constant representing units in density-independent pixels.
Unit constant representing units in inches.
Unit constant representing units in inches.
Unit constant representing units in millimeters.
Unit constant representing units in millimeters.
Unit constant representing units in pixels.
Unit constant representing units in pixels.
Orientation constant representing an unknown orientation.
Orientation constant representing an unknown orientation.
One of the group of orientation constants for the Titanium.Gesture module, PORTRAIT, UPSIDE_PORTRAIT, LANDSCAPE_LEFT, LANDSCAPE_RIGHT, FACE_UP, FACE_DOWN, and UNKNOWN.
Orientation constant for inverted portait orientation.
Orientation constant for inverted portait orientation.
One of the group of orientation constants for the Titanium.Gesture module, PORTRAIT, UPSIDE_PORTRAIT, LANDSCAPE_LEFT, LANDSCAPE_RIGHT, FACE_UP, FACE_DOWN, and UNKNOWN.
Authentication error code reported via Titanium.UI.WebView.error.
Authentication error code reported via Titanium.UI.WebView.error.
Bad url error code reported via Titanium.UI.WebView.error.
Bad url error code reported via Titanium.UI.WebView.error.
Error code reported via Titanium.UI.WebView.error for a failure to connect to host.
Error code reported via Titanium.UI.WebView.error for a failure to connect to host.
Error code reported via Titanium.UI.WebView.error for a failure to access a file resource on a host, except "file not found", which has its own constant.
Error code reported via Titanium.UI.WebView.error when a requested file does not exist on the host.
Error code reported via Titanium.UI.WebView.error when a requested file does not exist on the host.
Error code reported via Titanium.UI.WebView.error when a host name cannot be resolved, such as via a DNS lookup error.
Error code reported via Titanium.UI.WebView.error when a host name cannot be resolved, such as via a DNS lookup error.
Error code reported via Titanium.UI.WebView.error when a redirect loop is detected.
Error code reported via Titanium.UI.WebView.error when a redirect loop is detected.
Error code reported via Titanium.UI.WebView.error for an SSL failure.
Error code reported via Titanium.UI.WebView.error for an SSL failure.
Error code reported via Titanium.UI.WebView.error when a timeout occurs.
Error code reported via Titanium.UI.WebView.error when a timeout occurs.
Error code reported via Titanium.UI.WebView.error when an unknown error occurs.
Error code reported via Titanium.UI.WebView.error when an unknown error occurs.
Error code reported via Titanium.UI.WebView.error when a url contains an unsupported scheme.
Error code reported via Titanium.UI.WebView.error when a url contains an unsupported scheme.
The name of the API that this proxy corresponds to.
The name of the API that this proxy corresponds to.
The value of this property is the fully qualified name of the API. For example, Button
returns Ti.UI.Button
.
Sets the background color of the master view (when there are no windows or other top-level controls displayed).
Sets the background color of the master view (when there are no windows or other top-level controls displayed).
The default background color may also show through if you use semi-transparent windows.
Local path or URL to an image file for setting a background for the master view (when there are no windows or other top-level controls displayed).
The default background image may also show through if you use semi-transparent windows.
Indicates if the proxy will bubble an event to its parent.
Some proxies (most commonly views) have a relationship to other proxies, often established by the add() method. For example, for a button added to a window, a click event on the button would bubble up to the window. Other common parents are table sections to their rows, table views to their sections, and scrollable views to their views. Set this property to false to disable the bubbling to the proxy's parent.
Default: true
The currently active tab, if a tab group is open.
The currently active tab, if a tab group is open.
If no tab group is open, this value is undefined.
The active window associated with the executing JavaScript context.
The active window associated with the executing JavaScript context.
This property is only available when using the Titanium.UI.Window.url property to load JavaScript files in their own contexts.
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
If this property is set to a Window or TabGroup, then the corresponding Activity lifecycle event callbacks will also be called on the proxy. Proxies that require the activity lifecycle will need this property set to the appropriate containing Window or TabGroup.
Updates the orientation of the current window to the specified orientation value.
Updates the orientation of the current window to the specified orientation value.
This property has been removed since 3.0.0
Use <Titanium.UI.Window.orientationModes> instead.
Sets the global tint color of the application. It is inherited by the child views and can be
overwritten by them using the tintColor
property.
Adds the specified callback as an event listener for the named event.
Name of the event.
Callback function to invoke when the event is fired.
Applies the properties to the proxy.
Properties are supplied as a dictionary. Each key-value pair in the object is applied to the proxy such that myproxy[key] = value.
A dictionary of properties to apply.
Converts one type of unit to another using the metrics of the main display.
As this method does not support percentages, 0
is returned if they are specified.
Measurement and optional unit to convert from, i.e. 160, "120dip". Percentages are not accepted.
Creates and returns an instance of Titanium.UI.2DMatrix.
Initial transformation of the matrix.
Creates and returns an instance of Titanium.UI.3DMatrix.
Properties to set on a new object, including any defined by Titanium.UI.3DMatrix except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.ActivityIndicator.
Properties to set on a new object, including any defined by Titanium.UI.ActivityIndicator except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.AlertDialog.
Properties to set on a new object, including any defined by Titanium.UI.AlertDialog except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Animation.
Properties to set on a new object, including any defined by Titanium.UI.Animation except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.AttributedString.
Properties to set on a new object, including any defined by Titanium.UI.AttributedString except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Button.
Properties to set on a new object, including any defined by Titanium.UI.Button except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.ButtonBar.
Properties to set on a new object, including any defined by Titanium.UI.ButtonBar except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.CoverFlowView.
deprecated since 1.8.0
Use <Titanium.UI.iOS.CoverFlowView> instead.
Properties to set on a new object, including any defined by Titanium.UI.CoverFlowView except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.DashboardItem.
Properties to set on a new object, including any defined by Titanium.UI.DashboardItem except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.DashboardView.
Properties to set on a new object, including any defined by Titanium.UI.DashboardView except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.EmailDialog.
Properties to set on a new object, including any defined by Titanium.UI.EmailDialog except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.ImageView.
Properties to set on a new object, including any defined by Titanium.UI.ImageView except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Label.
Properties to set on a new object, including any defined by Titanium.UI.Label except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.ListSection.
Properties to set on a new object, including any defined by Titanium.UI.ListSection except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.ListView.
Properties to set on a new object, including any defined by Titanium.UI.ListView except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.MaskedImage.
Properties to set on a new object, including any defined by Titanium.UI.MaskedImage except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Notification.
Properties to set on a new object, including any defined by Titanium.UI.Notification except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.OptionDialog.
Properties to set on a new object, including any defined by Titanium.UI.OptionDialog except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Picker.
Properties to set on a new object, including any defined by Titanium.UI.Picker except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.PickerColumn.
Properties to set on a new object, including any defined by Titanium.UI.PickerColumn except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.PickerRow.
Properties to set on a new object, including any defined by Titanium.UI.PickerRow except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.ProgressBar.
Properties to set on a new object, including any defined by Titanium.UI.ProgressBar except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.RefreshControl.
Properties to set on a new object, including any defined by Titanium.UI.RefreshControl except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.ScrollView.
Properties to set on a new object, including any defined by Titanium.UI.ScrollView except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.ScrollableView.
Properties to set on a new object, including any defined by Titanium.UI.ScrollableView except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.SearchBar.
Properties to set on a new object, including any defined by Titanium.UI.SearchBar except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Slider.
Properties to set on a new object, including any defined by Titanium.UI.Slider except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Switch.
Properties to set on a new object, including any defined by Titanium.UI.Switch except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Tab.
Properties to set on a new object, including any defined by Titanium.UI.Tab except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.TabGroup.
Properties to set on a new object, including any defined by Titanium.UI.TabGroup except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.TabbedBar.
deprecated since 1.8.0
Use <Titanium.UI.iOS.TabbedBar> instead.
Properties to set on a new object, including any defined by Titanium.UI.TabbedBar except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.TableView.
Properties to set on a new object, including any defined by Titanium.UI.TableView except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.TableViewRow.
Properties to set on a new object, including any defined by Titanium.UI.TableViewRow except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.TableViewSection.
Properties to set on a new object, including any defined by Titanium.UI.TableViewSection except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.TextArea.
Properties to set on a new object, including any defined by Titanium.UI.TextArea except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.TextField.
Properties to set on a new object, including any defined by Titanium.UI.TextField except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Toolbar.
Properties to set on a new object, including any defined by Titanium.UI.Toolbar except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.View.
Properties to set on a new object, including any defined by Titanium.UI.View except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.WebView.
Properties to set on a new object, including any defined by Titanium.UI.WebView except those marked not-creation or read-only.
Creates and returns an instance of Titanium.UI.Window.
Properties to set on a new object, including any defined by Titanium.UI.Window except those marked not-creation or read-only.
Fires a synthesized event to any registered listeners.
Name of the event.
A dictionary of keys and values to add to the Titanium.Event object sent to the listeners.
Gets the value of the orientation property.
This method has been removed since 3.0.0
Use <Titanium.UI.Window.orientationModes> instead.
Removes the specified callback as an event listener for the named event.
Multiple listeners can be registered for the same event, so the
callback
parameter is used to determine which listener to remove.
When adding a listener, you must save a reference to the callback function in order to remove the listener later:
var listener = function() { Ti.API.info("Event listener called."); }
window.addEventListener('click', listener);
To remove the listener, pass in a reference to the callback function:
window.removeEventListener('click', listener);
Name of the event.
Callback function to remove. Must be the same function passed to addEventListener
.
Sets the value of the backgroundColor property.
New value for the property.
Sets the value of the backgroundImage property.
New value for the property.
Sets the value of the bubbleParent property.
New value for the property.
Sets the value of the currentTab property.
New value for the property.
Sets the value of the lifecycleContainer property.
New value for the property.
Sets the value of the orientation property.
This method has been removed since 3.0.0
Use <Titanium.UI.Window.orientationModes> instead.
New value for the property.
Sets the value of the tintColor property.
New value for the property.