Titanium.UI

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.

Design

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.

Optimizations

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.

Global Context and Threading

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.

Portability

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.

Events

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.

Colors

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.

Examples

Color Demo

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();
  • 0.8
  • 0.8
  • 0.8
Defined By

Properties

Titanium.UI
ANIMATION_CURVE_EASE_IN : Numberreadonly

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.

  • 0.8
  • 0.8
Titanium.UI
: Numberreadonly
Use with Animation.curve to specify an animation that starts slowly, and speeds up, then slows down at the end of the...

Use with Animation.curve to specify an animation that starts slowly, and speeds up, then slows down at the end of the animation.

  • 0.8
  • 0.8
Titanium.UI
ANIMATION_CURVE_EASE_OUT : Numberreadonly

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.

  • 0.8
  • 0.8
Titanium.UI
ANIMATION_CURVE_LINEAR : Numberreadonly

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.

  • 0.8
  • 0.8
Titanium.UI
: Numberreadonly
Use with Attribute.type to specify a background color. ...

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.

  • 3.6.0
  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to apply a different baseline to the text. ...

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.

  • 7.0.0
  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to stretch the text horizontally. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to specify a font. ...

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.

  • 3.6.0
  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to specify a font color. ...

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.

  • 3.6.0
  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to specify kerning (space between characters). ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to use a letterpress text effect. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to enable or disable ligatures. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to wrap and truncate the text. ...

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.

  • 5.0.0
  • 5.0.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to wrap words at word boundaries. ...

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.

  • 5.0.0
  • 5.0.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to set lines to not draw past the edge of the text container. ...

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.

  • 5.0.0
  • 5.0.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to use ellipsis glyph at the beginning of the line for missing text. ...

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.

  • 5.0.0
  • 5.0.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to use ellipsis glyph at the middle of the line for missing text. ...

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.

  • 5.0.0
  • 5.0.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to use ellipsis glyph at the end of the line for missing text. ...

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.

  • 5.0.0
  • 5.0.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to wrap words at word boundaries. ...

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.

  • 5.0.0
  • 5.0.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to skew the text. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to display a shadow behind the text. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to change the color of the horizontal line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to place a horizontal line through the text. ...

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.

  • 3.6.0
  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to specify a color for the stroke text. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to specify the width of the stroke text. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
ATTRIBUTE_SUBSCRIPT_STYLE : Numberreadonly

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.

  • 6.1.0
Titanium.UI
ATTRIBUTE_SUPERSCRIPT_STYLE : Numberreadonly

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.

  • 6.1.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to apply a text effect. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to place a horizontal line under the text. ...

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.

  • 3.6.0
  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw a line only underneath or through words. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to change the color of the horizontal line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw a dashed line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw an alternating line of dashes and dots. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw an alternating line of dashes and two dots. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw a dotted line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw a solid line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw a double line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to not draw a line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw a single line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to draw a thick line. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.type to control the direction of the text. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to use the embedded text direction. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to write text left to right. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to use the Unicode Bidirection Algorithm rules P2 and P3 to determine which direction to use. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to override the text direction. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
: Numberreadonly
Use with Attribute.value to write text right to left. ...

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.

  • 3.6.0
  • 3.6.0
Titanium.UI
AUTODETECT_ADDRESS : Numberreadonlyremoved

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

  • 0.8
  • 0.8
Titanium.UI
AUTODETECT_ALL : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
AUTODETECT_CALENDAR : Numberreadonlyremoved

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

  • 0.8
  • 0.8
Titanium.UI
AUTODETECT_NONE : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
AUTODETECT_PHONE : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
: Stringreadonly
Specifies the expectation of an address. ...

Specifies the expectation of an address.

Requires: iOS 10.0 and later Android 8.0 and later

  • 6.3.0
  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a city name. ...

Specifies the expectation of a city name.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a city name combined with a state name. ...

Specifies the expectation of a city name combined with a state name.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of the first line of a street address. ...

Specifies the expectation of the first line of a street address.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of the second line of a street address. ...

Specifies the expectation of the second line of a street address.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a state name. ...

Specifies the expectation of a state name.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a card expiration date. ...

Specifies the expectation of a card expiration date.

Requires: Android 8.0 and later

  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a card expectation day. ...

Specifies the expectation of a card expectation day.

Requires: Android 8.0 and later

  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a card expectation month. ...

Specifies the expectation of a card expectation month.

Requires: Android 8.0 and later

  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a card expectation year. ...

Specifies the expectation of a card expectation year.

Requires: Android 8.0 and later

  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a card number. ...

Specifies the expectation of a card number.

Requires: iOS 10.0 and later Android 8.0 and later

  • 6.3.0
  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a card security code. ...

Specifies the expectation of a card security code.

Requires: Android 8.0 and later

  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a country name. ...

Specifies the expectation of a country name.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of an email address. ...

Specifies the expectation of an email address.

Requires: iOS 10.0 and later Android 8.0 and later

  • 6.3.0
  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a family name. ...

Specifies the expectation of a family name.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a given name. ...

Specifies the expectation of a given name.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a job title. ...

Specifies the expectation of a job title.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a location, such as a point of interest, an address, or another way to identify a location. ...

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

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a middle name. ...

Specifies the expectation of a middle name.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a name. ...

Specifies the expectation of a name.

Requires: iOS 10.0 and later Android 8.0 and later

  • 6.3.0
  • 6.3.0
  • 6.3.0
Titanium.UI
AUTOFILL_TYPE_NAME_PREFIX : Stringreadonly

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

  • 6.3.0
  • 6.3.0
Titanium.UI
AUTOFILL_TYPE_NAME_SUFFIX : Stringreadonly

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

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a nickname. ...

Specifies the expectation of a nickname.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of an organization name. ...

Specifies the expectation of an organization name.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a password. ...

Specifies the expectation of a password.

Requires: iOS 11.0 and later Android 8.0 and later

  • 6.3.0
  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a telephone number. ...

Specifies the expectation of a telephone number.

Requires: iOS 10.0 and later Android 8.0 and later

  • 6.3.0
  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a postal code. ...

Specifies the expectation of a postal code.

Requires: iOS 10.0 and later Android 8.0 and later

  • 6.3.0
  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a sublocality. ...

Specifies the expectation of a sublocality.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of a URL. ...

Specifies the expectation of a URL.

Requires: iOS 10.0 and later

  • 6.3.0
  • 6.3.0
Titanium.UI
: Stringreadonly
Specifies the expectation of an account or login name. ...

Specifies the expectation of an account or login name.

Requires: iOS 11.0 and later Android 8.0 and later

  • 6.3.0
  • 6.3.0
  • 6.3.0
Titanium.UI
BLEND_MODE_CLEAR : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_COLOR : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_COLOR_BURN : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_COLOR_DODGE : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_COPY : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_DARKEN : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_DESTINATION_ATOP : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_DESTINATION_IN : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_DESTINATION_OUT : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_DESTINATION_OVER : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_DIFFERENCE : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_EXCLUSION : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_HARD_LIGHT : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_HUE : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_LIGHTEN : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_LUMINOSITY : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_MULTIPLY : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_NORMAL : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_OVERLAY : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_PLUS_DARKER : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_PLUS_LIGHTER : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_SATURATION : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_SCREEN : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_SOFT_LIGHT : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_SOURCE_ATOP : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_SOURCE_IN : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_SOURCE_OUT : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
BLEND_MODE_XOR : Numberreadonlyremoved

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.

  • 0.8
  • 0.8
Titanium.UI
: Stringreadonly
Specifies the time and date that you want the system to remove the clipboard items from the clipboard. ...

Specifies the time and date that you want the system to remove the clipboard items from the clipboard.

Requires: iOS 10.0 and later

  • 5.5.0
  • 5.5.0
Titanium.UI
: Stringreadonly
Specifies that the clipboard items should not be available to other devices through Handoff. ...

Specifies that the clipboard items should not be available to other devices through Handoff.

Requires: iOS 10.0 and later

  • 5.5.0
  • 5.5.0
Titanium.UI
EXTEND_EDGE_ALL : Numberreadonly

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.

  • 3.1.3
  • 3.1.3
Titanium.UI
EXTEND_EDGE_BOTTOM : Numberreadonly

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.

  • 3.1.3
  • 3.1.3
Titanium.UI
EXTEND_EDGE_LEFT : Numberreadonly

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.

  • 3.1.3
  • 3.1.3
Titanium.UI
EXTEND_EDGE_NONE : Numberreadonly

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.

  • 3.1.3
  • 3.1.3
Titanium.UI
EXTEND_EDGE_RIGHT : Numberreadonly

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.

  • 3.1.3
  • 3.1.3
Titanium.UI
EXTEND_EDGE_TOP : Numberreadonly

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.

  • 3.1.3
  • 3.1.3
Titanium.UI
FACE_DOWN : Numberreadonly

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.

Titanium.UI
FACE_UP : Numberreadonly

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.

Titanium.UI
FILL : Stringreadonly

FILL behavior for UI layout.

FILL behavior for UI layout.

The FILL behavior means the view will grow its size to fill its parent.

  • 2.0.0
  • 2.0.0
  • 2.0.0
Titanium.UI
HIDDEN_BEHAVIOR_GONE : Numberreadonly

Release free space when hiding an object.

Release free space when hiding an object.

  • 6.1.0
Titanium.UI
HIDDEN_BEHAVIOR_INVISIBLE : Numberreadonly

Keeps free space when hiding an object.

Keeps free space when hiding an object.

  • 6.1.0
Titanium.UI
HINT_TYPE_ANIMATED : Numberreadonly

Use when creating a TextField to specify the hintType as animated.

Use when creating a TextField to specify the hintType as animated.

  • 0.8
Titanium.UI
: Numberdeprecatedreadonly
Use when creating a TextField to specify the hintType as static. ...

Use when creating a TextField to specify the hintType as static.

deprecated since 6.2.0

  • 0.8
Titanium.UI
INPUT_BORDERSTYLE_BEZEL : Numberreadonly

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.

Titanium.UI
INPUT_BORDERSTYLE_LINE : Numberreadonly

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.

Titanium.UI
INPUT_BORDERSTYLE_NONE : Numberreadonly

Use no border on the input field.

Use no border on the input field.

Use with the Titanium.UI.TextField.borderStyle property.

Titanium.UI
INPUT_BORDERSTYLE_ROUNDED : Numberreadonly

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.

Titanium.UI
INPUT_BUTTONMODE_ALWAYS : Numberreadonly

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.

Titanium.UI
INPUT_BUTTONMODE_NEVER : Numberreadonly

Never show buttons on the input field.

Titanium.UI
INPUT_BUTTONMODE_ONBLUR : Numberreadonly

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.

  • 0.8
  • 0.8
Titanium.UI
INPUT_BUTTONMODE_ONFOCUS : Numberreadonly

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.

Titanium.UI
: Numberreadonly
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. 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.

  • 0.8
Titanium.UI
INPUT_TYPE_CLASS_TEXT : Numberreadonly

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.

  • 0.8
Titanium.UI
: Numberdeprecatedreadonly
Use a keyboard appearance suitable for entering text on an alert. ...

Use a keyboard appearance suitable for entering text on an alert.

deprecated since 5.4.0

  • 0.8
  • 0.8
Titanium.UI
KEYBOARD_APPEARANCE_DARK : Numberreadonly

Use the platform-specific dark keyboard appearance.

Use the platform-specific dark keyboard appearance.

  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_APPEARANCE_DEFAULT : Numberreadonly

Use the platform-specific default keyboard appearance.

Use the platform-specific default keyboard appearance.

  • 0.8
  • 0.8
Titanium.UI
KEYBOARD_APPEARANCE_LIGHT : Numberreadonly

Use the platform-specific light keyboard appearance.

Use the platform-specific light keyboard appearance.

  • 5.2.0
  • 5.2.0
Titanium.UI
: Numberdeprecatedreadonly
Use an ASCII keyboard, with the standard keyboard layout. ...

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.

Titanium.UI
: Numberdeprecatedreadonly
Use a keyboard with decimal numbers only, with the pad keyboard layout. ...

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.

Titanium.UI
: Numberdeprecatedreadonly
Use the default keyboard, depending on the platform. ...

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.

Titanium.UI
: Numberdeprecatedreadonly
Use a keyboard suitable for composing email, with the standard keyboard layout. ...

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.

Titanium.UI
: Numberdeprecatedreadonly
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.

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.

Titanium.UI
: Numberdeprecatedreadonly
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.

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.

Titanium.UI
: Numberdeprecatedreadonly
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.

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.

Titanium.UI
: Numberdeprecatedreadonly
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.

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.

Titanium.UI
KEYBOARD_TYPE_ASCII : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_DECIMAL_PAD : Numberreadonly

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

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_DEFAULT : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_EMAIL : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_NAMEPHONE_PAD : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_NUMBERS_PUNCTUATION : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_NUMBER_PAD : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_PHONE_PAD : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_TWITTER : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_URL : Numberreadonly

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.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
KEYBOARD_TYPE_WEBSEARCH : Numberreadonly

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).

  • 5.2.0
  • 5.2.0
Titanium.UI
: Numberdeprecatedreadonly
Use a keyboard optimized for entering URLs, with the standard keyboard layout. ...

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.

Titanium.UI
LANDSCAPE_LEFT : Numberreadonly

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.

Titanium.UI
LANDSCAPE_RIGHT : Numberreadonly

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.

Titanium.UI
LIST_ACCESSORY_TYPE_CHECKMARK : Numberreadonly

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.

  • 3.1.0
  • 3.1.0
  • 3.1.0
Titanium.UI
LIST_ACCESSORY_TYPE_DETAIL : Numberreadonly

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.

  • 3.1.0
  • 3.1.0
  • 3.1.0
Titanium.UI
LIST_ACCESSORY_TYPE_DISCLOSURE : Numberreadonly

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.

  • 3.1.0
  • 3.1.0
  • 3.1.0
Titanium.UI
LIST_ACCESSORY_TYPE_NONE : Numberreadonly

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.

  • 3.1.0
  • 3.1.0
  • 3.1.0
Titanium.UI
: Numberreadonly
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-a...

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.

  • 3.1.0
  • 3.1.0
Titanium.UI
LIST_ITEM_TEMPLATE_DEFAULT : Numberreadonly

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.

  • 3.1.0
  • 3.1.0
  • 3.1.0
Titanium.UI
LIST_ITEM_TEMPLATE_SETTINGS : Numberreadonly

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.

  • 3.1.0
  • 3.1.0
Titanium.UI
: Numberreadonly
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 s...

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.

  • 3.1.0
  • 3.1.0
Titanium.UI
NOTIFICATION_DURATION_LONG : Numberreadonly

Specifies a long duration for an Android Toast notification (Titanium.UI.Notification).

Specifies a long duration for an Android Toast notification (Titanium.UI.Notification).

  • 0.8
Titanium.UI
NOTIFICATION_DURATION_SHORT : Numberreadonly

Specifies a short duration for an Android Toast notification (Titanium.UI.Notification).

Specifies a short duration for an Android Toast notification (Titanium.UI.Notification).

  • 0.8
Titanium.UI
PICKER_TYPE_COUNT_DOWN_TIMER : Numberreadonly

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.

  • 0.8
  • 0.8
Titanium.UI
PICKER_TYPE_DATE : Numberreadonly

Use a date picker.

Use a date picker.

Titanium.UI
PICKER_TYPE_DATE_AND_TIME : Numberreadonly

Use a date and time picker.

Use a date and time picker.

Titanium.UI
PICKER_TYPE_PLAIN : Numberreadonly

Use a plain picker (for values other than date or time).

Use a plain picker (for values other than date or time).

Titanium.UI
PICKER_TYPE_TIME : Numberreadonly

Use a time picker.

Use a time picker.

Titanium.UI
PORTRAIT : Numberreadonly

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.

Titanium.UI
: Numberreadonly
Set the return key text to "Continue". ...

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.

  • 5.2.0
  • 5.2.0
Titanium.UI
RETURNKEY_DEFAULT : Numberreadonly

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.

Titanium.UI
RETURNKEY_DONE : Numberreadonly

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.

Titanium.UI
RETURNKEY_EMERGENCY_CALL : Numberreadonly

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.

Titanium.UI
RETURNKEY_GO : Numberreadonly

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.

Titanium.UI
RETURNKEY_GOOGLE : Numberreadonly

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.

Titanium.UI
RETURNKEY_JOIN : Numberreadonly

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.

Titanium.UI
RETURNKEY_NEXT : Numberreadonly

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.

Titanium.UI
RETURNKEY_ROUTE : Numberreadonly

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.

Titanium.UI
RETURNKEY_SEND : Numberreadonly

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.

Titanium.UI
RETURNKEY_YAHOO : Numberreadonly

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.

Titanium.UI
SIZE : Stringreadonly

SIZE behavior for UI layout.

SIZE behavior for UI layout.

The SIZE behavior means the view will constrain its size fit its contents.

  • 2.0.0
  • 2.0.0
  • 2.0.0
Titanium.UI
TABLE_VIEW_SEPARATOR_STYLE_NONE : Numberreadonly

The row divider is hidden.

The row divider is hidden.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
TABLE_VIEW_SEPARATOR_STYLE_SINGLE_LINE : Numberreadonly

The row divider is shown as a single line.

The row divider is shown as a single line.

  • 5.2.0
  • 5.2.0
  • 5.2.0
Titanium.UI
TEXT_ALIGNMENT_CENTER : Number/Stringreadonly

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.

Titanium.UI
TEXT_ALIGNMENT_JUSTIFY : Number/Stringreadonly

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.

  • 6.1.0
  • 6.1.0
Titanium.UI
TEXT_ALIGNMENT_LEFT : Number/Stringreadonly

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.

Titanium.UI
TEXT_ALIGNMENT_RIGHT : Number/Stringreadonly

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.

Titanium.UI
TEXT_AUTOCAPITALIZATION_ALL : Numberreadonly

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.

Titanium.UI
TEXT_AUTOCAPITALIZATION_NONE : Numberreadonly

Do not auto-capitalize.

Do not auto-capitalize.

Use with the Titanium.UI.TextField.autocapitalization and Titanium.UI.TextArea.autocapitalization properties.

Titanium.UI
TEXT_AUTOCAPITALIZATION_SENTENCES : Numberreadonly

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.

Titanium.UI
TEXT_AUTOCAPITALIZATION_WORDS : Numberreadonly

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.

Titanium.UI
TEXT_ELLIPSIZE_TRUNCATE_CHAR_WRAP : Numberreadonly

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.

  • 6.0.0
  • 6.0.0
Titanium.UI
TEXT_ELLIPSIZE_TRUNCATE_CLIP : Numberreadonly

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.

  • 6.0.0
  • 6.0.0
Titanium.UI
TEXT_ELLIPSIZE_TRUNCATE_END : Numberreadonly

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.

  • 4.1.0
  • 4.1.0
  • 4.1.0
Titanium.UI
: Numberreadonly
Turns on a marquee effect of the label if the text is too large to fit. ...

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.

  • 4.1.0
Titanium.UI
TEXT_ELLIPSIZE_TRUNCATE_MIDDLE : Numberreadonly

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.

  • 4.1.0
  • 4.1.0
  • 4.1.0
Titanium.UI
: Numberreadonly
Disables ellipsizing of the label. ...

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.

  • 6.0.0
Titanium.UI
TEXT_ELLIPSIZE_TRUNCATE_START : Numberreadonly

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.

  • 4.1.0
  • 4.1.0
  • 4.1.0
Titanium.UI
TEXT_ELLIPSIZE_TRUNCATE_WORD_WRAP : Numberreadonly

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.

  • 6.0.0
  • 6.0.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 7.0 and later

One of the group of textStyle constants for the Font Object.

  • 3.2.0
  • 3.2.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 9.0 and later

One of the group of textStyle constants for the Font Object.

  • 6.0.0
  • 6.0.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 7.0 and later

One of the group of textStyle constants for the Font Object.

  • 3.2.0
  • 3.2.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 7.0 and later

One of the group of textStyle constants for the Font Object.

  • 3.2.0
  • 3.2.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 7.0 and later

One of the group of textStyle constants for the Font Object.

  • 3.2.0
  • 3.2.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 7.0 and later

One of the group of textStyle constants for the Font Object.

  • 3.2.0
  • 3.2.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 7.0 and later

One of the group of textStyle constants for the Font Object.

  • 3.2.0
  • 3.2.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 9.0 and later

One of the group of textStyle constants for the Font Object.

  • 6.0.0
  • 6.0.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 9.0 and later

One of the group of textStyle constants for the Font Object.

  • 6.0.0
  • 6.0.0
Titanium.UI
: Stringreadonly
Specifies the text style for the Font Object. ...

Specifies the text style for the Font Object.

Requires: iOS 9.0 and later

One of the group of textStyle constants for the Font Object.

  • 6.0.0
  • 6.0.0
Titanium.UI
TEXT_VERTICAL_ALIGNMENT_BOTTOM : Number/Stringreadonly

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.

Titanium.UI
TEXT_VERTICAL_ALIGNMENT_CENTER : Number/Stringreadonly

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.

Titanium.UI
TEXT_VERTICAL_ALIGNMENT_TOP : Number/Stringreadonly

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.

Titanium.UI
UNIT_CM : Stringreadonly

Unit constant representing units in centimeters.

Unit constant representing units in centimeters.

  • 2.0.0
  • 2.0.0
  • 2.0.0
Titanium.UI
UNIT_DIP : Stringreadonly

Unit constant representing units in density-independent pixels.

Unit constant representing units in density-independent pixels.

  • 2.0.0
  • 2.0.0
  • 2.0.0
Titanium.UI
UNIT_IN : Stringreadonly

Unit constant representing units in inches.

Unit constant representing units in inches.

  • 2.0.0
  • 2.0.0
  • 2.0.0
Titanium.UI
UNIT_MM : Stringreadonly

Unit constant representing units in millimeters.

Unit constant representing units in millimeters.

  • 2.0.0
  • 2.0.0
  • 2.0.0
Titanium.UI
UNIT_PX : Stringreadonly

Unit constant representing units in pixels.

Unit constant representing units in pixels.

  • 2.0.0
  • 2.0.0
  • 2.0.0
Titanium.UI
UNKNOWN : Numberreadonly

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.

Titanium.UI
UPSIDE_PORTRAIT : Numberreadonly

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.

Titanium.UI
URL_ERROR_AUTHENTICATION : Numberreadonly

Authentication error code reported via Titanium.UI.WebView.error.

Authentication error code reported via Titanium.UI.WebView.error.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_BAD_URL : Numberreadonly

Bad url error code reported via Titanium.UI.WebView.error.

Bad url error code reported via Titanium.UI.WebView.error.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_CONNECT : Numberreadonly

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.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
: Numberreadonly
Error code reported via Titanium.UI.WebView.error for a failure to access a file resource on a host, except "file not...

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.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_FILE_NOT_FOUND : Numberreadonly

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.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_HOST_LOOKUP : Numberreadonly

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.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_REDIRECT_LOOP : Numberreadonly

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.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_SSL_FAILED : Numberreadonly

Error code reported via Titanium.UI.WebView.error for an SSL failure.

Error code reported via Titanium.UI.WebView.error for an SSL failure.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_TIMEOUT : Numberreadonly

Error code reported via Titanium.UI.WebView.error when a timeout occurs.

Error code reported via Titanium.UI.WebView.error when a timeout occurs.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_UNKNOWN : Numberreadonly

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.

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.UI
URL_ERROR_UNSUPPORTED_SCHEME : Numberreadonly

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.

  • 3.0.0
  • 3.0.0
  • 3.0.0
apiName : Stringreadonly

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.

  • 3.2.0
  • 3.2.0
  • 3.2.0
Titanium.UI
backgroundColor : String

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.

Titanium.UI
: String
Local path or URL to an image file for setting a background for the master view (when there are no windows or other t...

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. ...

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

  • 3.0.0
  • 3.0.0
  • 3.0.0

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.

Titanium.UI
currentWindow : Titanium.UI.Windowreadonly

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.

  • 3.6.0
Titanium.UI
orientation : Numberremoved

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.

Titanium.UI
: String
Sets the global tint color of the application. ...

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.

  • 6.0.0
  • 6.0.0
Defined By

Methods

Adds the specified callback as an event listener for the named event. ...

Adds the specified callback as an event listener for the named event.

Parameters

  • name : String

    Name of the event.

  • callback : Callback<Object>

    Callback function to invoke when the event is fired.

Returns

  • void
Applies the properties to the proxy. ...

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.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Parameters

  • props : Dictionary

    A dictionary of properties to apply.

Returns

  • void
Titanium.UI
( convertFromValue, convertToUnits ) : Number
Converts one type of unit to another using the metrics of the main display. ...

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.

  • 2.0.0
  • 2.0.0
  • 2.0.0

Parameters

  • convertFromValue : String

    Measurement and optional unit to convert from, i.e. 160, "120dip". Percentages are not accepted.

  • convertToUnits : Number

    Desired unit for the conversion result.

    This API can be assigned the following constants:

Returns

  • Number
Titanium.UI
( [parameters] ) : Titanium.UI.2DMatrix
Creates and returns an instance of Titanium.UI.2DMatrix. ...

Creates and returns an instance of Titanium.UI.2DMatrix.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.3DMatrix
Creates and returns an instance of Titanium.UI.3DMatrix. ...

Creates and returns an instance of Titanium.UI.3DMatrix.

  • 0.9
  • 0.9

Parameters

Returns

Creates and returns an instance of Titanium.UI.ActivityIndicator. ...

Creates and returns an instance of Titanium.UI.ActivityIndicator.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.AlertDialog
Creates and returns an instance of Titanium.UI.AlertDialog. ...

Creates and returns an instance of Titanium.UI.AlertDialog.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Animation
Creates and returns an instance of Titanium.UI.Animation. ...

Creates and returns an instance of Titanium.UI.Animation.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Creates and returns an instance of Titanium.UI.AttributedString. ...

Creates and returns an instance of Titanium.UI.AttributedString.

  • 3.6.0
  • 3.6.0
  • 3.6.0

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Button
Creates and returns an instance of Titanium.UI.Button. ...

Creates and returns an instance of Titanium.UI.Button.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.ButtonBar
Creates and returns an instance of Titanium.UI.ButtonBar. ...

Creates and returns an instance of Titanium.UI.ButtonBar.

  • 0.8
  • 0.8

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.CoverFlowViewdeprecated
Creates and returns an instance of Titanium.UI.CoverFlowView. ...

Creates and returns an instance of Titanium.UI.CoverFlowView.

deprecated since 1.8.0

Use <Titanium.UI.iOS.CoverFlowView> instead.

  • 0.8
  • 0.8

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.DashboardItem
Creates and returns an instance of Titanium.UI.DashboardItem. ...

Creates and returns an instance of Titanium.UI.DashboardItem.

  • 1.2
  • 1.2

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.DashboardView
Creates and returns an instance of Titanium.UI.DashboardView. ...

Creates and returns an instance of Titanium.UI.DashboardView.

  • 1.2
  • 1.2

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.EmailDialog
Creates and returns an instance of Titanium.UI.EmailDialog. ...

Creates and returns an instance of Titanium.UI.EmailDialog.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.ImageView
Creates and returns an instance of Titanium.UI.ImageView. ...

Creates and returns an instance of Titanium.UI.ImageView.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Label
Creates and returns an instance of Titanium.UI.Label. ...

Creates and returns an instance of Titanium.UI.Label.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.ListSection
Creates and returns an instance of Titanium.UI.ListSection. ...

Creates and returns an instance of Titanium.UI.ListSection.

  • 3.1.0
  • 3.1.0
  • 3.1.0

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.ListView
Creates and returns an instance of Titanium.UI.ListView. ...

Creates and returns an instance of Titanium.UI.ListView.

  • 3.1.0
  • 3.1.0
  • 3.1.0

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.MaskedImage
Creates and returns an instance of Titanium.UI.MaskedImage. ...

Creates and returns an instance of Titanium.UI.MaskedImage.

  • 0.8
  • 0.8

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Notification
Creates and returns an instance of Titanium.UI.Notification. ...

Creates and returns an instance of Titanium.UI.Notification.

  • 0.8

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.OptionDialog
Creates and returns an instance of Titanium.UI.OptionDialog. ...

Creates and returns an instance of Titanium.UI.OptionDialog.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Picker
Creates and returns an instance of Titanium.UI.Picker. ...

Creates and returns an instance of Titanium.UI.Picker.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.PickerColumn
Creates and returns an instance of Titanium.UI.PickerColumn. ...

Creates and returns an instance of Titanium.UI.PickerColumn.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.PickerRow
Creates and returns an instance of Titanium.UI.PickerRow. ...

Creates and returns an instance of Titanium.UI.PickerRow.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.ProgressBar
Creates and returns an instance of Titanium.UI.ProgressBar. ...

Creates and returns an instance of Titanium.UI.ProgressBar.

Parameters

Returns

Creates and returns an instance of Titanium.UI.RefreshControl. ...

Creates and returns an instance of Titanium.UI.RefreshControl.

  • 6.2.0
  • 3.2.0
  • 3.2.0

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.ScrollView
Creates and returns an instance of Titanium.UI.ScrollView. ...

Creates and returns an instance of Titanium.UI.ScrollView.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Creates and returns an instance of Titanium.UI.ScrollableView. ...

Creates and returns an instance of Titanium.UI.ScrollableView.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.SearchBar
Creates and returns an instance of Titanium.UI.SearchBar. ...

Creates and returns an instance of Titanium.UI.SearchBar.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Slider
Creates and returns an instance of Titanium.UI.Slider. ...

Creates and returns an instance of Titanium.UI.Slider.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Switch
Creates and returns an instance of Titanium.UI.Switch. ...

Creates and returns an instance of Titanium.UI.Switch.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Tab
Creates and returns an instance of Titanium.UI.Tab. ...

Creates and returns an instance of Titanium.UI.Tab.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.TabGroup
Creates and returns an instance of Titanium.UI.TabGroup. ...

Creates and returns an instance of Titanium.UI.TabGroup.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.TabbedBardeprecated
Creates and returns an instance of Titanium.UI.TabbedBar. ...

Creates and returns an instance of Titanium.UI.TabbedBar.

deprecated since 1.8.0

Use <Titanium.UI.iOS.TabbedBar> instead.

  • 0.8
  • 0.8

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.TableView
Creates and returns an instance of Titanium.UI.TableView. ...

Creates and returns an instance of Titanium.UI.TableView.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.TableViewRow
Creates and returns an instance of Titanium.UI.TableViewRow. ...

Creates and returns an instance of Titanium.UI.TableViewRow.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Creates and returns an instance of Titanium.UI.TableViewSection. ...

Creates and returns an instance of Titanium.UI.TableViewSection.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.TextArea
Creates and returns an instance of Titanium.UI.TextArea. ...

Creates and returns an instance of Titanium.UI.TextArea.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.TextField
Creates and returns an instance of Titanium.UI.TextField. ...

Creates and returns an instance of Titanium.UI.TextField.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Toolbar
Creates and returns an instance of Titanium.UI.Toolbar. ...

Creates and returns an instance of Titanium.UI.Toolbar.

  • 6.2.0
  • 6.2.0
  • 6.2.0

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.View
Creates and returns an instance of Titanium.UI.View. ...

Creates and returns an instance of Titanium.UI.View.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.WebView
Creates and returns an instance of Titanium.UI.WebView. ...

Creates and returns an instance of Titanium.UI.WebView.

Parameters

Returns

Titanium.UI
( [parameters] ) : Titanium.UI.Window
Creates and returns an instance of Titanium.UI.Window. ...

Creates and returns an instance of Titanium.UI.Window.

  • 0.9
  • 0.9
  • 0.9

Parameters

Returns

Fires a synthesized event to any registered listeners. ...

Fires a synthesized event to any registered listeners.

Parameters

  • name : String

    Name of the event.

  • event : Dictionary

    A dictionary of keys and values to add to the Titanium.Event object sent to the listeners.

Returns

  • void
Gets the value of the apiName property. ...

Gets the value of the apiName property.

  • 3.2.0
  • 3.2.0
  • 3.2.0

Returns

  • String
Titanium.UI
( ) : String
Gets the value of the backgroundColor property. ...

Gets the value of the backgroundColor property.

Returns

  • String
Titanium.UI
( ) : String
Gets the value of the backgroundImage property. ...

Gets the value of the backgroundImage property.

Returns

  • String
Gets the value of the bubbleParent property. ...

Gets the value of the bubbleParent property.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Returns

  • Boolean
Gets the value of the currentTab property. ...

Gets the value of the currentTab property.

Returns

Gets the value of the currentWindow property. ...

Gets the value of the currentWindow property.

Returns

Gets the value of the lifecycleContainer property. ...

Gets the value of the lifecycleContainer property.

  • 3.6.0

Returns

Titanium.UI
( ) : Numberremoved
Gets the value of the orientation property. ...

Gets the value of the orientation property.

This method has been removed since 3.0.0

Use <Titanium.UI.Window.orientationModes> instead.

Returns

  • Number
Titanium.UI
( ) : String
Gets the value of the tintColor property. ...

Gets the value of the tintColor property.

  • 6.0.0
  • 6.0.0

Returns

  • String
Removes the specified callback as an event listener for the named event. ...

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);

Parameters

  • name : String

    Name of the event.

  • callback : Callback<Object>

    Callback function to remove. Must be the same function passed to addEventListener.

Returns

  • void
Titanium.UI
( backgroundColor )
Sets the value of the backgroundColor property. ...

Sets the value of the backgroundColor property.

Parameters

  • backgroundColor : String

    New value for the property.

Returns

  • void
Titanium.UI
( backgroundImage )
Sets the value of the backgroundImage property. ...

Sets the value of the backgroundImage property.

Parameters

  • backgroundImage : String

    New value for the property.

Returns

  • void
Sets the value of the bubbleParent property. ...

Sets the value of the bubbleParent property.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Parameters

  • bubbleParent : Boolean

    New value for the property.

Returns

  • void
Titanium.UI
( currentTab )
Sets the value of the currentTab property. ...

Sets the value of the currentTab property.

Parameters

Returns

  • void
Sets the value of the lifecycleContainer property. ...

Sets the value of the lifecycleContainer property.

  • 3.6.0

Parameters

Returns

  • void
Titanium.UI
( orientation )removed
Sets the value of the orientation property. ...

Sets the value of the orientation property.

This method has been removed since 3.0.0

Use <Titanium.UI.Window.orientationModes> instead.

Parameters

  • orientation : Number

    New value for the property.

Returns

  • void
Titanium.UI
( tintColor )
Sets the value of the tintColor property. ...

Sets the value of the tintColor property.

  • 6.0.0
  • 6.0.0

Parameters

  • tintColor : String

    New value for the property.

Returns

  • void