diff --git a/types/titanium/index.d.ts b/types/titanium/index.d.ts index 5fe1c391b3..ba806e40a5 100644 --- a/types/titanium/index.d.ts +++ b/types/titanium/index.d.ts @@ -1,30 +1,2936 @@ -// Type definitions for non-npm package Titanium 8.0 +// Type definitions for non-npm package Titanium 9.0 // Project: https://github.com/appcelerator/titanium_mobile // Definitions by: Axway Appcelerator // Jan Vennemann +// Sergey Volkov // Mathias Lorenzen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 -declare const Ti: typeof Titanium; +// TypeScript Version: 3.0 +type _Omit = Pick>; +type FunctionPropertyNames = { + // tslint:disable-next-line:ban-types + [K in keyof T]: T[K] extends Function ? K : never +}[keyof T]; +type Dictionary = Partial<_Omit>>; +interface ProxyEventMap {} + +/** + * An extension of the [NSURLConnectionDelegate](https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLConnectionDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/NSURLConnectionDelegate) protocol to allow users to participate in authentication and resource management for this HTTPClient. + */ +interface APSConnectionDelegate { +} +/** + * Options object for the [accept](Titanium.Network.Socket.TCP.accept) method. + */ +interface AcceptDict { + /** + * Callback to be fired when the socket enters the [ERROR](Titanium.Network.Socket.ERROR) state. + */ + error?: (param0: ErrorCallbackArgs) => void; + + /** + * Timeout, in milliseconds, for all `write` operations. + */ + timeout?: number; + +} +/** + * Argument object passed to the [accepted](Titanium.Network.Socket.TCP.accepted) + * callback when a listener accepts a connection. + */ +interface AcceptedCallbackArgs { + /** + * Socket which represents the inbound connection. + */ + inbound?: Titanium.Network.Socket.TCP; + + /** + * Socket which received the connection. + */ + socket?: Titanium.Network.Socket.TCP; + +} +/** + * Simple object passed to the callbacks for + * onCreate, onDestroy, onPause, onResume, onStart, onStop, onRestart. + * Additional properties may be set on the Object. + */ +interface ActivityLifecycleCallbackObject { + /** + * The Activity firing the callback. + */ + source?: Titanium.Android.Activity; + +} +/** + * Simple object passed to the + * [startActivityForResult](Titanium.Android.Activity.startActivityForResult) callback. + */ +interface ActivityResult { + /** + * Intent that can contain data returned to the caller. Data can be attached to + * the intent as "extras"). + */ + intent?: Titanium.Android.Intent; + + /** + * Unique, automatically generated integer request code. + */ + requestCode?: number; + + /** + * Integer result code that the started activity passed to + * [setResult](Titanium.Android.Activity.setResult). + */ + resultCode?: number; + +} +/** + * A JavaScript object holding an `animated` property. Used for many UI methods as a means of specifying some transition should be animated. + */ +interface AnimatedOptions { + /** + * If `true`, animate a transition for the method/value change. + * Note that for most uses cases the default is assumed to be `false`. The exceptions tend to be methods. + */ + animated?: boolean; + +} +/** + * A JavaScript object holding `animated` and `duration` properties. Used on iOS For [TablewView](Titanium.UI.TableView) and [ListView](Titanium.UI.ListView) content offset transitions. + */ +interface AnimatedWithDurationOptions extends AnimatedOptions { + /** + * The duration in `milliseconds` for animation + */ + duration?: number; + +} +/** + * An abstract datatype for specifying an attributed string attribute. + */ +interface Attribute { + /** + * Attribute range. + */ + range: number[]; + + /** + * Attribute to apply to the text. + */ + type: number; + + /** + * Attribute value. + */ + value: number; + +} +/** + * The object returned to the method. + */ +interface BackForwardList { + /** + * The item immediately preceding the current item. + */ + backItem?: BackForwardListItem; + + /** + * The portion of the list preceding the current item. + */ + backList?: BackForwardListItem[]; + + /** + * The current item. + */ + currentItem?: BackForwardListItem; + + /** + * The item immediately following the current item. + */ + forwardItem?: BackForwardListItem; + + /** + * The portion of the list following the current item. + */ + forwardList?: BackForwardListItem[]; + +} +/** + * The object represents a webpage in the back-forward of a web view. + */ +interface BackForwardListItem { + /** + * The URL of the initial request that created this item. + */ + initialUrl?: string; + + /** + * The title of the webpage represented by this item. + */ + title?: string; + + /** + * The URL of the webpage represented by this item. + */ + url?: string; + +} +/** + * Object describing a button bar or tabbed bar item. + */ +interface BarItemType { + /** + * A succint label associated with the bar item for the device's accessibility service. + */ + accessibilityLabel?: string; + + /** + * Whether the button is enabled initially. + */ + enabled?: boolean; + + /** + * Button icon. If specified, takes precedence over `title`. + */ + image?: string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Button title, used if no `image` is specified. + */ + title?: string; + + /** + * Width for this button. + */ + width?: number; + +} +/** + * Simple `Error` instance thrown from the + * [executeAll](Titanium.Database.DB.executeAll) method in case of failure + */ +interface BatchQueryError { + /** + * Index of the failed query + */ + index?: number; + + /** + * partial `ResultSet`s of any successful queries before the failure + */ + results?: Titanium.Database.ResultSet[]; + +} +/** + * Dictionary to specify a boundary identifier for . + */ +interface BoundaryIdentifier { + /** + * Arbitrary identifier for the boundary + */ + identifier?: string; + + /** + * Start point for the boundary + */ + point1?: Point; + + /** + * End point for the boundary + */ + point2?: Point; + +} +/** + * Simple object holding the data for a logical cpu. + */ +interface CPU { + /** + * General description of the CPU + */ + model?: string; + + /** + * Speed of the CPU in MHz + */ + speed?: number; + + /** + * A collection of timings for this logical CPU. + */ + times?: CPUTimes; + +} +/** + * Simple object holding the data for a logical cpu execution times. + */ +interface CPUTimes { + /** + * The number of milliseconds the CPU has spent in idle mode. + */ + idle?: number; + + /** + * The number of milliseconds the CPU has spent in irq mode. + */ + irq?: number; + + /** + * The number of milliseconds the CPU has spent in nice mode. + */ + nice?: number; + + /** + * The number of milliseconds the CPU has spent in sys mode. + */ + sys?: number; + + /** + * The number of milliseconds the CPU has spent in user mode. + */ + user?: number; + +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface CalendarPermissionResponse { + /** + * Error code, if any returned. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Indicates whether the request succeeded. + */ + success?: boolean; + +} +/** + * A media object from the camera or photo gallery. + */ +interface CameraMediaItemType extends SuccessResponse { + /** + * Error code. Returns 0. + */ + code?: number; + + /** + * Simple object defining the user's selected crop rectangle, or `null` if the user has not edited the photo. `width`/`height` values are assumed to be in pixels. + */ + cropRect?: Dimension; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * The live photo object, as a and + * `undefined` if no live photo is selected. + */ + livePhoto?: Titanium.UI.iOS.LivePhoto; + + /** + * The media object, as a [Blob](Titanium.Blob). + */ + media?: Titanium.Blob; + + /** + * The type of media, either `MEDIA_TYPE_PHOTO`, `MEDIA_TYPE_LIVEPHOTO` or `MEDIA_TYPE_VIDEO` defined in . + */ + mediaType?: string; + + /** + * Simple object defining the preview image size. This will be undefined when custom camera overlay is not used. Values are assumed to be in pixels. + */ + previewRect?: Size; + + /** + * Indicates if the operation succeeded. Returns `true`. + */ + success?: boolean; + +} +/** + * Simple object for specifying options to [showCamera](Titanium.Media.showCamera). + */ +interface CameraOptionsType { + /** + * Specifies if the media should be editable after capture/selection. + */ + allowEditing?: boolean; + + /** + * Specifies if the dialog should be animated upon showing and hiding. + */ + animated?: boolean; + + /** + * Controls the type of arrow and position of the popover. + */ + arrowDirection?: number; + + /** + * Specifies if the camera should be hidden automatically after the media capture is completed. + */ + autohide?: boolean; + + /** + * Determines if the camera preview should rotate or not. + */ + autorotate?: boolean; + + /** + * Function to call if the user presses the cancel button. + */ + cancel?: (param0: FailureResponse) => void; + + /** + * Function to call upon receiving an error. + */ + error?: (param0: FailureResponse) => void; + + /** + * Show the camera in a popover. + */ + inPopOver?: boolean; + + /** + * Array of media type constants to allow. Note: If you want to select live photos, iOS only allows + * you to select existing live photos from the gallery, capturing new live photos is not supported by + * iOS public API, yet. + */ + mediaTypes?: string[]; + + /** + * View to added as an overlay to the camera UI (on top). + */ + overlay?: Titanium.UI.View; + + /** + * View to position the camera or photo gallery popover on top of. + */ + popoverView?: Titanium.UI.View; + + /** + * Specifies if the media should be saved to the photo gallery upon successful capture. + */ + saveToPhotoGallery?: boolean; + + /** + * Indicates if the built-in camera controls should be displayed. + */ + showControls?: boolean; + + /** + * Function to call when the camera is closed after a successful capture/selection. + */ + success?: (param0: CameraMediaItemType) => void; + + /** + * Transformation matrix to apply to the camera or photogallery view. + */ + transform?: Titanium.UI.Matrix2D; + + /** + * Maximum duration (in milliseconds) to allow video capture before completing. + */ + videoMaximumDuration?: number; + + /** + * Constant to indicate the video quality during capture. + */ + videoQuality?: number; + + /** + * Opens the camera with the specified camera direction. + */ + whichCamera?: number; + +} +/** + * Dictionary describing the items for . + */ +interface ClipboardItemsType { + /** + * An array of key-value items to add to the clipboard. The key must a valid mime-type + * matching the mime-type of the value. + */ + items?: any[]; + + /** + * The privacy options to apply to all the items on the clipboard. The available options are + * described in `Ti.UI.CLIPBOARD_OPTION_*`. Depending on the key, the value can be a Date or + * Boolean. + */ + options?: any; + +} +/** + * Argument object passed to the [connected](Titanium.Network.Socket.TCP.connected) callback when the socket connects. + */ +interface ConnectedCallbackArgs { + /** + * Socket instance that has been connected. + */ + socket?: Titanium.Network.Socket.TCP; + +} +/** + * Console logging facilities. + */ +interface Console { + /** + * Log a message at the `debug` level. + */ + debug(...message: any[]): void; + + /** + * Log a message at the `error` level. + */ + error(...message: any[]): void; + + /** + * Log a message at the `info` level. + */ + info(...message: any[]): void; + + /** + * Log a message at the `info` level. + */ + log(...message: any[]): void; + + /** + * Start a timer to track duration of an operation. + */ + time(label?: string): void; + + /** + * Stop a timer that was previously started. + */ + timeEnd(label?: string): void; + + /** + * Log duration taken so far for an operation. + */ + timeLog(label?: string, ...data: any[]): void; + + /** + * Log a message at the `warn` level. + */ + warn(...message: any[]): void; + +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface ContactsAuthorizationResponse extends ErrorResponse { +} +/** + * Simple object for defining a single image in a cover flow view. + */ +interface CoverFlowImageType { + /** + * Display height of the image, in Apple points. + */ + height?: number; + + /** + * Image to use, as a local file URL, `Blob`, or `File`. + */ + image?: string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Display width for the image, in Apple points. + */ + width?: number; + +} +/** + * Arguments to be passed to createBuffer + */ +interface CreateBufferArgs { + /** + * The byte order of this buffer. + */ + byteOrder?: number; + + /** + * The length of the buffer. + */ + length?: number; + + /** + * The type of data encoding to use with `value`. + */ + type?: string; + + /** + * An initial value which will be encoded and placed in the buffer. If value is a Number, type must also be set. (this is simply a convenient way of calling or and placing the encoded value in the returned buffer.) + */ + value?: string | number; + +} +/** + * Argument passed to [createStream](Titanium.Stream.createStream). + */ +interface CreateStreamArgs { + /** + * Mode to open the stream in. + */ + mode?: number; + + /** + * Object that the stream will read from or write to. + */ + source?: Titanium.Blob | Titanium.Buffer; + +} +/** + * Named parameters for . + */ +interface DecodeNumberDict { + /** + * byte order to decode with. + */ + byteOrder?: number; + + /** + * Index in the `source` buffer of the first byte of data to decode. + */ + position?: number; + + /** + * Buffer to decode. + */ + source: Titanium.Buffer; + + /** + * The encoding type to use. + */ + type: string; + +} +/** + * Named parameters for . + */ +interface DecodeStringDict { + /** + * Character set to use when encoding this string to bytes. + */ + charset?: string; + + /** + * Number of bytes to decode. + */ + length?: number; + + /** + * Index in the `source` buffer of the first byte of data to decode. + */ + position?: number; + + /** + * Buffer to decode. + */ + source: Titanium.Buffer; + +} +/** + * A simple object consisting of the position and size measurements. Effectively combines and but ensures numeric x/y values. + */ +interface Dimension extends Size { + /** + * The x-axis coordinate of the position. When returned by the position is relative to it's parent. + */ + x?: number; + + /** + * The y-axis coordinate of the position. When returned by the position is relative to it's parent. + */ + y?: number; + +} +/** + * An extension of where Android returns additional absolute X/Y values/properties for + */ +interface DimensionWithAbsolutes extends Dimension { + /** + * The x-axis coordinate of the position relative to the main window. + */ + absoluteX?: number; + + /** + * The y-axis coordinate of the position relative to the main window. + */ + absoluteY?: number; + +} +/** + * A simple object for specifying options when showing or dismissing a . + */ +interface DocumentViewerOptions { + /** + * Indicates whether to animate the transition. + */ + animated?: boolean; + + /** + * Anchors the options menu to the specified view. + */ + view?: Titanium.UI.View; + +} +/** + * Named parameters for . + */ +interface EncodeNumberDict { + /** + * Byte order to encode with. + */ + byteOrder?: number; + + /** + * Destination buffer. + */ + dest: Titanium.Buffer; + + /** + * Index in the `dest` buffer of the first byte of encoded data. + */ + position?: number; + + /** + * Number to encode. + */ + source: number; + + /** + * Encoding type to use. + */ + type: string; + +} +/** + * Named parameters for . + */ +interface EncodeStringDict { + /** + * Character encoding to use when encoding this string to bytes. + */ + charset?: string; + + /** + * Destination buffer. + */ + dest: Titanium.Buffer; + + /** + * Index in the `dest` buffer of the first byte of the encoded string. + */ + destPosition?: number; + + /** + * Source string to encode. + */ + source: string; + + /** + * Number of characters in `source` to encode. + */ + sourceLength?: number; + + /** + * Position in `source` to start encoding. + */ + sourcePosition?: number; + +} +/** + * Object passed to the error callback when the socket enters the [ERROR](Titanium.Network.Socket.ERROR) state. + */ +interface ErrorCallbackArgs extends FailureResponse { + /** + * Error code. Returns a non-zero value. + */ + code?: number; + + /** + * The error code of the error (potentially system-dependent). + * @deprecated Use the code property for a numeric error code + */ + errorCode: never; + + /** + * Socket that experienced the error. + */ + socket?: Titanium.Network.Socket.TCP; + + /** + * Indicates if the operation succeeded. Returns `false`. + */ + success?: boolean; + +} +/** + * Properties used in any event or callback which needs to report a success or failure. + */ +interface ErrorResponse { + /** + * Error code. Returns 0 if `success` is `true`. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Indicates if the operation succeeded. + */ + success?: boolean; + +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface EventsAuthorizationResponse { + /** + * Error code, if any returned. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Indicates whether the request succeeded. + */ + success?: boolean; + +} +/** + * Properties used in any event or callback which needs to report a failure. + */ +interface FailureResponse extends ErrorResponse { + /** + * Error code. Returns a non-zero value. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Indicates if the operation succeeded. Returns `false`. + */ + success?: boolean; + +} +/** + * An abstract datatype for specifying a text font. + */ +interface Font { + /** + * Specifies the font family or specific font to use. + */ + fontFamily?: string; + + /** + * Font size, in platform-dependent units. + */ + fontSize?: number | string; + + /** + * Font style. Valid values are "italic" or "normal". + */ + fontStyle?: string; + + /** + * Font weight. Valid values are "bold", "semibold", "normal", "thin", + * "light" and "ultralight". + */ + fontWeight?: string; + + /** + * The text style for the font. + */ + textStyle?: string; + +} +/** + * Simple object returned in the callback from the + * [forwardGeocoder](Titanium.Geolocation.forwardGeocoder) method. + * Note that Android includes a number of extra fields. + */ +interface ForwardGeocodeResponse extends ErrorResponse { + /** + * Estimated accuracy of the geocoding, in meters. + */ + accuracy?: number; + + /** + * Full address. + */ + address?: string; + + /** + * City name. + */ + city?: string; + + /** + * Error code. Returns 0 if `success` is `true`. + */ + code?: number; + + /** + * Country name. + */ + country?: string; + + /** + * Country code. + */ + countryCode?: string; + + /** + * Country code. Same as `countryCode`. + */ + country_code?: string; + + /** + * Display address. Identical to `address`. + */ + displayAddress?: string; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Latitude of the geocoded address. + */ + latitude?: string; + + /** + * Longitude of the geocoded address. + */ + longitude?: string; + + /** + * Postal code. + */ + postalCode?: string; + + /** + * First line of region. + */ + region1?: string; + + /** + * Not used. + */ + region2?: string; + + /** + * Street name, without street address. + */ + street?: string; + + /** + * Street name. + */ + street1?: string; + + /** + * Indicates if the operation succeeded. + */ + success?: boolean; + +} +/** + * Simple object representing a place, returned in the callback from the + * [reverseGeocoder](Titanium.Geolocation.reverseGeocoder) method. + */ +interface GeocodedAddress { + /** + * Full address. + */ + address?: string; + + /** + * City name. + */ + city?: string; + + /** + * Country name. + */ + country?: string; + + /** + * Country code. + */ + countryCode?: string; + + /** + * Country code. To be replaced by `countryCode`. + * @deprecated + */ + country_code: never; + + /** + * Display address. Identical to `address`. + * @deprecated + */ + displayAddress: never; + + /** + * Latitude of the geocoded point. + */ + latitude?: number; + + /** + * Longitude of the geocoded point. + */ + longitude?: number; + + /** + * Postal code + */ + postalCode?: string; + + /** + * First line of region. + */ + region1?: string; + + /** + * Not used. + */ + region2?: string; + + /** + * Street name, without street address. + */ + street?: string; + + /** + * Street name. + */ + street1?: string; + + /** + * Postal code. To be replaced by `postalCode` + * @deprecated + */ + zipcode: never; + +} +/** + * Dictionary object of parameters used to register the application with local notifications using + * the method. + */ +interface GetUserNotificationSettings { + /** + * The current alert settings. + */ + alertSetting?: number; + + /** + * The current alert style used to display notifications. + */ + alertStyle?: number; + + /** + * The current authorization status for using notifications. + */ + authorizationStatus?: number; + + /** + * The current badge settings. + */ + badgeSetting?: number; + + /** + * The current CarPlay settings. + */ + carPlaySetting?: number; + + /** + * Set of categories of user notification actions required by the applicaiton to use. + */ + categories?: Titanium.App.iOS.UserNotificationCategory[]; + + /** + * The authorization status to play sounds for critical alerts. + * Available in Titanium SDK 7.4.0 and later. + */ + criticalAlertSetting?: number; + + /** + * The current lock-screen settings. + */ + lockScreenSetting?: number; + + /** + * The current notication-center settings. + */ + notificationCenterSetting?: number; + + /** + * A Boolean value indicating the system displays a button for in-app notification settings. + * Available in Titanium SDK 7.4.0 and later. + */ + providesAppNotificationSettings?: number; + + /** + * The current sound settings. + */ + soundSetting?: number; + + /** + * Notification types to use. + */ + types?: number[]; + +} +/** + * The APIs that reside in the global scope, which may be called without a namespace prefix. + */ +/** + * Console logging facilities. + */ +declare var console: Console; + +/** + * An alias for [Titanium.Locale.getString](Titanium.Locale.getString). + */ +declare function L(key: string, hint?: string): string; + +/** + * Displays a pop-up alert dialog with the passed in `message`. + */ +declare function alert(message: string): void; + +/** + * Cancels an interval timer. + */ +declare function clearInterval(timerId?: number): void; + +/** + * Cancels a one-time timer. + */ +declare function clearTimeout(timerId?: number): void; + +/** + * Replaces each escape sequence in the specified string, created using the `encodedURI` + * method, with the character that it represents. + */ +declare function decodeURIComponent(encodedURI: string): string; + +/** + * Replaces each special character in the specified string with the equivalent URI escape + * sequence. Useful for encoding URIs. + */ +declare function encodeURIComponent(string: string): string; + +/** + * Loads either a native Titanium module or a CommonJS module. + */ +declare function require(moduleId: string): any; + +/** + * Executes a function repeatedly with a fixed time delay between each call to that function. + */ +declare function setInterval(func: (...args: any[]) => void, delay?: number): number; + +/** + * Executes code or a function after a delay. + */ +declare function setTimeout(func: (...args: any[]) => void, delay?: number): number; + +/** + * The JavaScript built-in String type. + */ +interface String { + /** + * Formats a string using `printf`-style substitution. + */ + format(formatString: string, ...value: Array): string; + + /** + * Formats a number into the currency format, including currency symbol, of the locale + * configured for the system. + */ + formatCurrency(value: number): string; + + /** + * Formats a date into the date format of the locale configured for the system. + */ + formatDate(date: Date, format?: string): string; + + /** + * Formats a number into the decimal format, including decimal symbol, of the locale + * configured for the system. + */ + formatDecimal(value: number, locale?: string, pattern?: string): string; + + /** + * Formats a date into the time format of the locale configured for the system. + */ + formatTime(date: Date, format?: string): string; + +} +/** + * A simple object defining a color gradient. + */ +interface Gradient { + /** + * Set to `true` to continue filling with the final color beyond the `endPoint`. + */ + backfillEnd?: boolean; + + /** + * Set to `true` to continue filling with the starting color beyond the `startPoint`. + */ + backfillStart?: boolean; + + /** + * An array of colors, as a color name or hex triplet. + */ + colors?: string[] | GradientColorRef[]; + + /** + * End point for the gradient. + */ + endPoint?: Point; + + /** + * For a radial gradient, the radius at the `endPoint`. + */ + endRadius?: number; + + /** + * Start point for the gradient. + */ + startPoint?: Point; + + /** + * For a radial gradient, the radius at the `startPoint`. + */ + startRadius?: number; + + /** + * Type of gradient, either 'linear' or 'radial'. + */ + type?: string; + +} +/** + * A simple object consisting of a color and an offset. + */ +interface GradientColorRef { + /** + * Color value at this point in the gradient, as a color name or hex triplet. + */ + color?: string; + + /** + * The color's normalized position within the gradient, ranging from 0 (start) to 1 (end). + */ + offset?: number; + +} +/** + * Simple object holding compass heading data. + */ +interface HeadingData { + /** + * Accuracy of the compass heading, in platform-specific units. + */ + accuracy?: number; + + /** + * Declination in degrees from magnetic North. + */ + magneticHeading?: number; + + /** + * Timestamp for the heading data, in milliseconds. + */ + timestamp?: number; + + /** + * Declination in degrees from true North. + */ + trueHeading?: number; + + /** + * Raw geomagnetic data for the X axis. + */ + x?: number; + + /** + * Raw geomagnetic data for the Y axis. + */ + y?: number; + + /** + * Raw geomagnetic data for the Z axis. + */ + z?: number; + +} +/** + * Argument passed to the [getCurrentHeading](Titanium.Geolocation.getCurrentHeading) callback. + */ +interface HeadingResponse extends ErrorResponse { + /** + * Error code. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * If `success` is true, the actual heading data. + */ + heading?: HeadingData; + + /** + * Indicates a successful operation. + */ + success?: boolean; + +} +/** + * Dictionary object of parameters for horizontal-only insets applied to [Table](Titanium.UI.TableView) and [List](Titanium.UI.ListView) views. Only `left` and `right` properties are used (see ). + */ +interface HorizontalInsets { + /** + * Left padding/inset + */ + left?: number; + + /** + * Right padding/inset + */ + right?: number; + +} +/** + * Template that represents the basic appearance of a list item. + */ +interface ItemTemplate { + /** + * Contains an array of subview templates to be added (in order) as children to this view. + */ + childTemplates?: ViewTemplate[]; + + /** + * Contains key-value pairs of view events and their listeners that are applied to the ListItem. + */ + events?: any; + + /** + * Contains key-value pairs of view properties and their values that are applied to the ListItem. + */ + properties?: Dictionary; + +} +/** + * See [TextView.setLineSpacing](https://developer.android.com/reference/android/widget/TextView#setLineSpacing(float,%20float)) + */ +interface LabelLineSpacing { + /** + * The value in pixels that should be added to each line other than the last line. This will be applied after the multiplier + */ + add?: number; + + /** + * The value by which each line height other than the last line will be multiplied by + */ + multiply?: number; + +} +/** + * Dictionary object of parameters used to identify an incoming URL that is handled + * by the application. + */ +interface LaunchOptionsType { + /** + * The application or service that triggered the handled URL. + */ + source?: string; + + /** + * The url that was triggered by the application or service. + */ + url?: string; + +} +/** + * Represents displayed item data. + */ +interface ListDataItem { + /** + * Contains key-value pairs of view properties and their values that are applied to the + * `ListItem`. + */ + properties?: Dictionary; + + /** + * Template ID configured with the property or + * . + */ + template?: string | number; + + [index: string]: any; +} +/** + * The arguments for the and events. + */ +interface ListItemEventType { + /** + * The item ID bound to the list item that generated the event. + */ + itemId?: string; + + /** + * Item index. + */ + itemIndex?: number; + + /** + * List section if the item is contained in a list section. + */ + section?: Titanium.UI.ListSection; + + /** + * Section index. + */ + sectionIndex?: number; + +} +/** + * A simple object for specifying the animation properties to use when inserting or deleting + * sections or cells, or scrolling the list. + */ +interface ListViewAnimationProperties { + /** + * Whether this list change should be animated. Ignored if any `animationStyle` value is specified. + */ + animated?: boolean; + + /** + * Type of animation to use for cell insertions and deletions. + */ + animationStyle?: number; + + /** + * Specifies what position to scroll the selected cell to. + */ + position?: number; + +} +/** + * A simple object that represents an index entry in a `ListView`. + */ +interface ListViewIndexEntry { + /** + * Section index associated with this title. + */ + index?: number; + + /** + * Title to display in the index bar. + */ + title?: string; + +} +/** + * The parameter for [setMarker](Titanium.UI.ListView.setMarker) and [addMarker](Titanium.UI.ListView.addMarker) methods. + */ +interface ListViewMarkerProps { + /** + * The itemIndex of the reference item. + */ + itemIndex?: number; + + /** + * The sectionIndex of the reference item. + */ + sectionIndex?: number; + +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface LocationAuthorizationResponse extends ErrorResponse { +} +/** + * Simple object holding the data for a location update. + */ +interface LocationCoordinates { + /** + * Accuracy of the location update, in meters. + */ + accuracy?: number; + + /** + * Altitude of the location update, in meters. + */ + altitude?: number; + + /** + * Vertical accuracy of the location update, in meters. + */ + altitudeAccuracy?: number; + + /** + * The floor of the building on which the user is located. + */ + floor?: LocationCoordinatesFloor; + + /** + * Compass heading, in degrees. May be unknown if device is not moving. On + * iOS, a negative value indicates that the heading data is not valid. + */ + heading?: number; + + /** + * Latitude of the location update, in decimal degrees. + */ + latitude?: number; + + /** + * Longitude of the location update, in decimal degrees. + */ + longitude?: number; + + /** + * Current speed in meters/second. On iOS, a negative value indicates that the + * heading data is not valid or the accuracy is configured incorrectly. + * Note: Due to the Apple Geolocation API, set the + * property to in order to properly + * measure speed changes and prevent the app from returning negative values. + */ + speed?: number; + + /** + * Timestamp for this location update, in milliseconds. + */ + timestamp?: number; + +} +/** + * Simple object holding floor of the building on which the user is located. + */ +interface LocationCoordinatesFloor { + /** + * The logical floor of the building. + */ + level?: number; + +} +/** + * Simple object describing a location provider. + */ +interface LocationProviderDict { + /** + * Accuracy of the location provider, either fine (1) or coarse (2). + */ + accuracy?: number; + + /** + * Name of the location provider. + */ + name?: string; + + /** + * Power consumption for this provider, either low (1), medium (2), or high (3). + */ + power?: number; + +} +/** + * Argument passed to the [getCurrentPosition](Titanium.Geolocation.getCurrentPosition) callback. + */ +interface LocationResults extends ErrorResponse { + /** + * If `success` is true, actual location data for this update. + */ + coords?: LocationCoordinates; + + /** + * If `success` is true, object describing the location provider generating this update. + */ + provider?: LocationProviderDict; + +} +/** + * Simple object passed to to initialize a matrix. + */ +interface Matrix2DCreationDict { + /** + * Point to rotate around, specified as a dictionary object with `x` and `y` + * properties, where { x: 0.5, y: 0.5 } represents the center of whatever is being + * rotated. + */ + anchorPoint?: Point; + + /** + * Rotation angle, in degrees. See the [rotate](Titanium.UI.Matrix2D.rotate) method + * for a discussion of rotation. + */ + rotate?: number; + + /** + * Scale the matrix by the specified scaling factor. The same scaling factor is used + * for both horizontal and vertical scaling. + */ + scale?: number; + +} +/** + * Simple object passed to to initialize a matrix. + */ +interface Matrix3DCreationDict { + /** + * Scale the matrix by the specified scaling factor. + */ + scale?: number; + +} +/** + * Simple object passed to to initialize a matrix. + */ +interface MatrixCreationDict { + /** + * Point to rotate around, specified as a dictionary object with `x` and `y` + * properties, where { x: 0.5, y: 0.5 } represents the center of whatever is being + * rotated. + */ + anchorPoint?: Point; + + /** + * Rotation angle, in degrees. See the [rotate](Titanium.UI.2DMatrix.rotate) method + * for a discussion of rotation. + */ + rotate?: number; + + /** + * Scale the matrix by the specified scaling factor. The same scaling factor is used + * for both horizontal and vertical scaling. + */ + scale?: number; + +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface MediaAuthorizationResponse extends ErrorResponse { +} +/** + * A full query descriptor for a filtering predicate. + */ +interface MediaQueryInfoType { + /** + * Whether or not the predicate is for an exact match. The default is `true`. + */ + exact?: boolean; + + /** + * The value for the given predicate. See the descriptions in for information about which properties require which values. + */ + value?: number | string | boolean; + +} +/** + * A specifier for a media library query. By default, filters perform an exact match. + */ +interface MediaQueryType { + /** + * The album artist to filter on. Value should be a String. + */ + albumArtist?: MediaQueryInfoType | string; + + /** + * The album artist persistent ID to filter on. Value should be a Number. + */ + albumArtistPersistentID?: MediaQueryInfoType | number; + + /** + * The album persistent ID to filter on. Value should be a Number. + */ + albumPersistentID?: MediaQueryInfoType | number; + + /** + * The album title to filter on. Value should be a String. + */ + albumTitle?: MediaQueryInfoType | string; + + /** + * The artist to filter on. Value should be a String. + */ + artist?: MediaQueryInfoType | string; + + /** + * The composer to filter on. Value should be a String. + */ + composer?: MediaQueryInfoType | string; + + /** + * The composer persistent ID to filter on. Value should be a Number. + */ + composerPersistentID?: MediaQueryInfoType | number; + + /** + * The genre to filter on. Value should be a String. + */ + genre?: MediaQueryInfoType | string; + + /** + * The genre persistent ID to filter on. Value should be a Number. + */ + genrePersistentID?: MediaQueryInfoType | number; + + /** + * A constant that specifies the ordering of the result array. + */ + grouping?: number; + + /** + * Filter by whether or not the item is a protected asset. + * Value should be a Boolean. + */ + hasProtectedAsset?: MediaQueryInfoType | boolean; + + /** + * Filter by whether or not the item is a cloud item. + * Value should be a Boolean. + */ + isCloudItem?: MediaQueryInfoType | boolean; + + /** + * Filter by whether or not the item is a compilation. + * The value should be a Boolean. + */ + isCompilation?: MediaQueryInfoType | boolean; + + /** + * The media type to filter on. + */ + mediaType?: MediaQueryInfoType | number; + + /** + * The persistent ID to filter on. Value should be a Number. + */ + persistentID?: MediaQueryInfoType | number; + + /** + * The play count to filter on. Value should be a Number. + */ + playCount?: MediaQueryInfoType | number; + + /** + * The podcast persistent ID to filter on. Value should be a Number. + */ + podcastPersistentID?: MediaQueryInfoType | number; + + /** + * The podcast title to filter on. Value should be a String. + */ + podcastTitle?: MediaQueryInfoType | string; + + /** + * The title to filter on. Value should be a String. + */ + title?: MediaQueryInfoType | string; + +} +/** + * Simple object passed to the [scanMediaFiles](Titanium.Media.Android.scanMediaFiles) callback. + */ +interface MediaScannerResponse { + /** + * Path to the media file that was scanned. + */ + path?: string; + + /** + * URI to the file if it was scanned and added to the media library, or `null` + * if the file was not added. + */ + uri?: string; + +} +/** + * Dictionary of options for showing a menu popup with . + */ +interface MenuPopupShowParams { + /** + * Determines whether the menu popup should be opened or closed animated. + */ + animated?: boolean; + + /** + * Indicates the arrow direction of the menu popup. + */ + arrowDirection?: number; + + /** + * The view where the menu pop is shown at. + */ + view: Titanium.UI.View; + +} +/** + * Reply message received from watch app. + */ +interface MessageReply { + /** + * Error code. Returns 0 if `success` is `true`. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Reply message from watchapp. + */ + message?: any; + + /** + * Indicates if the operation succeeded. + */ + success?: boolean; + +} +/** + * An object for setting `min`/`max` value pairs. + */ +interface MinMaxOptions { + /** + * Maximum value + */ + max?: number; + + /** + * Minimum value + */ + min?: number; + +} +/** + * Simple object used to describe the size of a movie. + */ +interface MovieSize { + /** + * Height of the movie. + */ + height?: number; + + /** + * Width of the movie. + */ + width?: number; + +} +/** + * Simple object for specifying options to [openMusicLibrary](Titanium.Media.openMusicLibrary). + */ +interface MusicLibraryOptionsType { + /** + * Set to `true` to allow the user to select multiple items from the library. + */ + allowMultipleSelections?: boolean; + + /** + * Boolean if the dialog should be animated when showing and hiding. + */ + animated?: boolean; + + /** + * Specifies that the library should be hidden automatically after media selection is completed. + */ + autohide?: boolean; + + /** + * Function to call if the user presses the cancel button. + */ + cancel?: (param0: FailureResponse) => void; + + /** + * Function to call upon receiving an error. + */ + error?: (param0: FailureResponse) => void; + + /** + * An array of media type constants defining selectable media. + */ + mediaTypes?: number | number[]; + + /** + * Function to call when the music library selection is made. + */ + success?: (param0: MusicLibraryResponseType) => void; + +} +/** + * Simple object passed to the [openMusicLibrary](Titanium.Media.openMusicLibrary) + * `success` callback function. + */ +interface MusicLibraryResponseType { + /** + * A list of all the items chosen by the user. + */ + items?: Titanium.Media.Item[]; + + /** + * A single representative of the selected items. + */ + representative?: Titanium.Media.Item; + + /** + * Media types in this collection, represented as the bitwise OR of the media type + * values for all media types represented in `items`. + */ + types?: number; + +} +/** + * Dictionary object of parameters used to create a notification using + * . + */ +interface NotificationParams { + /** + * Alert button text ('Open', by default) or home text ('Press Home to unlock', by default) + * to display. + */ + alertAction?: string; + + /** + * Alert message to display. + */ + alertBody?: string; + + /** + * Image to display instead of `Default.png` when launching the application. + */ + alertLaunchImage?: string; + + /** + * Alert subtitle to display. + */ + alertSubtitle?: string; + + /** + * Alert title to display. + */ + alertTitle?: string; + + /** + * Notification attachments to display. + */ + attachments?: UserNotificationAttachment[]; + + /** + * Application badge value. + */ + badge?: number; + + /** + * String identifier of category of actions to be displayed for an interactive notification. + */ + category?: string; + + /** + * Date and time for the notification to occur. + */ + date?: Date; + + /** + * The notification identifier. + */ + identifier: string; + + /** + * Region the notification will be triggered in. Allowed parameter are: + * - `latitude`: Latitude of the location center, in decimal degrees (required). + * - `longitude`: Longitude of the location center, in decimal degrees (required). + * - `triggersOnce`: Whether or not the notification will only fire once (optional, default: true). + */ + region?: any; + + /** + * Interval to repeat the notification. One of `weekly`, `daily`, `yearly,` `monthly`. + */ + repeat?: string; + + /** + * Path to the sound file to play when notification occurs, relative to the `Resources` folder. + */ + sound?: string; + + /** + * The string the notification adds to the category's summary format string. + */ + summaryArgument?: string; + + /** + * The number of items the notification adds to the category's summary format string. + */ + summaryArgumentCount?: string; + + /** + * Timezone of the date configured for the notification. If not set, the system timezone is used. + */ + timezone?: string; + + /** + * Data to pass to the application with the notification event. + */ + userInfo?: any; + +} +/** + * An object returned when the callback is fired. + */ +interface OnLinkURLResponse { + /** + * The url of the link that should be navigated to. + */ + url?: string; + +} +/** + * The optional options to pass to the URL handling (iOS 10+). Pass a + * dictionary with one or more of the following string-keys: + * * `UIApplicationOpenURLOptionsSourceApplicationKey` (String value) + * * `UIApplicationOpenURLOptionsAnnotationKey` (Array value) + * * `UIApplicationOpenURLOptionsOpenInPlaceKey` (Boolean value) + * * `UIApplicationOpenURLOptionUniversalLinksOnly` (Boolean value) + * Read more about the available keys in the [Apple documentation](https://developer.apple.com/documentation/uikit/uiapplicationopenurloptionskey?language=objc). + */ +interface OpenURLOptions { + /** + * When you include this key in the options dictionary, the method opens the URL only if the URL is a valid universal link and there is an installed app capable of opening that URL. + */ + UIApplicationOpenURLOptionUniversalLinksOnly?: boolean; + + /** + * contains the information passed to a document interaction controller object's annotation property. + */ + UIApplicationOpenURLOptionsAnnotationKey?: any[]; + + /** + * When the value of this property is `false`, you must copy the document to maintain access to it. If the flag is not set, you also must copy the document before you can use it. + */ + UIApplicationOpenURLOptionsOpenInPlaceKey?: boolean; + + /** + * The value of this key is an String containing the bundle ID of the app that made the request. If the request originated from another app belonging to your team, UIKit sets the value of this key to the ID of that app. If the team identifier of the originating app is different than the team identifier of the current app, the value of the key is nil. + */ + UIApplicationOpenURLOptionsSourceApplicationKey?: string; + +} +/** + * Simple object passed to the callbacks for + * onPrepareOptionsMenu and onCreateOptionsMenu. + * Additional properties may be set on the Object. + */ +interface OptionsMenuCallbackObject { + /** + * The relevant Menu. + */ + menu?: Titanium.Android.Menu; + +} +/** + * Dictionary object of parameters for the padding/insets applied to all kinds of views. + */ +interface Padding extends HorizontalInsets { + /** + * Bottom padding/inset + */ + bottom?: number; + + /** + * Top padding/inset + */ + top?: number; + +} +/** + * An abstract datatype for specifying an Paragraph style attribute. + */ +interface ParagraphAttribute { + /** + * The text alignment of the receiver. + */ + alignment?: number; + + /** + * A Boolean value indicating whether the system may tighten inter-character spacing + * before truncating text. + */ + allowsDefaultTighteningForTruncation?: boolean; + + /** + * The indentation of the first line of the receiver. + */ + firstLineHeadIndent?: number | string; + + /** + * The indentation of the lines of lines other than the first. + */ + headIndent?: number | string; + + /** + * The threshold of paragraph for hyphenation. + */ + hyphenationFactor?: number; + + /** + * The mode that should be used to break lines in the receiver. + */ + lineBreakMode?: number; + + /** + * The line height multiple. + */ + lineHeightMultiple?: number; + + /** + * The distance in points between the bottom of one line fragment and the top of the next. + */ + lineSpacing?: number | string; + + /** + * The maximum line height of receiver. + */ + maximumLineHeight?: number | string; + + /** + * The minimum height of receiver. + */ + minimumLineHeight?: number | string; + + /** + * The space after the end of the paragraph. + */ + paragraphSpacingAfter?: number | string; + + /** + * The distance between the top of paragraph and the beginning of its text content. + */ + paragraphSpacingBefore?: number | string; + + /** + * The trailing indentation of the receiver. + */ + tailIndent?: number | string; + +} +/** + * Simple object for specifying options to + * [openPhotoGallery](Titanium.Media.openPhotoGallery). + */ +interface PhotoGalleryOptionsType { + /** + * Specifies if the media should be editable after capture/selection. + */ + allowEditing?: boolean; + + /** + * Specifies if the user should be able to select multiple photos. + */ + allowMultiple?: boolean; + + /** + * Specifies if the video should be transcoded (using highest quality preset) . If set to false no video transcoding will be performed. + */ + allowTranscoding?: boolean; + + /** + * Specifies if the dialog should be animated upon showing and hiding. + */ + animated?: boolean; + + /** + * Controls the type of arrow and position of the popover. + */ + arrowDirection?: number; + + /** + * Specifies if the photo gallery should be hidden automatically after the media + * selection is completed. + */ + autohide?: boolean; + + /** + * Function to call if the user presses the cancel button. + */ + cancel?: (param0: FailureResponse) => void; + + /** + * Function to call upon receiving an error. + */ + error?: (param0: FailureResponse) => void; + + /** + * Array of media type constants to allow. + * Live photos is only supported on the iOS platform, starting with iOS 9.1. If you want + * to allow live photos with , you also need to specify + * at least as a fallback. If you do not allow live + * photos, they still can be selected, but will be represented as a normal static photo. + */ + mediaTypes?: string[]; + + /** + * View to position the photo gallery popover on top of. + */ + popoverView?: Titanium.UI.View; + + /** + * Function to call when the photo gallery is closed after a successful selection. + */ + success?: (param0: CameraMediaItemType) => void; + +} +/** + * A pair of coordinates used to describe the location of a . + */ +interface Point { + /** + * The x-axis coordinate of this point. + */ + x?: number | string; + + /** + * The y-axis coordinate of this point. + */ + y?: number | string; + +} +/** + * Simple `Error` argument provided to the callback from the + * [executeAllAsync](Titanium.Database.DB.executeAllAsync) method in case of failure + */ +interface PossibleBatchQueryError { + /** + * Index of the failed query + */ + index?: number; + +} +/** + * The parameter passed to the `error` callback of . + */ +interface PreviewImageError extends FailureResponse { + /** + * Error code, if applicable. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Description of the error. + * @deprecated + */ + message?: string; + + /** + * Indicates if the operation succeeded. Returns `false`. + */ + success?: boolean; + +} +/** + * Options passed to . + */ +interface PreviewImageOptions { + /** + * Function called back if the preview fails. Check the `message` property of passed back parameter. + */ + error?: (param0: PreviewImageError) => void; + + /** + * The image to preview. Must be a blob based on a file, such as from . + */ + image?: Titanium.Blob; + + /** + * Function to be called back if the preview succeeds. No info is passed. + */ + success?: (param0: SuccessResponse) => void; + +} +/** + * Argument passed to the callback each time the + * [pump](Titanium.Stream.pump) operation has new data to deliver. + */ +interface PumpCallbackArgs extends ErrorResponse { + /** + * Buffer object holding the data currently being pumped to the handler method. + */ + buffer?: Titanium.Buffer; + + /** + * Number of bytes being passed to this invocation of the handler, or + * -1 in the event of an error or end of stream. + */ + bytesProcessed?: number; + + /** + * Error code. Returns 0 if `success` is `true`. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Text description of the error. + * @deprecated Use error property to determine error message + */ + errorDescription: never; + + /** + * Whether an error was encountered. Set to 1 in the case of an error, 0 + * otherwise. + * @deprecated Use success or code values to determine error conditions + */ + errorState: never; + + /** + * Stream being read from. + */ + source?: Titanium.IOStream; + + /** + * Indicates if the operation succeeded. + */ + success?: boolean; + + /** + * Total number of bytes read from the stream so far, + * including the data passed to this current invocation of the handler. + */ + totalBytesProcessed?: number; + +} +/** + * Simple object for specifying push notification options to + * [registerForPushNotifications](Titanium.Network.registerForPushNotifications). + */ +interface PushNotificationConfig { + /** + * Callback function invoked upon receiving a new push notification. + */ + callback?: (param0: PushNotificationData) => void; + + /** + * Callback function called when an error occurs during registration. + */ + error?: (param0: PushNotificationErrorArg) => void; + + /** + * Callback function called when the push registration is successfully completed. + */ + success?: (param0: PushNotificationSuccessArg) => void; + + /** + * Array of `NOTIFICATION_TYPE` constants that the application would like to receive. + */ + types?: number[]; + +} +/** + * A simple object representing a push notification. + */ +interface PushNotificationData { + /** + * The `userinfo` dictionary passed to the Apple Push Notification Service. + */ + data?: any; + + /** + * Boolean indicating if notification was received while app was in background. + */ + inBackground?: boolean; + +} +/** + * A simple object passed to the + * [registerForPushNotifications](Titanium.Network.registerForPushNotifications) error callback. + */ +interface PushNotificationErrorArg extends FailureResponse { + /** + * Error code. Returns a non-zero value. + */ + code?: number; + + /** + * Indicates if the operation succeeded. Returns `false`. + */ + success?: boolean; + + /** + * The value of this string is always "remote". + */ + type?: string; + +} +/** + * A simple object passed to the + * [registerForPushNotifications](Titanium.Network.registerForPushNotifications) success callback. + */ +interface PushNotificationSuccessArg extends SuccessResponse { + /** + * Error code. Returns 0. + */ + code?: number; + + /** + * The device token which this device was registered for. + */ + deviceToken?: string; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Indicates if the operation succeeded. Returns `true`. + */ + success?: boolean; + + /** + * The value of this string is always "remote". + */ + type?: string; + +} +/** + * Argument passed to the read callback when an asynchronous [read](Titanium.Stream.read) operation + * finishes. + */ +interface ReadCallbackArgs extends ErrorResponse { + /** + * Number of bytes processed, or -1 in the event of an error or end of stream. + */ + bytesProcessed?: number; + + /** + * Error code. Returns 0 if `success` is `true`. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Text description of the error. + * @deprecated Use error property to determine error message + */ + errorDescription: never; + + /** + * Whether an error was encountered. Set to 1 in the case of an error, 0 + * otherwise. + * @deprecated Use success or code values to determine error conditions + */ + errorState: never; + + /** + * Stream being read. + */ + source?: Titanium.IOStream; + + /** + * Indicates if the operation succeeded. + */ + success?: boolean; + +} +/** + * An Object describing the current ready state. See [onreadystatechange](Titanium.Network.HTTPClient.onreadystatechange) for more information. + */ +interface ReadyStatePayload { + /** + * The state for which `onreadystatechange` was invoked. Set to one of `Titanium.Network.HTTPClient` ready-state constants + */ + readyState?: number; + +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface RequestCameraAccessResult extends ErrorResponse { +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface RequestMusicLibraryAccessResult extends ErrorResponse { +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface RequestPermissionAccessResult extends ErrorResponse { +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface RequestPhotoGalleryAccessResult extends ErrorResponse { +} +/** + * Argument passed to the callback when a request finishes successfully or erroneously. + */ +interface RequestStorageAccessResult extends ErrorResponse { +} +/** + * Simple object returned in the callback from the + * [reverseGeocoder](Titanium.Geolocation.reverseGeocoder) method. + */ +interface ReverseGeocodeResponse extends ErrorResponse { + /** + * Error code. Returns 0 if `success` is `true`. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * An array of reverse-geocoded addresses matching the requested location. + */ + places?: GeocodedAddress[]; + +} +/** + * An Object describing the current audio route. + */ +interface RouteDescription { + /** + * An Array of current input ports for the session. See the `AUDIO_SESSION_PORT` constants. + */ + inputs?: string[]; + + /** + * An Array of current output ports for the session. See the `AUDIO_SESSION_PORT` constants. + */ + outputs?: string[]; + +} +/** + * Represents the custom edit action for a ListItem. + */ +interface RowActionType { + /** + * The background color of the row action. + */ + color?: string; + + /** + * The [identifier](RowActionType. identifier) of the row action. Only included in the event + * if previously defined. Available in Titanium 6.0.0 and later. + */ + identifier?: string; + + /** + * The style of the row action. + */ + style: number; + + /** + * The title of the row action. + */ + title: string; + +} +/** + * The parameter passed to the callback. + */ +interface ScreenshotResult { + /** + * The screenshot image. + */ + media?: Titanium.Blob; + +} +/** + * The protocol that the must implement. + */ +interface SecurityManagerProtocol { + /** + * The for this connection. + */ + connectionDelegateForUrl(url: any): APSConnectionDelegate; + + /** + * Returns an array of objects implementing the [X509KeyManager](https://developer.android.com/reference/javax/net/ssl/X509KeyManager.html) protocol for the SSL Context. + */ + getKeyManagers(proxy: any): any[]; + + /** + * Returns an array of objects implementing the [X509TrustManager](https://developer.android.com/reference/javax/net/ssl/X509TrustManager.html) protocol for the SSL Context. + */ + getTrustManagers(proxy: any): any[]; + + /** + * Returns if the security manager will participate in authentication of this end point. + */ + willHandleURL(url: any): boolean; + +} +/** + * The arguments for the event. + */ +interface SelectedItem { + /** + * Item index. + */ + itemIndex?: number; + + /** + * List section if the item is contained in a list section. + */ + section?: Titanium.UI.ListSection; + + /** + * Section index. + */ + sectionIndex?: number; + +} +/** + * The arguments for the event. + */ +interface SelectedRowObject { + /** + * Row index. + */ + index?: number; + + /** + * Table view row object. + */ + row?: Titanium.UI.TableViewRow; + + /** + * Properties of the row. Use this property rather than `row` to access any custom row properties. + */ + rowData?: Dictionary; + + /** + * Table view section object, if the clicked row is contained in a section. + */ + section?: Titanium.UI.TableViewSection; + +} +/** + * Options passed to . + */ +interface ServiceIntentOptions { + /** + * One of the `START_*` constants from to specify the "stickiness" of the Service when Android shuts down the host application. + */ + startMode?: number; + + /** + * URL for the service's JavaScript. + */ + url?: string; + +} +/** + * Object of options for . + */ +interface ShortcutParams { + /** + * The icon to be displayed on the application shortcut. You can either use one of the constants like + * , a local image specified by the image path or a reference to a + * . + */ + icon?: number | string | Titanium.Contacts.Person; + + /** + * The unique key for the application shortcut. Equates to the underlying `UIApplicationShortcutItemIconType` key + */ + identifier: string; + + /** + * The subtitle displayed on the application shortcut. + */ + subtitle?: string; + + /** + * The title of the application shortcut. + */ + title: string; + + /** + * The userInfo of the application shortcut. + */ + userInfo?: any; + +} +/** + * Dictionary of options for . + */ +interface ShowPopoverParams { + /** + * Indicates whether to animate showing the popover. + */ + animated?: boolean; + + /** + * Sets the arrow position of the popover relative to the attached view object's dimensions + * when showing the popover. + */ + rect?: Dimension; + + /** + * Attaches the popover to the specified view when showing the popover. + */ + view: Titanium.UI.View; + +} +/** + * A simple object consisting of size measurements. + */ +interface Size { + /** + * The height measurement. + */ + height?: number; + + /** + * The width measurement. + */ + width?: number; + +} +/** + * The parameter passed to the callback. + */ +interface SnapshotResult { + /** + * Error message, if any returned. + */ + error?: string; + + /** + * The snapshot image. + */ + snapshot?: Titanium.Blob; + + /** + * Indicates if the snapshot taken. + */ + success?: boolean; + +} +/** + * Properties used in any event or callback which needs to report a success. + */ +interface SuccessResponse extends ErrorResponse { + /** + * Error code. Returns 0. + */ + code?: number; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Indicates if the operation succeeded. Returns `true`. + */ + success?: boolean; + +} +/** + * Dictionary to specify edge insets for . Difference from typical is that `right` and `bottom` are ignored and calculated internally from `top`/`left` values. + */ +interface TabIconInsets extends Padding { + /** + * Bottom padding/inset + */ + bottom: never; + + /** + * Left inset. + */ + left?: number; + + /** + * Right padding/inset + */ + right: never; + + /** + * Top inset. + */ + top?: number; + +} +/** + * A simple object for specifying the animation properties to use when inserting or deleting rows, or scrolling the table. + */ +interface TableViewAnimationProperties { + /** + * Whether this table change should be animated. Ignored if any `animationStyle` value is specified. + */ + animated?: boolean; + + /** + * Type of animation to use for row insertions and deletions. + */ + animationStyle?: number; + + /** + * Specifies what position to scroll the selected row to. + */ + position?: number; + +} +/** + * A simple object that represents an index entry in a `TableView`. + */ +interface TableViewIndexEntry { + /** + * Row index associated with this item. + */ + index?: number; + + /** + * Title to display in the index bar for this item. + */ + title?: string; + +} +/** + * Dictionary object of parameters for the that describes the padding. Most notable difference from typical is that `top`/`bottom` are only supported on Android. + */ +interface TextFieldPadding extends Padding { + /** + * Bottom padding (Android only, since 6.1.0) + */ + bottom?: number; + + /** + * Left padding + */ + left?: number; + + /** + * Right padding + */ + right?: number; + + /** + * Top padding (Android only, since 6.1.0) + */ + top?: number; + +} +/** + * Simple object passed to the thumbnail callback in response to the + * [requestThumbnailImagesAtTimes](Titanium.Media.VideoPlayer.requestThumbnailImagesAtTimes) + * method. + */ +interface ThumbnailResponse extends ErrorResponse { + /** + * Error code. Returns 0 if `success` is `true`. + */ + code?: number; + + /** + * Thumbnail image, as a `Blob`. + */ + image?: Titanium.Blob; + + /** + * Time offset for the thumbnail, in seconds. + */ + time?: number; + +} +/** + * An abstract type to represent a metadata item inside the `metadata` event (iOS only). + */ +interface TiMetadataItemType { + /** + * A dictionary of the additional attributes. + */ + extraAttributes?: any; + + /** + * The key of the metadata item, e.g. "title". + */ + key?: string; + + /** + * The key-path of the metadata item. + */ + keySpace?: string; + + /** + * The value of the metadata item. Can be represented as various types. + */ + value?: string | number | boolean; + +} /** * The top-level Titanium module. */ declare namespace Titanium { /** - * Indicates if the proxy will bubble an event to its parent. + * Date of the Titanium build. */ - let bubbleParent: boolean; + const buildDate: string; /** - * The name of the API that this proxy corresponds to. + * Git hash of the Titanium build. */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + const buildHash: string; /** * User-agent string used by Titanium. @@ -36,35 +2942,10 @@ declare namespace Titanium { */ const version: string; - /** - * Date of the Titanium build. - */ - const buildDate: string; - - /** - * Git hash of the Titanium build. - */ - const buildHash: string; - /** * Adds the specified callback as an event listener for the named event. */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Creates a new buffer based on the params. @@ -74,38661 +2955,52 @@ declare namespace Titanium { /** * Creates and returns an instance of . */ - function createProxy(parameters?: any): Titanium.Proxy; + function createProxy(parameters?: Dictionary): Titanium.Proxy; /** - * Gets the value of the property. + * Fires a synthesized event to any registered listeners. */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getUserAgent(): string; - - /** - * Sets the value of the property. - */ - function setUserAgent(userAgent: string): void; - - /** - * Gets the value of the property. - */ - function getVersion(): string; + function fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ function getBuildDate(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ function getBuildHash(): string; /** - * The base for all Titanium objects. + * Gets the value of the property. + * @deprecated Access instead. */ - interface Proxy { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - readonly apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - lifecycleContainer?: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Adds the specified callback as an event listener for the named event. - */ - addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - getApiName(): string; - - /** - * Gets the value of the property. - */ - getLifecycleContainer?(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - setLifecycleContainer?(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - setLifecycleContainer?(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - /** - * A container for binary data. - */ - interface Blob extends Titanium.Proxy { - /** - * File object represented by this blob, or `null` if this blob is not - * associated with a file. - */ - readonly file: Titanium.Filesystem.File; - - /** - * Length of this blob in bytes. - */ - readonly length: number; - - /** - * UTF-8 string representation of the data in this blob. - */ - readonly text: string; - - /** - * Mime type of the data in this blob. - */ - readonly mimeType: string; - - /** - * If this blob represents an image, this is the height of the image in pixels. - */ - readonly height: number; - - /** - * If this blob represents an image, this is the width of the image in pixels. - */ - readonly width: number; - - /** - * If this blob represents a [File](Titanium.Filesystem.File), this is the file URL - * that represents it. - */ - readonly nativePath: string; - - /** - * Size of the blob in pixels (for image blobs) or bytes (for all other blobs). - */ - readonly size: number; - - /** - * Returns a string representation of this blob. - */ - toString(): string; - - /** - * Appends the data from another blob to this blob. - */ - append(blob: Titanium.Blob): void; - - /** - * Creates a new blob by cropping the underlying image to the specified dimensions. - */ - imageAsCropped(options: any): Titanium.Blob; - - /** - * Creates a new blob by resizing and scaling the underlying image to the specified dimensions. - */ - imageAsResized(width: number, height: number): Titanium.Blob; - - /** - * Creates a new blob by compressing the underlying image to the specified quality. - */ - imageAsCompressed(quality: number): Titanium.Blob; - - /** - * Returns a thumbnail version of the underlying image, optionally with a border and rounded corners. - */ - imageAsThumbnail(size: number, borderSize?: number, cornerRadius?: number): Titanium.Blob; - - /** - * Returns a copy of the underlying image with an added alpha channel. - */ - imageWithAlpha(): Titanium.Blob; - - /** - * Returns a copy of the underlying image with rounded corners added. - */ - imageWithRoundedCorner(cornerSize: number, borderSize?: number): Titanium.Blob; - - /** - * Returns a copy of the underlying image with an added transparent border. - */ - imageWithTransparentBorder(size: number): Titanium.Blob; - - /** - * Gets the value of the property. - */ - getFile(): Titanium.Filesystem.File; - - /** - * Gets the value of the property. - */ - getLength(): number; - - /** - * Gets the value of the property. - */ - getText(): string; - - /** - * Gets the value of the property. - */ - getMimeType(): string; - - /** - * Gets the value of the property. - */ - getHeight(): number; - - /** - * Gets the value of the property. - */ - getWidth(): number; - - /** - * Gets the value of the property. - */ - getNativePath(): string; - - /** - * Gets the value of the property. - */ - getSize(): number; - - } - /** - * Wrapper around that implements the interface. - */ - interface BlobStream extends Titanium.Proxy { - /** - * Reads data from this stream into a buffer. - */ - read(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: ReadCallbackArgs) => any): number; - - /** - * Writes data from a buffer to this stream. - */ - write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; - - /** - * Indicates whether this stream is writable. - */ - isWritable(): boolean; - - /** - * Indicates whether this stream is readable. - */ - isReadable(): boolean; - - /** - * Closes this stream. - */ - close(): void; - - } - /** - * Buffer is a mutable, resizable container for raw data. - */ - interface Buffer extends Titanium.Proxy { - /** - * Length of the buffer in bytes. - */ - length: number; - - /** - * Data to be encoded. - */ - value: number | string; - - /** - * The type of data encoding to use with `value`. - */ - type: string; - - /** - * Byte order of this buffer. - */ - byteOrder: number; - - /** - * Appends `sourceBuffer` to the this buffer. - */ - append(sourceBuffer: Titanium.Buffer, sourceOffset?: number, sourceLength?: number): number; - - /** - * Inserts data from `sourceBuffer` into this buffer at `offset`. - */ - insert(sourceBuffer: Titanium.Buffer, offset: number, sourceOffset?: number, sourceLength?: number): number; - - /** - * Copies data from `sourceBuffer` into the current buffer at `offset`. - */ - copy(sourceBuffer: Titanium.Buffer, offset: number, sourceOffset?: number, sourceLength?: number): number; - - /** - * Creates a complete or partial copy of this buffer. - */ - clone(offset?: number, length?: number): Titanium.Buffer; - - /** - * Fills this buffer with the specified byte value. - */ - fill(fillByte: number, offset?: number, length?: number): void; - - /** - * Clears this buffer's contents but does not change the size of the buffer. - */ - clear(): void; - - /** - * Releases the space allocated to the buffer, and sets its length to 0. - */ - release(): void; - - /** - * Converts this buffer to a String. - */ - toString(): string; - - /** - * Converts this buffer to a . - */ - toBlob(): Titanium.Blob; - - /** - * Gets the value of the property. - */ - getLength(): number; - - /** - * Sets the value of the property. - */ - setLength(length: number): void; - - /** - * Gets the value of the property. - */ - getValue(): number | string; - - /** - * Sets the value of the property. - */ - setValue(value: number): void; - - /** - * Sets the value of the property. - */ - setValue(value: string): void; - - /** - * Gets the value of the property. - */ - getType(): string; - - /** - * Sets the value of the property. - */ - setType(type: string): void; - - /** - * Gets the value of the property. - */ - getByteOrder(): number; - - /** - * Sets the value of the property. - */ - setByteOrder(byteOrder: number): void; - - } - /** - * Wrapper around that implements the interface. - */ - interface BufferStream extends Titanium.Proxy { - /** - * Reads data from this stream into a buffer. - */ - read(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: ReadCallbackArgs) => any): number; - - /** - * Writes data from a buffer to this stream. - */ - write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; - - /** - * Indicates whether this stream is writable. - */ - isWritable(): boolean; - - /** - * Indicates whether this stream is readable. - */ - isReadable(): boolean; - - /** - * Closes this stream. - */ - close(): void; - - } - /** - * The base type for all Titanium events. - */ - interface Event { - /** - * Source object that fired the event. - */ - readonly source: any; - - /** - * Name of the event fired. - */ - readonly type: string; - - /** - * True if the event will try to bubble up if possible. - */ - readonly bubbles: boolean; - - /** - * Set to true to stop the event from bubbling. - */ - cancelBubble: boolean; - - } - /** - * IOStream is the interface that all stream types implement. - */ - // tslint:disable-next-line:interface-name - interface IOStream extends Titanium.Proxy { - /** - * Reads data from this stream into a buffer. - */ - read(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: ReadCallbackArgs) => any): number; - - /** - * Writes data from a buffer to this stream. - */ - write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; - - /** - * Indicates whether this stream is writable. - */ - isWritable(): boolean; - - /** - * Indicates whether this stream is readable. - */ - isReadable(): boolean; - - /** - * Closes this stream. - */ - close(): void; - - } + function getUserAgent(): string; /** - * The main module. + * Gets the value of the property. + * @deprecated Access instead. */ - namespace UI { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts - * slowly and speeds up. - */ - const ANIMATION_CURVE_EASE_IN: number; - - /** - * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts - * slowly, and speeds up, then slows down at the end of the animation. - */ - const ANIMATION_CURVE_EASE_IN_OUT: number; - - /** - * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts - * quickly, then slows down at the end of the animation. - */ - const ANIMATION_CURVE_EASE_OUT: number; - - /** - * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that proceeds - * at a constant rate. - */ - const ANIMATION_CURVE_LINEAR: number; - - /** - * Use with to specify a font. - */ - const ATTRIBUTE_FONT: number; - - /** - * Use with to specify a font color. - */ - const ATTRIBUTE_FOREGROUND_COLOR: number; - - /** - * Use with to specify a background color. - */ - const ATTRIBUTE_BACKGROUND_COLOR: number; - - /** - * Use with to enable or disable ligatures. - */ - const ATTRIBUTE_LIGATURE: number; - - /** - * Use with to use a letterpress text effect. - */ - const ATTRIBUTE_LETTERPRESS_STYLE: number; - - /** - * Use with to specify kerning (space between characters). - */ - const ATTRIBUTE_KERN: number; - - /** - * Use with to place a horizontal line through the text. - */ - const ATTRIBUTE_STRIKETHROUGH_STYLE: number; - - /** - * Use with to place a horizontal line under the text. - */ - const ATTRIBUTE_UNDERLINES_STYLE: number; - - /** - * Use with to place the text in an upper position. - */ - const ATTRIBUTE_SUPERSCRIPT_STYLE: number; - - /** - * Use with to place the text in a lower position. - */ - const ATTRIBUTE_SUBSCRIPT_STYLE: number; - - /** - * Use with to specify a color for the stroke text. - */ - const ATTRIBUTE_STROKE_COLOR: number; - - /** - * Use with to manages the behaviour of string set. - */ - const ATTRIBUTE_PARAGRAPH_STYLE: number; - - /** - * Use with to specify the width of the stroke text. - */ - const ATTRIBUTE_STROKE_WIDTH: number; - - /** - * Use with to display a shadow behind the text. - */ - const ATTRIBUTE_SHADOW: number; - - /** - * Use with to control the direction of the text. - */ - const ATTRIBUTE_WRITING_DIRECTION: number; - - /** - * Use with to apply a text effect. - */ - const ATTRIBUTE_TEXT_EFFECT: number; - - /** - * Use with to create a link. - */ - const ATTRIBUTE_LINK: number; - - /** - * Use with to apply a different baseline to the text. - */ - const ATTRIBUTE_BASELINE_OFFSET: number; - - /** - * Use with to change the color of the horizontal line. - */ - const ATTRIBUTE_UNDERLINE_COLOR: number; - - /** - * Use with to change the color of the horizontal line. - */ - const ATTRIBUTE_STRIKETHROUGH_COLOR: number; - - /** - * Use with to skew the text. - */ - const ATTRIBUTE_OBLIQUENESS: number; - - /** - * Use with to stretch the text horizontally. - */ - const ATTRIBUTE_EXPANSION: number; - - /** - * Use with to wrap and truncate the text. - */ - const ATTRIBUTE_LINE_BREAK: number; - - /** - * Use with to not draw a line. - */ - const ATTRIBUTE_UNDERLINE_STYLE_NONE: number; - - /** - * Use with to draw a single line. - */ - const ATTRIBUTE_UNDERLINE_STYLE_SINGLE: number; - - /** - * Use with to draw a thick line. - */ - const ATTRIBUTE_UNDERLINE_STYLE_THICK: number; - - /** - * Use with to draw a double line. - */ - const ATTRIBUTE_UNDERLINE_STYLE_DOUBLE: number; - - /** - * Use with to draw a solid line. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_SOLID: number; - - /** - * Use with to draw a dotted line. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_DOT: number; - - /** - * Use with to draw a dashed line. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_DASH: number; - - /** - * Use with to draw an alternating line of dashes and dots. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT: number; - - /** - * Use with to draw an alternating line of dashes and two dots. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT_DOT: number; - - /** - * Use with to draw a line only underneath or through words. - */ - const ATTRIBUTE_UNDERLINE_BY_WORD: number; - - /** - * Use with to use the embedded text direction. - */ - const ATTRIBUTE_WRITING_DIRECTION_EMBEDDING: number; - - /** - * Use with to override the text direction. - */ - const ATTRIBUTE_WRITING_DIRECTION_OVERRIDE: number; - - /** - * Use with to use the - * [Unicode Bidirection Algorithm rules P2 and P3](http://www.unicode.org/reports/tr9/#The_Paragraph_Level) - * to determine which direction to use. - */ - const ATTRIBUTE_WRITING_DIRECTION_NATURAL: number; - - /** - * Use with to write text left to right. - */ - const ATTRIBUTE_WRITING_DIRECTION_LEFT_TO_RIGHT: number; - - /** - * Use with to write text right to left. - */ - const ATTRIBUTE_WRITING_DIRECTION_RIGHT_TO_LEFT: number; - - /** - * Use with to wrap words at word boundaries. - */ - const ATTRIBUTE_LINE_BREAK_BY_WORD_WRAPPING: number; - - /** - * Use with to wrap words at word boundaries. - */ - const ATTRIBUTE_LINE_BREAK_BY_CHAR_WRAPPING: number; - - /** - * Use with to set lines to not draw past the edge of the text container. - */ - const ATTRIBUTE_LINE_BREAK_BY_CLIPPING: number; - - /** - * Use with to use ellipsis glyph at the beginning of the line for missing text. - */ - const ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_HEAD: number; - - /** - * Use with to use ellipsis glyph at the middle of the line for missing text. - */ - const ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_MIDDLE: number; - - /** - * Use with to use ellipsis glyph at the end of the line for missing text. - */ - const ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_TAIL: number; - - /** - * Converts strings formatted as addresses into clickable links. - */ - const AUTODETECT_ADDRESS: number; - - /** - * Converts all detectable types of data into clickable links. - */ - const AUTODETECT_ALL: number; - - /** - * Converts strings formatted as calendar events into clickable links. - */ - const AUTODETECT_CALENDAR: number; - - /** - * Converts strings formatted as URLs into clickable links. - */ - const AUTODETECT_LINK: number; - - /** - * Disables converting strings into clickable links. - */ - const AUTODETECT_NONE: number; - - /** - * Converts strings formatted as phone numbers into clickable links. - */ - const AUTODETECT_PHONE: number; - - /** - * Specifies the expectation of an account or login name. - */ - const AUTOFILL_TYPE_USERNAME: string; - - /** - * Specifies the expectation of a password. - */ - const AUTOFILL_TYPE_PASSWORD: string; - - /** - * Specifies the expectation of a name. - */ - const AUTOFILL_TYPE_NAME: string; - - /** - * Specifies the expectation of a prefix or title, such as 'Dr.' - */ - const AUTOFILL_TYPE_NAME_PREFIX: string; - - /** - * Specifies the expectation of a given name. - */ - const AUTOFILL_TYPE_GIVEN_NAME: string; - - /** - * Specifies the expectation of a middle name. - */ - const AUTOFILL_TYPE_MIDDLE_NAME: string; - - /** - * Specifies the expectation of a family name. - */ - const AUTOFILL_TYPE_FAMILY_NAME: string; - - /** - * Specifies the expectation of a suffix, such as 'Jr.' - */ - const AUTOFILL_TYPE_NAME_SUFFIX: string; - - /** - * Specifies the expectation of a nickname. - */ - const AUTOFILL_TYPE_NICKNAME: string; - - /** - * Specifies the expectation of a job title. - */ - const AUTOFILL_TYPE_JOB_TITLE: string; - - /** - * Specifies the expectation of an organization name. - */ - const AUTOFILL_TYPE_ORGANIZATION_NAME: string; - - /** - * Specifies the expectation of a location, such as a point of interest, an address, or another way to identify a location. - */ - const AUTOFILL_TYPE_LOCATION: string; - - /** - * Specifies the expectation of an address. - */ - const AUTOFILL_TYPE_ADDRESS: string; - - /** - * Specifies the expectation of the first line of a street address. - */ - const AUTOFILL_TYPE_ADDRESS_LINE1: string; - - /** - * Specifies the expectation of the second line of a street address. - */ - const AUTOFILL_TYPE_ADDRESS_LINE2: string; - - /** - * Specifies the expectation of a city name. - */ - const AUTOFILL_TYPE_ADDRESS_CITY: string; - - /** - * Specifies the expectation of a state name. - */ - const AUTOFILL_TYPE_ADDRESS_STATE: string; - - /** - * Specifies the expectation of a city name combined with a state name. - */ - const AUTOFILL_TYPE_ADDRESS_CITY_STATE: string; - - /** - * Specifies the expectation of a sublocality. - */ - const AUTOFILL_TYPE_SUBLOCALITY: string; - - /** - * Specifies the expectation of a country name. - */ - const AUTOFILL_TYPE_COUNTRY_NAME: string; - - /** - * Specifies the expectation of a postal code. - */ - const AUTOFILL_TYPE_POSTAL_CODE: string; - - /** - * Specifies the expectation of a telephone number. - */ - const AUTOFILL_TYPE_PHONE: string; - - /** - * Specifies the expectation of an email address. - */ - const AUTOFILL_TYPE_EMAIL: string; - - /** - * Specifies the expectation of a URL. - */ - const AUTOFILL_TYPE_URL: string; - - /** - * Specifies the expectation of a card number. - */ - const AUTOFILL_TYPE_CARD_NUMBER: string; - - /** - * Specifies the expectation of a card security code. - */ - const AUTOFILL_TYPE_CARD_SECURITY_CODE: string; - - /** - * Specifies the expectation of a card expiration date. - */ - const AUTOFILL_TYPE_CARD_EXPIRATION_DATE: string; - - /** - * Specifies the expectation of a card expiration day. - */ - const AUTOFILL_TYPE_CARD_EXPIRATION_DAY: string; - - /** - * Specifies the expectation of a card expiration month. - */ - const AUTOFILL_TYPE_CARD_EXPIRATION_MONTH: string; - - /** - * Specifies the expectation of a card expiration year. - */ - const AUTOFILL_TYPE_CARD_EXPIRATION_YEAR: string; - - /** - * Specifies the expectation of a new password. - */ - const AUTOFILL_TYPE_NEW_PASSWORD: string; - - /** - * Specifies the expectation of a single-factor SMS login code. - */ - const AUTOFILL_TYPE_ONE_TIME_CODE: string; - - /** - * Converts strings formatted as addresses into clickable links. - */ - const AUTOLINK_MAP_ADDRESSES: number; - - /** - * Converts all detectable types of data into clickable links. - */ - const AUTOLINK_ALL: number; - - /** - * Converts strings formatted as calendar events into clickable links. - */ - const AUTOLINK_CALENDAR: number; - - /** - * Converts strings formatted as URLs into clickable links. - */ - const AUTOLINK_URLS: number; - - /** - * Disables converting strings into clickable links. - */ - const AUTOLINK_NONE: number; - - /** - * Converts strings formatted as phone numbers into clickable links. - */ - const AUTOLINK_PHONE_NUMBERS: number; - - /** - * Converts strings formatted as email addresses into clickable links. - */ - const AUTOLINK_EMAIL_ADDRESSES: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_CLEAR: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_COLOR: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_COLOR_BURN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_COLOR_DODGE: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_COPY: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DARKEN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DESTINATION_ATOP: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DESTINATION_IN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DESTINATION_OUT: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DESTINATION_OVER: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DIFFERENCE: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_EXCLUSION: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_HARD_LIGHT: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_HUE: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_LIGHTEN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_LUMINOSITY: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_MULTIPLY: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_NORMAL: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_OVERLAY: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_PLUS_DARKER: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_PLUS_LIGHTER: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SATURATION: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SCREEN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SOFT_LIGHT: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SOURCE_ATOP: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SOURCE_IN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SOURCE_OUT: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_XOR: number; - - /** - * Use when creating a TextField to specify the hintType as static. - */ - const HINT_TYPE_STATIC: number; - - /** - * Use when creating a TextField to specify the hintType as animated. - */ - const HINT_TYPE_ANIMATED: number; - - /** - * Add ellipses at word boundaries, unless the word itself doesn't fit on a single line. - */ - const TEXT_ELLIPSIZE_TRUNCATE_WORD_WRAP: number; - - /** - * Add ellipses before the first character that doesnt fit. - */ - const TEXT_ELLIPSIZE_TRUNCATE_CHAR_WRAP: number; - - /** - * Lines are simply not drawn past the edge of the text container. - */ - const TEXT_ELLIPSIZE_TRUNCATE_CLIP: number; - - /** - * Add ellipses at the beginning of the label if the text is too large to fit. - */ - const TEXT_ELLIPSIZE_TRUNCATE_START: number; - - /** - * Add ellipses in the middle of the label if the text is too large to fit. - */ - const TEXT_ELLIPSIZE_TRUNCATE_MIDDLE: number; - - /** - * Add ellipses at the end of the label if the text is too large to fit. - */ - const TEXT_ELLIPSIZE_TRUNCATE_END: number; - - /** - * Turns on a marquee effect of the label if the text is too large to fit. (This requires to be true) - */ - const TEXT_ELLIPSIZE_TRUNCATE_MARQUEE: number; - - /** - * Disables ellipsizing of the label. The text will be cut off if it is too long. - */ - const TEXT_ELLIPSIZE_TRUNCATE_NONE: number; - - /** - * Specifies that the top edge of the window can extend. - */ - const EXTEND_EDGE_TOP: number; - - /** - * Specifies that the bottom edge of the window can extend. - */ - const EXTEND_EDGE_BOTTOM: number; - - /** - * Specifies that the left edge of the window can extend. - */ - const EXTEND_EDGE_LEFT: number; - - /** - * Specifies that the right edge of the window can extend. - */ - const EXTEND_EDGE_RIGHT: number; - - /** - * Specifies that none of the edges of the window can extend. - */ - const EXTEND_EDGE_NONE: number; - - /** - * Specifies that all the edges of the window can extend. - */ - const EXTEND_EDGE_ALL: number; - - /** - * Constant value for face-down orientation. - */ - const FACE_DOWN: number; - - /** - * Constant value for face-up orientation. - */ - const FACE_UP: number; - - /** - * FILL behavior for UI layout. - */ - const FILL: string; - - /** - * Release free space when hiding an object. - */ - const HIDDEN_BEHAVIOR_GONE: number; - - /** - * Keeps free space when hiding an object. - */ - const HIDDEN_BEHAVIOR_INVISIBLE: number; - - /** - * Use a bezel-style border on the input field. - */ - const INPUT_BORDERSTYLE_BEZEL: number; - - /** - * Use a simple line border on the input field. - */ - const INPUT_BORDERSTYLE_LINE: number; - - /** - * Use no border on the input field. - */ - const INPUT_BORDERSTYLE_NONE: number; - - /** - * Use a rounded-rectangle border on the input field. - */ - const INPUT_BORDERSTYLE_ROUNDED: number; - - /** - * Always show buttons on the input field. - */ - const INPUT_BUTTONMODE_ALWAYS: number; - - /** - * Never show buttons on the input field. - */ - const INPUT_BUTTONMODE_NEVER: number; - - /** - * Show buttons on the input field when it loses focus. - */ - const INPUT_BUTTONMODE_ONBLUR: number; - - /** - * Show buttons on the input field when it gains focus. - */ - const INPUT_BUTTONMODE_ONFOCUS: number; - - /** - * Use a keyboard with a number pad only, with the pad keyboard layout. Accepts only numbers. - */ - const INPUT_TYPE_CLASS_NUMBER: number; - - /** - * Use an ASCII keyboard, with the standard keyboard layout. - */ - const INPUT_TYPE_CLASS_TEXT: number; - - /** - * Use a keyboard appearance suitable for entering text on an alert. - */ - const KEYBOARD_APPEARANCE_ALERT: number; - - /** - * Use the platform-specific default keyboard appearance. - */ - const KEYBOARD_APPEARANCE_DEFAULT: number; - - /** - * Use the platform-specific dark keyboard appearance. - */ - const KEYBOARD_APPEARANCE_DARK: number; - - /** - * Use the platform-specific light keyboard appearance. - */ - const KEYBOARD_APPEARANCE_LIGHT: number; - - /** - * Use an ASCII keyboard, with the standard keyboard layout. - */ - const KEYBOARD_ASCII: number; - - /** - * Use a keyboard with decimal numbers only, with the pad keyboard layout. - */ - const KEYBOARD_DECIMAL_PAD: number; - - /** - * Use the default keyboard, depending on the platform. - */ - const KEYBOARD_DEFAULT: number; - - /** - * Use a keyboard suitable for composing email, with the standard keyboard layout. - */ - const KEYBOARD_EMAIL: number; - - /** - * Use a keyboard suitable for entering names and phone numbers, with the pad keyboard layout. - */ - const KEYBOARD_NAMEPHONE_PAD: number; - - /** - * Use a keyboard with numbers and punctuation only, with the standard keyboard layout. - */ - const KEYBOARD_NUMBERS_PUNCTUATION: number; - - /** - * Use a keyboard with a number pad only, with the pad keyboard layout. - */ - const KEYBOARD_NUMBER_PAD: number; - - /** - * Use a keyboard with a phone-style number pad, with the pad keyboard layout. - */ - const KEYBOARD_PHONE_PAD: number; - - /** - * Use a keyboard optimized for entering URLs, with the standard keyboard layout. - */ - const KEYBOARD_URL: number; - - /** - * Use a keyboard with decimal numbers only, with the pad keyboard layout. - */ - const KEYBOARD_TYPE_DECIMAL_PAD: number; - - /** - * Use an ASCII keyboard, with the standard keyboard layout. - */ - const KEYBOARD_TYPE_ASCII: number; - - /** - * Use the default keyboard, depending on the platform. - */ - const KEYBOARD_TYPE_DEFAULT: number; - - /** - * Use a keyboard suitable for composing email, with the standard keyboard layout. - */ - const KEYBOARD_TYPE_EMAIL: number; - - /** - * Use a keyboard suitable for entering names and phone numbers, with the pad keyboard layout. - */ - const KEYBOARD_TYPE_NAMEPHONE_PAD: number; - - /** - * Use a keyboard with numbers and punctuation only, with the standard keyboard layout. - */ - const KEYBOARD_TYPE_NUMBERS_PUNCTUATION: number; - - /** - * Use a keyboard with a number pad only, with the pad keyboard layout. - */ - const KEYBOARD_TYPE_NUMBER_PAD: number; - - /** - * Use a keyboard with a phone-style number pad, with the pad keyboard layout. - */ - const KEYBOARD_TYPE_PHONE_PAD: number; - - /** - * Use a keyboard optimized for web search terms and URL entry. - */ - const KEYBOARD_TYPE_WEBSEARCH: number; - - /** - * Use a keyboard optimized for twitter text entry, with easy access to the @ and - */ - const KEYBOARD_TYPE_TWITTER: number; - - /** - * Use a keyboard optimized for entering URLs, with the standard keyboard layout. - */ - const KEYBOARD_TYPE_URL: number; - - /** - * Standard landscape orientation (home button on left). - */ - const LANDSCAPE_LEFT: number; - - /** - * Reverse landscape orientation (home button on right). - */ - const LANDSCAPE_RIGHT: number; - - /** - * Do not display anything on the right side of an item in a list view. - */ - const LIST_ACCESSORY_TYPE_NONE: number; - - /** - * Displays a checkmark on the right side of an item in a list view. - */ - const LIST_ACCESSORY_TYPE_CHECKMARK: number; - - /** - * Displays a detail disclosure button on the right side of an item in a list view. - */ - const LIST_ACCESSORY_TYPE_DETAIL: number; - - /** - * Displays a disclosure indicator on the right side of an item in a list view. - */ - const LIST_ACCESSORY_TYPE_DISCLOSURE: number; - - /** - * A built-in style for an item with an image view and left-aligned title label. - */ - const LIST_ITEM_TEMPLATE_DEFAULT: number; - - /** - * A built-in style for a item with an image view; a left-aligned title label; and a - * right-aligned subtitle label. - */ - const LIST_ITEM_TEMPLATE_SETTINGS: number; - - /** - * 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. - */ - const LIST_ITEM_TEMPLATE_CONTACTS: number; - - /** - * 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. - */ - const LIST_ITEM_TEMPLATE_SUBTITLE: number; - - /** - * Specifies a long duration for an Android Toast notification (). - */ - const NOTIFICATION_DURATION_LONG: number; - - /** - * Specifies a short duration for an Android Toast notification (). - */ - const NOTIFICATION_DURATION_SHORT: number; - - /** - * Specifies that the clipboard items should not be available to other devices through Handoff. - */ - const CLIPBOARD_OPTION_LOCAL_ONLY: string; - - /** - * Specifies the time and date that you want the system to remove the clipboard items from the clipboard. - */ - const CLIPBOARD_OPTION_EXPIRATION_DATE: string; - - /** - * Use a picker with a countdown timer appearance, showing hours and minutes. - */ - const PICKER_TYPE_COUNT_DOWN_TIMER: number; - - /** - * Use a date picker. - */ - const PICKER_TYPE_DATE: number; - - /** - * Use a date and time picker. - */ - const PICKER_TYPE_DATE_AND_TIME: number; - - /** - * Use a plain picker (for values other than date or time). - */ - const PICKER_TYPE_PLAIN: number; - - /** - * Use a time picker. - */ - const PICKER_TYPE_TIME: number; - - /** - * Orientation constant for portrait mode orientation. - */ - const PORTRAIT: number; - - /** - * Set the return key text to "Continue". - */ - const RETURNKEY_CONTINUE: number; - - /** - * Use the default return key on the virtual keyboard. - */ - const RETURNKEY_DEFAULT: number; - - /** - * Set the return key text to "Done". - */ - const RETURNKEY_DONE: number; - - /** - * Set the return key text to "Emergency Call". - */ - const RETURNKEY_EMERGENCY_CALL: number; - - /** - * Set the return key text to "Go". - */ - const RETURNKEY_GO: number; - - /** - * Set the return key text to "Google". - */ - const RETURNKEY_GOOGLE: number; - - /** - * Set the return key text to "Join". - */ - const RETURNKEY_JOIN: number; - - /** - * Set the return key text to "Next". - */ - const RETURNKEY_NEXT: number; - - /** - * Set the return key text to "Route". - */ - const RETURNKEY_ROUTE: number; - - /** - * Set the return key text to "Search". - */ - const RETURNKEY_SEARCH: number; - - /** - * Set the return key text to "Send". - */ - const RETURNKEY_SEND: number; - - /** - * Set the return key text to "Yahoo". - */ - const RETURNKEY_YAHOO: number; - - /** - * SIZE behavior for UI layout. - */ - const SIZE: string; - - /** - * The row divider is hidden. - */ - const TABLE_VIEW_SEPARATOR_STYLE_NONE: number; - - /** - * The row divider is shown as a single line. - */ - const TABLE_VIEW_SEPARATOR_STYLE_SINGLE_LINE: number; - - /** - * Center align text. - */ - const TEXT_ALIGNMENT_CENTER: number | string; - - /** - * Justify align text. - */ - const TEXT_ALIGNMENT_JUSTIFY: number | string; - - /** - * Left align text. - */ - const TEXT_ALIGNMENT_LEFT: number | string; - - /** - * Right align text. - */ - const TEXT_ALIGNMENT_RIGHT: number | string; - - /** - * Auto-capitalize all text in the input field. - */ - const TEXT_AUTOCAPITALIZATION_ALL: number; - - /** - * Do not auto-capitalize. - */ - const TEXT_AUTOCAPITALIZATION_NONE: number; - - /** - * Use sentence-style auto-capitalization in the input field. - */ - const TEXT_AUTOCAPITALIZATION_SENTENCES: number; - - /** - * Auto-capitalize the first letter of each word in the input field. - */ - const TEXT_AUTOCAPITALIZATION_WORDS: number; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_HEADLINE: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_SUBHEADLINE: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_BODY: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_FOOTNOTE: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_CAPTION1: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_CAPTION2: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_CALLOUT: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_TITLE1: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_TITLE2: string; - - /** - * Specifies the text style for the Object. - */ - const TEXT_STYLE_TITLE3: string; - - /** - * Align text to the bottom of the view. - */ - const TEXT_VERTICAL_ALIGNMENT_BOTTOM: number | string; - - /** - * Vertically align text to the center of the view. - */ - const TEXT_VERTICAL_ALIGNMENT_CENTER: number | string; - - /** - * Align text to the top of the view. - */ - const TEXT_VERTICAL_ALIGNMENT_TOP: number | string; - - /** - * Unit constant representing units in centimeters. - */ - const UNIT_CM: string; - - /** - * Unit constant representing units in density-independent pixels. - */ - const UNIT_DIP: string; - - /** - * Unit constant representing units in inches. - */ - const UNIT_IN: string; - - /** - * Unit constant representing units in millimeters. - */ - const UNIT_MM: string; - - /** - * Unit constant representing units in pixels. - */ - const UNIT_PX: string; - - /** - * Orientation constant representing an unknown orientation. - */ - const UNKNOWN: number; - - /** - * Orientation constant for inverted portait orientation. - */ - const UPSIDE_PORTRAIT: number; - - /** - * Authentication error code reported via . - */ - const URL_ERROR_AUTHENTICATION: number; - - /** - * Bad url error code reported via . - */ - const URL_ERROR_BAD_URL: number; - - /** - * Error code reported via for a failure to connect to host. - */ - const URL_ERROR_CONNECT: number; - - /** - * Error code reported via for an SSL failure. - */ - const URL_ERROR_SSL_FAILED: number; - - /** - * Error code reported via for a failure to access a file resource on a host, except "file not found", which has its own constant. - */ - const URL_ERROR_FILE: number; - - /** - * Error code reported via when a requested file does not exist on the host. - */ - const URL_ERROR_FILE_NOT_FOUND: number; - - /** - * Error code reported via when a host name cannot be resolved, such as via a DNS lookup error. - */ - const URL_ERROR_HOST_LOOKUP: number; - - /** - * Error code reported via when a redirect loop is detected. - */ - const URL_ERROR_REDIRECT_LOOP: number; - - /** - * Error code reported via when a timeout occurs. - */ - const URL_ERROR_TIMEOUT: number; - - /** - * Error code reported via when an unknown error occurs. - */ - const URL_ERROR_UNKNOWN: number; - - /** - * Error code reported via when a url contains an unsupported scheme. - */ - const URL_ERROR_UNSUPPORTED_SCHEME: number; - - /** - * Sets the background color of the master view (when there are no windows or other top-level - * controls displayed). - */ - let backgroundColor: string; - - /** - * 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). - */ - let backgroundImage: string; - - /** - * The currently active tab, if a tab group is open. - */ - let currentTab: Titanium.UI.Tab; - - /** - * The active window associated with the executing JavaScript context. - */ - const currentWindow: Titanium.UI.Window; - - /** - * Updates the orientation of the current window to the specified orientation value. - */ - let orientation: number; - - /** - * 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. - */ - let tintColor: string; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Creates and returns an instance of . - */ - function create2DMatrix(parameters?: Matrix2DCreationDict): Titanium.UI.Matrix2D; - - /** - * Creates and returns an instance of . - */ - function createMatrix2D(parameters?: Matrix2DCreationDict): Titanium.UI.Matrix2D; - - /** - * Converts one type of unit to another using the metrics of the main display. - */ - function convertUnits(convertFromValue: string, convertToUnits: number): number; - - /** - * Creates and returns an instance of . - */ - function createView(parameters?: any): Titanium.UI.View; - - /** - * Creates and returns an instance of . - */ - function create3DMatrix(parameters?: any): Titanium.UI.Matrix3D; - - /** - * Creates and returns an instance of . - */ - function createActivityIndicator(parameters?: any): Titanium.UI.ActivityIndicator; - - /** - * Creates and returns an instance of . - */ - function createAlertDialog(parameters?: any): Titanium.UI.AlertDialog; - - /** - * Creates and returns an instance of . - */ - function createAnimation(parameters?: any): Titanium.UI.Animation; - - /** - * Creates and returns an instance of . - */ - function createAttributedString(parameters?: any): Titanium.UI.AttributedString; - - /** - * Creates and returns an instance of . - */ - function createButton(parameters?: any): Titanium.UI.Button; - - /** - * Creates and returns an instance of . - */ - function createButtonBar(parameters?: any): Titanium.UI.ButtonBar; - - /** - * Creates and returns an instance of . - */ - function createCoverFlowView(parameters?: any): Titanium.UI.CoverFlowView; - - /** - * Creates and returns an instance of . - */ - function createDashboardItem(parameters?: any): Titanium.UI.DashboardItem; - - /** - * Creates and returns an instance of . - */ - function createDashboardView(parameters?: any): Titanium.UI.DashboardView; - - /** - * Creates and returns an instance of . - */ - function createEmailDialog(parameters?: any): Titanium.UI.EmailDialog; - - /** - * Creates and returns an instance of . - */ - function createImageView(parameters?: any): Titanium.UI.ImageView; - - /** - * Creates and returns an instance of . - */ - function createLabel(parameters?: any): Titanium.UI.Label; - - /** - * Creates and returns an instance of . - */ - function createListSection(parameters?: any): Titanium.UI.ListSection; - - /** - * Creates and returns an instance of . - */ - function createListView(parameters?: any): Titanium.UI.ListView; - - /** - * Creates and returns an instance of . - */ - function createMaskedImage(parameters?: any): Titanium.UI.MaskedImage; - - /** - * Creates and returns an instance of . - */ - function createMatrix3D(parameters?: any): Titanium.UI.Matrix3D; - - /** - * Creates and returns an instance of . - */ - function createNavigationWindow(parameters?: any): Titanium.UI.NavigationWindow; - - /** - * Creates and returns an instance of . - */ - function createNotification(parameters?: any): Titanium.UI.Notification; - - /** - * Creates and returns an instance of . - */ - function createOptionDialog(parameters?: any): Titanium.UI.OptionDialog; - - /** - * Creates and returns an instance of . - */ - function createPicker(parameters?: any): Titanium.UI.Picker; - - /** - * Creates and returns an instance of . - */ - function createPickerColumn(parameters?: any): Titanium.UI.PickerColumn; - - /** - * Creates and returns an instance of . - */ - function createPickerRow(parameters?: any): Titanium.UI.PickerRow; - - /** - * Creates and returns an instance of . - */ - function createProgressBar(parameters?: any): Titanium.UI.ProgressBar; - - /** - * Creates and returns an instance of . - */ - function createRefreshControl(parameters?: any): Titanium.UI.RefreshControl; - - /** - * Creates and returns an instance of . - */ - function createScrollView(parameters?: any): Titanium.UI.ScrollView; - - /** - * Creates and returns an instance of . - */ - function createScrollableView(parameters?: any): Titanium.UI.ScrollableView; - - /** - * Creates and returns an instance of . - */ - function createSearchBar(parameters?: any): Titanium.UI.SearchBar; - - /** - * Creates and returns an instance of . - */ - function createShortcutItem(parameters?: any): Titanium.UI.ShortcutItem; - - /** - * Creates and returns an instance of . - */ - function createSlider(parameters?: any): Titanium.UI.Slider; - - /** - * Creates and returns an instance of . - */ - function createSwitch(parameters?: any): Titanium.UI.Switch; - - /** - * Creates and returns an instance of . - */ - function createTab(parameters?: any): Titanium.UI.Tab; - - /** - * Creates and returns an instance of . - */ - function createTabGroup(parameters?: any): Titanium.UI.TabGroup; - - /** - * Creates and returns an instance of . - */ - function createTabbedBar(parameters?: any): Titanium.UI.TabbedBar; - - /** - * Creates and returns an instance of . - */ - function createTableView(parameters?: any): Titanium.UI.TableView; - - /** - * Creates and returns an instance of . - */ - function createTableViewRow(parameters?: any): Titanium.UI.TableViewRow; - - /** - * Creates and returns an instance of . - */ - function createTableViewSection(parameters?: any): Titanium.UI.TableViewSection; - - /** - * Creates and returns an instance of . - */ - function createTextArea(parameters?: any): Titanium.UI.TextArea; - - /** - * Creates and returns an instance of . - */ - function createTextField(parameters?: any): Titanium.UI.TextField; - - /** - * Creates and returns an instance of . - */ - function createToolbar(parameters?: any): Titanium.UI.Toolbar; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - function setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - function getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - function setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - function getCurrentTab(): Titanium.UI.Tab; - - /** - * Sets the value of the property. - */ - function setCurrentTab(currentTab: Titanium.UI.Tab): void; - - /** - * Gets the value of the property. - */ - function getCurrentWindow(): Titanium.UI.Window; - - /** - * Gets the value of the property. - */ - function getOrientation(): number; - - /** - * Sets the value of the property. - */ - function setOrientation(orientation: number): void; - - /** - * Gets the value of the property. - */ - function getTintColor(): string; - - /** - * Sets the value of the property. - */ - function setTintColor(tintColor: string): void; - - /** - * Creates and returns an instance of . - */ - function createWebView(parameters?: any): Titanium.UI.WebView; - - /** - * Creates and returns an instance of . - */ - function createWindow(parameters?: any): Titanium.UI.Window; - - /** - * An empty drawing surface or container - */ - interface View extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * Disabled background color of the view, as a color name or hex triplet. - */ - backgroundDisabledColor: string; - - /** - * Disabled background image for the view, specified as a local file path or URL. - */ - backgroundDisabledImage: string; - - /** - * Focused background color of the view, as a color name or hex triplet. - */ - backgroundFocusedColor: string; - - /** - * Focused background image for the view, specified as a local file path or URL. - */ - backgroundFocusedImage: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Selected background color of the view, as a color name or hex triplet. - */ - backgroundSelectedColor: string; - - /** - * Selected background image url for the view, specified as a local file path or URL. - */ - backgroundSelectedImage: string; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * Base elevation of the view relative to its parent in pixels. - */ - elevation: number; - - /** - * Whether view should be focusable while navigating with the trackball. - */ - focusable: boolean; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Sets the behavior when hiding an object to release or keep the free space - */ - hiddenBehavior: number; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * When on, animate call overrides current animation if applicable. - */ - overrideCurrentAnimation: boolean; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * Clockwise 2D rotation of the view in degrees. - */ - rotation: number; - - /** - * Clockwise rotation of the view in degrees (x-axis). - */ - rotationX: number; - - /** - * Clockwise rotation of the view in degrees (y-axis). - */ - rotationY: number; - - /** - * Scaling of the view in x-axis in pixels. - */ - scaleX: number; - - /** - * Scaling of the view in y-axis in pixels. - */ - scaleY: number; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * Determines keyboard behavior when this view is focused. Defaults to . - */ - softKeyboardOnFocus: number; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * A material design visual construct that provides an instantaneous visual confirmation of touch point. - */ - touchFeedback: boolean; - - /** - * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. - */ - touchFeedbackColor: string; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Horizontal location of the view relative to its left position in pixels. - */ - translationX: number; - - /** - * Vertical location of the view relative to its top position in pixels. - */ - translationY: number; - - /** - * Depth of the view relative to its elevation in pixels. - */ - translationZ: number; - - /** - * A name to identify this view in activity transition. - */ - transitionName: string; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Determines whether to keep the device screen on. - */ - keepScreenOn: boolean; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledColor(backgroundDisabledColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledImage(backgroundDisabledImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedColor(backgroundFocusedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedImage(backgroundFocusedImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedColor(backgroundSelectedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedImage(backgroundSelectedImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getElevation(): number; - - /** - * Sets the value of the property. - */ - setElevation(elevation: number): void; - - /** - * Gets the value of the property. - */ - getFocusable(): boolean; - - /** - * Sets the value of the property. - */ - setFocusable(focusable: boolean): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHiddenBehavior(): number; - - /** - * Sets the value of the property. - */ - setHiddenBehavior(hiddenBehavior: number): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getOverrideCurrentAnimation(): boolean; - - /** - * Sets the value of the property. - */ - setOverrideCurrentAnimation(overrideCurrentAnimation: boolean): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getRotation(): number; - - /** - * Sets the value of the property. - */ - setRotation(rotation: number): void; - - /** - * Gets the value of the property. - */ - getRotationX(): number; - - /** - * Sets the value of the property. - */ - setRotationX(rotationX: number): void; - - /** - * Gets the value of the property. - */ - getRotationY(): number; - - /** - * Sets the value of the property. - */ - setRotationY(rotationY: number): void; - - /** - * Gets the value of the property. - */ - getScaleX(): number; - - /** - * Sets the value of the property. - */ - setScaleX(scaleX: number): void; - - /** - * Gets the value of the property. - */ - getScaleY(): number; - - /** - * Sets the value of the property. - */ - setScaleY(scaleY: number): void; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getSoftKeyboardOnFocus(): number; - - /** - * Sets the value of the property. - */ - setSoftKeyboardOnFocus(softKeyboardOnFocus: number): void; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedback(): boolean; - - /** - * Sets the value of the property. - */ - setTouchFeedback(touchFeedback: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedbackColor(): string; - - /** - * Sets the value of the property. - */ - setTouchFeedbackColor(touchFeedbackColor: string): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getTranslationX(): number; - - /** - * Sets the value of the property. - */ - setTranslationX(translationX: number): void; - - /** - * Gets the value of the property. - */ - getTranslationY(): number; - - /** - * Sets the value of the property. - */ - setTranslationY(translationY: number): void; - - /** - * Gets the value of the property. - */ - getTranslationZ(): number; - - /** - * Sets the value of the property. - */ - setTranslationZ(translationZ: number): void; - - /** - * Gets the value of the property. - */ - getTransitionName(): string; - - /** - * Sets the value of the property. - */ - setTransitionName(transitionName: string): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getKeepScreenOn(): boolean; - - /** - * Sets the value of the property. - */ - setKeepScreenOn(keepScreenOn: boolean): void; - - } - /** - * An empty drawing surface or container - */ - interface View { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * Disabled background color of the view, as a color name or hex triplet. - */ - backgroundDisabledColor: string; - - /** - * Disabled background image for the view, specified as a local file path or URL. - */ - backgroundDisabledImage: string; - - /** - * Focused background color of the view, as a color name or hex triplet. - */ - backgroundFocusedColor: string; - - /** - * Focused background image for the view, specified as a local file path or URL. - */ - backgroundFocusedImage: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Selected background color of the view, as a color name or hex triplet. - */ - backgroundSelectedColor: string; - - /** - * Selected background image url for the view, specified as a local file path or URL. - */ - backgroundSelectedImage: string; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * Base elevation of the view relative to its parent in pixels. - */ - elevation: number; - - /** - * Whether view should be focusable while navigating with the trackball. - */ - focusable: boolean; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Sets the behavior when hiding an object to release or keep the free space - */ - hiddenBehavior: number; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * When on, animate call overrides current animation if applicable. - */ - overrideCurrentAnimation: boolean; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * Clockwise 2D rotation of the view in degrees. - */ - rotation: number; - - /** - * Clockwise rotation of the view in degrees (x-axis). - */ - rotationX: number; - - /** - * Clockwise rotation of the view in degrees (y-axis). - */ - rotationY: number; - - /** - * Scaling of the view in x-axis in pixels. - */ - scaleX: number; - - /** - * Scaling of the view in y-axis in pixels. - */ - scaleY: number; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * Determines keyboard behavior when this view is focused. Defaults to . - */ - softKeyboardOnFocus: number; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * A material design visual construct that provides an instantaneous visual confirmation of touch point. - */ - touchFeedback: boolean; - - /** - * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. - */ - touchFeedbackColor: string; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Horizontal location of the view relative to its left position in pixels. - */ - translationX: number; - - /** - * Vertical location of the view relative to its top position in pixels. - */ - translationY: number; - - /** - * Depth of the view relative to its elevation in pixels. - */ - translationZ: number; - - /** - * A name to identify this view in activity transition. - */ - transitionName: string; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Determines whether to keep the device screen on. - */ - keepScreenOn: boolean; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledColor(backgroundDisabledColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledImage(backgroundDisabledImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedColor(backgroundFocusedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedImage(backgroundFocusedImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedColor(backgroundSelectedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedImage(backgroundSelectedImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getElevation(): number; - - /** - * Sets the value of the property. - */ - setElevation(elevation: number): void; - - /** - * Gets the value of the property. - */ - getFocusable(): boolean; - - /** - * Sets the value of the property. - */ - setFocusable(focusable: boolean): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHiddenBehavior(): number; - - /** - * Sets the value of the property. - */ - setHiddenBehavior(hiddenBehavior: number): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getOverrideCurrentAnimation(): boolean; - - /** - * Sets the value of the property. - */ - setOverrideCurrentAnimation(overrideCurrentAnimation: boolean): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getRotation(): number; - - /** - * Sets the value of the property. - */ - setRotation(rotation: number): void; - - /** - * Gets the value of the property. - */ - getRotationX(): number; - - /** - * Sets the value of the property. - */ - setRotationX(rotationX: number): void; - - /** - * Gets the value of the property. - */ - getRotationY(): number; - - /** - * Sets the value of the property. - */ - setRotationY(rotationY: number): void; - - /** - * Gets the value of the property. - */ - getScaleX(): number; - - /** - * Sets the value of the property. - */ - setScaleX(scaleX: number): void; - - /** - * Gets the value of the property. - */ - getScaleY(): number; - - /** - * Sets the value of the property. - */ - setScaleY(scaleY: number): void; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getSoftKeyboardOnFocus(): number; - - /** - * Sets the value of the property. - */ - setSoftKeyboardOnFocus(softKeyboardOnFocus: number): void; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedback(): boolean; - - /** - * Sets the value of the property. - */ - setTouchFeedback(touchFeedback: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedbackColor(): string; - - /** - * Sets the value of the property. - */ - setTouchFeedbackColor(touchFeedbackColor: string): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getTranslationX(): number; - - /** - * Sets the value of the property. - */ - setTranslationX(translationX: number): void; - - /** - * Gets the value of the property. - */ - getTranslationY(): number; - - /** - * Sets the value of the property. - */ - setTranslationY(translationY: number): void; - - /** - * Gets the value of the property. - */ - getTranslationZ(): number; - - /** - * Sets the value of the property. - */ - setTranslationZ(translationZ: number): void; - - /** - * Gets the value of the property. - */ - getTransitionName(): string; - - /** - * Sets the value of the property. - */ - setTransitionName(transitionName: string): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getKeepScreenOn(): boolean; - - /** - * Sets the value of the property. - */ - setKeepScreenOn(keepScreenOn: boolean): void; - - } - /** - * The 2D Matrix is an object for holding values for an affine transformation matrix. - */ - interface Matrix2D extends Titanium.Proxy { - /** - * The entry at position [1,1] in the matrix. - */ - a: number; - - /** - * The entry at position [1,2] in the matrix. - */ - b: number; - - /** - * The entry at position [2,1] in the matrix. - */ - c: number; - - /** - * The entry at position [2,2] in the matrix. - */ - d: number; - - /** - * The entry at position [3,1] in the matrix. - */ - tx: number; - - /** - * The entry at position [3,2] in the matrix. - */ - ty: number; - - /** - * Returns a matrix constructed by inverting this matrix. - */ - invert(): Titanium.UI.Matrix2D; - - /** - * Returns a matrix constructed by combining two existing matrices. - */ - multiply(t2: Titanium.UI.Matrix2D): Titanium.UI.Matrix2D; - - /** - * Returns a matrix constructed by rotating this matrix. - */ - rotate(angle: number, toAngle?: number): Titanium.UI.Matrix2D; - - /** - * Returns a `2DMatrix` object that specifies a scaling animation from one scale to another. - */ - scale(sx: number, sy: number, toSx?: number, toSy?: number): Titanium.UI.Matrix2D; - - /** - * Returns a matrix constructed by applying a translation transform to this matrix. - */ - translate(tx: number, ty: number): Titanium.UI.Matrix2D; - - /** - * Gets the value of the property. - */ - getA(): number; - - /** - * Sets the value of the property. - */ - setA(a: number): void; - - /** - * Gets the value of the property. - */ - getB(): number; - - /** - * Sets the value of the property. - */ - setB(b: number): void; - - /** - * Gets the value of the property. - */ - getC(): number; - - /** - * Sets the value of the property. - */ - setC(c: number): void; - - /** - * Gets the value of the property. - */ - getD(): number; - - /** - * Sets the value of the property. - */ - setD(d: number): void; - - /** - * Gets the value of the property. - */ - getTx(): number; - - /** - * Sets the value of the property. - */ - setTx(tx: number): void; - - /** - * Gets the value of the property. - */ - getTy(): number; - - /** - * Sets the value of the property. - */ - setTy(ty: number): void; - - } - /** - * The 3D Matrix is an object for holding values for a 3D affine transform. - */ - interface Matrix3D extends Titanium.Proxy { - /** - * The entry at position [1,1] in the matrix. - */ - m11: number; - - /** - * The entry at position [1,2] in the matrix. - */ - m12: number; - - /** - * The entry at position [1,3] in the matrix. - */ - m13: number; - - /** - * The entry at position [1,4] in the matrix. - */ - m14: number; - - /** - * The entry at position [2,1] in the matrix. - */ - m21: number; - - /** - * The entry at position [2,2] in the matrix. - */ - m22: number; - - /** - * The entry at position [2,3] in the matrix. - */ - m23: number; - - /** - * The entry at position [2,4] in the matrix. - */ - m24: number; - - /** - * The entry at position [3,1] in the matrix. - */ - m31: number; - - /** - * The entry at position [3,2] in the matrix. - */ - m32: number; - - /** - * The entry at position [3,3] in the matrix. - */ - m33: number; - - /** - * The entry at position [3,4] in the matrix. - */ - m34: number; - - /** - * The entry at position [4,1] in the matrix. - */ - m41: number; - - /** - * The entry at position [4,2] in the matrix. - */ - m42: number; - - /** - * The entry at position [4,3] in the matrix. - */ - m43: number; - - /** - * The entry at position [4,4] in the matrix. - */ - m44: number; - - /** - * Returns a matrix constructed by inverting this matrix. - */ - invert(): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by combining two existing matrix. - */ - multiply(t2: Titanium.UI.Matrix3D): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by rotating this matrix. - */ - rotate(angle: number, x: number, y: number, z: number): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by scaling this matrix. - */ - scale(sx: number, sy: number, sz: number): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by translating an existing matrix. - */ - translate(tx: number, ty: number, tz: number): Titanium.UI.Matrix3D; - - /** - * Gets the value of the property. - */ - getM11(): number; - - /** - * Sets the value of the property. - */ - setM11(m11: number): void; - - /** - * Gets the value of the property. - */ - getM12(): number; - - /** - * Sets the value of the property. - */ - setM12(m12: number): void; - - /** - * Gets the value of the property. - */ - getM13(): number; - - /** - * Sets the value of the property. - */ - setM13(m13: number): void; - - /** - * Gets the value of the property. - */ - getM14(): number; - - /** - * Sets the value of the property. - */ - setM14(m14: number): void; - - /** - * Gets the value of the property. - */ - getM21(): number; - - /** - * Sets the value of the property. - */ - setM21(m21: number): void; - - /** - * Gets the value of the property. - */ - getM22(): number; - - /** - * Sets the value of the property. - */ - setM22(m22: number): void; - - /** - * Gets the value of the property. - */ - getM23(): number; - - /** - * Sets the value of the property. - */ - setM23(m23: number): void; - - /** - * Gets the value of the property. - */ - getM24(): number; - - /** - * Sets the value of the property. - */ - setM24(m24: number): void; - - /** - * Gets the value of the property. - */ - getM31(): number; - - /** - * Sets the value of the property. - */ - setM31(m31: number): void; - - /** - * Gets the value of the property. - */ - getM32(): number; - - /** - * Sets the value of the property. - */ - setM32(m32: number): void; - - /** - * Gets the value of the property. - */ - getM33(): number; - - /** - * Sets the value of the property. - */ - setM33(m33: number): void; - - /** - * Gets the value of the property. - */ - getM34(): number; - - /** - * Sets the value of the property. - */ - setM34(m34: number): void; - - /** - * Gets the value of the property. - */ - getM41(): number; - - /** - * Sets the value of the property. - */ - setM41(m41: number): void; - - /** - * Gets the value of the property. - */ - getM42(): number; - - /** - * Sets the value of the property. - */ - setM42(m42: number): void; - - /** - * Gets the value of the property. - */ - getM43(): number; - - /** - * Sets the value of the property. - */ - setM43(m43: number): void; - - /** - * Gets the value of the property. - */ - getM44(): number; - - /** - * Sets the value of the property. - */ - setM44(m44: number): void; - - } - /** - * An activity indicator that lets the user know an action is taking place. - */ - interface ActivityIndicator extends Titanium.UI.View { - /** - * Color of the message text, as a color name or hex triplet. - */ - color: string; - - /** - * Font used for the message text. - */ - font: Font; - - /** - * Message text. - */ - message: string; - - /** - * Key identifying a string in the locale file to use for the message text. - */ - messageid: string; - - /** - * The style for the activity indicator. - */ - style: number; - - /** - * Color of the animated indicator. - */ - indicatorColor: string; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getMessage(): string; - - /** - * Sets the value of the property. - */ - setMessage(message: string): void; - - /** - * Gets the value of the property. - */ - getMessageid(): string; - - /** - * Sets the value of the property. - */ - setMessageid(messageid: string): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getIndicatorColor(): string; - - /** - * Sets the value of the property. - */ - setIndicatorColor(indicatorColor: string): void; - - } - /** - * An alert dialog is a modal view that includes an optional title, a message and buttons, - * positioned in the middle of the display. - */ - interface AlertDialog extends Titanium.UI.View { - /** - * View to load inside the message area, to create a custom layout. - */ - androidView: Titanium.UI.View; - - /** - * Name of each button to create. - */ - buttonNames: string[]; - - /** - * Index to define the cancel button. - */ - cancel: number; - - /** - * Setting this to true requires the end-user to click a dialog button to close the dialog. - */ - buttonClickRequired: boolean; - - /** - * When this is set to `true`, the dialog is canceled when touched outside the window's bounds. - */ - canceledOnTouchOutside: boolean; - - /** - * Index to define the destructive button. - */ - destructive: number; - - /** - * Hint text of the text field inside the dialog. - */ - hintText: string; - - /** - * Key identifying a string from the locale file to use for the - * [hintText](Titanium.UI.AlertDialog.hintText) property. - */ - hinttextid: string; - - /** - * Keyboard type to display when this text field inside the dialog is focused. - */ - keyboardType: number; - - /** - * Keyboard appearance to be displayed when the text field inside the dialog is focused. - */ - keyboardAppearance: number; - - /** - * Placeholder of the login text field inside the dialog. - */ - loginPlaceholder: string; - - /** - * Hint text of the login text field inside the dialog. - */ - loginHintText: string; - - /** - * Key identifying a string from the locale file to use for the - * [loginHintText](Titanium.UI.AlertDialog.loginHintText) property. - */ - loginhinttextid: string; - - /** - * Specifies the text to display on the keyboard `Return` key when this field is focused. - */ - loginReturnKeyType: number; - - /** - * Value of the login text field inside the dialog. - */ - loginValue: string; - - /** - * Keyboard type to display when this text field inside the dialog is focused. - */ - loginKeyboardType: number; - - /** - * Dialog message. - */ - message: string; - - /** - * Key identifying a string in the locale file to use for the message text. - */ - messageid: string; - - /** - * Text for the `OK` button. - */ - ok: string; - - /** - * Key identifying a string in the locale file to use for the `ok` text. - */ - okid: string; - - /** - * Placeholder of the password text field inside the dialog. - */ - passwordPlaceholder: string; - - /** - * Hint text of the password text field inside the dialog. - */ - passwordHintText: string; - - /** - * Key identifying a string from the locale file to use for the - * [passwordHintText](Titanium.UI.AlertDialog.passwordHintText) property. - */ - passwordhinttextid: string; - - /** - * Specifies the text to display on the keyboard `Return` key when this field is focused. - */ - passwordReturnKeyType: number; - - /** - * Value of the password text field inside the dialog. - */ - passwordValue: string; - - /** - * Keyboard type to display when this text field inside the dialog is focused. - */ - passwordKeyboardType: number; - - /** - * Placeholder of the text field inside the dialog. - */ - placeholder: string; - - /** - * Boolean value indicating if the alert dialog should only be cancelled by user gesture or by hide method. - */ - persistent: boolean; - - /** - * Index to define the preferred button. - */ - preferred: number; - - /** - * Specifies the text to display on the keyboard `Return` key when this field is focused. - */ - returnKeyType: number; - - /** - * The style for the alert dialog. - */ - style: number; - - /** - * Title of the dialog. - */ - title: string; - - /** - * Key identifying a string in the locale file to use for the title text. - */ - titleid: string; - - /** - * Value of the text field inside the dialog. - */ - value: string; - - /** - * Gets the value of the property. - */ - getButtonNames(): string[]; - - /** - * Sets the value of the property. - */ - setButtonNames(buttonNames: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getCancel(): number; - - /** - * Sets the value of the property. - */ - setCancel(cancel: number): void; - - /** - * Gets the value of the property. - */ - getButtonClickRequired(): boolean; - - /** - * Sets the value of the property. - */ - setButtonClickRequired(buttonClickRequired: boolean): void; - - /** - * Gets the value of the property. - */ - getCanceledOnTouchOutside(): boolean; - - /** - * Sets the value of the property. - */ - setCanceledOnTouchOutside(canceledOnTouchOutside: boolean): void; - - /** - * Gets the value of the property. - */ - getDestructive(): number; - - /** - * Sets the value of the property. - */ - setDestructive(destructive: number): void; - - /** - * Gets the value of the property. - */ - getHintText(): string; - - /** - * Sets the value of the property. - */ - setHintText(hintText: string): void; - - /** - * Gets the value of the property. - */ - getHinttextid(): string; - - /** - * Sets the value of the property. - */ - setHinttextid(hinttextid: string): void; - - /** - * Gets the value of the property. - */ - getKeyboardType(): number; - - /** - * Sets the value of the property. - */ - setKeyboardType(keyboardType: number): void; - - /** - * Gets the value of the property. - */ - getKeyboardAppearance(): number; - - /** - * Sets the value of the property. - */ - setKeyboardAppearance(keyboardAppearance: number): void; - - /** - * Gets the value of the property. - */ - getLoginPlaceholder(): string; - - /** - * Sets the value of the property. - */ - setLoginPlaceholder(loginPlaceholder: string): void; - - /** - * Gets the value of the property. - */ - getLoginHintText(): string; - - /** - * Sets the value of the property. - */ - setLoginHintText(loginHintText: string): void; - - /** - * Gets the value of the property. - */ - getLoginhinttextid(): string; - - /** - * Sets the value of the property. - */ - setLoginhinttextid(loginhinttextid: string): void; - - /** - * Gets the value of the property. - */ - getLoginReturnKeyType(): number; - - /** - * Sets the value of the property. - */ - setLoginReturnKeyType(loginReturnKeyType: number): void; - - /** - * Gets the value of the property. - */ - getLoginValue(): string; - - /** - * Sets the value of the property. - */ - setLoginValue(loginValue: string): void; - - /** - * Gets the value of the property. - */ - getLoginKeyboardType(): number; - - /** - * Sets the value of the property. - */ - setLoginKeyboardType(loginKeyboardType: number): void; - - /** - * Gets the value of the property. - */ - getMessage(): string; - - /** - * Sets the value of the property. - */ - setMessage(message: string): void; - - /** - * Gets the value of the property. - */ - getMessageid(): string; - - /** - * Sets the value of the property. - */ - setMessageid(messageid: string): void; - - /** - * Gets the value of the property. - */ - getOk(): string; - - /** - * Sets the value of the property. - */ - setOk(ok: string): void; - - /** - * Gets the value of the property. - */ - getOkid(): string; - - /** - * Sets the value of the property. - */ - setOkid(okid: string): void; - - /** - * Gets the value of the property. - */ - getPasswordPlaceholder(): string; - - /** - * Sets the value of the property. - */ - setPasswordPlaceholder(passwordPlaceholder: string): void; - - /** - * Gets the value of the property. - */ - getPasswordHintText(): string; - - /** - * Sets the value of the property. - */ - setPasswordHintText(passwordHintText: string): void; - - /** - * Gets the value of the property. - */ - getPasswordhinttextid(): string; - - /** - * Sets the value of the property. - */ - setPasswordhinttextid(passwordhinttextid: string): void; - - /** - * Gets the value of the property. - */ - getPasswordReturnKeyType(): number; - - /** - * Sets the value of the property. - */ - setPasswordReturnKeyType(passwordReturnKeyType: number): void; - - /** - * Gets the value of the property. - */ - getPasswordValue(): string; - - /** - * Sets the value of the property. - */ - setPasswordValue(passwordValue: string): void; - - /** - * Gets the value of the property. - */ - getPasswordKeyboardType(): number; - - /** - * Sets the value of the property. - */ - setPasswordKeyboardType(passwordKeyboardType: number): void; - - /** - * Gets the value of the property. - */ - getPlaceholder(): string; - - /** - * Sets the value of the property. - */ - setPlaceholder(placeholder: string): void; - - /** - * Gets the value of the property. - */ - getPersistent(): boolean; - - /** - * Sets the value of the property. - */ - setPersistent(persistent: boolean): void; - - /** - * Gets the value of the property. - */ - getPreferred(): number; - - /** - * Sets the value of the property. - */ - setPreferred(preferred: number): void; - - /** - * Gets the value of the property. - */ - getReturnKeyType(): number; - - /** - * Sets the value of the property. - */ - setReturnKeyType(returnKeyType: number): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - /** - * Gets the value of the property. - */ - getValue(): string; - - /** - * Sets the value of the property. - */ - setValue(value: string): void; - - } - /** - * The `Animation` object defines an animation that can be applied to a view. - */ - interface Animation extends Titanium.Proxy { - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Specifies if the animation should be replayed in reverse upon completion. - */ - autoreverse: boolean; - - /** - * Value of the `backgroundColor` property at the end of the animation, as a color name - * or hex triplet. - */ - backgroundColor: string; - - /** - * Value of the `bottom` property at the end of the animation. - */ - bottom: number; - - /** - * Value of the `center` property at the end of the animation. - */ - center: any; - - /** - * Value of the `color` property at the end of the animation, as a color name or hex triplet. - */ - color: string; - - /** - * Animation curve or easing function to apply to the animation. - */ - curve: number; - - /** - * Delay, in milliseconds before starting the animation. - */ - delay: number; - - /** - * Duration of the animation, in milliseconds. - */ - duration: number; - - /** - * Value of the `height` property at the end of the animation. - */ - height: number; - - /** - * Value of the `left` property at the end of the animation. - */ - left: number; - - /** - * Value of the `opacity` property at the end of the animation. - */ - opacity: number; - - /** - * Value of the `opaque` property at the end of the animation. - */ - opaque: boolean; - - /** - * Number of times the animation should be performed. - */ - repeat: number; - - /** - * Value of the `right` property at the end of the animation. - */ - right: number; - - /** - * Value of the `top` property at the end of the animation. - */ - top: number; - - /** - * Animate the view from its current tranform to the specified transform. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Transition type to use during a transition animation. - */ - transition: number; - - /** - * New view to transition to. - */ - view: Titanium.UI.View; - - /** - * Value of the `visible` property at the end of the animation. - */ - visible: boolean; - - /** - * Value of the `width` property at the end of the animation. - */ - width: number; - - /** - * Value of the `zIndex` property at the end of the animation. - */ - zIndex: number; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAutoreverse(): boolean; - - /** - * Sets the value of the property. - */ - setAutoreverse(autoreverse: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBottom(): number; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Gets the value of the property. - */ - getCenter(): any; - - /** - * Sets the value of the property. - */ - setCenter(center: any): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getCurve(): number; - - /** - * Sets the value of the property. - */ - setCurve(curve: number): void; - - /** - * Gets the value of the property. - */ - getDelay(): number; - - /** - * Sets the value of the property. - */ - setDelay(delay: number): void; - - /** - * Gets the value of the property. - */ - getDuration(): number; - - /** - * Sets the value of the property. - */ - setDuration(duration: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Gets the value of the property. - */ - getLeft(): number; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getOpaque(): boolean; - - /** - * Sets the value of the property. - */ - setOpaque(opaque: boolean): void; - - /** - * Gets the value of the property. - */ - getRepeat(): number; - - /** - * Sets the value of the property. - */ - setRepeat(repeat: number): void; - - /** - * Gets the value of the property. - */ - getRight(): number; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Gets the value of the property. - */ - getTop(): number; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getTransition(): number; - - /** - * Sets the value of the property. - */ - setTransition(transition: number): void; - - /** - * Gets the value of the property. - */ - getView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setView(view: any): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - } - /** - * An attributed string proxy manages character strings and associated sets of attributes (for example, - * font and foregroundcolor) that apply to individual characters or ranges of characters in the string. - */ - interface AttributedString extends Titanium.Proxy { - /** - * The text applied to the attributed string. - */ - text: string; - - /** - * An array of attributes to add. - */ - attributes: Attribute[]; - - /** - * Adds an [attribute](Attribute) with the given name and value to the characters in the specified range. - */ - addAttribute(attribute: Attribute): void; - - /** - * Gets the value of the property. - */ - getText(): string; - - /** - * Sets the value of the property. - */ - setText(text: string): void; - - /** - * Gets the value of the property. - */ - getAttributes(): Attribute[]; - - /** - * Sets the value of the property. - */ - setAttributes(attributes: ReadonlyArray): void; - - } - /** - * A button widget that has four states: normal, disabled, focused and selected. - */ - interface Button extends Titanium.UI.View { - /** - * Specify an attributed string for the label. - */ - attributedString: Titanium.UI.AttributedString; - - /** - * Default button text color, as a color name or hex triplet. - */ - color: string; - - /** - * Text color of the button in its disabled state, as a color name or hex triplet. - */ - disabledColor: string; - - /** - * Set to `true` to enable the button, `false` to disable the button. - */ - enabled: boolean; - - /** - * Font to use for the button text. - */ - font: Font; - - /** - * Image to display on the button, specified as a local path, URL or a `Blob`. - */ - image: string | Titanium.Blob; - - /** - * Button text color used to indicate the selected state, as a color name or hex triplet. - */ - selectedColor: string; - - /** - * Shadow color of the [title](Titanium.UI.Button.title), as a color name or hex triplet. - */ - shadowColor: string; - - /** - * Shadow offset of the [title](Titanium.UI.Button.title), as a dictionary with the properties `x` and `y`. - */ - shadowOffset: any; - - /** - * Shadow radius of the [title](Titanium.UI.Button.title). - */ - shadowRadius: number; - - /** - * Style constant for the button, as defined in . - */ - style: number; - - /** - * Specifies an iOS system button appearance, as defined in . - */ - systemButton: number; - - /** - * Text alignment, specified using one of the text alignment constants. - */ - textAlign: string | number; - - /** - * Button title. - */ - title: string; - - /** - * Key identifying a string from the locale file to use for the button title. - */ - titleid: string; - - /** - * Vertical alignment for the text field, specified using one of the - * vertical alignment constants from . - */ - verticalAlign: number | string; - - /** - * Gets the value of the property. - */ - getAttributedString(): Titanium.UI.AttributedString; - - /** - * Sets the value of the property. - */ - setAttributedString(attributedString: Titanium.UI.AttributedString): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getDisabledColor(): string; - - /** - * Sets the value of the property. - */ - setDisabledColor(disabledColor: string): void; - - /** - * Gets the value of the property. - */ - getEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setEnabled(enabled: boolean): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setImage(image: string): void; - - /** - * Sets the value of the property. - */ - setImage(image: Titanium.Blob): void; - - /** - * Gets the value of the property. - */ - getSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setSelectedColor(selectedColor: string): void; - - /** - * Gets the value of the property. - */ - getShadowColor(): string; - - /** - * Sets the value of the property. - */ - setShadowColor(shadowColor: string): void; - - /** - * Gets the value of the property. - */ - getShadowOffset(): any; - - /** - * Sets the value of the property. - */ - setShadowOffset(shadowOffset: any): void; - - /** - * Gets the value of the property. - */ - getShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setShadowRadius(shadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getSystemButton(): number; - - /** - * Sets the value of the property. - */ - setSystemButton(systemButton: number): void; - - /** - * Gets the value of the property. - */ - getTextAlign(): string | number; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: string): void; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: number): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - /** - * Gets the value of the property. - */ - getVerticalAlign(): number | string; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: number): void; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: string): void; - - } - /** - * An iOS button bar component. - */ - interface ButtonBar extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Index of the currently selected button. - */ - index: number; - - /** - * Array of labels for the button bar. - */ - labels: string[] | BarItemType[]; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getIndex(): number; - - /** - * Sets the value of the property. - */ - setIndex(index: number): void; - - /** - * Gets the value of the property. - */ - getLabels(): string[] | BarItemType[]; - - /** - * Sets the value of the property. - */ - setLabels(labels: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setLabels(labels: ReadonlyArray): void; - - } - /** - * The cover flow view is a container showing animated three-dimensional images in a style - * consistent with the cover flow presentation used for iPod, iTunes, and file browsing. - */ - interface CoverFlowView extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Array of images to display in the view. - */ - images: string[] | Titanium.Blob[] | Titanium.Filesystem.File[] | CoverFlowImageType[]; - - /** - * Index to make selected. - */ - selected: number; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Changes the image for a specified index. - */ - setImage(index: number, image: string): void; - - /** - * Changes the image for a specified index. - */ - setImage(index: number, image: Titanium.Blob): void; - - /** - * Changes the image for a specified index. - */ - setImage(index: number, image: Titanium.Filesystem.File): void; - - /** - * Changes the image for a specified index. - */ - setImage(index: number, image: CoverFlowImageType): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getImages(): string[] | Titanium.Blob[] | Titanium.Filesystem.File[] | CoverFlowImageType[]; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getSelected(): number; - - /** - * Sets the value of the property. - */ - setSelected(selected: number): void; - - } - /** - * A dashboard item is a view that is displayed as an icon in a . - */ - interface DashboardItem extends Titanium.Proxy { - /** - * Integer value displayed in a badge. - */ - badge: number; - - /** - * Determines whether this item can be deleted when it edit mode. - */ - canDelete: boolean; - - /** - * Image or path to image to display in the item by default. - */ - image: string | Titanium.Blob; - - /** - * Image or path to image to display in the item as it is selected. - */ - selectedImage: string | Titanium.Blob; - - /** - * Gets the value of the property. - */ - getBadge(): number; - - /** - * Sets the value of the property. - */ - setBadge(badge: number): void; - - /** - * Gets the value of the property. - */ - getCanDelete(): boolean; - - /** - * Sets the value of the property. - */ - setCanDelete(canDelete: boolean): void; - - /** - * Gets the value of the property. - */ - getImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setImage(image: string): void; - - /** - * Sets the value of the property. - */ - setImage(image: Titanium.Blob): void; - - /** - * Gets the value of the property. - */ - getSelectedImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setSelectedImage(selectedImage: string): void; - - /** - * Sets the value of the property. - */ - setSelectedImage(selectedImage: Titanium.Blob): void; - - } - /** - * A dashboard view is an iOS Springboard-like view of items that may - * be deleted and reordered by the user using its built-in edit mode. - */ - interface DashboardView extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * The number of columns of items in the view. - */ - columnCount: number; - - /** - * The number of rows of items in the view. - */ - rowCount: number; - - /** - * Items to display in this view. - */ - data: Titanium.UI.DashboardItem[]; - - /** - * Determines whether edit mode is activated by a longpress of an item. - */ - editable: boolean; - - /** - * Determines whether the wobble visual editing cue is enabled in edit mode. - */ - wobble: boolean; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Enable edit mode. - */ - startEditing(): void; - - /** - * Disable edit mode. - */ - stopEditing(): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getColumnCount(): number; - - /** - * Sets the value of the property. - */ - setColumnCount(columnCount: number): void; - - /** - * Gets the value of the property. - */ - getRowCount(): number; - - /** - * Sets the value of the property. - */ - setRowCount(rowCount: number): void; - - /** - * Gets the value of the property. - */ - getData(): Titanium.UI.DashboardItem[]; - - /** - * Sets the value of the property. - */ - setData(data: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getEditable(): boolean; - - /** - * Sets the value of the property. - */ - setEditable(editable: boolean): void; - - /** - * Gets the value of the property. - */ - getWobble(): boolean; - - /** - * Sets the value of the property. - */ - setWobble(wobble: boolean): void; - - } - /** - * An email dialog is a modal window that allows users to compose and send an email. - */ - interface EmailDialog extends Titanium.UI.View { - /** - * Constant for the `CANCELLED` status result. On Android, this property exists but is not used. - */ - readonly CANCELLED: number; - - /** - * Constant for the `FAILED` status result. - */ - readonly FAILED: number; - - /** - * Constant for the `SAVED` status result. On Android, this property exists but is not used. - */ - readonly SAVED: number; - - /** - * Constant for the `SENT` status result. - */ - readonly SENT: number; - - /** - * Bar color of the email dialog window, as a color name or hex triplet. - */ - barColor: string; - - /** - * Recipients of the email included via the `BCC` (Blind Carbon Copy) field. - */ - bccRecipients: string[]; - - /** - * Recipients of the email included via the `CC` (Carbon Copy) field. - */ - ccRecipients: string[]; - - /** - * Determines whether the email message, specifically the contents of - * [messageBody](Titanium.UI.EmailDialog.messageBody), should be sent as HTML content type - * rather than plain text. - */ - html: boolean; - - /** - * Email message body. - */ - messageBody: string; - - /** - * Subject line for the email. - */ - subject: string; - - /** - * Recipients of the email included via the main `TO` field. - */ - toRecipients: string[]; - - /** - * Adds an attachment. - */ - addAttachment(attachment: Titanium.Blob): void; - - /** - * Adds an attachment. - */ - addAttachment(attachment: Titanium.Filesystem.File): void; - - /** - * Indicates whether sending email is supported by the system. - */ - isSupported(): boolean; - - /** - * Opens this email dialog. - */ - open(properties: any): void; - - /** - * Gets the value of the property. - */ - getBarColor(): string; - - /** - * Sets the value of the property. - */ - setBarColor(barColor: string): void; - - /** - * Gets the value of the property. - */ - getBccRecipients(): string[]; - - /** - * Sets the value of the property. - */ - setBccRecipients(bccRecipients: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getCcRecipients(): string[]; - - /** - * Sets the value of the property. - */ - setCcRecipients(ccRecipients: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getHtml(): boolean; - - /** - * Sets the value of the property. - */ - setHtml(html: boolean): void; - - /** - * Gets the value of the property. - */ - getMessageBody(): string; - - /** - * Sets the value of the property. - */ - setMessageBody(messageBody: string): void; - - /** - * Gets the value of the property. - */ - getSubject(): string; - - /** - * Sets the value of the property. - */ - setSubject(subject: string): void; - - /** - * Gets the value of the property. - */ - getToRecipients(): string[]; - - /** - * Sets the value of the property. - */ - setToRecipients(toRecipients: ReadonlyArray): void; - - } - /** - * A view to display a single image or series of animated images. - */ - interface ImageView extends Titanium.UI.View { - /** - * Indicates whether animation is running. - */ - readonly animating: boolean; - - /** - * Indicates whether the image should be rotated based on exif orientation data. - * By default, this is false on android and true on iOS. - */ - autorotate: boolean; - - /** - * Number of times to retry decoding the bitmap at a URL. - */ - decodeRetries: number; - - /** - * Local path to the default image to display while loading a remote image. - */ - defaultImage: string; - - /** - * Amount of time in milliseconds to animate one cycle. - */ - duration: number; - - /** - * Show zoom controls when the user touches the image view. - */ - enableZoomControls: boolean; - - /** - * Set to `true` to prevent scaling of 2x/3x-resolution remote images for retina - * displays. - */ - hires: boolean; - - /** - * Image to display. - */ - image: string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Array of images to animate, defined using local filesystem paths, `File` objects, - * remote URLs (Android only), or `Blob` objects containing image data. - * When using this property, an initial `start()` needs to be called upon the ImageView before any image will show in this imageview. - * Related properties/methods to look at: `start`, `stop`, `pause`, `reverse`, `resume` and `repeatCount` - */ - images: string[] | Titanium.Blob[] | Titanium.Filesystem.File[]; - - /** - * Indicates whether the animation is paused. - */ - readonly paused: boolean; - - /** - * Prevent the default image from being displayed while loading a remote image. This property - * is ignored when the `defaultImage` property is set. - */ - preventDefaultImage: boolean; - - /** - * Number of times to repeat the image animation. - */ - repeatCount: number; - - /** - * Run the animation in reverse. - */ - reverse: boolean; - - /** - * URL to the image to display. - */ - url: string; - - /** - * Pauses a running animation. Use `resume` method to continue. - */ - pause(): void; - - /** - * Resumes an animation from a `pause` state. - */ - resume(): void; - - /** - * Starts the image animation. On Android, also resets `index` to the first image. - */ - start(): void; - - /** - * Stops a running animation. On iOS, also resets `index` to the first image. - */ - stop(): void; - - /** - * Returns the image as a Blob object. - */ - toBlob(): Titanium.Blob; - - /** - * Gets the value of the property. - */ - getAnimating(): boolean; - - /** - * Gets the value of the property. - */ - getAutorotate(): boolean; - - /** - * Sets the value of the property. - */ - setAutorotate(autorotate: boolean): void; - - /** - * Gets the value of the property. - */ - getDecodeRetries(): number; - - /** - * Sets the value of the property. - */ - setDecodeRetries(decodeRetries: number): void; - - /** - * Gets the value of the property. - */ - getDefaultImage(): string; - - /** - * Sets the value of the property. - */ - setDefaultImage(defaultImage: string): void; - - /** - * Gets the value of the property. - */ - getDuration(): number; - - /** - * Sets the value of the property. - */ - setDuration(duration: number): void; - - /** - * Gets the value of the property. - */ - getEnableZoomControls(): boolean; - - /** - * Sets the value of the property. - */ - setEnableZoomControls(enableZoomControls: boolean): void; - - /** - * Gets the value of the property. - */ - getHires(): boolean; - - /** - * Sets the value of the property. - */ - setHires(hires: boolean): void; - - /** - * Gets the value of the property. - */ - getImage(): string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Sets the value of the property. - */ - setImage(image: string): void; - - /** - * Sets the value of the property. - */ - setImage(image: Titanium.Blob): void; - - /** - * Sets the value of the property. - */ - setImage(image: Titanium.Filesystem.File): void; - - /** - * Gets the value of the property. - */ - getImages(): string[] | Titanium.Blob[] | Titanium.Filesystem.File[]; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getPaused(): boolean; - - /** - * Gets the value of the property. - */ - getPreventDefaultImage(): boolean; - - /** - * Sets the value of the property. - */ - setPreventDefaultImage(preventDefaultImage: boolean): void; - - /** - * Gets the value of the property. - */ - getRepeatCount(): number; - - /** - * Sets the value of the property. - */ - setRepeatCount(repeatCount: number): void; - - /** - * Gets the value of the property. - */ - getReverse(): boolean; - - /** - * Sets the value of the property. - */ - setReverse(reverse: boolean): void; - - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - } - /** - * A text label, with an optional background image. - */ - interface Label extends Titanium.UI.View { - /** - * Specify an attributed string for the label. - */ - attributedString: Titanium.UI.AttributedString; - - /** - * Automatically convert certain text items in the label to clickable links. - */ - autoLink: number; - - /** - * Number of pixels to extend the background image past the label on the bottom. - */ - backgroundPaddingBottom: number; - - /** - * Number of pixels to extend the background image past the label on the left. - */ - backgroundPaddingLeft: number; - - /** - * Number of pixels to extend the background image past the label on the right. - */ - backgroundPaddingRight: number; - - /** - * Number of pixels to extend the background image past the label on the top. - */ - backgroundPaddingTop: number; - - /** - * Color of the label text, as a color name or hex triplet. - */ - color: string; - - /** - * Causes words in the text that are longer than the view is wide to be ellipsized instead of broken in the middle. - */ - ellipsize: number; - - /** - * Font to use for the label text. - */ - font: Font; - - /** - * Color of the label when in the highlighted state, as a color name or hex triplet. - */ - highlightedColor: string; - - /** - * Simple HTML formatting. - */ - html: string; - - /** - * Includes extra top and bottom padding to make room for accents that go above normal ascent and descent. - */ - includeFontPadding: boolean; - - /** - * Makes the label be exactly this many lines tall. - */ - lines: number; - - /** - * Line spacing of the [text](Titanium.UI.Label.text), as a dictionary with the properties `add` and `multiply`. - */ - lineSpacing: any; - - /** - * Makes the label at most this many lines tall. - */ - maxLines: number; - - /** - * Minimum font size when the font is sized based on the contents. - */ - minimumFontSize: number; - - /** - * Shadow color of the [text](Titanium.UI.Label.text), as a color name or hex triplet. - */ - shadowColor: string; - - /** - * Shadow offset of the [text](Titanium.UI.Label.text), as a dictionary with the properties `x` and `y`. - */ - shadowOffset: any; - - /** - * Shadow radius of the [text](Titanium.UI.Label.text). - */ - shadowRadius: number; - - /** - * Label text. - */ - text: string; - - /** - * Text alignment. - */ - textAlign: string | number; - - /** - * Key identifying a string from the locale file to use for the label text. - */ - textid: string; - - /** - * Enable or disable word wrapping in the label. - */ - wordWrap: boolean; - - /** - * Vertical text alignment, specified using one of the vertical alignment constants - * from . - */ - verticalAlign: number | string; - - /** - * Gets the value of the property. - */ - getAttributedString(): Titanium.UI.AttributedString; - - /** - * Sets the value of the property. - */ - setAttributedString(attributedString: Titanium.UI.AttributedString): void; - - /** - * Gets the value of the property. - */ - getAutoLink(): number; - - /** - * Sets the value of the property. - */ - setAutoLink(autoLink: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundPaddingBottom(): number; - - /** - * Sets the value of the property. - */ - setBackgroundPaddingBottom(backgroundPaddingBottom: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundPaddingLeft(): number; - - /** - * Sets the value of the property. - */ - setBackgroundPaddingLeft(backgroundPaddingLeft: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundPaddingRight(): number; - - /** - * Sets the value of the property. - */ - setBackgroundPaddingRight(backgroundPaddingRight: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundPaddingTop(): number; - - /** - * Sets the value of the property. - */ - setBackgroundPaddingTop(backgroundPaddingTop: number): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getEllipsize(): number; - - /** - * Sets the value of the property. - */ - setEllipsize(ellipsize: number): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getHighlightedColor(): string; - - /** - * Sets the value of the property. - */ - setHighlightedColor(highlightedColor: string): void; - - /** - * Gets the value of the property. - */ - getHtml(): string; - - /** - * Sets the value of the property. - */ - setHtml(html: string): void; - - /** - * Gets the value of the property. - */ - getIncludeFontPadding(): boolean; - - /** - * Sets the value of the property. - */ - setIncludeFontPadding(includeFontPadding: boolean): void; - - /** - * Gets the value of the property. - */ - getLines(): number; - - /** - * Sets the value of the property. - */ - setLines(lines: number): void; - - /** - * Gets the value of the property. - */ - getLineSpacing(): any; - - /** - * Sets the value of the property. - */ - setLineSpacing(lineSpacing: any): void; - - /** - * Gets the value of the property. - */ - getMaxLines(): number; - - /** - * Sets the value of the property. - */ - setMaxLines(maxLines: number): void; - - /** - * Gets the value of the property. - */ - getMinimumFontSize(): number; - - /** - * Sets the value of the property. - */ - setMinimumFontSize(minimumFontSize: number): void; - - /** - * Gets the value of the property. - */ - getShadowColor(): string; - - /** - * Sets the value of the property. - */ - setShadowColor(shadowColor: string): void; - - /** - * Gets the value of the property. - */ - getShadowOffset(): any; - - /** - * Sets the value of the property. - */ - setShadowOffset(shadowOffset: any): void; - - /** - * Gets the value of the property. - */ - getShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setShadowRadius(shadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getText(): string; - - /** - * Sets the value of the property. - */ - setText(text: string): void; - - /** - * Gets the value of the property. - */ - getTextAlign(): string | number; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: string): void; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: number): void; - - /** - * Gets the value of the property. - */ - getTextid(): string; - - /** - * Sets the value of the property. - */ - setTextid(textid: string): void; - - /** - * Gets the value of the property. - */ - getWordWrap(): boolean; - - /** - * Sets the value of the property. - */ - setWordWrap(wordWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getVerticalAlign(): number | string; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: number): void; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: string): void; - - } - /** - * A list item is an individual item in a list section. - */ - interface ListItem extends Titanium.Proxy { - /** - * A user defined string that gets passed to events. - */ - itemId: string; - - /** - * Sets an accessory on the right side of an item. - */ - accessoryType: number; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * Background image to render when the item is not selected. - */ - backgroundImage: string; - - /** - * Background gradient to render when the item is not selected. - */ - backgroundGradient: Gradient; - - /** - * Background color of the view, as a color name or hex triplet when item is selected. - */ - selectedBackgroundColor: string; - - /** - * Background image to render when the item is selected. - */ - selectedBackgroundImage: string; - - /** - * Background gradient to render when the item is selected. - */ - selectedBackgroundGradient: Gradient; - - /** - * Specifies if the item can be deleted by a user initiated action. - */ - canEdit: boolean; - - /** - * Specifies if the item can be inserted by a user initiated action. - */ - canInsert: boolean; - - /** - * Specifies if the item can be reordered within the list view by a user initiated action. - */ - canMove: boolean; - - /** - * Specifies custom action items to be shown when when a list item is edited. - */ - editActions: RowActionType[]; - - /** - * The text to match against when the [ListView](Titanium.UI.ListView) is performing a search. - */ - searchableText: string; - - /** - * Default text color of the item when not selected, as a color name or hex triplet. - */ - color: string; - - /** - * Default text color of the subtitle, as a color name or hex triplet. - */ - subtitleColor: string; - - /** - * Color to use for the item title when the item is selected, as a color name or hex triplet. - */ - selectedColor: string; - - /** - * Color to use for the item subtitle when the item is selected, as a color name or hex triplet. - */ - selectedSubtitleColor: string; - - /** - * Font to use for the item title. - */ - font: Font; - - /** - * Row height in platform-specific units. - */ - height: number | string; - - /** - * Image to render in the image area of the item, specified as a local path or URL. - */ - image: string; - - /** - * Title to set in the text area of the item. - */ - title: string; - - /** - * Selection style constant to control the selection color. - */ - selectionStyle: number; - - /** - * Subtitle to set in the text area of the item. - */ - subtitle: string; - - /** - * Gets the value of the property. - */ - getEditActions(): RowActionType[]; - - /** - * Sets the value of the property. - */ - setEditActions(editActions: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setSelectedColor(selectedColor: string): void; - - /** - * Gets the value of the property. - */ - getSelectedSubtitleColor(): string; - - /** - * Sets the value of the property. - */ - setSelectedSubtitleColor(selectedSubtitleColor: string): void; - - } - /** - * A list section is a container within a list view used to organize list items. - */ - interface ListSection extends Titanium.Proxy { - /** - * Title of this section footer. - */ - footerTitle: string; - - /** - * View to use for this section footer. - */ - footerView: Titanium.UI.View; - - /** - * Title of this section header. - */ - headerTitle: string; - - /** - * View to use for this section header. - */ - headerView: Titanium.UI.View; - - /** - * Items of this list section. - */ - items: ListDataItem[]; - - /** - * Sets the data entries in the list section. - */ - setItems(dataItems: ReadonlyArray, animation?: ListViewAnimationProperties): void; - - /** - * Appends the data entries to the end of the list section. - */ - appendItems(dataItems: ReadonlyArray, animation?: ListViewAnimationProperties): void; - - /** - * Inserts data entries to the list section at the specified index. - */ - insertItemsAt(itemIndex: number, dataItems: ReadonlyArray, animation?: ListViewAnimationProperties): void; - - /** - * Removes count entries from the list section at the specified index, - * then inserts data entries to the list section at the same index. - */ - replaceItemsAt(index: number, count: number, dataItems: ReadonlyArray, animation?: ListViewAnimationProperties): void; - - /** - * Removes count entries from the list section at the specified index. - */ - deleteItemsAt(itemIndex: number, count: number, animation?: ListViewAnimationProperties): void; - - /** - * Returns the item entry from the list view at the specified index. - */ - getItemAt(itemIndex: number): ListDataItem; - - /** - * Updates an item at the specified index. - */ - updateItemAt(index: number, dataItem: ListDataItem, animation?: ListViewAnimationProperties): void; - - /** - * Gets the value of the property. - */ - getFooterTitle(): string; - - /** - * Sets the value of the property. - */ - setFooterTitle(footerTitle: string): void; - - /** - * Gets the value of the property. - */ - getFooterView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setFooterView(footerView: any): void; - - /** - * Gets the value of the property. - */ - getHeaderTitle(): string; - - /** - * Sets the value of the property. - */ - setHeaderTitle(headerTitle: string): void; - - /** - * Gets the value of the property. - */ - getHeaderView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setHeaderView(headerView: any): void; - - /** - * Gets the value of the property. - */ - getItems(): ListDataItem[]; - - } - /** - * A list view is used to present information, organized in to sections and items, - * in a vertically-scrolling view. - */ - interface ListView extends Titanium.UI.View { - /** - * Determines whether this item can be selected. - */ - allowsSelection: boolean; - - /** - * Determines if the list view can scroll in response to user actions. - */ - canScroll: boolean; - - /** - * Determines whether the scroll-bounce of the list view should be disabled. - */ - disableBounce: boolean; - - /** - * Determines if the list view is currently in editing mode. - */ - editing: boolean; - - /** - * Sets the fastScroll mode on Android ListViews. - */ - fastScroll: boolean; - - /** - * Determines whether this list view items can be selected while editing the table. - */ - allowsSelectionDuringEditing: boolean; - - /** - * Determines whether multiple items of this list view can be selected at the same time while editing the table. - */ - allowsMultipleSelectionDuringEditing: boolean; - - /** - * Determines if the list view should use lazy loading to load remote images. - */ - lazyLoadingEnabled: boolean; - - /** - * Determines if empty sections are retained when the user completes editing the list view. - */ - pruneSectionsOnEdit: boolean; - - /** - * Contain key-value pairs mapping a style name (key) to an (value). - */ - templates: any; - - /** - * Sections of this list. - */ - sections: Titanium.UI.ListSection[]; - - /** - * Sets the default template for list data items that do not specify the `template` property. - */ - defaultItemTemplate: string | number; - - /** - * height of the ListView separator. - */ - separatorHeight: string | number; - - /** - * When set to false, the ListView will not draw the divider before the footer view. - */ - footerDividersEnabled: boolean; - - /** - * List view footer title. - */ - footerTitle: string; - - /** - * List view footer as a view that will be rendered instead of a label. - */ - footerView: Titanium.UI.View; - - /** - * When set to false, the ListView will not draw the divider after the header view. - */ - headerDividersEnabled: boolean; - - /** - * List view header title. - */ - headerTitle: string; - - /** - * List view header as a view that will be rendered instead of a label. - */ - headerView: Titanium.UI.View; - - /** - * View positioned above the first row that is only revealed when the user drags the list view contents down. - */ - pullView: Titanium.UI.View; - - /** - * View positioned above the first row that is only revealed when the user drags the list view contents down. - */ - refreshControl: Titanium.UI.RefreshControl; - - /** - * Search field to use for the list view. - */ - searchView: Titanium.UI.SearchBar | Titanium.UI.Android.SearchView; - - /** - * The string to use as the search parameter. - */ - searchText: string; - - /** - * Determines if the search performed is case insensitive. - */ - caseInsensitiveSearch: boolean; - - /** - * Determines if the section information is displayed in the search results when using the `searchText` property. - */ - keepSectionsInSearch: boolean; - - /** - * The manner in which the keyboard is dismissed when a drag begins in the list view. - */ - keyboardDismissMode: number; - - /** - * Array of objects (with `title` and `index` properties) to control the list view index. - */ - sectionIndexTitles: ListViewIndexEntry[]; - - /** - * Style of the scrollbar. - */ - scrollIndicatorStyle: number; - - /** - * Controls the scroll-to-top gesture. - */ - willScrollOnStatusTap: boolean; - - /** - * Number of sections in this list view. - */ - readonly sectionCount: number; - - /** - * Determines whether this list view displays a vertical scroll indicator. - */ - showVerticalScrollIndicator: boolean; - - /** - * Separator line color between items, as a color name or hex triplet. - */ - separatorColor: string; - - /** - * The insets for list view separators (applies to all cells). - */ - separatorInsets: any; - - /** - * Separator style constant. - */ - separatorStyle: number; - - /** - * Style of the list view. - */ - style: number; - - /** - * The insets for the table view header and footer. - */ - tableSeparatorInsets: any; - - /** - * The insets for the list view header and footer. - */ - listSeparatorInsets: any; - - /** - * The insets for list view cells (applies to all cells). - */ - rowSeparatorInsets: any; - - /** - * A Boolean indicating whether the underlying content is dimmed during a search. - */ - dimBackgroundForSearch: boolean; - - /** - * The background color of the search results (iOS-only). - */ - resultsBackgroundColor: string; - - /** - * Separator line color between rows inside search results, - * as a color name or hex triplet (iOS-only). - */ - resultsSeparatorColor: string; - - /** - * The separator style of the search results (iOS-only). - */ - resultsSeparatorStyle: number; - - /** - * The insets for search results separators (applies to all cells & iOS-only). - */ - resultsSeparatorInsets: any; - - /** - * Returns the selected list view items. - */ - selectedItems: ListItemEventType[]; - - /** - * Scrolls to a specific item. - */ - scrollToItem(sectionIndex: number, itemIndex: number, animation?: ListViewAnimationProperties): void; - - /** - * Deselects a specific item. - */ - deselectItem(sectionIndex: number, itemIndex: number): void; - - /** - * Appends a single section or an array of sections to the end of the list. - */ - appendSection(section: Titanium.UI.ListSection, animation?: ListViewAnimationProperties): void; - - /** - * Appends a single section or an array of sections to the end of the list. - */ - appendSection(section: ReadonlyArray, animation?: ListViewAnimationProperties): void; - - /** - * Deletes an existing section. - */ - deleteSectionAt(sectionIndex: number, animation?: ListViewAnimationProperties): void; - - /** - * Inserts a section or an array of sections at a specific index. - */ - insertSectionAt(sectionIndex: number, section: Titanium.UI.ListSection, animation?: ListViewAnimationProperties): void; - - /** - * Inserts a section or an array of sections at a specific index. - */ - insertSectionAt(sectionIndex: number, section: ReadonlyArray, animation?: ListViewAnimationProperties): void; - - /** - * Replaces an existing section. - */ - replaceSectionAt(sectionIndex: number, section: Titanium.UI.ListSection, animation?: ListViewAnimationProperties): void; - - /** - * Selects an item in the list using the specified item and section indices. - */ - selectItem(sectionIndex: number, itemIndex: number): void; - - /** - * Sets this list view's content insets. - */ - setContentInsets(edgeInsets: ListViewEdgeInsets, animated?: ListViewContentInsetOption): void; - - /** - * Sets the value of the content offset of the list view without animation by default. - */ - setContentOffset(contentOffset: any): void; - - /** - * Sets a reference item in the list view. - */ - setMarker(markerProps: ListViewMarkerProps): void; - - /** - * Adds a reference item in the list view. - */ - addMarker(markerProps: ListViewMarkerProps): void; - - /** - * Gets the value of the property. - */ - getAllowsSelection(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsSelection(allowsSelection: boolean): void; - - /** - * Gets the value of the property. - */ - getCanScroll(): boolean; - - /** - * Sets the value of the property. - */ - setCanScroll(canScroll: boolean): void; - - /** - * Gets the value of the property. - */ - getDisableBounce(): boolean; - - /** - * Sets the value of the property. - */ - setDisableBounce(disableBounce: boolean): void; - - /** - * Gets the value of the property. - */ - getEditing(): boolean; - - /** - * Sets the value of the property. - */ - setEditing(editing: boolean): void; - - /** - * Gets the value of the property. - */ - getFastScroll(): boolean; - - /** - * Sets the value of the property. - */ - setFastScroll(fastScroll: boolean): void; - - /** - * Gets the value of the property. - */ - getAllowsSelectionDuringEditing(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsSelectionDuringEditing(allowsSelectionDuringEditing: boolean): void; - - /** - * Gets the value of the property. - */ - getAllowsMultipleSelectionDuringEditing(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsMultipleSelectionDuringEditing(allowsMultipleSelectionDuringEditing: boolean): void; - - /** - * Gets the value of the property. - */ - getLazyLoadingEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setLazyLoadingEnabled(lazyLoadingEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getPruneSectionsOnEdit(): boolean; - - /** - * Sets the value of the property. - */ - setPruneSectionsOnEdit(pruneSectionsOnEdit: boolean): void; - - /** - * Gets the value of the property. - */ - getTemplates(): any; - - /** - * Sets the value of the property. - */ - setTemplates(templates: any): void; - - /** - * Gets the value of the property. - */ - getSections(): Titanium.UI.ListSection[]; - - /** - * Sets the value of the property. - */ - setSections(sections: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getDefaultItemTemplate(): string | number; - - /** - * Sets the value of the property. - */ - setDefaultItemTemplate(defaultItemTemplate: string): void; - - /** - * Sets the value of the property. - */ - setDefaultItemTemplate(defaultItemTemplate: number): void; - - /** - * Gets the value of the property. - */ - getSeparatorHeight(): string | number; - - /** - * Sets the value of the property. - */ - setSeparatorHeight(separatorHeight: string): void; - - /** - * Sets the value of the property. - */ - setSeparatorHeight(separatorHeight: number): void; - - /** - * Gets the value of the property. - */ - getFooterDividersEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setFooterDividersEnabled(footerDividersEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getFooterTitle(): string; - - /** - * Sets the value of the property. - */ - setFooterTitle(footerTitle: string): void; - - /** - * Gets the value of the property. - */ - getFooterView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setFooterView(footerView: any): void; - - /** - * Gets the value of the property. - */ - getHeaderDividersEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setHeaderDividersEnabled(headerDividersEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getHeaderTitle(): string; - - /** - * Sets the value of the property. - */ - setHeaderTitle(headerTitle: string): void; - - /** - * Gets the value of the property. - */ - getHeaderView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setHeaderView(headerView: any): void; - - /** - * Gets the value of the property. - */ - getPullView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setPullView(pullView: any): void; - - /** - * Gets the value of the property. - */ - getRefreshControl(): Titanium.UI.RefreshControl; - - /** - * Sets the value of the property. - */ - setRefreshControl(refreshControl: Titanium.UI.RefreshControl): void; - - /** - * Gets the value of the property. - */ - getSearchView(): Titanium.UI.SearchBar | Titanium.UI.Android.SearchView; - - /** - * Sets the value of the property. - */ - setSearchView(searchView: Titanium.UI.SearchBar): void; - - /** - * Sets the value of the property. - */ - setSearchView(searchView: Titanium.UI.Android.SearchView): void; - - /** - * Gets the value of the property. - */ - getSearchText(): string; - - /** - * Sets the value of the property. - */ - setSearchText(searchText: string): void; - - /** - * Gets the value of the property. - */ - getCaseInsensitiveSearch(): boolean; - - /** - * Sets the value of the property. - */ - setCaseInsensitiveSearch(caseInsensitiveSearch: boolean): void; - - /** - * Gets the value of the property. - */ - getKeepSectionsInSearch(): boolean; - - /** - * Sets the value of the property. - */ - setKeepSectionsInSearch(keepSectionsInSearch: boolean): void; - - /** - * Gets the value of the property. - */ - getKeyboardDismissMode(): number; - - /** - * Sets the value of the property. - */ - setKeyboardDismissMode(keyboardDismissMode: number): void; - - /** - * Gets the value of the property. - */ - getSectionIndexTitles(): ListViewIndexEntry[]; - - /** - * Sets the value of the property. - */ - setSectionIndexTitles(sectionIndexTitles: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getScrollIndicatorStyle(): number; - - /** - * Sets the value of the property. - */ - setScrollIndicatorStyle(scrollIndicatorStyle: number): void; - - /** - * Gets the value of the property. - */ - getWillScrollOnStatusTap(): boolean; - - /** - * Sets the value of the property. - */ - setWillScrollOnStatusTap(willScrollOnStatusTap: boolean): void; - - /** - * Gets the value of the property. - */ - getSectionCount(): number; - - /** - * Gets the value of the property. - */ - getShowVerticalScrollIndicator(): boolean; - - /** - * Sets the value of the property. - */ - setShowVerticalScrollIndicator(showVerticalScrollIndicator: boolean): void; - - /** - * Gets the value of the property. - */ - getSeparatorColor(): string; - - /** - * Sets the value of the property. - */ - setSeparatorColor(separatorColor: string): void; - - /** - * Gets the value of the property. - */ - getSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setSeparatorInsets(separatorInsets: any): void; - - /** - * Gets the value of the property. - */ - getSeparatorStyle(): number; - - /** - * Sets the value of the property. - */ - setSeparatorStyle(separatorStyle: number): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getTableSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setTableSeparatorInsets(tableSeparatorInsets: any): void; - - /** - * Gets the value of the property. - */ - getListSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setListSeparatorInsets(listSeparatorInsets: any): void; - - /** - * Gets the value of the property. - */ - getRowSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setRowSeparatorInsets(rowSeparatorInsets: any): void; - - /** - * Gets the value of the property. - */ - getDimBackgroundForSearch(): boolean; - - /** - * Sets the value of the property. - */ - setDimBackgroundForSearch(dimBackgroundForSearch: boolean): void; - - /** - * Gets the value of the property. - */ - getResultsBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setResultsBackgroundColor(resultsBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getResultsSeparatorColor(): string; - - /** - * Sets the value of the property. - */ - setResultsSeparatorColor(resultsSeparatorColor: string): void; - - /** - * Gets the value of the property. - */ - getResultsSeparatorStyle(): number; - - /** - * Sets the value of the property. - */ - setResultsSeparatorStyle(resultsSeparatorStyle: number): void; - - /** - * Gets the value of the property. - */ - getResultsSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setResultsSeparatorInsets(resultsSeparatorInsets: any): void; - - /** - * Gets the value of the property. - */ - getSelectedItems(): ListItemEventType[]; - - /** - * Sets the value of the property. - */ - setSelectedItems(selectedItems: ReadonlyArray): void; - - } - /** - * A control that displays an image composited with a background image or color. - */ - interface MaskedImage extends Titanium.UI.View { - /** - * Image drawn as the background image. - */ - mask: string; - - /** - * Image drawn as the Foreground image. - */ - image: string; - - /** - * Blend mode to use to combine layers. - */ - mode: number; - - /** - * Color to combine with the image, as a color name or hex triplet. - */ - tint: string; - - /** - * Gets the value of the property. - */ - getMask(): string; - - /** - * Sets the value of the property. - */ - setMask(mask: string): void; - - /** - * Gets the value of the property. - */ - getImage(): string; - - /** - * Sets the value of the property. - */ - setImage(image: string): void; - - /** - * Gets the value of the property. - */ - getMode(): number; - - /** - * Sets the value of the property. - */ - setMode(mode: number): void; - - /** - * Gets the value of the property. - */ - getTint(): string; - - /** - * Sets the value of the property. - */ - setTint(tint: string): void; - - } - /** - * The 2D Matrix is an object for holding values for an affine transformation matrix. - */ - interface Matrix2D extends Titanium.Proxy { - /** - * The entry at position [1,1] in the matrix. - */ - a: number; - - /** - * The entry at position [1,2] in the matrix. - */ - b: number; - - /** - * The entry at position [2,1] in the matrix. - */ - c: number; - - /** - * The entry at position [2,2] in the matrix. - */ - d: number; - - /** - * The entry at position [3,1] in the matrix. - */ - tx: number; - - /** - * The entry at position [3,2] in the matrix. - */ - ty: number; - - /** - * Returns a matrix constructed by inverting this matrix. - */ - invert(): Titanium.UI.Matrix2D; - - /** - * Returns a matrix constructed by combining two existing matrices. - */ - multiply(t2: Titanium.UI.Matrix2D): Titanium.UI.Matrix2D; - - /** - * Returns a matrix constructed by rotating this matrix. - */ - rotate(angle: number, toAngle?: number): Titanium.UI.Matrix2D; - - /** - * Returns a `Matrix2D` object that specifies a scaling animation from one scale to another. - */ - scale(sx: number, sy: number, toSx?: number, toSy?: number): Titanium.UI.Matrix2D; - - /** - * Returns a matrix constructed by applying a translation transform to this matrix. - */ - translate(tx: number, ty: number): Titanium.UI.Matrix2D; - - /** - * Gets the value of the property. - */ - getA(): number; - - /** - * Sets the value of the property. - */ - setA(a: number): void; - - /** - * Gets the value of the property. - */ - getB(): number; - - /** - * Sets the value of the property. - */ - setB(b: number): void; - - /** - * Gets the value of the property. - */ - getC(): number; - - /** - * Sets the value of the property. - */ - setC(c: number): void; - - /** - * Gets the value of the property. - */ - getD(): number; - - /** - * Sets the value of the property. - */ - setD(d: number): void; - - /** - * Gets the value of the property. - */ - getTx(): number; - - /** - * Sets the value of the property. - */ - setTx(tx: number): void; - - /** - * Gets the value of the property. - */ - getTy(): number; - - /** - * Sets the value of the property. - */ - setTy(ty: number): void; - - } - /** - * The 3D Matrix is an object for holding values for a 3D affine transform. - */ - interface Matrix3D extends Titanium.Proxy { - /** - * The entry at position [1,1] in the matrix. - */ - m11: number; - - /** - * The entry at position [1,2] in the matrix. - */ - m12: number; - - /** - * The entry at position [1,3] in the matrix. - */ - m13: number; - - /** - * The entry at position [1,4] in the matrix. - */ - m14: number; - - /** - * The entry at position [2,1] in the matrix. - */ - m21: number; - - /** - * The entry at position [2,2] in the matrix. - */ - m22: number; - - /** - * The entry at position [2,3] in the matrix. - */ - m23: number; - - /** - * The entry at position [2,4] in the matrix. - */ - m24: number; - - /** - * The entry at position [3,1] in the matrix. - */ - m31: number; - - /** - * The entry at position [3,2] in the matrix. - */ - m32: number; - - /** - * The entry at position [3,3] in the matrix. - */ - m33: number; - - /** - * The entry at position [3,4] in the matrix. - */ - m34: number; - - /** - * The entry at position [4,1] in the matrix. - */ - m41: number; - - /** - * The entry at position [4,2] in the matrix. - */ - m42: number; - - /** - * The entry at position [4,3] in the matrix. - */ - m43: number; - - /** - * The entry at position [4,4] in the matrix. - */ - m44: number; - - /** - * Returns a matrix constructed by inverting this matrix. - */ - invert(): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by combining two existing matrix. - */ - multiply(t2: Titanium.UI.Matrix3D): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by rotating this matrix. - */ - rotate(angle: number, x: number, y: number, z: number): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by scaling this matrix. - */ - scale(sx: number, sy: number, sz: number): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by translating an existing matrix. - */ - translate(tx: number, ty: number, tz: number): Titanium.UI.Matrix3D; - - /** - * Gets the value of the property. - */ - getM11(): number; - - /** - * Sets the value of the property. - */ - setM11(m11: number): void; - - /** - * Gets the value of the property. - */ - getM12(): number; - - /** - * Sets the value of the property. - */ - setM12(m12: number): void; - - /** - * Gets the value of the property. - */ - getM13(): number; - - /** - * Sets the value of the property. - */ - setM13(m13: number): void; - - /** - * Gets the value of the property. - */ - getM14(): number; - - /** - * Sets the value of the property. - */ - setM14(m14: number): void; - - /** - * Gets the value of the property. - */ - getM21(): number; - - /** - * Sets the value of the property. - */ - setM21(m21: number): void; - - /** - * Gets the value of the property. - */ - getM22(): number; - - /** - * Sets the value of the property. - */ - setM22(m22: number): void; - - /** - * Gets the value of the property. - */ - getM23(): number; - - /** - * Sets the value of the property. - */ - setM23(m23: number): void; - - /** - * Gets the value of the property. - */ - getM24(): number; - - /** - * Sets the value of the property. - */ - setM24(m24: number): void; - - /** - * Gets the value of the property. - */ - getM31(): number; - - /** - * Sets the value of the property. - */ - setM31(m31: number): void; - - /** - * Gets the value of the property. - */ - getM32(): number; - - /** - * Sets the value of the property. - */ - setM32(m32: number): void; - - /** - * Gets the value of the property. - */ - getM33(): number; - - /** - * Sets the value of the property. - */ - setM33(m33: number): void; - - /** - * Gets the value of the property. - */ - getM34(): number; - - /** - * Sets the value of the property. - */ - setM34(m34: number): void; - - /** - * Gets the value of the property. - */ - getM41(): number; - - /** - * Sets the value of the property. - */ - setM41(m41: number): void; - - /** - * Gets the value of the property. - */ - getM42(): number; - - /** - * Sets the value of the property. - */ - setM42(m42: number): void; - - /** - * Gets the value of the property. - */ - getM43(): number; - - /** - * Sets the value of the property. - */ - setM43(m43: number): void; - - /** - * Gets the value of the property. - */ - getM44(): number; - - /** - * Sets the value of the property. - */ - setM44(m44: number): void; - - } - /** - * A `NavigationWindow` implements a specialized view that manages the navigation of hierarchical - * content. - */ - interface NavigationWindow extends Titanium.UI.View { - /** - * For lightweight windows, this property returns undefined. - * For heavyweight windows, this property contains a reference to the - * Android Activity object associated with this window. - */ - readonly activity: Titanium.Android.Activity; - - /** - * Boolean value indicating if the application should exit when the Android - * Back button is pressed while the window is being shown or when the window - * is closed programmatically. - */ - exitOnClose: boolean; - - /** - * An array of supported values specified using the EXTEND_EDGE constants in . - */ - extendEdges: number[]; - - /** - * Treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays. - */ - flagSecure: boolean; - - /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). - */ - includeOpaqueBars: boolean; - - /** - * Specifies whether or not the view controller should automatically adjust its scroll view insets. - */ - autoAdjustScrollViewInsets: boolean; - - /** - * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. - */ - extendSafeArea: boolean; - - /** - * Boolean value indicating if the window is fullscreen. - */ - fullscreen: boolean; - - /** - * Boolean value indicating whether the system is allowed to hide the visual indicator for returning to the Home screen. - */ - homeIndicatorAutoHidden: boolean; - - /** - * Set this to true to hide the navigation bar on swipe. - */ - hidesBarsOnSwipe: boolean; - - /** - * Set this to true to hide the navigation bar on tap. - */ - hidesBarsOnTap: boolean; - - /** - * Set this to true to hide the navigation bar when the keyboard appears. - */ - hidesBarsWhenKeyboardAppears: boolean; - - /** - * Set this to true to hide the back button of navigation bar. - */ - hidesBackButton: boolean; - - /** - * A Boolean value indicating whether the title should be displayed in a large format. - */ - largeTitleEnabled: string; - - /** - * The mode to use when displaying the title of the navigation bar. - */ - largeTitleDisplayMode: number; - - /** - * An Array of views to show in the left nav bar area. - */ - leftNavButtons: Titanium.UI.View[]; - - /** - * Indicates to open a modal window or not. - */ - modal: boolean; - - /** - * The instance hosting this window. - */ - readonly navigationWindow: Titanium.UI.NavigationWindow; - - /** - * Callback function that overrides the default behavior when the user presses the **Back** - * button. - */ - onBack: (param0: any) => any; - - /** - * Array of supported orientation modes, specified using the orientation - * constants defined in . - */ - orientationModes: number[]; - - /** - * Current orientation of the window. - */ - readonly orientation: number; - - /** - * An Array of views to show in the right nav bar area. - */ - rightNavButtons: Titanium.UI.View[]; - - /** - * The padding needed to safely display content without it being overlapped by the screen insets and notches. - */ - readonly safeAreaPadding: Dimension; - - /** - * Boolean value to enable split action bar. - */ - splitActionBar: boolean; - - /** - * The status bar style associated with this window. - */ - statusBarStyle: number; - - /** - * Maintain a sustainable level of performance. - */ - sustainedPerformanceMode: boolean; - - /** - * Name of the theme to apply to the window. - */ - theme: string; - - /** - * Title text attributes of the window. - */ - titleAttributes: titleAttributesParams; - - /** - * Additional flags to set on the Activity Window. - */ - windowFlags: number; - - /** - * Determines whether a heavyweight window's soft input area (ie software keyboard) is visible - * as it receives focus and how the window behaves in order to accomodate it while keeping its - * contents in view. - */ - windowSoftInputMode: number; - - /** - * Set the pixel format for the Activity's Window. - */ - windowPixelFormat: number; - - /** - * The type of transition used when activity is exiting. - */ - activityExitTransition: number; - - /** - * The type of transition used when activity is entering. - */ - activityEnterTransition: number; - - /** - * The type of transition used when returning from a previously started activity. - */ - activityReturnTransition: number; - - /** - * The type of transition used when reentering to a previously started activity. - */ - activityReenterTransition: number; - - /** - * The type of exit transition used when animating shared elements between two activities. - */ - activitySharedElementExitTransition: number; - - /** - * The type of enter transition used when animating shared elements between two activities. - */ - activitySharedElementEnterTransition: number; - - /** - * The type of return transition used when animating shared elements between two activities. - */ - activitySharedElementReturnTransition: number; - - /** - * The type of reenter transition used when animating shared elements between two activities. - */ - activitySharedElementReenterTransition: number; - - /** - * Window to add to this navigation window. - */ - window: Titanium.UI.Window; - - /** - * Adds a common UI element to participate in window transition animation. - */ - addSharedElement(view: any, transitionName: string): void; - - /** - * Closes the window. - */ - close(params?: any): void; - - /** - * Hides the navigation bar. - */ - hideNavBar(options?: any): void; - - /** - * Opens the window. - */ - open(params?: openWindowParams): void; - - /** - * Clears all added shared elements. - */ - removeAllSharedElements(): void; - - /** - * Makes the navigation bar visible. - */ - showNavBar(options?: any): void; - - /** - * Makes the bottom toolbar visible. - */ - showToolbar(options?: any): void; - - /** - * Makes the bottom toolbar invisible. - */ - hideToolbar(options?: any): void; - - /** - * Closes a window and removes it from the navigation window. - */ - closeWindow(window: Titanium.UI.Window, options: any): void; - - /** - * Opens a window within the navigation window. - */ - openWindow(window: Titanium.UI.Window, options: any): void; - - /** - * Closes all windows that are currently opened inside the navigation window. - */ - popToRootWindow(options: any): void; - - /** - * Gets the value of the property. - */ - getActivity(): Titanium.Android.Activity; - - /** - * Gets the value of the property. - */ - getExitOnClose(): boolean; - - /** - * Sets the value of the property. - */ - setExitOnClose(exitOnClose: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendEdges(): number[]; - - /** - * Sets the value of the property. - */ - setExtendEdges(extendEdges: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getFlagSecure(): boolean; - - /** - * Sets the value of the property. - */ - setFlagSecure(flagSecure: boolean): void; - - /** - * Gets the value of the property. - */ - getIncludeOpaqueBars(): boolean; - - /** - * Sets the value of the property. - */ - setIncludeOpaqueBars(includeOpaqueBars: boolean): void; - - /** - * Gets the value of the property. - */ - getAutoAdjustScrollViewInsets(): boolean; - - /** - * Sets the value of the property. - */ - setAutoAdjustScrollViewInsets(autoAdjustScrollViewInsets: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendSafeArea(): boolean; - - /** - * Sets the value of the property. - */ - setExtendSafeArea(extendSafeArea: boolean): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getHomeIndicatorAutoHidden(): boolean; - - /** - * Sets the value of the property. - */ - setHomeIndicatorAutoHidden(homeIndicatorAutoHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnSwipe(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnSwipe(hidesBarsOnSwipe: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnTap(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnTap(hidesBarsOnTap: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsWhenKeyboardAppears(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsWhenKeyboardAppears(hidesBarsWhenKeyboardAppears: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBackButton(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBackButton(hidesBackButton: boolean): void; - - /** - * Gets the value of the property. - */ - getLargeTitleEnabled(): string; - - /** - * Sets the value of the property. - */ - setLargeTitleEnabled(largeTitleEnabled: string): void; - - /** - * Gets the value of the property. - */ - getLargeTitleDisplayMode(): number; - - /** - * Sets the value of the property. - */ - setLargeTitleDisplayMode(largeTitleDisplayMode: number): void; - - /** - * Gets the value of the property. - */ - getLeftNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setLeftNavButtons(leftNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getModal(): boolean; - - /** - * Sets the value of the property. - */ - setModal(modal: boolean): void; - - /** - * Gets the value of the property. - */ - getNavigationWindow(): Titanium.UI.NavigationWindow; - - /** - * Gets the value of the property. - */ - getOnBack(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnBack(onBack: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOrientationModes(): number[]; - - /** - * Sets the value of the property. - */ - setOrientationModes(orientationModes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOrientation(): number; - - /** - * Gets the value of the property. - */ - getRightNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setRightNavButtons(rightNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getSafeAreaPadding(): Dimension; - - /** - * Gets the value of the property. - */ - getSplitActionBar(): boolean; - - /** - * Sets the value of the property. - */ - setSplitActionBar(splitActionBar: boolean): void; - - /** - * Gets the value of the property. - */ - getStatusBarStyle(): number; - - /** - * Sets the value of the property. - */ - setStatusBarStyle(statusBarStyle: number): void; - - /** - * Gets the value of the property. - */ - getSustainedPerformanceMode(): boolean; - - /** - * Sets the value of the property. - */ - setSustainedPerformanceMode(sustainedPerformanceMode: boolean): void; - - /** - * Gets the value of the property. - */ - getTheme(): string; - - /** - * Sets the value of the property. - */ - setTheme(theme: string): void; - - /** - * Gets the value of the property. - */ - getTitleAttributes(): titleAttributesParams; - - /** - * Sets the value of the property. - */ - setTitleAttributes(titleAttributes: titleAttributesParams): void; - - /** - * Gets the value of the property. - */ - getWindowFlags(): number; - - /** - * Sets the value of the property. - */ - setWindowFlags(windowFlags: number): void; - - /** - * Gets the value of the property. - */ - getWindowSoftInputMode(): number; - - /** - * Sets the value of the property. - */ - setWindowSoftInputMode(windowSoftInputMode: number): void; - - /** - * Gets the value of the property. - */ - getWindowPixelFormat(): number; - - /** - * Sets the value of the property. - */ - setWindowPixelFormat(windowPixelFormat: number): void; - - /** - * Gets the value of the property. - */ - getActivityExitTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityExitTransition(activityExitTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityEnterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityEnterTransition(activityEnterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityReturnTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityReturnTransition(activityReturnTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityReenterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityReenterTransition(activityReenterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementExitTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementExitTransition(activitySharedElementExitTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementEnterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementEnterTransition(activitySharedElementEnterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementReturnTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementReturnTransition(activitySharedElementReturnTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementReenterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementReenterTransition(activitySharedElementReenterTransition: number): void; - - /** - * Gets the value of the property. - */ - getWindow(): Titanium.UI.Window; - - /** - * Sets the value of the property. - */ - setWindow(window: Titanium.UI.Window): void; - - } - /** - * A toast notification. - */ - interface Notification extends Titanium.Proxy { - /** - * Notification text to display. - */ - message: string; - - /** - * Determines how long the notification stays on screen. - */ - duration: number; - - /** - * Determines the location at which the notification should appear on the screen. - */ - gravity: number; - - /** - * X offset from the default position, in pixels. - */ - xOffset: number; - - /** - * Y offset from the default position, in pixels. - */ - yOffset: number; - - /** - * Horizontal placement of the notification, *as a fraction of the screen width*. - */ - horizontalMargin: number; - - /** - * Vertical placement of the notifcation, *as a fraction of the screen height*. - */ - verticalMargin: number; - - /** - * Show the notification. - */ - show(): void; - - /** - * Gets the value of the property. - */ - getMessage(): string; - - /** - * Sets the value of the property. - */ - setMessage(message: string): void; - - /** - * Gets the value of the property. - */ - getDuration(): number; - - /** - * Sets the value of the property. - */ - setDuration(duration: number): void; - - /** - * Gets the value of the property. - */ - getGravity(): number; - - /** - * Sets the value of the property. - */ - setGravity(gravity: number): void; - - /** - * Gets the value of the property. - */ - getXOffset(): number; - - /** - * Sets the value of the property. - */ - setXOffset(xOffset: number): void; - - /** - * Gets the value of the property. - */ - getYOffset(): number; - - /** - * Sets the value of the property. - */ - setYOffset(yOffset: number): void; - - /** - * Gets the value of the property. - */ - getHorizontalMargin(): number; - - /** - * Sets the value of the property. - */ - setHorizontalMargin(horizontalMargin: number): void; - - /** - * Gets the value of the property. - */ - getVerticalMargin(): number; - - /** - * Sets the value of the property. - */ - setVerticalMargin(verticalMargin: number): void; - - } - /** - * An option dialog is a modal view that includes a message and one or more option items positioned - * in the middle of the display on Android and at the bottom edge on iOS. On Android, buttons may - * be added below the options. - */ - interface OptionDialog extends Titanium.UI.View { - /** - * View to load inside the message area, to create a custom layout. - */ - androidView: Titanium.UI.View; - - /** - * List of button names. - */ - buttonNames: string[]; - - /** - * Index to define the cancel option. - */ - cancel: number; - - /** - * Index to define the destructive option, indicated by a visual cue when rendered. - */ - destructive: number; - - /** - * List of option names to display in the dialog. - */ - options: string[]; - - /** - * Boolean value indicating if the option dialog should have an opaque background. - */ - opaquebackground: boolean; - - /** - * Boolean value indicating if the option dialog should only be cancelled by user gesture or by hide method. - */ - persistent: boolean; - - /** - * Defines the default selected option. - */ - selectedIndex: number; - - /** - * Title of the dialog. - */ - title: string; - - /** - * Key identifying a string in the locale file to use for the title text. - */ - titleid: string; - - /** - * Gets the value of the property. - */ - getAndroidView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setAndroidView(androidView: any): void; - - /** - * Gets the value of the property. - */ - getButtonNames(): string[]; - - /** - * Sets the value of the property. - */ - setButtonNames(buttonNames: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getCancel(): number; - - /** - * Sets the value of the property. - */ - setCancel(cancel: number): void; - - /** - * Gets the value of the property. - */ - getDestructive(): number; - - /** - * Sets the value of the property. - */ - setDestructive(destructive: number): void; - - /** - * Gets the value of the property. - */ - getOptions(): string[]; - - /** - * Sets the value of the property. - */ - setOptions(options: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOpaquebackground(): boolean; - - /** - * Sets the value of the property. - */ - setOpaquebackground(opaquebackground: boolean): void; - - /** - * Gets the value of the property. - */ - getPersistent(): boolean; - - /** - * Sets the value of the property. - */ - setPersistent(persistent: boolean): void; - - /** - * Gets the value of the property. - */ - getSelectedIndex(): number; - - /** - * Sets the value of the property. - */ - setSelectedIndex(selectedIndex: number): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - } - /** - * A control used to select one or more fixed values. - */ - interface Picker extends Titanium.UI.View { - /** - * Columns used for this picker, as an array of objects. - */ - columns: Titanium.UI.PickerColumn[]; - - /** - * Duration in milliseconds used for a Countdown Timer picker. - */ - countDownDuration: number; - - /** - * Sets the text color of date- and time-pickers. - */ - dateTimeColor: string; - - /** - * Determines whether the Time pickers display in 24-hour or 12-hour clock format. - */ - format24: boolean; - - /** - * Locale used when displaying Date and Time picker values. - */ - locale: string; - - /** - * Maximum date displayed when a Date picker is in use. - */ - maxDate: Date; - - /** - * Minimum date displayed when a Date picker is in use. - */ - minDate: Date; - - /** - * Interval in minutes displayed when one of the Time types of pickers is in use. - */ - minuteInterval: number; - - /** - * Determines whether the visual selection indicator is shown. - */ - selectionIndicator: boolean; - - /** - * Determines whether calling the method `setSelectedRow` opens when called - */ - selectionOpens: boolean; - - /** - * Determines the type of picker displayed - */ - type: number; - - /** - * Determines whether the non-native Android control, with a spinning wheel that looks and - * behaves like the iOS picker, is invoked rather than the default native "dropdown" style. - */ - useSpinner: boolean; - - /** - * Creates a native Android control for creating a Time Spinner with Type `Ti.UI.PICKER_TYPE_TIME`. - * This is invoked rather than the default native "dropdown" style. - */ - nativeSpinner: boolean; - - /** - * Date and time value for Date and Time pickers. - */ - value: Date; - - /** - * Number of visible rows to display. This is only applicable to a plain picker and when the - * `useSpinner` is `true`. - */ - visibleItems: number; - - /** - * Determines whether the calenderView is visible. - */ - calendarViewShown: boolean; - - /** - * Font to use for text. - */ - font: Font; - - /** - * Gets the selected row for a column, or `null` if none exists. - */ - getSelectedRow(index: number): Titanium.UI.PickerRow; - - /** - * Repopulates values for a column. - */ - reloadColumn(column: Titanium.UI.PickerColumn): void; - - /** - * Selects a column's row. - */ - setSelectedRow(column: number, row: number, animated?: boolean): void; - - /** - * Sets the date and time value property for Date pickers. - */ - setValue(date: any, suppressEvent: boolean): Titanium.UI.PickerRow; - - /** - * Shows Date picker as a modal dialog. - */ - showDatePickerDialog(dictObj: any): void; - - /** - * Shows Time picker as a modal dialog. - */ - showTimePickerDialog(dictObj: any): void; - - /** - * Gets the value of the property. - */ - getColumns(): Titanium.UI.PickerColumn[]; - - /** - * Sets the value of the property. - */ - setColumns(columns: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getCountDownDuration(): number; - - /** - * Sets the value of the property. - */ - setCountDownDuration(countDownDuration: number): void; - - /** - * Gets the value of the property. - */ - getDateTimeColor(): string; - - /** - * Sets the value of the property. - */ - setDateTimeColor(dateTimeColor: string): void; - - /** - * Gets the value of the property. - */ - getFormat24(): boolean; - - /** - * Sets the value of the property. - */ - setFormat24(format24: boolean): void; - - /** - * Gets the value of the property. - */ - getLocale(): string; - - /** - * Sets the value of the property. - */ - setLocale(locale: string): void; - - /** - * Gets the value of the property. - */ - getMaxDate(): Date; - - /** - * Sets the value of the property. - */ - setMaxDate(maxDate: Date): void; - - /** - * Gets the value of the property. - */ - getMinDate(): Date; - - /** - * Sets the value of the property. - */ - setMinDate(minDate: Date): void; - - /** - * Gets the value of the property. - */ - getMinuteInterval(): number; - - /** - * Sets the value of the property. - */ - setMinuteInterval(minuteInterval: number): void; - - /** - * Gets the value of the property. - */ - getSelectionIndicator(): boolean; - - /** - * Sets the value of the property. - */ - setSelectionIndicator(selectionIndicator: boolean): void; - - /** - * Gets the value of the property. - */ - getSelectionOpens(): boolean; - - /** - * Sets the value of the property. - */ - setSelectionOpens(selectionOpens: boolean): void; - - /** - * Gets the value of the property. - */ - getType(): number; - - /** - * Sets the value of the property. - */ - setType(type: number): void; - - /** - * Gets the value of the property. - */ - getUseSpinner(): boolean; - - /** - * Sets the value of the property. - */ - setUseSpinner(useSpinner: boolean): void; - - /** - * Gets the value of the property. - */ - getNativeSpinner(): boolean; - - /** - * Sets the value of the property. - */ - setNativeSpinner(nativeSpinner: boolean): void; - - /** - * Gets the value of the property. - */ - getValue(): Date; - - /** - * Gets the value of the property. - */ - getVisibleItems(): number; - - /** - * Sets the value of the property. - */ - setVisibleItems(visibleItems: number): void; - - /** - * Gets the value of the property. - */ - getCalendarViewShown(): boolean; - - /** - * Sets the value of the property. - */ - setCalendarViewShown(calendarViewShown: boolean): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - } - /** - * A picker column, representing a selectable group of items in a . - */ - interface PickerColumn extends Titanium.Proxy { - /** - * Number of rows in this column. - */ - readonly rowCount: number; - - /** - * Rows of this column. - */ - readonly rows: Titanium.UI.PickerRow[]; - - /** - * Font to use for text. - */ - font: Font; - - /** - * Adds a row to this column. - */ - addRow(row: Titanium.UI.PickerRow): void; - - /** - * Removes a row from this column. - */ - removeRow(row: Titanium.UI.PickerRow): void; - - /** - * Gets the value of the property. - */ - getRowCount(): number; - - /** - * Gets the value of the property. - */ - getRows(): Titanium.UI.PickerRow[]; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - } - /** - * A picker row, representing a selectable item in a . - */ - interface PickerRow extends Titanium.UI.View { - /** - * Color of the item text, as a color name or hex triplet. - */ - color: string; - - /** - * Font to use for the item text. - */ - font: Font; - - /** - * Item text. - */ - title: string; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - } - /** - * A progress bar. - */ - interface ProgressBar extends Titanium.UI.View { - /** - * Color of the progress bar message, as a color name or hex triplet. - */ - color: string; - - /** - * Font for the progress bar text. - */ - font: Font; - - /** - * Maximum value of the progress bar. - */ - max: number; - - /** - * Progress bar text. - */ - message: string; - - /** - * The color shown for the portion of the progress bar that is not filled. - */ - trackTintColor: string; - - /** - * Minimum value of the progress bar. - */ - min: number; - - /** - * Style of the progress bar. - */ - style: number; - - /** - * Current value of the progress bar. - */ - value: number; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getMax(): number; - - /** - * Sets the value of the property. - */ - setMax(max: number): void; - - /** - * Gets the value of the property. - */ - getMessage(): string; - - /** - * Sets the value of the property. - */ - setMessage(message: string): void; - - /** - * Gets the value of the property. - */ - getTrackTintColor(): string; - - /** - * Sets the value of the property. - */ - setTrackTintColor(trackTintColor: string): void; - - /** - * Gets the value of the property. - */ - getMin(): number; - - /** - * Sets the value of the property. - */ - setMin(min: number): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getValue(): number; - - /** - * Sets the value of the property. - */ - setValue(value: number): void; - - } - /** - * The RefreshControl is a representation of the native iOS - * [UIRefreshControl](https://developer.apple.com/documentation/uikit/uirefreshcontrol) - * and Android [SwipeRefreshLayout](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html). - */ - interface RefreshControl extends Titanium.Proxy { - /** - * The attributed title of the control. - */ - title: Titanium.UI.AttributedString; - - /** - * The tint color for the refresh control, as a color name or hex triplet. - */ - tintColor: string; - - /** - * Tells the control that a refresh operation was started programmatically. - */ - beginRefreshing(): void; - - /** - * Tells the control that a refresh operation has ended. - */ - endRefreshing(): void; - - /** - * Gets the value of the property. - */ - getTitle(): Titanium.UI.AttributedString; - - /** - * Sets the value of the property. - */ - setTitle(title: Titanium.UI.AttributedString): void; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - } - /** - * A view that contains a horizontally and/or vertically-scrollable region of content. - */ - interface ScrollView extends Titanium.UI.View { - /** - * Determines whether this scroll view can cancel subview touches in order to scroll instead. - */ - canCancelEvents: boolean; - - /** - * Height of the scrollable region. - */ - contentHeight: number | string; - - /** - * X and Y coordinates to which to reposition the top-left point of the scrollable region. - */ - contentOffset: any; - - /** - * Width of the scrollable region. - */ - contentWidth: number | string; - - /** - * The deceleration rate of the ScrollView. - */ - decelerationRate: number; - - /** - * Determines whether scroll bounce of the scrollable region is enabled. - */ - disableBounce: boolean; - - /** - * Determines whether horizontal scroll bounce of the scrollable region is enabled. - */ - horizontalBounce: boolean; - - /** - * The manner in which the keyboard is dismissed when a drag begins in the scroll view. - */ - keyboardDismissMode: number; - - /** - * Maximum scaling factor of the scrollable region and its content. - */ - maxZoomScale: number; - - /** - * Minimum scaling factor of the scrollable region and its content. - */ - minZoomScale: number; - - /** - * Determines the behavior when the user overscolls the view. - */ - overScrollMode: number; - - /** - * View positioned above the first row that is only revealed when the user drags the scroll view contents down. - */ - refreshControl: Titanium.UI.RefreshControl; - - /** - * Controls whether the scroll-to-top gesture is effective. - */ - scrollsToTop: boolean; - - /** - * Style of the scrollbar. - */ - scrollIndicatorStyle: number; - - /** - * Limits the direction of the scrollable region, overriding the deduced setting. Set to - * `horizontal` or `vertical`. - */ - scrollType: string; - - /** - * Determines whether scrolling is enabled for the view. - */ - scrollingEnabled: boolean; - - /** - * Determines whether the horizontal scroll indicator is visible. - */ - showHorizontalScrollIndicator: boolean; - - /** - * Determines whether the vertical scroll indicator is visible. - */ - showVerticalScrollIndicator: boolean; - - /** - * Determines whether vertical scroll bounce of the scrollable region is enabled. - */ - verticalBounce: boolean; - - /** - * Scaling factor of the scroll view's content. - */ - zoomScale: number; - - /** - * Moves the specified coordinate of the scrollable region into the viewable area. - */ - scrollTo(x: number, y: number, animation?: ScrollViewAnimationProperties): void; - - /** - * Sets the value of the [contentOffset](Titanium.UI.ScrollView.contentOffset) property. - */ - setContentOffset(contentOffsetXY: any, animated?: contentOffsetOption): void; - - /** - * Sets the value of the [zoomScale](Titanium.UI.ScrollView.zoomScale) property. - */ - setZoomScale(zoomScale: number, animated?: zoomScaleOption): void; - - /** - * Moves the end of the scrollable region into the viewable area. - */ - scrollToBottom(): void; - - /** - * Moves the top of the scrollable region into the viewable area. - */ - scrollToTop(): void; - - /** - * Gets the value of the property. - */ - getCanCancelEvents(): boolean; - - /** - * Sets the value of the property. - */ - setCanCancelEvents(canCancelEvents: boolean): void; - - /** - * Gets the value of the property. - */ - getContentHeight(): number | string; - - /** - * Sets the value of the property. - */ - setContentHeight(contentHeight: number): void; - - /** - * Sets the value of the property. - */ - setContentHeight(contentHeight: string): void; - - /** - * Gets the value of the property. - */ - getContentOffset(): any; - - /** - * Gets the value of the property. - */ - getContentWidth(): number | string; - - /** - * Sets the value of the property. - */ - setContentWidth(contentWidth: number): void; - - /** - * Sets the value of the property. - */ - setContentWidth(contentWidth: string): void; - - /** - * Gets the value of the property. - */ - getDecelerationRate(): number; - - /** - * Sets the value of the property. - */ - setDecelerationRate(decelerationRate: number): void; - - /** - * Gets the value of the property. - */ - getDisableBounce(): boolean; - - /** - * Sets the value of the property. - */ - setDisableBounce(disableBounce: boolean): void; - - /** - * Gets the value of the property. - */ - getHorizontalBounce(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalBounce(horizontalBounce: boolean): void; - - /** - * Gets the value of the property. - */ - getKeyboardDismissMode(): number; - - /** - * Sets the value of the property. - */ - setKeyboardDismissMode(keyboardDismissMode: number): void; - - /** - * Gets the value of the property. - */ - getMaxZoomScale(): number; - - /** - * Sets the value of the property. - */ - setMaxZoomScale(maxZoomScale: number): void; - - /** - * Gets the value of the property. - */ - getMinZoomScale(): number; - - /** - * Sets the value of the property. - */ - setMinZoomScale(minZoomScale: number): void; - - /** - * Gets the value of the property. - */ - getOverScrollMode(): number; - - /** - * Sets the value of the property. - */ - setOverScrollMode(overScrollMode: number): void; - - /** - * Gets the value of the property. - */ - getRefreshControl(): Titanium.UI.RefreshControl; - - /** - * Sets the value of the property. - */ - setRefreshControl(refreshControl: Titanium.UI.RefreshControl): void; - - /** - * Gets the value of the property. - */ - getScrollsToTop(): boolean; - - /** - * Sets the value of the property. - */ - setScrollsToTop(scrollsToTop: boolean): void; - - /** - * Gets the value of the property. - */ - getScrollIndicatorStyle(): number; - - /** - * Sets the value of the property. - */ - setScrollIndicatorStyle(scrollIndicatorStyle: number): void; - - /** - * Gets the value of the property. - */ - getScrollType(): string; - - /** - * Sets the value of the property. - */ - setScrollType(scrollType: string): void; - - /** - * Gets the value of the property. - */ - getScrollingEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setScrollingEnabled(scrollingEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getShowHorizontalScrollIndicator(): boolean; - - /** - * Sets the value of the property. - */ - setShowHorizontalScrollIndicator(showHorizontalScrollIndicator: boolean): void; - - /** - * Gets the value of the property. - */ - getShowVerticalScrollIndicator(): boolean; - - /** - * Sets the value of the property. - */ - setShowVerticalScrollIndicator(showVerticalScrollIndicator: boolean): void; - - /** - * Gets the value of the property. - */ - getVerticalBounce(): boolean; - - /** - * Sets the value of the property. - */ - setVerticalBounce(verticalBounce: boolean): void; - - /** - * Gets the value of the property. - */ - getZoomScale(): number; - - } - /** - * A view that encapsulates a horizontally-scrolling set of child views, known as pages, navigable - * using its built-in horizontal swipe gestures. - */ - interface ScrollableView extends Titanium.UI.View { - /** - * Number of pages to cache (pre-render). - */ - cacheSize: number; - - /** - * Index of the active page. - */ - currentPage: number; - - /** - * Color for the current page of the paging control, as a color name or hex triplet. - */ - currentPageIndicatorColor: string; - - /** - * Determines whether page bouncing effect is disabled. - */ - disableBounce: boolean; - - /** - * Determines the behavior when the user overscolls the view. - */ - overScrollMode: number; - - /** - * Color of the paging control, as a color name or hex triplet. - */ - pagingControlColor: string; - - /** - * Height of the paging control, in pixels. - */ - pagingControlHeight: number; - - /** - * Color of the paging control, as a color name or hex triplet. - */ - pageIndicatorColor: string; - - /** - * Determines whether the paging control is visible. - */ - showPagingControl: boolean; - - /** - * Number of milliseconds to wait before hiding the paging control. - */ - pagingControlTimeout: number; - - /** - * Alpha value of the paging control. - */ - pagingControlAlpha: number; - - /** - * Determines whether the paging control is displayed at the top or bottom of the view. - */ - pagingControlOnTop: boolean; - - /** - * Determines whether the paging control is added as an overlay to the view. - */ - overlayEnabled: boolean; - - /** - * Determines whether scrolling is enabled for the view. - */ - scrollingEnabled: boolean; - - /** - * Sets the pages within this Scrollable View. - */ - views: Titanium.UI.View[]; - - /** - * Determines whether the previous and next pages are clipped, so that they are not visible - * adjacent to the current page. - */ - clipViews: boolean; - - /** - * Sets the region where this view responds to gestures. - */ - hitRect: Dimension; - - /** - * The padding applied to the scrollable view. - */ - padding: ViewPadding; - - /** - * Inserts views at the specified position in the [views](Titanium.UI.ScrollableView.views) array. - */ - insertViewsAt(position: number, views: any[]): void; - - /** - * Adds a new page to this Scrollable View. - */ - addView(view: any): void; - - /** - * Sets the current page to the next consecutive page in . - */ - moveNext(): void; - - /** - * Sets the current page to the previous consecutive page in . - */ - movePrevious(): void; - - /** - * Removes an existing page from this Scrollable View. - */ - removeView(view: number): void; - - /** - * Removes an existing page from this Scrollable View. - */ - removeView(view: any): void; - - /** - * Scrolls to the specified page in . - */ - scrollToView(view: number): void; - - /** - * Scrolls to the specified page in . - */ - scrollToView(view: any): void; - - /** - * Gets the value of the property. - */ - getCacheSize(): number; - - /** - * Sets the value of the property. - */ - setCacheSize(cacheSize: number): void; - - /** - * Gets the value of the property. - */ - getCurrentPage(): number; - - /** - * Sets the value of the property. - */ - setCurrentPage(currentPage: number): void; - - /** - * Gets the value of the property. - */ - getCurrentPageIndicatorColor(): string; - - /** - * Sets the value of the property. - */ - setCurrentPageIndicatorColor(currentPageIndicatorColor: string): void; - - /** - * Gets the value of the property. - */ - getDisableBounce(): boolean; - - /** - * Sets the value of the property. - */ - setDisableBounce(disableBounce: boolean): void; - - /** - * Gets the value of the property. - */ - getOverScrollMode(): number; - - /** - * Sets the value of the property. - */ - setOverScrollMode(overScrollMode: number): void; - - /** - * Gets the value of the property. - */ - getPagingControlColor(): string; - - /** - * Sets the value of the property. - */ - setPagingControlColor(pagingControlColor: string): void; - - /** - * Gets the value of the property. - */ - getPagingControlHeight(): number; - - /** - * Sets the value of the property. - */ - setPagingControlHeight(pagingControlHeight: number): void; - - /** - * Gets the value of the property. - */ - getPageIndicatorColor(): string; - - /** - * Sets the value of the property. - */ - setPageIndicatorColor(pageIndicatorColor: string): void; - - /** - * Gets the value of the property. - */ - getShowPagingControl(): boolean; - - /** - * Sets the value of the property. - */ - setShowPagingControl(showPagingControl: boolean): void; - - /** - * Gets the value of the property. - */ - getPagingControlTimeout(): number; - - /** - * Sets the value of the property. - */ - setPagingControlTimeout(pagingControlTimeout: number): void; - - /** - * Gets the value of the property. - */ - getPagingControlAlpha(): number; - - /** - * Sets the value of the property. - */ - setPagingControlAlpha(pagingControlAlpha: number): void; - - /** - * Gets the value of the property. - */ - getPagingControlOnTop(): boolean; - - /** - * Sets the value of the property. - */ - setPagingControlOnTop(pagingControlOnTop: boolean): void; - - /** - * Gets the value of the property. - */ - getOverlayEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setOverlayEnabled(overlayEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getScrollingEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setScrollingEnabled(scrollingEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getViews(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setViews(views: any[]): void; - - /** - * Gets the value of the property. - */ - getClipViews(): boolean; - - /** - * Sets the value of the property. - */ - setClipViews(clipViews: boolean): void; - - /** - * Gets the value of the property. - */ - getHitRect(): Dimension; - - /** - * Sets the value of the property. - */ - setHitRect(hitRect: Dimension): void; - - /** - * Gets the value of the property. - */ - getPadding(): ViewPadding; - - /** - * Sets the value of the property. - */ - setPadding(padding: ViewPadding): void; - - } - /** - * A specialized text field for entering search text. - */ - interface SearchBar extends Titanium.UI.View { - /** - * Determines how text is capitalized during typing. - */ - autocapitalization: number; - - /** - * Determines whether the text in the search bar is autocorrected during typing. - */ - autocorrect: boolean; - - /** - * Bar color of the search bar view, as a color name or hex triplet. - */ - barColor: string; - - /** - * The title of the cancel button when the search bar field is focused. - */ - cancelButtonTitle: string; - - /** - * Color of the text in this text field, as a color name or hex triplet. - */ - color: string; - - /** - * Background image of the text field, specified as a local file path or URL. - */ - fieldBackgroundImage: string; - - /** - * Background image of the text field in disabled state, specified as a local file path or URL. - */ - fieldBackgroundDisabledImage: string; - - /** - * Text to show when the search bar field is not focused. - */ - hintText: string; - - /** - * Hint text color to display when the field is empty. - */ - hintTextColor: string; - - /** - * Key identifying a string from the locale file to use for the - * [hintText](Titanium.UI.SearchBar.hintText) property. - */ - hinttextid: string; - - /** - * Keyboard type constant to use when the field is focused. - */ - keyboardType: number; - - /** - * Determines the appearance of the keyboard to be displayed the field is focused. - */ - keyboardAppearance: number; - - /** - * Single line of text displayed at the top of the search bar. - */ - prompt: string; - - /** - * Key identifying a string from the locale file to use for the - * [prompt](Titanium.UI.SearchBar.prompt) property. - */ - promptid: string; - - /** - * Determines whether the bookmark button is displayed. - */ - showBookmark: boolean; - - /** - * Determines whether the cancel button is displayed. - */ - showCancel: boolean; - - /** - * Determines the style of the search bar. - */ - style: number; - - /** - * Value of the search bar. - */ - value: string; - - /** - * Causes the search bar to lose focus. - */ - blur(): void; - - /** - * Causes the search bar to gain focus. - */ - focus(): void; - - /** - * Shows or hides the cancel button. - */ - setShowCancel(showCancel: boolean, animated?: any): void; - - /** - * Gets the value of the property. - */ - getAutocapitalization(): number; - - /** - * Sets the value of the property. - */ - setAutocapitalization(autocapitalization: number): void; - - /** - * Gets the value of the property. - */ - getAutocorrect(): boolean; - - /** - * Sets the value of the property. - */ - setAutocorrect(autocorrect: boolean): void; - - /** - * Gets the value of the property. - */ - getBarColor(): string; - - /** - * Sets the value of the property. - */ - setBarColor(barColor: string): void; - - /** - * Gets the value of the property. - */ - getCancelButtonTitle(): string; - - /** - * Sets the value of the property. - */ - setCancelButtonTitle(cancelButtonTitle: string): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getFieldBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setFieldBackgroundImage(fieldBackgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getFieldBackgroundDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setFieldBackgroundDisabledImage(fieldBackgroundDisabledImage: string): void; - - /** - * Gets the value of the property. - */ - getHintText(): string; - - /** - * Sets the value of the property. - */ - setHintText(hintText: string): void; - - /** - * Gets the value of the property. - */ - getHintTextColor(): string; - - /** - * Sets the value of the property. - */ - setHintTextColor(hintTextColor: string): void; - - /** - * Gets the value of the property. - */ - getHinttextid(): string; - - /** - * Sets the value of the property. - */ - setHinttextid(hinttextid: string): void; - - /** - * Gets the value of the property. - */ - getKeyboardType(): number; - - /** - * Sets the value of the property. - */ - setKeyboardType(keyboardType: number): void; - - /** - * Gets the value of the property. - */ - getKeyboardAppearance(): number; - - /** - * Sets the value of the property. - */ - setKeyboardAppearance(keyboardAppearance: number): void; - - /** - * Gets the value of the property. - */ - getPrompt(): string; - - /** - * Sets the value of the property. - */ - setPrompt(prompt: string): void; - - /** - * Gets the value of the property. - */ - getPromptid(): string; - - /** - * Sets the value of the property. - */ - setPromptid(promptid: string): void; - - /** - * Gets the value of the property. - */ - getShowBookmark(): boolean; - - /** - * Sets the value of the property. - */ - setShowBookmark(showBookmark: boolean): void; - - /** - * Gets the value of the property. - */ - getShowCancel(): boolean; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getValue(): string; - - /** - * Sets the value of the property. - */ - setValue(value: string): void; - - } - /** - * An application shortcut. - */ - interface ShortcutItem extends Titanium.Proxy { - /** - * Determines shortcut id. - */ - id: string; - - /** - * Title of the shortcut. - */ - title: string; - - /** - * Description of the shortcut. - */ - description: string; - - /** - * Shortcut icon. - */ - icon: string | number; - - /** - * Allow the shortcut to show. - */ - show(): void; - - /** - * Hide the shortcut. - */ - hide(): void; - - /** - * Pin shortcut to launcher. - */ - pin(): void; - - /** - * Gets the value of the property. - */ - getId(): string; - - /** - * Sets the value of the property. - */ - setId(id: string): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getDescription(): string; - - /** - * Sets the value of the property. - */ - setDescription(description: string): void; - - /** - * Gets the value of the property. - */ - getIcon(): string | number; - - /** - * Sets the value of the property. - */ - setIcon(icon: string): void; - - /** - * Sets the value of the property. - */ - setIcon(icon: number): void; - - } - /** - * A slider component with a draggable thumb. - */ - interface Slider extends Titanium.UI.View { - /** - * Image URL of the slider left track when in the disabled state. - */ - disabledLeftTrackImage: string; - - /** - * Image URL of the slider right track when in the disabled state. - */ - disabledRightTrackImage: string; - - /** - * Image URL of the slider thumb when in the disabled state. - */ - disabledThumbImage: string; - - /** - * Boolean to indicate the enabled state of the slider. - */ - enabled: boolean; - - /** - * Image URL of the slider left track when in the highlighted state. - */ - highlightedLeftTrackImage: string; - - /** - * Image URL of the slider right track when in the highlighted state. - */ - highlightedRightTrackImage: string; - - /** - * Image URL of the slider thumb when in the highlighted state. - */ - highlightedThumbImage: string; - - /** - * Image URL of the slider left track. - */ - leftTrackImage: string; - - /** - * Size of the left end cap for the leftTrackImage, disabledLeftTrackImage, highlightedLeftTrackImage and selectedLeftTrackImage properties. - */ - leftTrackLeftCap: number; - - /** - * Size of the top end cap for the leftTrackImage, disabledLeftTrackImage, highlightedLeftTrackImage and selectedLeftTrackImage properties. - */ - leftTrackTopCap: number; - - /** - * Maximum value of the slider. - */ - max: number; - - /** - * Upper limit on the slider value that can be selected. - */ - maxRange: number; - - /** - * Minimum value of the slider. - */ - min: number; - - /** - * Lower limit on the slider value that can be selected. - */ - minRange: number; - - /** - * Image URL of the slider right track. - */ - rightTrackImage: string; - - /** - * Size of the left end cap for the rightTrackImage, disabledRightTrackImage, highlightedRightTrackImage and selectedRightTrackImage properties. - */ - rightTrackLeftCap: number; - - /** - * Size of the top end cap for the rightTrackImage, disabledRightTrackImage, highlightedRightTrackImage and selectedRightTrackImage properties. - */ - rightTrackTopCap: number; - - /** - * Image URL of the slider left track when in the selected state. - */ - selectedLeftTrackImage: string; - - /** - * Image URL of the slider right track when in the selected state. - */ - selectedRightTrackImage: string; - - /** - * Image URL of the slider thumb when in the selected state. - */ - selectedThumbImage: string; - - /** - * Separates the thumbImage from the slider track. - */ - splitTrack: boolean; - - /** - * Image for the slider thumb. - */ - thumbImage: string | Titanium.Blob; - - /** - * Current value of the slider. - */ - value: string; - - /** - * Sets the [value](Titanium.UI.Slider.value) property. - */ - setValue(value: number, options?: any): void; - - /** - * Gets the value of the property. - */ - getDisabledLeftTrackImage(): string; - - /** - * Sets the value of the property. - */ - setDisabledLeftTrackImage(disabledLeftTrackImage: string): void; - - /** - * Gets the value of the property. - */ - getDisabledRightTrackImage(): string; - - /** - * Sets the value of the property. - */ - setDisabledRightTrackImage(disabledRightTrackImage: string): void; - - /** - * Gets the value of the property. - */ - getDisabledThumbImage(): string; - - /** - * Sets the value of the property. - */ - setDisabledThumbImage(disabledThumbImage: string): void; - - /** - * Gets the value of the property. - */ - getEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setEnabled(enabled: boolean): void; - - /** - * Gets the value of the property. - */ - getHighlightedLeftTrackImage(): string; - - /** - * Sets the value of the property. - */ - setHighlightedLeftTrackImage(highlightedLeftTrackImage: string): void; - - /** - * Gets the value of the property. - */ - getHighlightedRightTrackImage(): string; - - /** - * Sets the value of the property. - */ - setHighlightedRightTrackImage(highlightedRightTrackImage: string): void; - - /** - * Gets the value of the property. - */ - getHighlightedThumbImage(): string; - - /** - * Sets the value of the property. - */ - setHighlightedThumbImage(highlightedThumbImage: string): void; - - /** - * Gets the value of the property. - */ - getLeftTrackImage(): string; - - /** - * Sets the value of the property. - */ - setLeftTrackImage(leftTrackImage: string): void; - - /** - * Gets the value of the property. - */ - getLeftTrackLeftCap(): number; - - /** - * Sets the value of the property. - */ - setLeftTrackLeftCap(leftTrackLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getLeftTrackTopCap(): number; - - /** - * Sets the value of the property. - */ - setLeftTrackTopCap(leftTrackTopCap: number): void; - - /** - * Gets the value of the property. - */ - getMax(): number; - - /** - * Sets the value of the property. - */ - setMax(max: number): void; - - /** - * Gets the value of the property. - */ - getMaxRange(): number; - - /** - * Sets the value of the property. - */ - setMaxRange(maxRange: number): void; - - /** - * Gets the value of the property. - */ - getMin(): number; - - /** - * Sets the value of the property. - */ - setMin(min: number): void; - - /** - * Gets the value of the property. - */ - getMinRange(): number; - - /** - * Sets the value of the property. - */ - setMinRange(minRange: number): void; - - /** - * Gets the value of the property. - */ - getRightTrackImage(): string; - - /** - * Sets the value of the property. - */ - setRightTrackImage(rightTrackImage: string): void; - - /** - * Gets the value of the property. - */ - getRightTrackLeftCap(): number; - - /** - * Sets the value of the property. - */ - setRightTrackLeftCap(rightTrackLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getRightTrackTopCap(): number; - - /** - * Sets the value of the property. - */ - setRightTrackTopCap(rightTrackTopCap: number): void; - - /** - * Gets the value of the property. - */ - getSelectedLeftTrackImage(): string; - - /** - * Sets the value of the property. - */ - setSelectedLeftTrackImage(selectedLeftTrackImage: string): void; - - /** - * Gets the value of the property. - */ - getSelectedRightTrackImage(): string; - - /** - * Sets the value of the property. - */ - setSelectedRightTrackImage(selectedRightTrackImage: string): void; - - /** - * Gets the value of the property. - */ - getSelectedThumbImage(): string; - - /** - * Sets the value of the property. - */ - setSelectedThumbImage(selectedThumbImage: string): void; - - /** - * Gets the value of the property. - */ - getSplitTrack(): boolean; - - /** - * Sets the value of the property. - */ - setSplitTrack(splitTrack: boolean): void; - - /** - * Gets the value of the property. - */ - getThumbImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setThumbImage(thumbImage: string): void; - - /** - * Sets the value of the property. - */ - setThumbImage(thumbImage: Titanium.Blob): void; - - /** - * Gets the value of the property. - */ - getValue(): string; - - } - /** - * An on/off switch control. - */ - interface Switch extends Titanium.UI.View { - /** - * Determines if there is animation when the switch value changes. - */ - animated: boolean; - - /** - * Color to use for switch text, as a color name or hex triplet. - */ - color: string; - - /** - * Determines whether the switch is enabled. - */ - enabled: boolean; - - /** - * Font to use for the switch text. - */ - font: Font; - - /** - * Style of the switch. - */ - style: number; - - /** - * Horizontal text alignment of the switch title. - */ - textAlign: string | number; - - /** - * Text to display next to the switch, when the checkbox style is in use. - */ - title: string; - - /** - * Text to display on the switch in its "off" state, when the toggle button style is in use. - */ - titleOff: string; - - /** - * Text to display on the switch in its "on" state, when the toggle button style is in use. - */ - titleOn: string; - - /** - * The color used to tint the appearance of the switch when it is turned on. - */ - onTintColor: string; - - /** - * The color used to tint the appearance of the thumb. - */ - thumbTintColor: string; - - /** - * Indicates whether the switch has been turned on or off by the user. May also be set - * programmatically. - */ - value: boolean; - - /** - * Vertical alignment for the text field. - */ - verticalAlign: number | string; - - /** - * Gets the value of the property. - */ - getAnimated(): boolean; - - /** - * Sets the value of the property. - */ - setAnimated(animated: boolean): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setEnabled(enabled: boolean): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getTextAlign(): string | number; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: string): void; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: number): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleOff(): string; - - /** - * Sets the value of the property. - */ - setTitleOff(titleOff: string): void; - - /** - * Gets the value of the property. - */ - getTitleOn(): string; - - /** - * Sets the value of the property. - */ - setTitleOn(titleOn: string): void; - - /** - * Gets the value of the property. - */ - getOnTintColor(): string; - - /** - * Sets the value of the property. - */ - setOnTintColor(onTintColor: string): void; - - /** - * Gets the value of the property. - */ - getThumbTintColor(): string; - - /** - * Sets the value of the property. - */ - setThumbTintColor(thumbTintColor: string): void; - - /** - * Gets the value of the property. - */ - getValue(): boolean; - - /** - * Sets the value of the property. - */ - setValue(value: boolean): void; - - /** - * Gets the value of the property. - */ - getVerticalAlign(): number | string; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: number): void; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: string): void; - - } - /** - * A tab instance for a [TabGroup](Titanium.UI.TabGroup). - */ - interface Tab extends Titanium.UI.View { - /** - * `true` if this tab is active, `false` if it is not. - */ - active: boolean; - - /** - * Icon URL for this tab when active. - */ - activeIcon: string; - - /** - * Badge value for this tab. `null` indicates no badge. - */ - badge: string; - - /** - * If this item displays a badge, this color will be used for the badge's background. - * If set to null, the default background color will be used instead. - */ - badgeColor: string; - - /** - * Icon URL for this tab. - */ - icon: string; - - /** - * The icon inset or outset for each edge. - */ - iconInsets: TabIconInsets; - - /** - * Defines if the icon property of the tab must be used as a mask. - */ - iconIsMask: boolean; - - /** - * Defines if the active icon property of the tab must be used as a mask. - */ - activeIconIsMask: boolean; - - /** - * Title for this tab. - */ - title: string; - - /** - * Key identifying a string from the locale file to use for the tab title. Only one of `title` or `titleid` should be specified. - */ - titleid: string; - - /** - * Defines the color of the title of tab when it's inactive. - */ - titleColor: string; - - /** - * Defines the color of the title of tab when it's active. - */ - activeTitleColor: string; - - /** - * Root-level tab window. All tabs must have at least one root-level tab window. - */ - window: Titanium.UI.Window; - - /** - * Opens a new window. - */ - open(window: Titanium.UI.Window, options?: any): void; - - /** - * Closes the top-level window for this tab. - */ - close(window: Titanium.UI.Window, options?: any): void; - - /** - * Sets the root window that appears in the tab. - */ - setWindow(window: Titanium.UI.Window): void; - - /** - * Closes all windows that are currently opened inside the tab. - */ - popToRootWindow(options: any): void; - - /** - * Gets the value of the property. - */ - getActive(): boolean; - - /** - * Sets the value of the property. - */ - setActive(active: boolean): void; - - /** - * Gets the value of the property. - */ - getActiveIcon(): string; - - /** - * Sets the value of the property. - */ - setActiveIcon(activeIcon: string): void; - - /** - * Gets the value of the property. - */ - getBadge(): string; - - /** - * Sets the value of the property. - */ - setBadge(badge: string): void; - - /** - * Gets the value of the property. - */ - getBadgeColor(): string; - - /** - * Sets the value of the property. - */ - setBadgeColor(badgeColor: string): void; - - /** - * Gets the value of the property. - */ - getIcon(): string; - - /** - * Sets the value of the property. - */ - setIcon(icon: string): void; - - /** - * Gets the value of the property. - */ - getIconInsets(): TabIconInsets; - - /** - * Sets the value of the property. - */ - setIconInsets(iconInsets: TabIconInsets): void; - - /** - * Gets the value of the property. - */ - getIconIsMask(): boolean; - - /** - * Sets the value of the property. - */ - setIconIsMask(iconIsMask: boolean): void; - - /** - * Gets the value of the property. - */ - getActiveIconIsMask(): boolean; - - /** - * Sets the value of the property. - */ - setActiveIconIsMask(activeIconIsMask: boolean): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - /** - * Gets the value of the property. - */ - getTitleColor(): string; - - /** - * Sets the value of the property. - */ - setTitleColor(titleColor: string): void; - - /** - * Gets the value of the property. - */ - getActiveTitleColor(): string; - - /** - * Sets the value of the property. - */ - setActiveTitleColor(activeTitleColor: string): void; - - /** - * Gets the value of the property. - */ - getWindow(): Titanium.UI.Window; - - } - /** - * A tabbed group of windows. - */ - interface TabGroup extends Titanium.UI.View { - /** - * Reference to the Android Activity object associated with this tab group. - */ - readonly activity: Titanium.Android.Activity; - - /** - * Title for the back button. This is only valid when the window is a child of a tab. - */ - backButtonTitle: string; - - /** - * The image to show as the back button. This is only valid when the window is a child of a tab. - */ - backButtonTitleImage: string | Titanium.Blob; - - /** - * Default navigation bar color (typically for the **More** tab), as a color name or hex triplet. - */ - barColor: string; - - /** - * Background image for the nav bar, specified as a URL to a local image. - */ - barImage: string; - - /** - * Boolean value indicating if the application should exit when closing the tab group, whether via Android - * back button or the [close](Titanium.UI.TabGroup.close) method. - */ - exitOnClose: boolean; - - /** - * An array of supported values specified using the EXTEND_EDGE constants in . - */ - extendEdges: number[]; - - /** - * Treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays. - */ - flagSecure: boolean; - - /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). - */ - includeOpaqueBars: boolean; - - /** - * Specifies whether or not the view controller should automatically adjust its scroll view insets. - */ - autoAdjustScrollViewInsets: boolean; - - /** - * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. - */ - extendSafeArea: boolean; - - /** - * Boolean value indicating if the window is fullscreen. - */ - fullscreen: boolean; - - /** - * Boolean value indicating whether the system is allowed to hide the visual indicator for returning to the Home screen. - */ - homeIndicatorAutoHidden: boolean; - - /** - * Set this to true to hide the shadow image of the navigation bar. - */ - hideShadow: boolean; - - /** - * Set this to true to hide the navigation bar on swipe. - */ - hidesBarsOnSwipe: boolean; - - /** - * Set this to true to hide the navigation bar on tap. - */ - hidesBarsOnTap: boolean; - - /** - * Set this to true to hide the navigation bar when the keyboard appears. - */ - hidesBarsWhenKeyboardAppears: boolean; - - /** - * Set this to true to hide the back button of navigation bar. - */ - hidesBackButton: boolean; - - /** - * A Boolean value indicating whether the title should be displayed in a large format. - */ - largeTitleEnabled: string; - - /** - * The mode to use when displaying the title of the navigation bar. - */ - largeTitleDisplayMode: number; - - /** - * View to show in the left nav bar area. - */ - leftNavButton: Titanium.UI.View; - - /** - * An Array of views to show in the left nav bar area. - */ - leftNavButtons: Titanium.UI.View[]; - - /** - * Indicates to open a modal window or not. - */ - modal: boolean; - - /** - * Hides the navigation bar (`true`) or shows the navigation bar (`false`). - */ - navBarHidden: boolean; - - /** - * The tintColor to apply to the navigation bar (typically for the **More** tab). - */ - navTintColor: string; - - /** - * The instance hosting this window. - */ - readonly navigationWindow: Titanium.UI.NavigationWindow; - - /** - * Callback function that overrides the default behavior when the user presses the **Back** - * button. - */ - onBack: (param0: any) => any; - - /** - * Array of supported orientation modes, specified using the orientation - * constants defined in . - */ - orientationModes: number[]; - - /** - * Current orientation of the window. - */ - readonly orientation: number; - - /** - * View to show in the right nav bar area. - */ - rightNavButton: Titanium.UI.View; - - /** - * An Array of views to show in the right nav bar area. - */ - rightNavButtons: Titanium.UI.View[]; - - /** - * The padding needed to safely display content without it being overlapped by the screen insets and notches. - */ - readonly safeAreaPadding: Dimension; - - /** - * Image of the shadow placed between the tab bar and the content area. - */ - shadowImage: string; - - /** - * Boolean value to enable split action bar. - */ - splitActionBar: boolean; - - /** - * The status bar style associated with this window. - */ - statusBarStyle: number; - - /** - * Maintain a sustainable level of performance. - */ - sustainedPerformanceMode: boolean; - - /** - * Boolean value indicating if the user should be able to close a window using a swipe gesture. - */ - swipeToClose: boolean; - - /** - * Boolean value indicating if the tab bar should be hidden. - */ - tabBarHidden: boolean; - - /** - * Name of the theme to apply to the window. - */ - theme: string; - - /** - * Title for this tabGroup. - */ - title: string; - - /** - * Title text attributes of the window to be applied on the **More** tab. - */ - titleAttributes: titleAttributesParams; - - /** - * View to show in the title area of the nav bar. - */ - titleControl: Titanium.UI.View; - - /** - * Image to show in the title area of the nav bar, specified as a local file path or URL. - */ - titleImage: string; - - /** - * Title prompt for the window. - */ - titlePrompt: string; - - /** - * Key identifying a string from the locale file to use for the window title. - */ - titleid: string; - - /** - * Key identifying a string from the locale file to use for the window title prompt. - */ - titlepromptid: string; - - /** - * Array of button objects to show in the window's toolbar. - */ - toolbar: any[]; - - /** - * Use a transition animation when opening or closing windows in a - * or . - */ - transitionAnimation: Titanium.Proxy; - - /** - * Boolean value indicating if the nav bar (typically for the **More** tab), is translucent. - */ - translucent: boolean; - - /** - * Loads a JavaScript file from a local URL. - */ - url: string; - - /** - * Additional flags to set on the Activity Window. - */ - windowFlags: number; - - /** - * Determines how the tab group is treated when a soft input method (such as a virtual keyboard) - * is displayed. - */ - windowSoftInputMode: number; - - /** - * Set the pixel format for the Activity's Window. - */ - windowPixelFormat: number; - - /** - * The type of transition used when activity is exiting. - */ - activityExitTransition: number; - - /** - * The type of transition used when activity is entering. - */ - activityEnterTransition: number; - - /** - * The type of transition used when returning from a previously started activity. - */ - activityReturnTransition: number; - - /** - * The type of transition used when reentering to a previously started activity. - */ - activityReenterTransition: number; - - /** - * The type of exit transition used when animating shared elements between two activities. - */ - activitySharedElementExitTransition: number; - - /** - * The type of enter transition used when animating shared elements between two activities. - */ - activitySharedElementEnterTransition: number; - - /** - * The type of return transition used when animating shared elements between two activities. - */ - activitySharedElementReturnTransition: number; - - /** - * The type of reenter transition used when animating shared elements between two activities. - */ - activitySharedElementReenterTransition: number; - - /** - * Active tab. - */ - activeTab: number | Titanium.UI.Tab; - - /** - * Allow the user to reorder tabs in the tab group using the **Edit** button on the **More** - * tab. - */ - allowUserCustomization: boolean; - - /** - * Title for the edit button on the **More** tab. - */ - editButtonTitle: string; - - /** - * Boolean value indicating if tab navigation can be done by swipes, in addition to tab clicks. - */ - swipeable: boolean; - - /** - * Boolean value indicating if changing pages by tab clicks is animated. - */ - smoothScrollOnTabClick: boolean; - - /** - * Tabs managed by the tab group. - */ - tabs: Titanium.UI.Tab[]; - - /** - * Determines whether the BOTTOM_NAVIGATION_VIEW_STYLE uses shiftMode. - */ - shiftMode: boolean; - - /** - * Property defining which style for the TabGroup to be used. - */ - style: number; - - /** - * Default background color for inactive tabs, as a color name or hex triplet. - */ - tabsBackgroundColor: string; - - /** - * The tintColor to apply to the tabs. - */ - tabsTintColor: string; - - /** - * A Boolean value that indicates whether the tab bar is translucent. - */ - tabsTranslucent: boolean; - - /** - * Default background image for tabs. - */ - tabsBackgroundImage: string; - - /** - * Unselected items in this tab group will be tinted with this color. Setting this value to null - * indicates that the tab group should use its default value instead. - */ - unselectedItemTintColor: string; - - /** - * Color applied to active tabs icons, as a color name or hex triplet, where the tab's activeIcon was not defined. - */ - activeTabIconTint: string; - - /** - * Default background selected color for tabs, as a color name or hex triplet. - */ - tabsBackgroundSelectedColor: string; - - /** - * Default background image for the active tab. - */ - activeTabBackgroundImage: string; - - /** - * Adds a common UI element to participate in window transition animation. - */ - addSharedElement(view: any, transitionName: string): void; - - /** - * Closes the tab group and removes it from the UI. - */ - close(params?: any): void; - - /** - * Hides the navigation bar. - */ - hideNavBar(options?: any): void; - - /** - * Hides the tab bar. Must be called before opening the window. - */ - hideTabBar(): void; - - /** - * Opens the tab group and makes it visible. - */ - open(params?: openWindowParams): void; - - /** - * Clears all added shared elements. - */ - removeAllSharedElements(): void; - - /** - * Sets the array of items to show in the window's toolbar. - */ - setToolbar(items: ReadonlyArray, params?: windowToolbarParam): void; - - /** - * Makes the navigation bar visible. - */ - showNavBar(options?: any): void; - - /** - * Makes the bottom toolbar visible. - */ - showToolbar(options?: any): void; - - /** - * Makes the bottom toolbar invisible. - */ - hideToolbar(options?: any): void; - - /** - * Adds a tab to the tab group. - */ - addTab(tab: Titanium.UI.Tab): void; - - /** - * Disable (or re-enable) tab navigation. If tab navigation is disabled, the tabs are hidden and - * the last selected tab window is shown. - */ - disableTabNavigation(disable: boolean): void; - - /** - * Gets the currently-active tab. - */ - getActiveTab(): Titanium.UI.Tab; - - /** - * Removes a tab from the tab group. - */ - removeTab(tab: Titanium.UI.Tab): void; - - /** - * Selects the currently active tab in a tab group. - */ - setActiveTab(indexOrObject: number): void; - - /** - * Selects the currently active tab in a tab group. - */ - setActiveTab(indexOrObject: Titanium.UI.Tab): void; - - /** - * Gets all tabs that are managed by the tab group. - */ - getTabs(): Titanium.UI.Tab[]; - - /** - * Gets the value of the property. - */ - getActivity(): Titanium.Android.Activity; - - /** - * Gets the value of the property. - */ - getBackButtonTitle(): string; - - /** - * Sets the value of the property. - */ - setBackButtonTitle(backButtonTitle: string): void; - - /** - * Gets the value of the property. - */ - getBackButtonTitleImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setBackButtonTitleImage(backButtonTitleImage: string): void; - - /** - * Sets the value of the property. - */ - setBackButtonTitleImage(backButtonTitleImage: Titanium.Blob): void; - - /** - * Gets the value of the property. - */ - getBarColor(): string; - - /** - * Sets the value of the property. - */ - setBarColor(barColor: string): void; - - /** - * Gets the value of the property. - */ - getBarImage(): string; - - /** - * Sets the value of the property. - */ - setBarImage(barImage: string): void; - - /** - * Gets the value of the property. - */ - getExitOnClose(): boolean; - - /** - * Sets the value of the property. - */ - setExitOnClose(exitOnClose: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendEdges(): number[]; - - /** - * Sets the value of the property. - */ - setExtendEdges(extendEdges: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getFlagSecure(): boolean; - - /** - * Sets the value of the property. - */ - setFlagSecure(flagSecure: boolean): void; - - /** - * Gets the value of the property. - */ - getIncludeOpaqueBars(): boolean; - - /** - * Sets the value of the property. - */ - setIncludeOpaqueBars(includeOpaqueBars: boolean): void; - - /** - * Gets the value of the property. - */ - getAutoAdjustScrollViewInsets(): boolean; - - /** - * Sets the value of the property. - */ - setAutoAdjustScrollViewInsets(autoAdjustScrollViewInsets: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendSafeArea(): boolean; - - /** - * Sets the value of the property. - */ - setExtendSafeArea(extendSafeArea: boolean): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getHomeIndicatorAutoHidden(): boolean; - - /** - * Sets the value of the property. - */ - setHomeIndicatorAutoHidden(homeIndicatorAutoHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getHideShadow(): boolean; - - /** - * Sets the value of the property. - */ - setHideShadow(hideShadow: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnSwipe(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnSwipe(hidesBarsOnSwipe: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnTap(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnTap(hidesBarsOnTap: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsWhenKeyboardAppears(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsWhenKeyboardAppears(hidesBarsWhenKeyboardAppears: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBackButton(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBackButton(hidesBackButton: boolean): void; - - /** - * Gets the value of the property. - */ - getLargeTitleEnabled(): string; - - /** - * Sets the value of the property. - */ - setLargeTitleEnabled(largeTitleEnabled: string): void; - - /** - * Gets the value of the property. - */ - getLargeTitleDisplayMode(): number; - - /** - * Sets the value of the property. - */ - setLargeTitleDisplayMode(largeTitleDisplayMode: number): void; - - /** - * Gets the value of the property. - */ - getLeftNavButton(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setLeftNavButton(leftNavButton: any): void; - - /** - * Gets the value of the property. - */ - getLeftNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setLeftNavButtons(leftNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getModal(): boolean; - - /** - * Sets the value of the property. - */ - setModal(modal: boolean): void; - - /** - * Gets the value of the property. - */ - getNavBarHidden(): boolean; - - /** - * Sets the value of the property. - */ - setNavBarHidden(navBarHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getNavTintColor(): string; - - /** - * Sets the value of the property. - */ - setNavTintColor(navTintColor: string): void; - - /** - * Gets the value of the property. - */ - getNavigationWindow(): Titanium.UI.NavigationWindow; - - /** - * Gets the value of the property. - */ - getOnBack(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnBack(onBack: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOrientationModes(): number[]; - - /** - * Sets the value of the property. - */ - setOrientationModes(orientationModes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOrientation(): number; - - /** - * Gets the value of the property. - */ - getRightNavButton(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setRightNavButton(rightNavButton: any): void; - - /** - * Gets the value of the property. - */ - getRightNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setRightNavButtons(rightNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getSafeAreaPadding(): Dimension; - - /** - * Gets the value of the property. - */ - getShadowImage(): string; - - /** - * Sets the value of the property. - */ - setShadowImage(shadowImage: string): void; - - /** - * Gets the value of the property. - */ - getSplitActionBar(): boolean; - - /** - * Sets the value of the property. - */ - setSplitActionBar(splitActionBar: boolean): void; - - /** - * Gets the value of the property. - */ - getStatusBarStyle(): number; - - /** - * Sets the value of the property. - */ - setStatusBarStyle(statusBarStyle: number): void; - - /** - * Gets the value of the property. - */ - getSustainedPerformanceMode(): boolean; - - /** - * Sets the value of the property. - */ - setSustainedPerformanceMode(sustainedPerformanceMode: boolean): void; - - /** - * Gets the value of the property. - */ - getSwipeToClose(): boolean; - - /** - * Sets the value of the property. - */ - setSwipeToClose(swipeToClose: boolean): void; - - /** - * Gets the value of the property. - */ - getTabBarHidden(): boolean; - - /** - * Sets the value of the property. - */ - setTabBarHidden(tabBarHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getTheme(): string; - - /** - * Sets the value of the property. - */ - setTheme(theme: string): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleAttributes(): titleAttributesParams; - - /** - * Sets the value of the property. - */ - setTitleAttributes(titleAttributes: titleAttributesParams): void; - - /** - * Gets the value of the property. - */ - getTitleControl(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setTitleControl(titleControl: any): void; - - /** - * Gets the value of the property. - */ - getTitleImage(): string; - - /** - * Sets the value of the property. - */ - setTitleImage(titleImage: string): void; - - /** - * Gets the value of the property. - */ - getTitlePrompt(): string; - - /** - * Sets the value of the property. - */ - setTitlePrompt(titlePrompt: string): void; - - /** - * Gets the value of the property. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - /** - * Gets the value of the property. - */ - getTitlepromptid(): string; - - /** - * Sets the value of the property. - */ - setTitlepromptid(titlepromptid: string): void; - - /** - * Gets the value of the property. - */ - getToolbar(): any[]; - - /** - * Gets the value of the property. - */ - getTransitionAnimation(): Titanium.Proxy; - - /** - * Sets the value of the property. - */ - setTransitionAnimation(transitionAnimation: Titanium.Proxy): void; - - /** - * Gets the value of the property. - */ - getTranslucent(): boolean; - - /** - * Sets the value of the property. - */ - setTranslucent(translucent: boolean): void; - - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - /** - * Gets the value of the property. - */ - getWindowFlags(): number; - - /** - * Sets the value of the property. - */ - setWindowFlags(windowFlags: number): void; - - /** - * Gets the value of the property. - */ - getWindowSoftInputMode(): number; - - /** - * Sets the value of the property. - */ - setWindowSoftInputMode(windowSoftInputMode: number): void; - - /** - * Gets the value of the property. - */ - getWindowPixelFormat(): number; - - /** - * Sets the value of the property. - */ - setWindowPixelFormat(windowPixelFormat: number): void; - - /** - * Gets the value of the property. - */ - getActivityExitTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityExitTransition(activityExitTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityEnterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityEnterTransition(activityEnterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityReturnTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityReturnTransition(activityReturnTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityReenterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityReenterTransition(activityReenterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementExitTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementExitTransition(activitySharedElementExitTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementEnterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementEnterTransition(activitySharedElementEnterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementReturnTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementReturnTransition(activitySharedElementReturnTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementReenterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementReenterTransition(activitySharedElementReenterTransition: number): void; - - /** - * Gets the value of the property. - */ - getAllowUserCustomization(): boolean; - - /** - * Sets the value of the property. - */ - setAllowUserCustomization(allowUserCustomization: boolean): void; - - /** - * Gets the value of the property. - */ - getEditButtonTitle(): string; - - /** - * Sets the value of the property. - */ - setEditButtonTitle(editButtonTitle: string): void; - - /** - * Gets the value of the property. - */ - getSwipeable(): boolean; - - /** - * Sets the value of the property. - */ - setSwipeable(swipeable: boolean): void; - - /** - * Gets the value of the property. - */ - getSmoothScrollOnTabClick(): boolean; - - /** - * Sets the value of the property. - */ - setSmoothScrollOnTabClick(smoothScrollOnTabClick: boolean): void; - - /** - * Sets the value of the property. - */ - setTabs(tabs: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getShiftMode(): boolean; - - /** - * Sets the value of the property. - */ - setShiftMode(shiftMode: boolean): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getTabsBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setTabsBackgroundColor(tabsBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getTabsTintColor(): string; - - /** - * Sets the value of the property. - */ - setTabsTintColor(tabsTintColor: string): void; - - /** - * Gets the value of the property. - */ - getTabsTranslucent(): boolean; - - /** - * Sets the value of the property. - */ - setTabsTranslucent(tabsTranslucent: boolean): void; - - /** - * Gets the value of the property. - */ - getTabsBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setTabsBackgroundImage(tabsBackgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getUnselectedItemTintColor(): string; - - /** - * Sets the value of the property. - */ - setUnselectedItemTintColor(unselectedItemTintColor: string): void; - - /** - * Gets the value of the property. - */ - getActiveTabIconTint(): string; - - /** - * Sets the value of the property. - */ - setActiveTabIconTint(activeTabIconTint: string): void; - - /** - * Gets the value of the property. - */ - getTabsBackgroundSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setTabsBackgroundSelectedColor(tabsBackgroundSelectedColor: string): void; - - /** - * Gets the value of the property. - */ - getActiveTabBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setActiveTabBackgroundImage(activeTabBackgroundImage: string): void; - - } - /** - * A button bar that maintains a selected state. - */ - interface TabbedBar extends Titanium.UI.View { - /** - * Index of the currently selected button. - */ - index: number; - - /** - * Array of labels for the tabbed bar. - */ - labels: string[] | BarItemType[]; - - /** - * Style of the tabbed bar. - */ - style: number; - - /** - * Gets the value of the property. - */ - getIndex(): number; - - /** - * Sets the value of the property. - */ - setIndex(index: number): void; - - /** - * Gets the value of the property. - */ - getLabels(): string[] | BarItemType[]; - - /** - * Sets the value of the property. - */ - setLabels(labels: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setLabels(labels: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - } - /** - * A table view is used to present information, organized in sections and rows, in a - * vertically-scrolling view. - */ - interface TableView extends Titanium.UI.View { - /** - * Determines whether this table's rows can be selected. - */ - allowsSelection: boolean; - - /** - * Determines whether this table's rows can be selected while editing the table. - */ - allowsSelectionDuringEditing: boolean; - - /** - * Rows of the table view. - */ - data: Titanium.UI.TableViewRow[] | Titanium.UI.TableViewSection[]; - - /** - * Determines the rows' default editable behavior, which allows them to be deleted by the user - * when the table is in `editing` or `moving` mode. - */ - editable: boolean; - - /** - * Determines whether row editing mode is active. - */ - editing: boolean; - - /** - * Filter attribute to be used when searching. - */ - filterAttribute: string; - - /** - * Determines whether the search is limited to the start of the string - */ - filterAnchored: boolean; - - /** - * Determines whether the search is case insensitive. - */ - filterCaseInsensitive: boolean; - - /** - * When set to false, the ListView will not draw the divider before the footer view. - */ - footerDividersEnabled: boolean; - - /** - * Table view footer title. - */ - footerTitle: string; - - /** - * Max number of row class names. - */ - maxClassname: number; - - /** - * View positioned above the first row that is only revealed when the user drags the table - * contents down. - */ - headerPullView: Titanium.UI.View; - - /** - * View positioned above the first row that is only revealed when the user drags the list view contents down. - */ - refreshControl: Titanium.UI.RefreshControl; - - /** - * Determines whether the search field should hide on completion. - */ - hideSearchOnSelection: boolean; - - /** - * Table view footer as a view that will be rendered instead of a label. - */ - footerView: Titanium.UI.View; - - /** - * When set to false, the ListView will not draw the divider after the header view. - */ - headerDividersEnabled: boolean; - - /** - * Table view header title. - */ - headerTitle: string; - - /** - * Table view header as a view that will be rendered instead of a label. - */ - headerView: Titanium.UI.View; - - /** - * Array of objects (with `title` and `index` properties) to control the table view index. - */ - index: TableViewIndexEntry[]; - - /** - * Maximum row height for table view rows. - */ - maxRowHeight: number; - - /** - * Minimum row height for table view rows. - */ - minRowHeight: number; - - /** - * Determines the rows' default moveable behavior, which allows them to be re-ordered by the - * user when the table is in `editing` or `moving` mode. - */ - moveable: boolean; - - /** - * Determines whether row moving mode is active. - */ - moving: boolean; - - /** - * Determines the behavior when the user overscrolls the view. - */ - overScrollMode: number; - - /** - * Default row height for table view rows. - */ - rowHeight: number; - - /** - * If `true`, the tableview can be scrolled. - */ - scrollable: boolean; - - /** - * Style of the scrollbar. - */ - scrollIndicatorStyle: number; - - /** - * Controls whether the scroll-to-top gesture is effective. - */ - scrollsToTop: boolean; - - /** - * Search field to use for the table view. - */ - search: Titanium.UI.SearchBar | Titanium.UI.Android.SearchView; - - /** - * A Boolean indicating whether the underlying content is dimmed during a search. - */ - dimBackgroundForSearch: boolean; - - /** - * Determines whether the [SearchBar](Titanium.UI.SearchBar) or [SearchView](Titanium.UI.Android.SearchView) appears as part of the TableView. - */ - searchAsChild: boolean; - - /** - * Determines whether the search field is visible. - */ - searchHidden: boolean; - - /** - * Number of sections in this table view. - */ - readonly sectionCount: number; - - /** - * Sections of this table. - */ - sections: Titanium.UI.TableViewSection[]; - - /** - * Separator line color between rows, as a color name or hex triplet. - */ - separatorColor: string; - - /** - * The insets for table view separators (applies to all cells). - */ - separatorInsets: any; - - /** - * The insets for the table view header and footer. - */ - tableSeparatorInsets: any; - - /** - * The insets for table view cells (applies to all cells). - */ - rowSeparatorInsets: any; - - /** - * Separator style constant. - */ - separatorStyle: number; - - /** - * Determines whether this table view displays a vertical scroll indicator. - */ - showVerticalScrollIndicator: boolean; - - /** - * Style of the table view, specified using one of the constants from - * . - */ - style: number; - - /** - * The background color of the search results (iOS-only). - */ - resultsBackgroundColor: string; - - /** - * Separator line color between rows inside search results, - * as a color name or hex triplet (iOS-only). - */ - resultsSeparatorColor: string; - - /** - * The separator style of the search results (iOS-only). - */ - resultsSeparatorStyle: number; - - /** - * The insets for search results separators (applies to all cells & iOS-only). - */ - resultsSeparatorInsets: any; - - /** - * Appends a single row or an array of rows to the end of the table. - */ - appendRow(row: any, animation?: TableViewAnimationProperties): void; - - /** - * Appends a single section or an array of sections to the end of the table. - */ - appendSection(section: any, animation?: TableViewAnimationProperties): void; - - /** - * Deletes an existing row. - */ - deleteRow(row: number, animation?: TableViewAnimationProperties): void; - - /** - * Deletes an existing row. - */ - deleteRow(row: Titanium.UI.TableViewRow, animation?: TableViewAnimationProperties): void; - - /** - * Deletes an existing section. - */ - deleteSection(section: number, animation?: TableViewAnimationProperties): void; - - /** - * Programmatically deselects a row. - */ - deselectRow(row: number): void; - - /** - * Inserts a row after another row. - */ - insertRowAfter(index: number, row: any, animation?: TableViewAnimationProperties): void; - - /** - * Inserts a section after another section. - */ - insertSectionAfter(index: number, section: any, animation?: TableViewAnimationProperties): void; - - /** - * Inserts a row before another row. - */ - insertRowBefore(index: number, row: any, animation?: TableViewAnimationProperties): void; - - /** - * Inserts a section before another section. - */ - insertSectionBefore(index: number, section: any, animation?: TableViewAnimationProperties): void; - - /** - * Scrolls the table view to ensure that the specified row is on screen. - */ - scrollToIndex(index: number, animation?: TableViewAnimationProperties): void; - - /** - * Scrolls the table to a specific top position where 0 is the topmost y position in the - * table view. - */ - scrollToTop(top: number, animation?: TableViewAnimationProperties): void; - - /** - * Sets this tableview's content insets. - */ - setContentInsets(edgeInsets: TableViewEdgeInsets, animated?: TableViewContentInsetOption): void; - - /** - * Sets the value of the content offset of the table view without animation by default. - */ - setContentOffset(contentOffset: any): void; - - /** - * Programmatically selects a row. In Android, it sets the currently selected item. If in touch mode, - * the item will not be selected but it will still be positioned appropriately. If the specified - * selection position is less than 0, then the item at position 0 will be selected. - */ - selectRow(row: number): void; - - /** - * Sets the data in the table. - */ - setData(data: any, animation: TableViewAnimationProperties): void; - - /** - * Sets the value of the [Titanium.UI.TableView.headerPullView] property. - */ - setHeaderPullView(view: any): void; - - /** - * Updates an existing row, optionally with animation. - */ - updateRow(index: number, row: Titanium.UI.TableViewRow, animation: TableViewAnimationProperties): void; - - /** - * Updates an existing section, optionally with animation. - */ - updateSection(index: number, section: Titanium.UI.TableViewSection, animation: TableViewAnimationProperties): void; - - /** - * Gets the value of the property. - */ - getAllowsSelection(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsSelection(allowsSelection: boolean): void; - - /** - * Gets the value of the property. - */ - getAllowsSelectionDuringEditing(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsSelectionDuringEditing(allowsSelectionDuringEditing: boolean): void; - - /** - * Gets the value of the property. - */ - getData(): Titanium.UI.TableViewRow[] | Titanium.UI.TableViewSection[]; - - /** - * Gets the value of the property. - */ - getEditable(): boolean; - - /** - * Sets the value of the property. - */ - setEditable(editable: boolean): void; - - /** - * Gets the value of the property. - */ - getEditing(): boolean; - - /** - * Sets the value of the property. - */ - setEditing(editing: boolean): void; - - /** - * Gets the value of the property. - */ - getFilterAttribute(): string; - - /** - * Sets the value of the property. - */ - setFilterAttribute(filterAttribute: string): void; - - /** - * Gets the value of the property. - */ - getFilterAnchored(): boolean; - - /** - * Sets the value of the property. - */ - setFilterAnchored(filterAnchored: boolean): void; - - /** - * Gets the value of the property. - */ - getFilterCaseInsensitive(): boolean; - - /** - * Sets the value of the property. - */ - setFilterCaseInsensitive(filterCaseInsensitive: boolean): void; - - /** - * Gets the value of the property. - */ - getFooterDividersEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setFooterDividersEnabled(footerDividersEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getFooterTitle(): string; - - /** - * Sets the value of the property. - */ - setFooterTitle(footerTitle: string): void; - - /** - * Gets the value of the property. - */ - getMaxClassname(): number; - - /** - * Sets the value of the property. - */ - setMaxClassname(maxClassname: number): void; - - /** - * Gets the value of the property. - */ - getHeaderPullView(): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getRefreshControl(): Titanium.UI.RefreshControl; - - /** - * Sets the value of the property. - */ - setRefreshControl(refreshControl: Titanium.UI.RefreshControl): void; - - /** - * Gets the value of the property. - */ - getHideSearchOnSelection(): boolean; - - /** - * Sets the value of the property. - */ - setHideSearchOnSelection(hideSearchOnSelection: boolean): void; - - /** - * Gets the value of the property. - */ - getFooterView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setFooterView(footerView: any): void; - - /** - * Gets the value of the property. - */ - getHeaderDividersEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setHeaderDividersEnabled(headerDividersEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getHeaderTitle(): string; - - /** - * Sets the value of the property. - */ - setHeaderTitle(headerTitle: string): void; - - /** - * Gets the value of the property. - */ - getHeaderView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setHeaderView(headerView: any): void; - - /** - * Gets the value of the property. - */ - getIndex(): TableViewIndexEntry[]; - - /** - * Sets the value of the property. - */ - setIndex(index: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getMaxRowHeight(): number; - - /** - * Sets the value of the property. - */ - setMaxRowHeight(maxRowHeight: number): void; - - /** - * Gets the value of the property. - */ - getMinRowHeight(): number; - - /** - * Sets the value of the property. - */ - setMinRowHeight(minRowHeight: number): void; - - /** - * Gets the value of the property. - */ - getMoveable(): boolean; - - /** - * Sets the value of the property. - */ - setMoveable(moveable: boolean): void; - - /** - * Gets the value of the property. - */ - getMoving(): boolean; - - /** - * Sets the value of the property. - */ - setMoving(moving: boolean): void; - - /** - * Gets the value of the property. - */ - getOverScrollMode(): number; - - /** - * Sets the value of the property. - */ - setOverScrollMode(overScrollMode: number): void; - - /** - * Gets the value of the property. - */ - getRowHeight(): number; - - /** - * Sets the value of the property. - */ - setRowHeight(rowHeight: number): void; - - /** - * Gets the value of the property. - */ - getScrollable(): boolean; - - /** - * Sets the value of the property. - */ - setScrollable(scrollable: boolean): void; - - /** - * Gets the value of the property. - */ - getScrollIndicatorStyle(): number; - - /** - * Sets the value of the property. - */ - setScrollIndicatorStyle(scrollIndicatorStyle: number): void; - - /** - * Gets the value of the property. - */ - getScrollsToTop(): boolean; - - /** - * Sets the value of the property. - */ - setScrollsToTop(scrollsToTop: boolean): void; - - /** - * Gets the value of the property. - */ - getSearch(): Titanium.UI.SearchBar | Titanium.UI.Android.SearchView; - - /** - * Sets the value of the property. - */ - setSearch(search: Titanium.UI.SearchBar): void; - - /** - * Sets the value of the property. - */ - setSearch(search: Titanium.UI.Android.SearchView): void; - - /** - * Gets the value of the property. - */ - getDimBackgroundForSearch(): boolean; - - /** - * Sets the value of the property. - */ - setDimBackgroundForSearch(dimBackgroundForSearch: boolean): void; - - /** - * Gets the value of the property. - */ - getSearchAsChild(): boolean; - - /** - * Sets the value of the property. - */ - setSearchAsChild(searchAsChild: boolean): void; - - /** - * Gets the value of the property. - */ - getSearchHidden(): boolean; - - /** - * Sets the value of the property. - */ - setSearchHidden(searchHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getSectionCount(): number; - - /** - * Gets the value of the property. - */ - getSections(): Titanium.UI.TableViewSection[]; - - /** - * Sets the value of the property. - */ - setSections(sections: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getSeparatorColor(): string; - - /** - * Sets the value of the property. - */ - setSeparatorColor(separatorColor: string): void; - - /** - * Gets the value of the property. - */ - getSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setSeparatorInsets(separatorInsets: any): void; - - /** - * Gets the value of the property. - */ - getTableSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setTableSeparatorInsets(tableSeparatorInsets: any): void; - - /** - * Gets the value of the property. - */ - getRowSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setRowSeparatorInsets(rowSeparatorInsets: any): void; - - /** - * Gets the value of the property. - */ - getSeparatorStyle(): number; - - /** - * Sets the value of the property. - */ - setSeparatorStyle(separatorStyle: number): void; - - /** - * Gets the value of the property. - */ - getShowVerticalScrollIndicator(): boolean; - - /** - * Sets the value of the property. - */ - setShowVerticalScrollIndicator(showVerticalScrollIndicator: boolean): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getResultsBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setResultsBackgroundColor(resultsBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getResultsSeparatorColor(): string; - - /** - * Sets the value of the property. - */ - setResultsSeparatorColor(resultsSeparatorColor: string): void; - - /** - * Gets the value of the property. - */ - getResultsSeparatorStyle(): number; - - /** - * Sets the value of the property. - */ - setResultsSeparatorStyle(resultsSeparatorStyle: number): void; - - /** - * Gets the value of the property. - */ - getResultsSeparatorInsets(): any; - - /** - * Sets the value of the property. - */ - setResultsSeparatorInsets(resultsSeparatorInsets: any): void; - - } - /** - * A table view row is an individual item in a table, organized into table view sections. - */ - interface TableViewRow extends Titanium.UI.View { - /** - * Class name for the row. - */ - className: string; - - /** - * Default text color of the row when not selected, as a color name or hex triplet. - */ - color: string; - - /** - * Text to display on the delete button when editable is enabled - */ - deleteButtonTitle: string; - - /** - * Determines the rows' editable behavior, which allows them to be deleted by the user when the - * table is in `editing` or `moving` mode. - */ - editable: boolean; - - /** - * Font to use for the row title. - */ - font: Font; - - /** - * The footer title of the row. - */ - footer: string; - - /** - * Determines whether a system-provided checkmark is displayed on the right-hand side of - * the row. - */ - hasCheck: boolean; - - /** - * Determines whether a system-provided arrow is displayed on the right-hand side of the row. - */ - hasChild: boolean; - - /** - * Determines whether a system-provided detail disclosure button is displayed on the right-hand - * side of the row. - */ - hasDetail: boolean; - - /** - * The header title of the row. - */ - header: string; - - /** - * Indention level for the row. - */ - indentionLevel: number; - - /** - * Image to render in the left image area of the row, specified as a local path or URL. - */ - leftImage: string; - - /** - * Determines the rows' moveable behavior, which allows them to be re-ordered by the user when - * the table is in `editing` or `moving` mode. - */ - moveable: boolean; - - /** - * Image to render in the right image area of the row, specified as a local path or URL. - */ - rightImage: string; - - /** - * Background color to render when the row is selected, as a color name or hex triplet. - */ - selectedBackgroundColor: string; - - /** - * Background image to render when the row is selected. - */ - selectedBackgroundImage: string; - - /** - * Color of the row text when the row is selected, as a color name or hex triplet. - */ - selectedColor: string; - - /** - * Selection style constant to control the selection color. - */ - selectionStyle: number; - - /** - * Text to display on the row. - */ - title: string; - - /** - * Gets the value of the property. - */ - getClassName(): string; - - /** - * Sets the value of the property. - */ - setClassName(className: string): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getDeleteButtonTitle(): string; - - /** - * Sets the value of the property. - */ - setDeleteButtonTitle(deleteButtonTitle: string): void; - - /** - * Gets the value of the property. - */ - getEditable(): boolean; - - /** - * Sets the value of the property. - */ - setEditable(editable: boolean): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getFooter(): string; - - /** - * Sets the value of the property. - */ - setFooter(footer: string): void; - - /** - * Gets the value of the property. - */ - getHasCheck(): boolean; - - /** - * Sets the value of the property. - */ - setHasCheck(hasCheck: boolean): void; - - /** - * Gets the value of the property. - */ - getHasChild(): boolean; - - /** - * Sets the value of the property. - */ - setHasChild(hasChild: boolean): void; - - /** - * Gets the value of the property. - */ - getHasDetail(): boolean; - - /** - * Sets the value of the property. - */ - setHasDetail(hasDetail: boolean): void; - - /** - * Gets the value of the property. - */ - getHeader(): string; - - /** - * Sets the value of the property. - */ - setHeader(header: string): void; - - /** - * Gets the value of the property. - */ - getIndentionLevel(): number; - - /** - * Sets the value of the property. - */ - setIndentionLevel(indentionLevel: number): void; - - /** - * Gets the value of the property. - */ - getLeftImage(): string; - - /** - * Sets the value of the property. - */ - setLeftImage(leftImage: string): void; - - /** - * Gets the value of the property. - */ - getMoveable(): boolean; - - /** - * Sets the value of the property. - */ - setMoveable(moveable: boolean): void; - - /** - * Gets the value of the property. - */ - getRightImage(): string; - - /** - * Sets the value of the property. - */ - setRightImage(rightImage: string): void; - - /** - * Gets the value of the property. - */ - getSelectedBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setSelectedBackgroundColor(selectedBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getSelectedBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setSelectedBackgroundImage(selectedBackgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setSelectedColor(selectedColor: string): void; - - /** - * Gets the value of the property. - */ - getSelectionStyle(): number; - - /** - * Sets the value of the property. - */ - setSelectionStyle(selectionStyle: number): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - } - /** - * A table view section is a container within a table used to organize table view rows. - */ - interface TableViewSection extends Titanium.Proxy { - /** - * Title of this section footer. - */ - footerTitle: string; - - /** - * View to use for this section footer. - */ - footerView: Titanium.UI.View; - - /** - * Title of this section header. - */ - headerTitle: string; - - /** - * View to use for this section header. - */ - headerView: Titanium.UI.View; - - /** - * Number of rows in this section. - */ - readonly rowCount: number; - - /** - * Rows in this section. - */ - readonly rows: Titanium.UI.TableViewRow[]; - - /** - * Adds a table view row to this section. - */ - add(row: Titanium.UI.TableViewRow): void; - - /** - * Removes a table view row from this section. - */ - remove(row: Titanium.UI.TableViewRow): void; - - /** - * Returns a row in this section. - */ - rowAtIndex(index: number): Titanium.UI.TableViewRow; - - /** - * Gets the value of the property. - */ - getFooterTitle(): string; - - /** - * Sets the value of the property. - */ - setFooterTitle(footerTitle: string): void; - - /** - * Gets the value of the property. - */ - getFooterView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setFooterView(footerView: any): void; - - /** - * Gets the value of the property. - */ - getHeaderTitle(): string; - - /** - * Sets the value of the property. - */ - setHeaderTitle(headerTitle: string): void; - - /** - * Gets the value of the property. - */ - getHeaderView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setHeaderView(headerView: any): void; - - /** - * Gets the value of the property. - */ - getRowCount(): number; - - /** - * Gets the value of the property. - */ - getRows(): Titanium.UI.TableViewRow[]; - - } - /** - * A multiline text field that supports editing and scrolling. - */ - interface TextArea extends Titanium.UI.View { - /** - * Determines the appearance of the keyboard displayed when this text area is focused. - */ - appearance: number; - - /** - * Determines the appearance of the keyboard displayed when this text area is focused. - */ - keyboardAppearance: number; - - /** - * Hint text attributed string. - */ - attributedHintText: Titanium.UI.AttributedString; - - /** - * TextArea attributed string. - */ - attributedString: Titanium.UI.AttributedString; - - /** - * Determines how text is capitalized during typing. - */ - autocapitalization: number; - - /** - * Determines whether to automatically correct text entered into this text area. - */ - autocorrect: boolean; - - /** - * Sets the autofill type for the text area. - */ - autofillType: string; - - /** - * Automatically convert text to clickable links. - */ - autoLink: number; - - /** - * Determines whether the value of this text area should be cleared when it is focused. - */ - clearOnEdit: boolean; - - /** - * Color of the text in this text area, as a color name or hex triplet. - */ - color: string; - - /** - * Determines whether this field can be edited. - */ - editable: boolean; - - /** - * Determines whether an ellipsis (`...`) should be used to indicate truncated text. - */ - ellipsize: boolean; - - /** - * Determines whether the return key is enabled automatically when there is text in this text - * area. - */ - enableReturnKey: boolean; - - /** - * Font to use for text. - */ - font: Font; - - /** - * Leave some space above the keyboard in landscape mode or not. - */ - fullscreen: boolean; - - /** - * Hint text to display when the field is empty. - */ - hintText: string; - - /** - * Color of hint text that displays when field is empty. - */ - hintTextColor: string; - - /** - * Hint type to display on the text field. - */ - hintType: number; - - /** - * Specifies if the text area should allow user interaction with the given URL in the given range of text. - */ - handleLinks: boolean; - - /** - * Array of toolbar button objects or a [toolbar](Titanium.UI.iOS.Toolbar) to be used when the - * keyboard is displayed. - */ - keyboardToolbar: Titanium.UI.View[] | Titanium.UI.iOS.Toolbar; - - /** - * Color of the keyboard toolbar if keyboardToolbar is an array, as a color name or hex triplet. - */ - keyboardToolbarColor: string; - - /** - * Height of the keyboard toolbar if keyboardToolbar is an array. - */ - keyboardToolbarHeight: number; - - /** - * Keyboard type to display when this text area is focused. - */ - keyboardType: number; - - /** - * Number of lines tall the text area height will be, if set. - */ - lines: number; - - /** - * Maximum length of text field input. - */ - maxLength: number; - - /** - * Maximum line count of text field input. - */ - maxLines: number; - - /** - * Sets the left and right padding of this TextArea. The text will always be vertically centered. - */ - padding: ViewPadding; - - /** - * Specifies the text to display on the keyboard `Return` key when this text area is focused. - */ - returnKeyType: number; - - /** - * Controls whether the scroll-to-top gesture is effective. - */ - scrollsToTop: boolean; - - /** - * Determinates if the undo and redo buttons on the left side of the keyboard should be displayed or not. Only valid on iOS9 and above. This property can only be set upon creation. - */ - showUndoRedoActions: boolean; - - /** - * Determines if the return key should be suppressed during text entry. - */ - suppressReturn: boolean; - - /** - * Text alignment within this text area. - * This has no effect on `hintText` when `hintType` is Ti.UI.HINT_TYPE_ANIMATED. - */ - textAlign: string | number; - - /** - * Value of this text area, which may be set programmatically and modified by the user. - */ - value: string; - - /** - * Determines whether this text area can be scrolled. - */ - scrollable: boolean; - - /** - * Returns the currently selected text of the text area. - */ - readonly selection: textAreaSelectedParams; - - /** - * Vertical alignment within this text area. - */ - verticalAlign: number | string; - - /** - * Forces this text area to lose focus. - */ - blur(): void; - - /** - * Forces this text area to gain focus. - */ - focus(): void; - - /** - * Returns `true` if this text area contains text. - */ - hasText(): boolean; - - /** - * Selects the text in range (start, end). - */ - setSelection(start: number, end: number): void; - - /** - * Gets the value of the property. - */ - getAppearance(): number; - - /** - * Sets the value of the property. - */ - setAppearance(appearance: number): void; - - /** - * Gets the value of the property. - */ - getKeyboardAppearance(): number; - - /** - * Sets the value of the property. - */ - setKeyboardAppearance(keyboardAppearance: number): void; - - /** - * Gets the value of the property. - */ - getAttributedHintText(): Titanium.UI.AttributedString; - - /** - * Sets the value of the property. - */ - setAttributedHintText(attributedHintText: Titanium.UI.AttributedString): void; - - /** - * Gets the value of the property. - */ - getAttributedString(): Titanium.UI.AttributedString; - - /** - * Sets the value of the property. - */ - setAttributedString(attributedString: Titanium.UI.AttributedString): void; - - /** - * Gets the value of the property. - */ - getAutocapitalization(): number; - - /** - * Sets the value of the property. - */ - setAutocapitalization(autocapitalization: number): void; - - /** - * Gets the value of the property. - */ - getAutocorrect(): boolean; - - /** - * Sets the value of the property. - */ - setAutocorrect(autocorrect: boolean): void; - - /** - * Gets the value of the property. - */ - getAutofillType(): string; - - /** - * Sets the value of the property. - */ - setAutofillType(autofillType: string): void; - - /** - * Gets the value of the property. - */ - getAutoLink(): number; - - /** - * Sets the value of the property. - */ - setAutoLink(autoLink: number): void; - - /** - * Gets the value of the property. - */ - getClearOnEdit(): boolean; - - /** - * Sets the value of the property. - */ - setClearOnEdit(clearOnEdit: boolean): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getEditable(): boolean; - - /** - * Sets the value of the property. - */ - setEditable(editable: boolean): void; - - /** - * Gets the value of the property. - */ - getEllipsize(): boolean; - - /** - * Sets the value of the property. - */ - setEllipsize(ellipsize: boolean): void; - - /** - * Gets the value of the property. - */ - getEnableReturnKey(): boolean; - - /** - * Sets the value of the property. - */ - setEnableReturnKey(enableReturnKey: boolean): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getHintText(): string; - - /** - * Sets the value of the property. - */ - setHintText(hintText: string): void; - - /** - * Gets the value of the property. - */ - getHintTextColor(): string; - - /** - * Sets the value of the property. - */ - setHintTextColor(hintTextColor: string): void; - - /** - * Gets the value of the property. - */ - getHintType(): number; - - /** - * Sets the value of the property. - */ - setHintType(hintType: number): void; - - /** - * Gets the value of the property. - */ - getHandleLinks(): boolean; - - /** - * Sets the value of the property. - */ - setHandleLinks(handleLinks: boolean): void; - - /** - * Gets the value of the property. - */ - getKeyboardToolbar(): Titanium.UI.View[] | Titanium.UI.iOS.Toolbar; - - /** - * Sets the value of the property. - */ - setKeyboardToolbar(keyboardToolbar: any[]): void; - - /** - * Sets the value of the property. - */ - setKeyboardToolbar(keyboardToolbar: Titanium.UI.iOS.Toolbar): void; - - /** - * Gets the value of the property. - */ - getKeyboardToolbarColor(): string; - - /** - * Sets the value of the property. - */ - setKeyboardToolbarColor(keyboardToolbarColor: string): void; - - /** - * Gets the value of the property. - */ - getKeyboardToolbarHeight(): number; - - /** - * Sets the value of the property. - */ - setKeyboardToolbarHeight(keyboardToolbarHeight: number): void; - - /** - * Gets the value of the property. - */ - getKeyboardType(): number; - - /** - * Sets the value of the property. - */ - setKeyboardType(keyboardType: number): void; - - /** - * Gets the value of the property. - */ - getLines(): number; - - /** - * Sets the value of the property. - */ - setLines(lines: number): void; - - /** - * Gets the value of the property. - */ - getMaxLength(): number; - - /** - * Sets the value of the property. - */ - setMaxLength(maxLength: number): void; - - /** - * Gets the value of the property. - */ - getMaxLines(): number; - - /** - * Sets the value of the property. - */ - setMaxLines(maxLines: number): void; - - /** - * Gets the value of the property. - */ - getPadding(): ViewPadding; - - /** - * Sets the value of the property. - */ - setPadding(padding: ViewPadding): void; - - /** - * Gets the value of the property. - */ - getReturnKeyType(): number; - - /** - * Sets the value of the property. - */ - setReturnKeyType(returnKeyType: number): void; - - /** - * Gets the value of the property. - */ - getScrollsToTop(): boolean; - - /** - * Sets the value of the property. - */ - setScrollsToTop(scrollsToTop: boolean): void; - - /** - * Gets the value of the property. - */ - getShowUndoRedoActions(): boolean; - - /** - * Sets the value of the property. - */ - setShowUndoRedoActions(showUndoRedoActions: boolean): void; - - /** - * Gets the value of the property. - */ - getSuppressReturn(): boolean; - - /** - * Sets the value of the property. - */ - setSuppressReturn(suppressReturn: boolean): void; - - /** - * Gets the value of the property. - */ - getTextAlign(): string | number; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: string): void; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: number): void; - - /** - * Gets the value of the property. - */ - getValue(): string; - - /** - * Sets the value of the property. - */ - setValue(value: string): void; - - /** - * Gets the value of the property. - */ - getScrollable(): boolean; - - /** - * Sets the value of the property. - */ - setScrollable(scrollable: boolean): void; - - /** - * Gets the value of the property. - */ - getSelection(): textAreaSelectedParams; - - /** - * Gets the value of the property. - */ - getVerticalAlign(): number | string; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: number): void; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: string): void; - - } - /** - * A single line text field. - */ - interface TextField extends Titanium.UI.View { - /** - * Determines the appearance of the keyboard displayed when this field is focused. - */ - appearance: number; - - /** - * Determines the appearance of the keyboard displayed when this field is focused. - */ - keyboardAppearance: number; - - /** - * TextField attributed string. - */ - attributedString: Titanium.UI.AttributedString; - - /** - * Hint text attributed string. - */ - attributedHintText: Titanium.UI.AttributedString; - - /** - * Determines how text is capitalized during typing. - */ - autocapitalization: number; - - /** - * Determines whether to automatically correct text entered into this text field. - */ - autocorrect: boolean; - - /** - * Sets the autofill type for the text field. - */ - autofillType: string; - - /** - * Automatically convert text to clickable links. - */ - autoLink: number; - - /** - * Border style for the field. - */ - borderStyle: number; - - /** - * Determines when the clear button is displayed. - */ - clearButtonMode: number; - - /** - * Determines whether the value of this text field should be cleared when it is focused. - */ - clearOnEdit: boolean; - - /** - * Color of the text in this text field, as a color name or hex triplet. - */ - color: string; - - /** - * Determines whether this field can be edited. - */ - editable: boolean; - - /** - * Determines whether an ellipsis (`...`) should be used to indicate truncated text. - */ - ellipsize: boolean; - - /** - * Determines whether the return key is enabled automatically when there is text in this text - * field. - */ - enableReturnKey: boolean; - - /** - * Font to use for text. - */ - font: Font; - - /** - * Leave some space above the keyboard in landscape mode or not. - */ - fullscreen: boolean; - - /** - * Hint text to display when the field is empty. - */ - hintText: string; - - /** - * Hint text color to display when the field is empty. - */ - hintTextColor: string; - - /** - * Key identifying a string from the locale file to use for the - * [hintText](Titanium.UI.TextField.hintText) property. - */ - hinttextid: string; - - /** - * Hint type to display on the text field. - */ - hintType: number; - - /** - * Input type to accept in the text field. Also influences the Keyboard type to display. - */ - inputType: number[]; - - /** - * Array of toolbar button objects or a [toolbar](Titanium.UI.iOS.Toolbar) to be used when the - * keyboard is displayed. - */ - keyboardToolbar: Titanium.UI.View[] | Titanium.UI.iOS.Toolbar; - - /** - * Color of the keyboard toolbar if keyboardToolbar is an array, as a color name or hex triplet. - */ - keyboardToolbarColor: string; - - /** - * Height of the keyboard toolbar if keyboardToolbar is an array. - */ - keyboardToolbarHeight: number; - - /** - * Keyboard type to display when this text field is focused. - */ - keyboardType: number; - - /** - * Left button view to display in the `TextField`. - */ - leftButton: any; - - /** - * Determines when to display the left button view. - */ - leftButtonMode: number; - - /** - * Padding between the left button and the edge of the field. - */ - leftButtonPadding: number; - - /** - * Minimum size of the font when the font is sized based on the contents. Enables font - * scaling to fit. - */ - minimumFontSize: number; - - /** - * Sets the padding of this text field. - */ - padding: ViewPadding; - - /** - * Left padding of this text field. - */ - paddingLeft: number; - - /** - * Right padding of this text field. - */ - paddingRight: number; - - /** - * Obscure the input text from the user. - */ - passwordMask: boolean; - - /** - * Set password rules that should be used for this text field. - */ - passwordRules: string; - - /** - * Specifies the text to display on the keyboard `Return` key when this field is focused. - */ - returnKeyType: number; - - /** - * Right button view. - */ - rightButton: any; - - /** - * Determines when to display the right button view. - */ - rightButtonMode: number; - - /** - * Padding between the right button and the edge of the field. - */ - rightButtonPadding: number; - - /** - * Determines whether the return key should be suppressed during entry. - */ - suppressReturn: boolean; - - /** - * Returns the currently selected text of the text field. - */ - readonly selection: textFieldSelectedParams; - - /** - * Determinates if the undo and redo buttons on the left side of the keyboard should be displayed or not. Only valid on iOS9 and above. - */ - showUndoRedoActions: boolean; - - /** - * Text alignment within this text field. - * This has no effect on `hintText` when `hintType` is Ti.UI.HINT_TYPE_ANIMATED. - */ - textAlign: string | number; - - /** - * Value of this text field, which may be set programmatically and modified by the user. - */ - value: string; - - /** - * Vertical alignment within this text field. - */ - verticalAlign: number | string; - - /** - * Maximum length of text field input. - */ - maxLength: number; - - /** - * Forces the field to lose focus. - */ - blur(): void; - - /** - * Forces the field to gain focus. - */ - focus(): void; - - /** - * Returns `true` if this text field contains text. - */ - hasText(): boolean; - - /** - * Selects the text in range (start, end). - */ - setSelection(start: number, end: number): void; - - /** - * Gets the value of the property. - */ - getAppearance(): number; - - /** - * Sets the value of the property. - */ - setAppearance(appearance: number): void; - - /** - * Gets the value of the property. - */ - getKeyboardAppearance(): number; - - /** - * Sets the value of the property. - */ - setKeyboardAppearance(keyboardAppearance: number): void; - - /** - * Gets the value of the property. - */ - getAttributedString(): Titanium.UI.AttributedString; - - /** - * Sets the value of the property. - */ - setAttributedString(attributedString: Titanium.UI.AttributedString): void; - - /** - * Gets the value of the property. - */ - getAttributedHintText(): Titanium.UI.AttributedString; - - /** - * Sets the value of the property. - */ - setAttributedHintText(attributedHintText: Titanium.UI.AttributedString): void; - - /** - * Gets the value of the property. - */ - getAutocapitalization(): number; - - /** - * Sets the value of the property. - */ - setAutocapitalization(autocapitalization: number): void; - - /** - * Gets the value of the property. - */ - getAutocorrect(): boolean; - - /** - * Sets the value of the property. - */ - setAutocorrect(autocorrect: boolean): void; - - /** - * Gets the value of the property. - */ - getAutofillType(): string; - - /** - * Sets the value of the property. - */ - setAutofillType(autofillType: string): void; - - /** - * Gets the value of the property. - */ - getAutoLink(): number; - - /** - * Sets the value of the property. - */ - setAutoLink(autoLink: number): void; - - /** - * Gets the value of the property. - */ - getBorderStyle(): number; - - /** - * Sets the value of the property. - */ - setBorderStyle(borderStyle: number): void; - - /** - * Gets the value of the property. - */ - getClearButtonMode(): number; - - /** - * Sets the value of the property. - */ - setClearButtonMode(clearButtonMode: number): void; - - /** - * Gets the value of the property. - */ - getClearOnEdit(): boolean; - - /** - * Sets the value of the property. - */ - setClearOnEdit(clearOnEdit: boolean): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getEditable(): boolean; - - /** - * Sets the value of the property. - */ - setEditable(editable: boolean): void; - - /** - * Gets the value of the property. - */ - getEllipsize(): boolean; - - /** - * Sets the value of the property. - */ - setEllipsize(ellipsize: boolean): void; - - /** - * Gets the value of the property. - */ - getEnableReturnKey(): boolean; - - /** - * Sets the value of the property. - */ - setEnableReturnKey(enableReturnKey: boolean): void; - - /** - * Gets the value of the property. - */ - getFont(): Font; - - /** - * Sets the value of the property. - */ - setFont(font: Font): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getHintText(): string; - - /** - * Sets the value of the property. - */ - setHintText(hintText: string): void; - - /** - * Gets the value of the property. - */ - getHintTextColor(): string; - - /** - * Sets the value of the property. - */ - setHintTextColor(hintTextColor: string): void; - - /** - * Gets the value of the property. - */ - getHinttextid(): string; - - /** - * Sets the value of the property. - */ - setHinttextid(hinttextid: string): void; - - /** - * Gets the value of the property. - */ - getHintType(): number; - - /** - * Sets the value of the property. - */ - setHintType(hintType: number): void; - - /** - * Gets the value of the property. - */ - getInputType(): number[]; - - /** - * Sets the value of the property. - */ - setInputType(inputType: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getKeyboardToolbar(): Titanium.UI.View[] | Titanium.UI.iOS.Toolbar; - - /** - * Sets the value of the property. - */ - setKeyboardToolbar(keyboardToolbar: any[]): void; - - /** - * Sets the value of the property. - */ - setKeyboardToolbar(keyboardToolbar: Titanium.UI.iOS.Toolbar): void; - - /** - * Gets the value of the property. - */ - getKeyboardToolbarColor(): string; - - /** - * Sets the value of the property. - */ - setKeyboardToolbarColor(keyboardToolbarColor: string): void; - - /** - * Gets the value of the property. - */ - getKeyboardToolbarHeight(): number; - - /** - * Sets the value of the property. - */ - setKeyboardToolbarHeight(keyboardToolbarHeight: number): void; - - /** - * Gets the value of the property. - */ - getKeyboardType(): number; - - /** - * Sets the value of the property. - */ - setKeyboardType(keyboardType: number): void; - - /** - * Gets the value of the property. - */ - getLeftButton(): any; - - /** - * Sets the value of the property. - */ - setLeftButton(leftButton: any): void; - - /** - * Gets the value of the property. - */ - getLeftButtonMode(): number; - - /** - * Sets the value of the property. - */ - setLeftButtonMode(leftButtonMode: number): void; - - /** - * Gets the value of the property. - */ - getLeftButtonPadding(): number; - - /** - * Sets the value of the property. - */ - setLeftButtonPadding(leftButtonPadding: number): void; - - /** - * Gets the value of the property. - */ - getMinimumFontSize(): number; - - /** - * Sets the value of the property. - */ - setMinimumFontSize(minimumFontSize: number): void; - - /** - * Gets the value of the property. - */ - getPadding(): ViewPadding; - - /** - * Sets the value of the property. - */ - setPadding(padding: ViewPadding): void; - - /** - * Gets the value of the property. - */ - getPaddingLeft(): number; - - /** - * Sets the value of the property. - */ - setPaddingLeft(paddingLeft: number): void; - - /** - * Gets the value of the property. - */ - getPaddingRight(): number; - - /** - * Sets the value of the property. - */ - setPaddingRight(paddingRight: number): void; - - /** - * Gets the value of the property. - */ - getPasswordMask(): boolean; - - /** - * Sets the value of the property. - */ - setPasswordMask(passwordMask: boolean): void; - - /** - * Gets the value of the property. - */ - getPasswordRules(): string; - - /** - * Sets the value of the property. - */ - setPasswordRules(passwordRules: string): void; - - /** - * Gets the value of the property. - */ - getReturnKeyType(): number; - - /** - * Sets the value of the property. - */ - setReturnKeyType(returnKeyType: number): void; - - /** - * Gets the value of the property. - */ - getRightButton(): any; - - /** - * Sets the value of the property. - */ - setRightButton(rightButton: any): void; - - /** - * Gets the value of the property. - */ - getRightButtonMode(): number; - - /** - * Sets the value of the property. - */ - setRightButtonMode(rightButtonMode: number): void; - - /** - * Gets the value of the property. - */ - getRightButtonPadding(): number; - - /** - * Sets the value of the property. - */ - setRightButtonPadding(rightButtonPadding: number): void; - - /** - * Gets the value of the property. - */ - getSuppressReturn(): boolean; - - /** - * Sets the value of the property. - */ - setSuppressReturn(suppressReturn: boolean): void; - - /** - * Gets the value of the property. - */ - getSelection(): textFieldSelectedParams; - - /** - * Gets the value of the property. - */ - getShowUndoRedoActions(): boolean; - - /** - * Sets the value of the property. - */ - setShowUndoRedoActions(showUndoRedoActions: boolean): void; - - /** - * Gets the value of the property. - */ - getTextAlign(): string | number; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: string): void; - - /** - * Sets the value of the property. - */ - setTextAlign(textAlign: number): void; - - /** - * Gets the value of the property. - */ - getValue(): string; - - /** - * Sets the value of the property. - */ - setValue(value: string): void; - - /** - * Gets the value of the property. - */ - getVerticalAlign(): number | string; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: number): void; - - /** - * Sets the value of the property. - */ - setVerticalAlign(verticalAlign: string): void; - - /** - * Gets the value of the property. - */ - getMaxLength(): number; - - /** - * Sets the value of the property. - */ - setMaxLength(maxLength: number): void; - - } - /** - * A toolbar, which can contain buttons and certain other controls. - */ - interface Toolbar extends Titanium.UI.View { - /** - * Background color for the toolbar, as a color name or hex triplet. - */ - barColor: string; - - /** - * An array of buttons (or other widgets) contained in the toolbar. - */ - items: Titanium.UI.View[]; - - /** - * If `true`, the background of the toolbar extends upwards. - */ - extendBackground: boolean; - - /** - * If `true`, a translucent background color is used for the toolbar. - */ - translucent: boolean; - - /** - * Returns the margin after the toolbar's content when there are action buttons. - */ - contentInsetEndWithActions: number; - - /** - * Returns the margin at the toolbar's content start when there is a navigation button. - */ - contentInsetStartWithNavigation: number; - - /** - * Image to be used as a logo in the Toolbar. - */ - logo: string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Image to be used for a navigation icon. - */ - navigationIcon: string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Image to be used for the overflow menu. - */ - overflowIcon: string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Text of the subtitle. - */ - subtitle: string; - - /** - * Color for toolbar's subtitle - */ - subtitleTextColor: string; - - /** - * Text of the title. - */ - title: string; - - /** - * Color string with any Titanium supported format - */ - titleTextColor: string; - - /** - * Collapses expanded ActionViews if there is any - */ - collapseActionViews(): void; - - /** - * Collapses expandend ActionViews and hides overflow menu - */ - dismissPopupMenus(): void; - - /** - * Returns the margin at the toolbar's content end. - */ - getContentInsetEnd(): number; - - /** - * Returns the margin on the left of the toolbar's content. - */ - getContentInsetLeft(): number; - - /** - * Returns the margin on the right of the toolbar's content. - */ - getContentInsetRight(): number; - - /** - * Returns the margin at the toolbar's content start. - */ - getContentInsetStart(): number; - - /** - * Returns the margin at the toolbar's content end that will be used with the current configuration of the toolbar. - */ - getCurrentContentInsetEnd(): number; - - /** - * Returns the margin on the left of the toolbar's content that will be used with the current configuration of the toolbar. - */ - getCurrentContentInsetLeft(): number; - - /** - * Returns the margin on the right of the toolbar's content that will be used with the current configuration of the toolbar. - */ - getCurrentContentInsetRight(): number; - - /** - * Returns the margin at the toolbar's content start that will be used with the current configuration of the toolbar. - */ - getCurrentContentInsetStart(): number; - - /** - * Checks if the toolbar is currently hosting an expanded action view. - */ - hasExpandedActionView(): boolean; - - /** - * Hides the overflow menu if there is one. - */ - hideOverflowMenu(): void; - - /** - * Checks if the toolbar is currently hosting an expanded action view. - */ - isOverflowMenuShowing(): boolean; - - /** - * Sets the content margins of the toolbar - */ - setContentInsetsAbsolute(insetLeft: number, insetRight: number): void; - - /** - * Sets the content margins relative to the layout direction - */ - setContentInsetsRelative(insetStart: number, insetEnd: number): void; - - /** - * Shows the overflow menu if there is one - */ - showOverflowMenu(): void; - - /** - * Gets the value of the property. - */ - getBarColor(): string; - - /** - * Sets the value of the property. - */ - setBarColor(barColor: string): void; - - /** - * Gets the value of the property. - */ - getItems(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setItems(items: any[]): void; - - /** - * Gets the value of the property. - */ - getTranslucent(): boolean; - - /** - * Sets the value of the property. - */ - setTranslucent(translucent: boolean): void; - - /** - * Gets the value of the property. - */ - getContentInsetEndWithActions(): number; - - /** - * Sets the value of the property. - */ - setContentInsetEndWithActions(contentInsetEndWithActions: number): void; - - /** - * Gets the value of the property. - */ - getContentInsetStartWithNavigation(): number; - - /** - * Sets the value of the property. - */ - setContentInsetStartWithNavigation(contentInsetStartWithNavigation: number): void; - - /** - * Gets the value of the property. - */ - getLogo(): string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Sets the value of the property. - */ - setLogo(logo: string): void; - - /** - * Sets the value of the property. - */ - setLogo(logo: Titanium.Blob): void; - - /** - * Sets the value of the property. - */ - setLogo(logo: Titanium.Filesystem.File): void; - - /** - * Gets the value of the property. - */ - getNavigationIcon(): string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Sets the value of the property. - */ - setNavigationIcon(navigationIcon: string): void; - - /** - * Sets the value of the property. - */ - setNavigationIcon(navigationIcon: Titanium.Blob): void; - - /** - * Sets the value of the property. - */ - setNavigationIcon(navigationIcon: Titanium.Filesystem.File): void; - - /** - * Gets the value of the property. - */ - getOverflowIcon(): string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Sets the value of the property. - */ - setOverflowIcon(overflowIcon: string): void; - - /** - * Sets the value of the property. - */ - setOverflowIcon(overflowIcon: Titanium.Blob): void; - - /** - * Sets the value of the property. - */ - setOverflowIcon(overflowIcon: Titanium.Filesystem.File): void; - - /** - * Gets the value of the property. - */ - getSubtitle(): string; - - /** - * Sets the value of the property. - */ - setSubtitle(subtitle: string): void; - - /** - * Gets the value of the property. - */ - getSubtitleTextColor(): string; - - /** - * Sets the value of the property. - */ - setSubtitleTextColor(subtitleTextColor: string): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleTextColor(): string; - - /** - * Sets the value of the property. - */ - setTitleTextColor(titleTextColor: string): void; - - } - /** - * The web view allows you to open an HTML5 based view which can load either local or remote content. - */ - interface WebView extends Titanium.UI.View { - /** - * A Boolean value that determines whether pressing on a link displays a preview of the - * destination for the link. - */ - allowsLinkPreview: boolean; - - /** - * An array of url strings to blacklist. - */ - blacklistedURLs: string[]; - - /** - * Web content to load. - */ - data: Titanium.Blob | Titanium.Filesystem.File; - - /** - * Determines whether the view will bounce when scrolling to the edge of the scrollable region. - */ - disableBounce: boolean; - - /** - * Determines whether or not the webview should not be able to display the context menu. - */ - disableContextMenu: boolean; - - /** - * Enable adding javascript interfaces internally to webview prior to JELLY_BEAN_MR1 (Android 4.2) - */ - enableJavascriptInterface: boolean; - - /** - * Lets the webview handle platform supported urls - */ - handlePlatformUrl: boolean; - - /** - * The configuration for the new web view. - */ - configuration: Titanium.UI.iOS.WebViewConfiguration; - - /** - * List of allowed URL schemes for the web view. - */ - allowedURLSchemes: string[]; - - /** - * Hides activity indicator when loading remote URL. - */ - hideLoadIndicator: boolean; - - /** - * HTML content of this web view. - */ - html: string; - - /** - * A Boolean value indicating whether web content can programmatically display the keyboard. - */ - keyboardDisplayRequiresUserAction: boolean; - - /** - * Controls whether to ignore invalid SSL certificates or not. - */ - ignoreSslError: boolean; - - /** - * Indicates if the webview is loading content. - */ - loading: boolean; - - /** - * Callback function called when there is a request for the application to create a new window - * to host new content. - */ - onCreateWindow: (param0: any) => any; - - /** - * Fired before navigating to a link. - */ - onlink: (param0: OnLinkURLResponse) => any; - - /** - * Determines the behavior when the user overscrolls the view. - */ - overScrollMode: number; - - /** - * Determines how a cache is used in this web view. - */ - cacheMode: number; - - /** - * Determines how to treat content that requires plugins in this web view. - */ - pluginState: number; - - /** - * Controls whether the scroll-to-top gesture is effective. - */ - scrollsToTop: boolean; - - /** - * If `true`, zoom controls are enabled. - */ - enableZoomControls: boolean; - - /** - * If `true`, allows the loading of insecure resources from a secure origin. - */ - mixedContentMode: boolean; - - /** - * If `true`, scale contents to fit the web view. - */ - scalesPageToFit: boolean; - - /** - * URL to the web document. - */ - url: string; - - /** - * The User-Agent header used by the web view when requesting content. - */ - userAgent: string; - - /** - * Explicitly specifies if this web view handles touches. - */ - willHandleTouches: boolean; - - /** - * Enables using light touches to make a selection and activate mouseovers. - */ - lightTouchEnabled: boolean; - - /** - * Sets extra request headers for this web view to use on subsequent URL requests. - */ - requestHeaders: any; - - /** - * Manage the zoom-level of the current page. - */ - zoomLevel: number; - - /** - * A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations. - */ - allowsBackForwardNavigationGestures: boolean; - - /** - * Returns page title of webpage. - */ - readonly title: string; - - /** - * An estimate of what fraction of the current navigation has been loaded. - */ - readonly progress: number; - - /** - * The cache policy for the request. - */ - cachePolicy: number; - - /** - * The timeout interval for the request, in seconds. - */ - timeout: number; - - /** - * The level of granularity with which the user can interactively select content in the web view. - */ - readonly selectionGranularity: number; - - /** - * A Boolean value indicating whether all resources on the page have been loaded through - * securely encrypted connections. - */ - readonly secure: boolean; - - /** - * Sets the value of [html](Titanium.UI.WebView.html) property. - */ - setHtml(html: any, options?: any): void; - - /** - * Returns `true` if the web view can go back in its history list. - */ - canGoBack(): boolean; - - /** - * Returns `true` if the web view can go forward in its history list. - */ - canGoForward(): boolean; - - /** - * Evaluates a JavaScript expression inside the context of the web view and - * optionally, returns a result. If a callback function is passed in as second argument, - * the evaluation will take place asynchronously and the the callback function will be called with the result. - */ - evalJS(code: string, callback?: (param0: string) => any): string; - - /** - * Goes back one entry in the web view's history list, to the previous page. - */ - goBack(): void; - - /** - * Goes forward one entry in this web view's history list, if possible. - */ - goForward(): void; - - /** - * Pauses native webview plugins. - */ - pause(): void; - - /** - * Reloads the current webpage. - */ - reload(): void; - - /** - * Forces the web view to repaint its contents. - */ - repaint(): void; - - /** - * Releases memory when the web view is no longer needed. - */ - release(): void; - - /** - * Resume native webview plugins. - */ - resume(): void; - - /** - * Sets the basic authentication for this web view to use on subsequent URL requests. - */ - setBasicAuthentication(username: string, password: string, persistence: number): void; - - /** - * Stops loading a currently loading page. - */ - stopLoading(): void; - - /** - * Add native properties for observing for change. - */ - startListeningToProperties(propertyList: ReadonlyArray): void; - - /** - * Remove native properties from observing. - */ - stopListeningToProperties(propertyList: ReadonlyArray): void; - - /** - * Takes a snapshot of the view's visible viewport. - */ - takeSnapshot(callback: (param0: SnapshotResult) => any): void; - - /** - * Adds a user script. - */ - addUserScript(source: string, injectionTime: number, mainFrameOnly: boolean): void; - - /** - * Removes all associated user scripts. - */ - removeAllUserScripts(): void; - - /** - * Adds a script message handler. - */ - addScriptMessageHandler(handlerName: string): void; - - /** - * Removes a script message handler. - */ - removeScriptMessageHandler(name: string): void; - - /** - * An object which maintains a list of visited pages used to go back and forward to the most recent page. - */ - backForwardList(): BackForwardList; - - /** - * Gets the value of the property. - */ - getAllowsLinkPreview(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsLinkPreview(allowsLinkPreview: boolean): void; - - /** - * Gets the value of the property. - */ - getBlacklistedURLs(): string[]; - - /** - * Sets the value of the property. - */ - setBlacklistedURLs(blacklistedURLs: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getData(): Titanium.Blob | Titanium.Filesystem.File; - - /** - * Sets the value of the property. - */ - setData(data: Titanium.Blob): void; - - /** - * Sets the value of the property. - */ - setData(data: Titanium.Filesystem.File): void; - - /** - * Gets the value of the property. - */ - getDisableBounce(): boolean; - - /** - * Sets the value of the property. - */ - setDisableBounce(disableBounce: boolean): void; - - /** - * Gets the value of the property. - */ - getDisableContextMenu(): boolean; - - /** - * Sets the value of the property. - */ - setDisableContextMenu(disableContextMenu: boolean): void; - - /** - * Gets the value of the property. - */ - getEnableJavascriptInterface(): boolean; - - /** - * Sets the value of the property. - */ - setEnableJavascriptInterface(enableJavascriptInterface: boolean): void; - - /** - * Gets the value of the property. - */ - getHandlePlatformUrl(): boolean; - - /** - * Sets the value of the property. - */ - setHandlePlatformUrl(handlePlatformUrl: boolean): void; - - /** - * Gets the value of the property. - */ - getConfiguration(): Titanium.UI.iOS.WebViewConfiguration; - - /** - * Sets the value of the property. - */ - setConfiguration(configuration: Titanium.UI.iOS.WebViewConfiguration): void; - - /** - * Gets the value of the property. - */ - getAllowedURLSchemes(): string[]; - - /** - * Sets the value of the property. - */ - setAllowedURLSchemes(allowedURLSchemes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getHideLoadIndicator(): boolean; - - /** - * Sets the value of the property. - */ - setHideLoadIndicator(hideLoadIndicator: boolean): void; - - /** - * Gets the value of the property. - */ - getHtml(): string; - - /** - * Gets the value of the property. - */ - getKeyboardDisplayRequiresUserAction(): boolean; - - /** - * Sets the value of the property. - */ - setKeyboardDisplayRequiresUserAction(keyboardDisplayRequiresUserAction: boolean): void; - - /** - * Gets the value of the property. - */ - getIgnoreSslError(): boolean; - - /** - * Sets the value of the property. - */ - setIgnoreSslError(ignoreSslError: boolean): void; - - /** - * Gets the value of the property. - */ - getLoading(): boolean; - - /** - * Sets the value of the property. - */ - setLoading(loading: boolean): void; - - /** - * Gets the value of the property. - */ - getOnCreateWindow(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnCreateWindow(onCreateWindow: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnlink(): (param0: OnLinkURLResponse) => any; - - /** - * Sets the value of the property. - */ - setOnlink(onlink: (param0: OnLinkURLResponse) => any): void; - - /** - * Gets the value of the property. - */ - getOverScrollMode(): number; - - /** - * Sets the value of the property. - */ - setOverScrollMode(overScrollMode: number): void; - - /** - * Gets the value of the property. - */ - getCacheMode(): number; - - /** - * Sets the value of the property. - */ - setCacheMode(cacheMode: number): void; - - /** - * Gets the value of the property. - */ - getPluginState(): number; - - /** - * Sets the value of the property. - */ - setPluginState(pluginState: number): void; - - /** - * Gets the value of the property. - */ - getScrollsToTop(): boolean; - - /** - * Sets the value of the property. - */ - setScrollsToTop(scrollsToTop: boolean): void; - - /** - * Gets the value of the property. - */ - getEnableZoomControls(): boolean; - - /** - * Sets the value of the property. - */ - setEnableZoomControls(enableZoomControls: boolean): void; - - /** - * Gets the value of the property. - */ - getMixedContentMode(): boolean; - - /** - * Sets the value of the property. - */ - setMixedContentMode(mixedContentMode: boolean): void; - - /** - * Gets the value of the property. - */ - getScalesPageToFit(): boolean; - - /** - * Sets the value of the property. - */ - setScalesPageToFit(scalesPageToFit: boolean): void; - - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - /** - * Gets the value of the property. - */ - getUserAgent(): string; - - /** - * Sets the value of the property. - */ - setUserAgent(userAgent: string): void; - - /** - * Gets the value of the property. - */ - getWillHandleTouches(): boolean; - - /** - * Sets the value of the property. - */ - setWillHandleTouches(willHandleTouches: boolean): void; - - /** - * Gets the value of the property. - */ - getLightTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setLightTouchEnabled(lightTouchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getRequestHeaders(): any; - - /** - * Sets the value of the property. - */ - setRequestHeaders(requestHeaders: any): void; - - /** - * Gets the value of the property. - */ - getZoomLevel(): number; - - /** - * Sets the value of the property. - */ - setZoomLevel(zoomLevel: number): void; - - /** - * Gets the value of the property. - */ - getAllowsBackForwardNavigationGestures(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsBackForwardNavigationGestures(allowsBackForwardNavigationGestures: boolean): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Gets the value of the property. - */ - getProgress(): number; - - /** - * Gets the value of the property. - */ - getCachePolicy(): number; - - /** - * Sets the value of the property. - */ - setCachePolicy(cachePolicy: number): void; - - /** - * Gets the value of the property. - */ - getTimeout(): number; - - /** - * Sets the value of the property. - */ - setTimeout(timeout: number): void; - - /** - * Gets the value of the property. - */ - getSelectionGranularity(): number; - - /** - * Gets the value of the property. - */ - getSecure(): boolean; - - } - /** - * The Window is an empty drawing surface or container. - */ - interface Window extends Titanium.UI.View { - /** - * For lightweight windows, this property returns undefined. - * For heavyweight windows, this property contains a reference to the - * Android Activity object associated with this window. - */ - readonly activity: Titanium.Android.Activity; - - /** - * Title for the back button. This is only valid when the window is a child of a tab. - */ - backButtonTitle: string; - - /** - * The image to show as the back button. This is only valid when the window is a child of a tab. - */ - backButtonTitleImage: string | Titanium.Blob; - - /** - * Background color for the nav bar, as a color name or hex triplet. - */ - barColor: string; - - /** - * Background image for the nav bar, specified as a URL to a local image. - */ - barImage: string; - - /** - * Boolean value indicating if the application should exit when the Android - * Back button is pressed while the window is being shown or when the window - * is closed programmatically. - */ - exitOnClose: boolean; - - /** - * An array of supported values specified using the EXTEND_EDGE constants in . - */ - extendEdges: number[]; - - /** - * Treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays. - */ - flagSecure: boolean; - - /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). - */ - includeOpaqueBars: boolean; - - /** - * Specifies whether or not the view controller should automatically adjust its scroll view insets. - */ - autoAdjustScrollViewInsets: boolean; - - /** - * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. - */ - extendSafeArea: boolean; - - /** - * Boolean value indicating if the window is fullscreen. - */ - fullscreen: boolean; - - /** - * Boolean value indicating whether the system is allowed to hide the visual indicator for returning to the Home screen. - */ - homeIndicatorAutoHidden: boolean; - - /** - * Set this to true to hide the shadow image of the navigation bar. - */ - hideShadow: boolean; - - /** - * Set this to true to hide the navigation bar on swipe. - */ - hidesBarsOnSwipe: boolean; - - /** - * Set this to true to hide the navigation bar on tap. - */ - hidesBarsOnTap: boolean; - - /** - * Set this to true to hide the navigation bar when the keyboard appears. - */ - hidesBarsWhenKeyboardAppears: boolean; - - /** - * Set this to true to hide the back button of navigation bar. - */ - hidesBackButton: boolean; - - /** - * A Boolean value indicating whether the title should be displayed in a large format. - */ - largeTitleEnabled: string; - - /** - * The mode to use when displaying the title of the navigation bar. - */ - largeTitleDisplayMode: number; - - /** - * View to show in the left nav bar area. - */ - leftNavButton: Titanium.UI.View; - - /** - * An Array of views to show in the left nav bar area. - */ - leftNavButtons: Titanium.UI.View[]; - - /** - * Indicates to open a modal window or not. - */ - modal: boolean; - - /** - * Hides the navigation bar (`true`) or shows the navigation bar (`false`). - */ - navBarHidden: boolean; - - /** - * The tintColor to apply to the navigation bar. - */ - navTintColor: string; - - /** - * The instance hosting this window. - */ - readonly navigationWindow: Titanium.UI.NavigationWindow; - - /** - * Callback function that overrides the default behavior when the user presses the **Back** - * button. - */ - onBack: (param0: any) => any; - - /** - * Array of supported orientation modes, specified using the orientation - * constants defined in . - */ - orientationModes: number[]; - - /** - * Current orientation of the window. - */ - readonly orientation: number; - - /** - * View to show in the right nav bar area. - */ - rightNavButton: Titanium.UI.View; - - /** - * An Array of views to show in the right nav bar area. - */ - rightNavButtons: Titanium.UI.View[]; - - /** - * The padding needed to safely display content without it being overlapped by the screen insets and notches. - */ - readonly safeAreaPadding: Dimension; - - /** - * Shadow image for the navigation bar, specified as a URL to a local image.. - */ - shadowImage: string; - - /** - * Boolean value to enable split action bar. - */ - splitActionBar: boolean; - - /** - * The status bar style associated with this window. - */ - statusBarStyle: number; - - /** - * Maintain a sustainable level of performance. - */ - sustainedPerformanceMode: boolean; - - /** - * Boolean value indicating if the user should be able to close a window using a swipe gesture. - */ - swipeToClose: boolean; - - /** - * Boolean value indicating if the tab bar should be hidden. - */ - tabBarHidden: boolean; - - /** - * Name of the theme to apply to the window. - */ - theme: string; - - /** - * Title of the window. - */ - title: string; - - /** - * Title text attributes of the window. - */ - titleAttributes: titleAttributesParams; - - /** - * View to show in the title area of the nav bar. - */ - titleControl: Titanium.UI.View; - - /** - * Image to show in the title area of the nav bar, specified as a local file path or URL. - */ - titleImage: string; - - /** - * Title prompt for the window. - */ - titlePrompt: string; - - /** - * Key identifying a string from the locale file to use for the window title. - */ - titleid: string; - - /** - * Key identifying a string from the locale file to use for the window title prompt. - */ - titlepromptid: string; - - /** - * Array of button objects to show in the window's toolbar. - */ - toolbar: any[]; - - /** - * Use a transition animation when opening or closing windows in a - * or . - */ - transitionAnimation: Titanium.Proxy; - - /** - * Boolean value indicating if the nav bar is translucent. - */ - translucent: boolean; - - /** - * Loads a JavaScript file from a local URL. - */ - url: string; - - /** - * Additional flags to set on the Activity Window. - */ - windowFlags: number; - - /** - * Determines whether a heavyweight window's soft input area (ie software keyboard) is visible - * as it receives focus and how the window behaves in order to accomodate it while keeping its - * contents in view. - */ - windowSoftInputMode: number; - - /** - * Set the pixel format for the Activity's Window. - */ - windowPixelFormat: number; - - /** - * The type of transition used when activity is exiting. - */ - activityExitTransition: number; - - /** - * The type of transition used when activity is entering. - */ - activityEnterTransition: number; - - /** - * The type of transition used when returning from a previously started activity. - */ - activityReturnTransition: number; - - /** - * The type of transition used when reentering to a previously started activity. - */ - activityReenterTransition: number; - - /** - * The type of exit transition used when animating shared elements between two activities. - */ - activitySharedElementExitTransition: number; - - /** - * The type of enter transition used when animating shared elements between two activities. - */ - activitySharedElementEnterTransition: number; - - /** - * The type of return transition used when animating shared elements between two activities. - */ - activitySharedElementReturnTransition: number; - - /** - * The type of reenter transition used when animating shared elements between two activities. - */ - activitySharedElementReenterTransition: number; - - /** - * Adds a common UI element to participate in window transition animation. - */ - addSharedElement(view: any, transitionName: string): void; - - /** - * Closes the window. - */ - close(params?: any): void; - - /** - * Hides the navigation bar. - */ - hideNavBar(options?: any): void; - - /** - * Hides the tab bar. Must be called before opening the window. - */ - hideTabBar(): void; - - /** - * Opens the window. - */ - open(params?: openWindowParams): void; - - /** - * Clears all added shared elements. - */ - removeAllSharedElements(): void; - - /** - * Sets the array of items to show in the window's toolbar. - */ - setToolbar(items: ReadonlyArray, params?: windowToolbarParam): void; - - /** - * Makes the navigation bar visible. - */ - showNavBar(options?: any): void; - - /** - * Makes the bottom toolbar visible. - */ - showToolbar(options?: any): void; - - /** - * Makes the bottom toolbar invisible. - */ - hideToolbar(options?: any): void; - - /** - * Gets the value of the property. - */ - getActivity(): Titanium.Android.Activity; - - /** - * Gets the value of the property. - */ - getBackButtonTitle(): string; - - /** - * Sets the value of the property. - */ - setBackButtonTitle(backButtonTitle: string): void; - - /** - * Gets the value of the property. - */ - getBackButtonTitleImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setBackButtonTitleImage(backButtonTitleImage: string): void; - - /** - * Sets the value of the property. - */ - setBackButtonTitleImage(backButtonTitleImage: Titanium.Blob): void; - - /** - * Gets the value of the property. - */ - getBarColor(): string; - - /** - * Sets the value of the property. - */ - setBarColor(barColor: string): void; - - /** - * Gets the value of the property. - */ - getBarImage(): string; - - /** - * Sets the value of the property. - */ - setBarImage(barImage: string): void; - - /** - * Gets the value of the property. - */ - getExitOnClose(): boolean; - - /** - * Sets the value of the property. - */ - setExitOnClose(exitOnClose: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendEdges(): number[]; - - /** - * Sets the value of the property. - */ - setExtendEdges(extendEdges: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getFlagSecure(): boolean; - - /** - * Sets the value of the property. - */ - setFlagSecure(flagSecure: boolean): void; - - /** - * Gets the value of the property. - */ - getIncludeOpaqueBars(): boolean; - - /** - * Sets the value of the property. - */ - setIncludeOpaqueBars(includeOpaqueBars: boolean): void; - - /** - * Gets the value of the property. - */ - getAutoAdjustScrollViewInsets(): boolean; - - /** - * Sets the value of the property. - */ - setAutoAdjustScrollViewInsets(autoAdjustScrollViewInsets: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendSafeArea(): boolean; - - /** - * Sets the value of the property. - */ - setExtendSafeArea(extendSafeArea: boolean): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getHomeIndicatorAutoHidden(): boolean; - - /** - * Sets the value of the property. - */ - setHomeIndicatorAutoHidden(homeIndicatorAutoHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getHideShadow(): boolean; - - /** - * Sets the value of the property. - */ - setHideShadow(hideShadow: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnSwipe(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnSwipe(hidesBarsOnSwipe: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnTap(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnTap(hidesBarsOnTap: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsWhenKeyboardAppears(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsWhenKeyboardAppears(hidesBarsWhenKeyboardAppears: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBackButton(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBackButton(hidesBackButton: boolean): void; - - /** - * Gets the value of the property. - */ - getLargeTitleEnabled(): string; - - /** - * Sets the value of the property. - */ - setLargeTitleEnabled(largeTitleEnabled: string): void; - - /** - * Gets the value of the property. - */ - getLargeTitleDisplayMode(): number; - - /** - * Sets the value of the property. - */ - setLargeTitleDisplayMode(largeTitleDisplayMode: number): void; - - /** - * Gets the value of the property. - */ - getLeftNavButton(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setLeftNavButton(leftNavButton: any): void; - - /** - * Gets the value of the property. - */ - getLeftNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setLeftNavButtons(leftNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getModal(): boolean; - - /** - * Sets the value of the property. - */ - setModal(modal: boolean): void; - - /** - * Gets the value of the property. - */ - getNavBarHidden(): boolean; - - /** - * Sets the value of the property. - */ - setNavBarHidden(navBarHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getNavTintColor(): string; - - /** - * Sets the value of the property. - */ - setNavTintColor(navTintColor: string): void; - - /** - * Gets the value of the property. - */ - getNavigationWindow(): Titanium.UI.NavigationWindow; - - /** - * Gets the value of the property. - */ - getOnBack(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnBack(onBack: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOrientationModes(): number[]; - - /** - * Sets the value of the property. - */ - setOrientationModes(orientationModes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOrientation(): number; - - /** - * Gets the value of the property. - */ - getRightNavButton(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setRightNavButton(rightNavButton: any): void; - - /** - * Gets the value of the property. - */ - getRightNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setRightNavButtons(rightNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getSafeAreaPadding(): Dimension; - - /** - * Gets the value of the property. - */ - getShadowImage(): string; - - /** - * Sets the value of the property. - */ - setShadowImage(shadowImage: string): void; - - /** - * Gets the value of the property. - */ - getSplitActionBar(): boolean; - - /** - * Sets the value of the property. - */ - setSplitActionBar(splitActionBar: boolean): void; - - /** - * Gets the value of the property. - */ - getStatusBarStyle(): number; - - /** - * Sets the value of the property. - */ - setStatusBarStyle(statusBarStyle: number): void; - - /** - * Gets the value of the property. - */ - getSustainedPerformanceMode(): boolean; - - /** - * Sets the value of the property. - */ - setSustainedPerformanceMode(sustainedPerformanceMode: boolean): void; - - /** - * Gets the value of the property. - */ - getSwipeToClose(): boolean; - - /** - * Sets the value of the property. - */ - setSwipeToClose(swipeToClose: boolean): void; - - /** - * Gets the value of the property. - */ - getTabBarHidden(): boolean; - - /** - * Sets the value of the property. - */ - setTabBarHidden(tabBarHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getTheme(): string; - - /** - * Sets the value of the property. - */ - setTheme(theme: string): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleAttributes(): titleAttributesParams; - - /** - * Sets the value of the property. - */ - setTitleAttributes(titleAttributes: titleAttributesParams): void; - - /** - * Gets the value of the property. - */ - getTitleControl(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setTitleControl(titleControl: any): void; - - /** - * Gets the value of the property. - */ - getTitleImage(): string; - - /** - * Sets the value of the property. - */ - setTitleImage(titleImage: string): void; - - /** - * Gets the value of the property. - */ - getTitlePrompt(): string; - - /** - * Sets the value of the property. - */ - setTitlePrompt(titlePrompt: string): void; - - /** - * Gets the value of the property. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - /** - * Gets the value of the property. - */ - getTitlepromptid(): string; - - /** - * Sets the value of the property. - */ - setTitlepromptid(titlepromptid: string): void; - - /** - * Gets the value of the property. - */ - getToolbar(): any[]; - - /** - * Gets the value of the property. - */ - getTransitionAnimation(): Titanium.Proxy; - - /** - * Sets the value of the property. - */ - setTransitionAnimation(transitionAnimation: Titanium.Proxy): void; - - /** - * Gets the value of the property. - */ - getTranslucent(): boolean; - - /** - * Sets the value of the property. - */ - setTranslucent(translucent: boolean): void; - - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - /** - * Gets the value of the property. - */ - getWindowFlags(): number; - - /** - * Sets the value of the property. - */ - setWindowFlags(windowFlags: number): void; - - /** - * Gets the value of the property. - */ - getWindowSoftInputMode(): number; - - /** - * Sets the value of the property. - */ - setWindowSoftInputMode(windowSoftInputMode: number): void; - - /** - * Gets the value of the property. - */ - getWindowPixelFormat(): number; - - /** - * Sets the value of the property. - */ - setWindowPixelFormat(windowPixelFormat: number): void; - - /** - * Gets the value of the property. - */ - getActivityExitTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityExitTransition(activityExitTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityEnterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityEnterTransition(activityEnterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityReturnTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityReturnTransition(activityReturnTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivityReenterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivityReenterTransition(activityReenterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementExitTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementExitTransition(activitySharedElementExitTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementEnterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementEnterTransition(activitySharedElementEnterTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementReturnTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementReturnTransition(activitySharedElementReturnTransition: number): void; - - /** - * Gets the value of the property. - */ - getActivitySharedElementReenterTransition(): number; - - /** - * Sets the value of the property. - */ - setActivitySharedElementReenterTransition(activitySharedElementReenterTransition: number): void; - - } - - /** - * A set of constants for the styles available for objects. - */ - namespace ActivityIndicatorStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Large white spinning indicator. - */ - const BIG: number; - - /** - * Small gray spinning indicator. - */ - const DARK: number; - - /** - * Large gray spinning indicator. - */ - const BIG_DARK: number; - - /** - * Small white spinning indicator (default). - */ - const PLAIN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event?: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - - /** - * The Android-specific UI capabilities. All properties, methods and events in this namespace will - * only work on Android systems. - */ - namespace Android { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Window flag which makes the Android system's navigation bar semi-transparent. - */ - const FLAG_TRANSLUCENT_NAVIGATION: number; - - /** - * Window flag which makes the Android system's top status bar semi-transparent. - */ - const FLAG_TRANSLUCENT_STATUS: number; - - /** - * Raw bit controlling whether the right/bottom edge is clipped to its container, based on the gravity direction being applied. - */ - const GRAVITY_AXIS_CLIP: number; - - /** - * Raw bit controlling how the right/bottom edge is placed. - */ - const GRAVITY_AXIS_PULL_AFTER: number; - - /** - * Raw bit controlling how the left/top edge is placed. - */ - const GRAVITY_AXIS_PULL_BEFORE: number; - - /** - * Raw bit indicating the gravity for an axis has been specified. - */ - const GRAVITY_AXIS_SPECIFIED: number; - - /** - * Bits defining the horizontal axis. - */ - const GRAVITY_AXIS_X_SHIFT: number; - - /** - * Bits defining the vertical axis. - */ - const GRAVITY_AXIS_Y_SHIFT: number; - - /** - * Push object to the bottom of its container, not changing its size. - */ - const GRAVITY_BOTTOM: number; - - /** - * Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. - */ - const GRAVITY_CENTER: number; - - /** - * Place object in the horizontal center of its container, not changing its size. - */ - const GRAVITY_CENTER_HORIZONTAL: number; - - /** - * Place object in the vertical center of its container, not changing its size. - */ - const GRAVITY_CENTER_VERTICAL: number; - - /** - * Flag to clip the edges of the object to its container along the horizontal axis. - */ - const GRAVITY_CLIP_HORIZONTAL: number; - - /** - * Flag to clip the edges of the object to its container along the vertical axis. - */ - const GRAVITY_CLIP_VERTICAL: number; - - /** - * Special constant to enable clipping to an overall display along the horizontal dimension. - */ - const GRAVITY_DISPLAY_CLIP_HORIZONTAL: number; - - /** - * Special constant to enable clipping to an overall display along the vertical dimension. - */ - const GRAVITY_DISPLAY_CLIP_VERTICAL: number; - - /** - * Push object to x-axis position at the end of its container, not changing its size. - */ - const GRAVITY_END: number; - - /** - * Grow the horizontal and vertical size of the object if needed so it completely fills its container. - */ - const GRAVITY_FILL: number; - - /** - * Grow the horizontal size of the object if needed so it completely fills its container. - */ - const GRAVITY_FILL_HORIZONTAL: number; - - /** - * Grow the vertical size of the object if needed so it completely fills its container. - */ - const GRAVITY_FILL_VERTICAL: number; - - /** - * Binary mask to get the absolute horizontal gravity of a gravity. - */ - const GRAVITY_HORIZONTAL_GRAVITY_MASK: number; - - /** - * Push object to the left of its container, not changing its size. - */ - const GRAVITY_LEFT: number; - - /** - * Constant indicating that no gravity has been set - */ - const GRAVITY_NO_GRAVITY: number; - - /** - * Binary mask for the horizontal gravity and script specific direction bit. - */ - const GRAVITY_RELATIVE_HORIZONTAL_GRAVITY_MASK: number; - - /** - * Raw bit controlling whether the layout direction is relative or not (GRAVITY_START/GRAVITY_END instead of absolute GRAVITY_LEFT/GRAVITY_RIGHT). - */ - const GRAVITY_RELATIVE_LAYOUT_DIRECTION: number; - - /** - * Push object to the right of its container, not changing its size. - */ - const GRAVITY_RIGHT: number; - - /** - * Push object to x-axis position at the start of its container, not changing its size. - */ - const GRAVITY_START: number; - - /** - * Push object to the top of its container, not changing its size. - */ - const GRAVITY_TOP: number; - - /** - * Binary mask to get the vertical gravity of a gravity. - */ - const GRAVITY_VERTICAL_GRAVITY_MASK: number; - - /** - * Converts all detectable types of data into clickable links. - */ - const LINKIFY_ALL: number; - - /** - * Converts strings formatted as email addresses into clickable links. - */ - const LINKIFY_EMAIL_ADDRESSES: number; - - /** - * Converts strings formatted as addresses into clickable links. - */ - const LINKIFY_MAP_ADDRESSES: number; - - /** - * Converts strings formatted as phone numbers into clickable links. - */ - const LINKIFY_PHONE_NUMBERS: number; - - /** - * Converts strings formatted as URLs into clickable links. - */ - const LINKIFY_WEB_URLS: number; - - /** - * Always allow a user to over-scroll this view, provided it is a view that can scroll. - */ - const OVER_SCROLL_ALWAYS: number; - - /** - * Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll. - */ - const OVER_SCROLL_IF_CONTENT_SCROLLS: number; - - /** - * Never allow a user to over-scroll this view. - */ - const OVER_SCROLL_NEVER: number; - - /** - * Android A_8 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_A_8: number; - - /** - * Android LA_88 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_LA_88: number; - - /** - * Android L_8 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_L_8: number; - - /** - * Android OPAQUE pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_OPAQUE: number; - - /** - * Android RGBA_4444 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_RGBA_4444: number; - - /** - * Android RGBA_5551 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_RGBA_5551: number; - - /** - * Android RGBA_8888 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_RGBA_8888: number; - - /** - * Android RGBX_8888 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_RGBX_8888: number; - - /** - * Android RGB_332 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_RGB_332: number; - - /** - * Android RGB_565 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_RGB_565: number; - - /** - * Android RGB_888 pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_RGB_888: number; - - /** - * Android TRANSLUCENT pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_TRANSLUCENT: number; - - /** - * Android A_8 pixel format for . Selecting the correct pixel format can - * improve image clarity and performance. - */ - const PIXEL_FORMAT_TRANSPARENT: number; - - /** - * Android UNKNOWN pixel format for . Selecting the correct pixel format - * can improve image clarity and performance. - */ - const PIXEL_FORMAT_UNKNOWN: number; - - /** - * Display as a modal dialog. (default) - */ - const PROGRESS_INDICATOR_DIALOG: number; - - /** - * Display as a horizontal progress bar in the title of - * the window. - */ - const PROGRESS_INDICATOR_STATUS_BAR: number; - - /** - * Used with the property to indicate an ongoing - * activity of indeterminate length. (default) - */ - const PROGRESS_INDICATOR_INDETERMINANT: number; - - /** - * Used with the property to indicate an ongoing - * activity of determinate length. - */ - const PROGRESS_INDICATOR_DETERMINANT: number; - - /** - * Pan the current heavyweight window when the input method (ie software keyboard) is shown, to - * ensure that its contents are not obscured. - */ - const SOFT_INPUT_ADJUST_PAN: number; - - /** - * Resize the current heavyweight window when the input method (ie software keyboard) is shown, - * to ensure that its contents are not obscured. - */ - const SOFT_INPUT_ADJUST_RESIZE: number; - - /** - * Use the system-default behavior to determine how the soft input area (ie software keyboard) - * is accomodated by the current heavyweight window when it receives focus (default.) - */ - const SOFT_INPUT_ADJUST_UNSPECIFIED: number; - - /** - * Always hide the soft input area (ie software keyboard) when the current heavyweight window - * receives focus. - */ - const SOFT_INPUT_STATE_ALWAYS_HIDDEN: number; - - /** - * Always show the soft input area (ie software keyboard) when the current heavyweight window - * receives focus. - */ - const SOFT_INPUT_STATE_ALWAYS_VISIBLE: number; - - /** - * Attempt to hide the soft input area (ie software keyboard) when the current heavyweight - * window receives focus. - */ - const SOFT_INPUT_STATE_HIDDEN: number; - - /** - * Use the system-default behavior to determine whether to show the soft input area - * (ie software keyboard) when the current heavyweight window receives focus. - */ - const SOFT_INPUT_STATE_UNSPECIFIED: number; - - /** - * Attempt to show the soft input area (ie software keyboard) when the current heavyweight - * window receives focus. - */ - const SOFT_INPUT_STATE_VISIBLE: number; - - /** - * Use Android default behavior to handle keyboard visibility when a view receives focus. - * (default) - */ - const SOFT_KEYBOARD_DEFAULT_ON_FOCUS: number; - - /** - * Attempt to hide the soft keyboard when a view receives focus. Note: system can override - * request. - */ - const SOFT_KEYBOARD_HIDE_ON_FOCUS: number; - - /** - * Attempt to show the soft keyboard when a view receives focus. Note: system can override - * request. - */ - const SOFT_KEYBOARD_SHOW_ON_FOCUS: number; - - /** - * Display a checkbox. - */ - const SWITCH_STYLE_CHECKBOX: number; - - /** - * Display a toggle button. - */ - const SWITCH_STYLE_TOGGLEBUTTON: number; - - /** - * Display a switch. - */ - const SWITCH_STYLE_SWITCH: number; - - /** - * Use with [WebView.pluginState](Titanium.UI.WebView.pluginState) to disable plugins in a web view. - */ - const WEBVIEW_PLUGINS_OFF: number; - - /** - * Use with [WebView.pluginState](Titanium.UI.WebView.pluginState) to enable plugins in a web view. - */ - const WEBVIEW_PLUGINS_ON: number; - - /** - * Display a placeholder and only load plugins when user selects it. - */ - const WEBVIEW_PLUGINS_ON_DEMAND: number; - - /** - * Use with [WebView.cacheMode](Titanium.UI.WebView.cacheMode) to override how the cache is used in a web view. - */ - const WEBVIEW_LOAD_DEFAULT: number; - - /** - * Use with [WebView.cacheMode](Titanium.UI.WebView.cacheMode) to override how the cache is used in a web view. - */ - const WEBVIEW_LOAD_NO_CACHE: number; - - /** - * Use with [WebView.cacheMode](Titanium.UI.WebView.cacheMode) to override how the cache is used in a web view. - */ - const WEBVIEW_LOAD_CACHE_ONLY: number; - - /** - * Use with [WebView.cacheMode](Titanium.UI.WebView.cacheMode) to override how the cache is used in a web view. - */ - const WEBVIEW_LOAD_CACHE_ELSE_NETWORK: number; - - /** - * Moves views in or out from the edges of the scene. - */ - const TRANSITION_EXPLODE: number; - - /** - * Fades in the views. - */ - const TRANSITION_FADE_IN: number; - - /** - * Fades out the views. - */ - const TRANSITION_FADE_OUT: number; - - /** - * Moves views to top. - */ - const TRANSITION_SLIDE_TOP: number; - - /** - * Moves views to right. - */ - const TRANSITION_SLIDE_RIGHT: number; - - /** - * Moves views to bottom. - */ - const TRANSITION_SLIDE_BOTTOM: number; - - /** - * Moves views to left. - */ - const TRANSITION_SLIDE_LEFT: number; - - /** - * Captures layout bounds of target views before and after the scene change and animates those changes during the transition. - */ - const TRANSITION_CHANGE_BOUNDS: number; - - /** - * Captures the clip bounds before and after the scene change and animates those changes during the transition. - */ - const TRANSITION_CHANGE_CLIP_BOUNDS: number; - - /** - * Captures scale and rotation for Views before and after the scene change and animates those changes during the transition. - */ - const TRANSITION_CHANGE_TRANSFORM: number; - - /** - * Captures an ImageView's matrix before and after the scene change and animates it during the transition. - */ - const TRANSITION_CHANGE_IMAGE_TRANSFORM: number; - - /** - * Resets transition to platform default. - */ - const TRANSITION_NONE: number; - - /** - * The default TabGroup style that places the Tabs bellow the ActionBar and above the Window content. - */ - const TABS_STYLE_DEFAULT: number; - - /** - * TabGroup style taking advantage of a bottom navigation controller for switching between tabs. - */ - const TABS_STYLE_BOTTOM_NAVIGATION: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Hides the soft keyboard. - */ - function hideSoftKeyboard(): void; - - /** - * Opens an application preferences dialog, using the native Android system settings interface, - * defined by the platform-specific `preferences.xml` and `array.xml` files. - */ - function openPreferences(): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Creates and returns an instance of . - */ - function createCardView(parameters?: any): Titanium.UI.Android.CardView; - - /** - * Creates and returns an instance of . - */ - function createDrawerLayout(parameters?: any): Titanium.UI.Android.DrawerLayout; - - /** - * Creates and returns an instance of . - */ - function createProgressIndicator(parameters?: any): Titanium.UI.Android.ProgressIndicator; - - /** - * Creates and returns an instance of . - */ - function createSearchView(parameters?: any): Titanium.UI.Android.SearchView; - - /** - * CardView provides a layout container with rounded corners and a shadow indicating the view is elevated. - */ - interface CardView extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Background color for CardView as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * Disabled background color of the view, as a color name or hex triplet. - */ - backgroundDisabledColor: string; - - /** - * Disabled background image for the view, specified as a local file path or URL. - */ - backgroundDisabledImage: string; - - /** - * Focused background color of the view, as a color name or hex triplet. - */ - backgroundFocusedColor: string; - - /** - * Focused background image for the view, specified as a local file path or URL. - */ - backgroundFocusedImage: string; - - /** - * Selected background color of the view, as a color name or hex triplet. - */ - backgroundSelectedColor: string; - - /** - * Selected background image url for the view, specified as a local file path or URL. - */ - backgroundSelectedImage: string; - - /** - * Corner radius for CardView. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * Elevation for CardView. - */ - elevation: number; - - /** - * Whether view should be focusable while navigating with the trackball. - */ - focusable: boolean; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Sets the behavior when hiding an object to release or keep the free space - */ - hiddenBehavior: number; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * When on, animate call overrides current animation if applicable. - */ - overrideCurrentAnimation: boolean; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * Clockwise 2D rotation of the view in degrees. - */ - rotation: number; - - /** - * Clockwise rotation of the view in degrees (x-axis). - */ - rotationX: number; - - /** - * Clockwise rotation of the view in degrees (y-axis). - */ - rotationY: number; - - /** - * Scaling of the view in x-axis in pixels. - */ - scaleX: number; - - /** - * Scaling of the view in y-axis in pixels. - */ - scaleY: number; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * Determines keyboard behavior when this view is focused. Defaults to . - */ - softKeyboardOnFocus: number; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * A material design visual construct that provides an instantaneous visual confirmation of touch point. - */ - touchFeedback: boolean; - - /** - * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. - */ - touchFeedbackColor: string; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Horizontal location of the view relative to its left position in pixels. - */ - translationX: number; - - /** - * Vertical location of the view relative to its top position in pixels. - */ - translationY: number; - - /** - * Depth of the view relative to its elevation in pixels. - */ - translationZ: number; - - /** - * A name to identify this view in activity transition. - */ - transitionName: string; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Determines whether to keep the device screen on. - */ - keepScreenOn: boolean; - - /** - * Background color for CardView as a color name or hex triplet. - */ - cardBackgroundColor: string; - - /** - * Corner radius for CardView. - */ - cardCornerRadius: number; - - /** - * Elevation for CardView. - */ - cardElevation: number; - - /** - * Maximum Elevation for CardView. - */ - cardMaxElevation: number; - - /** - * Maximum Elevation for CardView. - */ - maxElevation: number; - - /** - * Add padding to CardView on API level 20 and before to prevent intersections between - * the Card content and rounded corners. - */ - cardPreventCornerOverlap: boolean; - - /** - * Add padding to CardView on API level 20 and before to prevent intersections between - * the Card content and rounded corners. - */ - preventCornerOverlap: boolean; - - /** - * Add padding on API level 21 and above to have the same measurements with previous versions. - */ - cardUseCompatPadding: boolean; - - /** - * Add padding on API level 21 and above to have the same measurements with previous versions. - */ - useCompatPadding: boolean; - - /** - * Inner padding between the edges of the Card and children of the CardView. - */ - contentPadding: number; - - /** - * Inner padding between the edges of the Card and children of the CardView. - */ - padding: number; - - /** - * Inner padding between the bottom edge of the Card and children of the CardView. - */ - contentPaddingBottom: number; - - /** - * Inner padding between the bottom edge of the Card and children of the CardView. - */ - paddingBottom: number; - - /** - * Inner padding between the left edge of the Card and children of the CardView. - */ - contentPaddingLeft: number; - - /** - * Inner padding between the left edge of the Card and children of the CardView. - */ - paddingLeft: number; - - /** - * Inner padding between the right edge of the Card and children of the CardView. - */ - contentPaddingRight: number; - - /** - * Inner padding between the right edge of the Card and children of the CardView. - */ - paddingRight: number; - - /** - * Inner padding between the top edge of the Card and children of the CardView. - */ - contentPaddingTop: number; - - /** - * Inner padding between the top edge of the Card and children of the CardView. - */ - paddingTop: number; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledColor(backgroundDisabledColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledImage(backgroundDisabledImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedColor(backgroundFocusedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedImage(backgroundFocusedImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedColor(backgroundSelectedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedImage(backgroundSelectedImage: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getElevation(): number; - - /** - * Sets the value of the property. - */ - setElevation(elevation: number): void; - - /** - * Gets the value of the property. - */ - getFocusable(): boolean; - - /** - * Sets the value of the property. - */ - setFocusable(focusable: boolean): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHiddenBehavior(): number; - - /** - * Sets the value of the property. - */ - setHiddenBehavior(hiddenBehavior: number): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getOverrideCurrentAnimation(): boolean; - - /** - * Sets the value of the property. - */ - setOverrideCurrentAnimation(overrideCurrentAnimation: boolean): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getRotation(): number; - - /** - * Sets the value of the property. - */ - setRotation(rotation: number): void; - - /** - * Gets the value of the property. - */ - getRotationX(): number; - - /** - * Sets the value of the property. - */ - setRotationX(rotationX: number): void; - - /** - * Gets the value of the property. - */ - getRotationY(): number; - - /** - * Sets the value of the property. - */ - setRotationY(rotationY: number): void; - - /** - * Gets the value of the property. - */ - getScaleX(): number; - - /** - * Sets the value of the property. - */ - setScaleX(scaleX: number): void; - - /** - * Gets the value of the property. - */ - getScaleY(): number; - - /** - * Sets the value of the property. - */ - setScaleY(scaleY: number): void; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getSoftKeyboardOnFocus(): number; - - /** - * Sets the value of the property. - */ - setSoftKeyboardOnFocus(softKeyboardOnFocus: number): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedback(): boolean; - - /** - * Sets the value of the property. - */ - setTouchFeedback(touchFeedback: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedbackColor(): string; - - /** - * Sets the value of the property. - */ - setTouchFeedbackColor(touchFeedbackColor: string): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getTranslationX(): number; - - /** - * Sets the value of the property. - */ - setTranslationX(translationX: number): void; - - /** - * Gets the value of the property. - */ - getTranslationY(): number; - - /** - * Sets the value of the property. - */ - setTranslationY(translationY: number): void; - - /** - * Gets the value of the property. - */ - getTranslationZ(): number; - - /** - * Sets the value of the property. - */ - setTranslationZ(translationZ: number): void; - - /** - * Gets the value of the property. - */ - getTransitionName(): string; - - /** - * Sets the value of the property. - */ - setTransitionName(transitionName: string): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getKeepScreenOn(): boolean; - - /** - * Sets the value of the property. - */ - setKeepScreenOn(keepScreenOn: boolean): void; - - /** - * Gets the value of the property. - */ - getCardBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setCardBackgroundColor(cardBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getCardCornerRadius(): number; - - /** - * Sets the value of the property. - */ - setCardCornerRadius(cardCornerRadius: number): void; - - /** - * Gets the value of the property. - */ - getCardElevation(): number; - - /** - * Sets the value of the property. - */ - setCardElevation(cardElevation: number): void; - - /** - * Gets the value of the property. - */ - getCardMaxElevation(): number; - - /** - * Sets the value of the property. - */ - setCardMaxElevation(cardMaxElevation: number): void; - - /** - * Gets the value of the property. - */ - getMaxElevation(): number; - - /** - * Sets the value of the property. - */ - setMaxElevation(maxElevation: number): void; - - /** - * Gets the value of the property. - */ - getCardPreventCornerOverlap(): boolean; - - /** - * Sets the value of the property. - */ - setCardPreventCornerOverlap(cardPreventCornerOverlap: boolean): void; - - /** - * Gets the value of the property. - */ - getPreventCornerOverlap(): boolean; - - /** - * Sets the value of the property. - */ - setPreventCornerOverlap(preventCornerOverlap: boolean): void; - - /** - * Gets the value of the property. - */ - getCardUseCompatPadding(): boolean; - - /** - * Sets the value of the property. - */ - setCardUseCompatPadding(cardUseCompatPadding: boolean): void; - - /** - * Gets the value of the property. - */ - getUseCompatPadding(): boolean; - - /** - * Sets the value of the property. - */ - setUseCompatPadding(useCompatPadding: boolean): void; - - /** - * Gets the value of the property. - */ - getContentPadding(): number; - - /** - * Sets the value of the property. - */ - setContentPadding(contentPadding: number): void; - - /** - * Gets the value of the property. - */ - getPadding(): number; - - /** - * Sets the value of the property. - */ - setPadding(padding: number): void; - - /** - * Gets the value of the property. - */ - getContentPaddingBottom(): number; - - /** - * Sets the value of the property. - */ - setContentPaddingBottom(contentPaddingBottom: number): void; - - /** - * Gets the value of the property. - */ - getPaddingBottom(): number; - - /** - * Sets the value of the property. - */ - setPaddingBottom(paddingBottom: number): void; - - /** - * Gets the value of the property. - */ - getContentPaddingLeft(): number; - - /** - * Sets the value of the property. - */ - setContentPaddingLeft(contentPaddingLeft: number): void; - - /** - * Gets the value of the property. - */ - getPaddingLeft(): number; - - /** - * Sets the value of the property. - */ - setPaddingLeft(paddingLeft: number): void; - - /** - * Gets the value of the property. - */ - getContentPaddingRight(): number; - - /** - * Sets the value of the property. - */ - setContentPaddingRight(contentPaddingRight: number): void; - - /** - * Gets the value of the property. - */ - getPaddingRight(): number; - - /** - * Sets the value of the property. - */ - setPaddingRight(paddingRight: number): void; - - /** - * Gets the value of the property. - */ - getContentPaddingTop(): number; - - /** - * Sets the value of the property. - */ - setContentPaddingTop(contentPaddingTop: number): void; - - /** - * Gets the value of the property. - */ - getPaddingTop(): number; - - /** - * Sets the value of the property. - */ - setPaddingTop(paddingTop: number): void; - - } - /** - * A panel that displays the app's main navigation options on the left edge of the screen. - */ - interface DrawerLayout extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * Disabled background color of the view, as a color name or hex triplet. - */ - backgroundDisabledColor: string; - - /** - * Disabled background image for the view, specified as a local file path or URL. - */ - backgroundDisabledImage: string; - - /** - * Focused background color of the view, as a color name or hex triplet. - */ - backgroundFocusedColor: string; - - /** - * Focused background image for the view, specified as a local file path or URL. - */ - backgroundFocusedImage: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Selected background color of the view, as a color name or hex triplet. - */ - backgroundSelectedColor: string; - - /** - * Selected background image url for the view, specified as a local file path or URL. - */ - backgroundSelectedImage: string; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * Base elevation of the view relative to its parent in pixels. - */ - elevation: number; - - /** - * Whether view should be focusable while navigating with the trackball. - */ - focusable: boolean; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Sets the behavior when hiding an object to release or keep the free space - */ - hiddenBehavior: number; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * When on, animate call overrides current animation if applicable. - */ - overrideCurrentAnimation: boolean; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * Clockwise 2D rotation of the view in degrees. - */ - rotation: number; - - /** - * Clockwise rotation of the view in degrees (x-axis). - */ - rotationX: number; - - /** - * Clockwise rotation of the view in degrees (y-axis). - */ - rotationY: number; - - /** - * Scaling of the view in x-axis in pixels. - */ - scaleX: number; - - /** - * Scaling of the view in y-axis in pixels. - */ - scaleY: number; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * Determines keyboard behavior when this view is focused. Defaults to . - */ - softKeyboardOnFocus: number; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * A material design visual construct that provides an instantaneous visual confirmation of touch point. - */ - touchFeedback: boolean; - - /** - * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. - */ - touchFeedbackColor: string; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Horizontal location of the view relative to its left position in pixels. - */ - translationX: number; - - /** - * Vertical location of the view relative to its top position in pixels. - */ - translationY: number; - - /** - * Depth of the view relative to its elevation in pixels. - */ - translationZ: number; - - /** - * A name to identify this view in activity transition. - */ - transitionName: string; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Determines whether to keep the device screen on. - */ - keepScreenOn: boolean; - - /** - * Use with [DrawerLayout.drawerLockMode](Titanium.UI.Android.DrawerLayout.drawerLockMode) to specify the drawer is locked closed. - */ - readonly LOCK_MODE_LOCKED_CLOSED: number; - - /** - * Use with [DrawerLayout.drawerLockMode](Titanium.UI.Android.DrawerLayout.drawerLockMode) to specify the drawer is locked opened. - */ - readonly LOCK_MODE_LOCKED_OPEN: number; - - /** - * Use with [DrawerLayout.drawerLockMode](Titanium.UI.Android.DrawerLayout.drawerLockMode) to specify the drawer is reset to default lock state. - */ - readonly LOCK_MODE_UNDEFINED: number; - - /** - * Use with [DrawerLayout.drawerLockMode](Titanium.UI.Android.DrawerLayout.drawerLockMode) to specify the drawer is unlocked. - */ - readonly LOCK_MODE_UNLOCKED: number; - - /** - * Determine whether the left drawer is open - */ - isLeftOpen: boolean; - - /** - * Determine whether the right drawer is open - */ - isRightOpen: boolean; - - /** - * Determine whether the left drawer is visible - */ - isLeftVisible: boolean; - - /** - * Determine whether the right drawer is visible - */ - isRightVisible: boolean; - - /** - * Get or set the width of the left drawer - */ - leftWidth: number; - - /** - * Get or set the width of the right drawer - */ - rightWidth: number; - - /** - * Get or set the view of the left drawer - */ - leftView: Titanium.UI.View; - - /** - * Get or set the view of the right drawer - */ - rightView: Titanium.UI.View; - - /** - * Get or set the center view - */ - centerView: Titanium.UI.View; - - /** - * Determine the drawer indicator status - */ - drawerIndicatorEnabled: boolean; - - /** - * Get or set the drawerLockMode - */ - drawerLockMode: number; - - /** - * Determine whether to enable the toolbar. - */ - toolbarEnabled: boolean; - - /** - * A Toolbar instance to use as a toolbar. - */ - toolbar: Titanium.UI.Toolbar; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Toggle the visibility of the left view. - */ - toggleLeft(): void; - - /** - * Open the left view. - */ - openLeft(): void; - - /** - * Close the left view. - */ - closeLeft(): void; - - /** - * Toggle the visibility of the right view. - */ - toggleRight(): void; - - /** - * Open the right view. - */ - openRight(): void; - - /** - * Close the right view. - */ - closeRight(): void; - - /** - * Disallow touch events on a specific view. - */ - interceptTouchEvent(view: any, disallowIntercept: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledColor(backgroundDisabledColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledImage(backgroundDisabledImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedColor(backgroundFocusedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedImage(backgroundFocusedImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedColor(backgroundSelectedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedImage(backgroundSelectedImage: string): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getElevation(): number; - - /** - * Sets the value of the property. - */ - setElevation(elevation: number): void; - - /** - * Gets the value of the property. - */ - getFocusable(): boolean; - - /** - * Sets the value of the property. - */ - setFocusable(focusable: boolean): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHiddenBehavior(): number; - - /** - * Sets the value of the property. - */ - setHiddenBehavior(hiddenBehavior: number): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getOverrideCurrentAnimation(): boolean; - - /** - * Sets the value of the property. - */ - setOverrideCurrentAnimation(overrideCurrentAnimation: boolean): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getRotation(): number; - - /** - * Sets the value of the property. - */ - setRotation(rotation: number): void; - - /** - * Gets the value of the property. - */ - getRotationX(): number; - - /** - * Sets the value of the property. - */ - setRotationX(rotationX: number): void; - - /** - * Gets the value of the property. - */ - getRotationY(): number; - - /** - * Sets the value of the property. - */ - setRotationY(rotationY: number): void; - - /** - * Gets the value of the property. - */ - getScaleX(): number; - - /** - * Sets the value of the property. - */ - setScaleX(scaleX: number): void; - - /** - * Gets the value of the property. - */ - getScaleY(): number; - - /** - * Sets the value of the property. - */ - setScaleY(scaleY: number): void; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getSoftKeyboardOnFocus(): number; - - /** - * Sets the value of the property. - */ - setSoftKeyboardOnFocus(softKeyboardOnFocus: number): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedback(): boolean; - - /** - * Sets the value of the property. - */ - setTouchFeedback(touchFeedback: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedbackColor(): string; - - /** - * Sets the value of the property. - */ - setTouchFeedbackColor(touchFeedbackColor: string): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getTranslationX(): number; - - /** - * Sets the value of the property. - */ - setTranslationX(translationX: number): void; - - /** - * Gets the value of the property. - */ - getTranslationY(): number; - - /** - * Sets the value of the property. - */ - setTranslationY(translationY: number): void; - - /** - * Gets the value of the property. - */ - getTranslationZ(): number; - - /** - * Sets the value of the property. - */ - setTranslationZ(translationZ: number): void; - - /** - * Gets the value of the property. - */ - getTransitionName(): string; - - /** - * Sets the value of the property. - */ - setTransitionName(transitionName: string): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getKeepScreenOn(): boolean; - - /** - * Sets the value of the property. - */ - setKeepScreenOn(keepScreenOn: boolean): void; - - /** - * Gets the value of the property. - */ - getIsLeftOpen(): boolean; - - /** - * Sets the value of the property. - */ - setIsLeftOpen(isLeftOpen: boolean): void; - - /** - * Gets the value of the property. - */ - getIsRightOpen(): boolean; - - /** - * Sets the value of the property. - */ - setIsRightOpen(isRightOpen: boolean): void; - - /** - * Gets the value of the property. - */ - getIsLeftVisible(): boolean; - - /** - * Sets the value of the property. - */ - setIsLeftVisible(isLeftVisible: boolean): void; - - /** - * Gets the value of the property. - */ - getIsRightVisible(): boolean; - - /** - * Sets the value of the property. - */ - setIsRightVisible(isRightVisible: boolean): void; - - /** - * Gets the value of the property. - */ - getLeftWidth(): number; - - /** - * Sets the value of the property. - */ - setLeftWidth(leftWidth: number): void; - - /** - * Gets the value of the property. - */ - getRightWidth(): number; - - /** - * Sets the value of the property. - */ - setRightWidth(rightWidth: number): void; - - /** - * Gets the value of the property. - */ - getLeftView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setLeftView(leftView: any): void; - - /** - * Gets the value of the property. - */ - getRightView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setRightView(rightView: any): void; - - /** - * Gets the value of the property. - */ - getCenterView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setCenterView(centerView: any): void; - - /** - * Gets the value of the property. - */ - getDrawerIndicatorEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setDrawerIndicatorEnabled(drawerIndicatorEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getDrawerLockMode(): number; - - /** - * Sets the value of the property. - */ - setDrawerLockMode(drawerLockMode: number): void; - - /** - * Gets the value of the property. - */ - getToolbarEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setToolbarEnabled(toolbarEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getToolbar(): Titanium.UI.Toolbar; - - /** - * Sets the value of the property. - */ - setToolbar(toolbar: Titanium.UI.Toolbar): void; - - } - /** - * A progress dialog or a horizontal progress bar in the title of the window. - */ - interface ProgressIndicator extends Titanium.Proxy { - /** - * Base elevation of the view relative to its parent in pixels. - */ - elevation: number; - - /** - * Sets the behavior when hiding an object to release or keep the free space - */ - hiddenBehavior: number; - - /** - * Clockwise 2D rotation of the view in degrees. - */ - rotation: number; - - /** - * Clockwise rotation of the view in degrees (x-axis). - */ - rotationX: number; - - /** - * Clockwise rotation of the view in degrees (y-axis). - */ - rotationY: number; - - /** - * Scaling of the view in x-axis in pixels. - */ - scaleX: number; - - /** - * Scaling of the view in y-axis in pixels. - */ - scaleY: number; - - /** - * A material design visual construct that provides an instantaneous visual confirmation of touch point. - */ - touchFeedback: boolean; - - /** - * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. - */ - touchFeedbackColor: string; - - /** - * Horizontal location of the view relative to its left position in pixels. - */ - translationX: number; - - /** - * Vertical location of the view relative to its top position in pixels. - */ - translationY: number; - - /** - * Depth of the view relative to its elevation in pixels. - */ - translationZ: number; - - /** - * A name to identify this view in activity transition. - */ - transitionName: string; - - /** - * When `true` allows the user to cancel the progress dialog by pressing the BACK button. - */ - cancelable: boolean; - - /** - * When `cancelable` is set to `true` and this is set to `true`, the dialog is canceled when touched outside the window's bounds. - */ - canceledOnTouchOutside: boolean; - - /** - * Message text. - */ - message: string; - - /** - * Key identifying a string in the locale file to use for the message text. - */ - messageid: string; - - /** - * Minimum value of the progress bar. - */ - min: number; - - /** - * Maximum value of the progress bar. - */ - max: number; - - /** - * Location for the progress indicator. - */ - location: number; - - /** - * Type for the progress indicator. - */ - type: number; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides the progress indicator and stops the animation. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Shows the progress indicator and starts the animation. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getElevation(): number; - - /** - * Sets the value of the property. - */ - setElevation(elevation: number): void; - - /** - * Gets the value of the property. - */ - getHiddenBehavior(): number; - - /** - * Sets the value of the property. - */ - setHiddenBehavior(hiddenBehavior: number): void; - - /** - * Gets the value of the property. - */ - getRotation(): number; - - /** - * Sets the value of the property. - */ - setRotation(rotation: number): void; - - /** - * Gets the value of the property. - */ - getRotationX(): number; - - /** - * Sets the value of the property. - */ - setRotationX(rotationX: number): void; - - /** - * Gets the value of the property. - */ - getRotationY(): number; - - /** - * Sets the value of the property. - */ - setRotationY(rotationY: number): void; - - /** - * Gets the value of the property. - */ - getScaleX(): number; - - /** - * Sets the value of the property. - */ - setScaleX(scaleX: number): void; - - /** - * Gets the value of the property. - */ - getScaleY(): number; - - /** - * Sets the value of the property. - */ - setScaleY(scaleY: number): void; - - /** - * Gets the value of the property. - */ - getTouchFeedback(): boolean; - - /** - * Sets the value of the property. - */ - setTouchFeedback(touchFeedback: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedbackColor(): string; - - /** - * Sets the value of the property. - */ - setTouchFeedbackColor(touchFeedbackColor: string): void; - - /** - * Gets the value of the property. - */ - getTranslationX(): number; - - /** - * Sets the value of the property. - */ - setTranslationX(translationX: number): void; - - /** - * Gets the value of the property. - */ - getTranslationY(): number; - - /** - * Sets the value of the property. - */ - setTranslationY(translationY: number): void; - - /** - * Gets the value of the property. - */ - getTranslationZ(): number; - - /** - * Sets the value of the property. - */ - setTranslationZ(translationZ: number): void; - - /** - * Gets the value of the property. - */ - getTransitionName(): string; - - /** - * Sets the value of the property. - */ - setTransitionName(transitionName: string): void; - - /** - * Gets the value of the property. - */ - getCancelable(): boolean; - - /** - * Sets the value of the property. - */ - setCancelable(cancelable: boolean): void; - - /** - * Gets the value of the property. - */ - getCanceledOnTouchOutside(): boolean; - - /** - * Sets the value of the property. - */ - setCanceledOnTouchOutside(canceledOnTouchOutside: boolean): void; - - /** - * Gets the value of the property. - */ - getMessage(): string; - - /** - * Sets the value of the property. - */ - setMessage(message: string): void; - - /** - * Gets the value of the property. - */ - getMessageid(): string; - - /** - * Sets the value of the property. - */ - setMessageid(messageid: string): void; - - /** - * Gets the value of the property. - */ - getMin(): number; - - /** - * Sets the value of the property. - */ - setMin(min: number): void; - - /** - * Gets the value of the property. - */ - getMax(): number; - - /** - * Sets the value of the property. - */ - setMax(max: number): void; - - /** - * Gets the value of the property. - */ - getLocation(): number; - - /** - * Sets the value of the property. - */ - setLocation(location: number): void; - - /** - * Gets the value of the property. - */ - getType(): number; - - /** - * Sets the value of the property. - */ - setType(type: number): void; - - } - /** - * A specialized text field for entering search text. - */ - interface SearchView extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * Disabled background color of the view, as a color name or hex triplet. - */ - backgroundDisabledColor: string; - - /** - * Disabled background image for the view, specified as a local file path or URL. - */ - backgroundDisabledImage: string; - - /** - * Focused background color of the view, as a color name or hex triplet. - */ - backgroundFocusedColor: string; - - /** - * Focused background image for the view, specified as a local file path or URL. - */ - backgroundFocusedImage: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Selected background color of the view, as a color name or hex triplet. - */ - backgroundSelectedColor: string; - - /** - * Selected background image url for the view, specified as a local file path or URL. - */ - backgroundSelectedImage: string; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * Base elevation of the view relative to its parent in pixels. - */ - elevation: number; - - /** - * Whether view should be focusable while navigating with the trackball. - */ - focusable: boolean; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Sets the behavior when hiding an object to release or keep the free space - */ - hiddenBehavior: number; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * When on, animate call overrides current animation if applicable. - */ - overrideCurrentAnimation: boolean; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * Clockwise 2D rotation of the view in degrees. - */ - rotation: number; - - /** - * Clockwise rotation of the view in degrees (x-axis). - */ - rotationX: number; - - /** - * Clockwise rotation of the view in degrees (y-axis). - */ - rotationY: number; - - /** - * Scaling of the view in x-axis in pixels. - */ - scaleX: number; - - /** - * Scaling of the view in y-axis in pixels. - */ - scaleY: number; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * Determines keyboard behavior when this view is focused. Defaults to . - */ - softKeyboardOnFocus: number; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * A material design visual construct that provides an instantaneous visual confirmation of touch point. - */ - touchFeedback: boolean; - - /** - * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. - */ - touchFeedbackColor: string; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Horizontal location of the view relative to its left position in pixels. - */ - translationX: number; - - /** - * Vertical location of the view relative to its top position in pixels. - */ - translationY: number; - - /** - * Depth of the view relative to its elevation in pixels. - */ - translationZ: number; - - /** - * A name to identify this view in activity transition. - */ - transitionName: string; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Determines whether to keep the device screen on. - */ - keepScreenOn: boolean; - - /** - * Color of the text in this SearchView, as a color name or hex triplet. - */ - color: string; - - /** - * Text to show when the search view field is not focused. - */ - hintText: string; - - /** - * Color of hint text that displays when field is empty. - */ - hintTextColor: string; - - /** - * Value of the search view. - */ - value: string; - - /** - * Iconifies or expands the search view - */ - iconified: boolean; - - /** - * Sets the default or resting state of the search view - */ - iconifiedByDefault: boolean; - - /** - * Whether to display the submit button when necessary or never display. - */ - submitEnabled: boolean; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Causes the search view to lose focus. - */ - blur(): void; - - /** - * Causes the search view to gain focus. - */ - focus(): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledColor(backgroundDisabledColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledImage(backgroundDisabledImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedColor(backgroundFocusedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedImage(backgroundFocusedImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedColor(backgroundSelectedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedImage(backgroundSelectedImage: string): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getElevation(): number; - - /** - * Sets the value of the property. - */ - setElevation(elevation: number): void; - - /** - * Gets the value of the property. - */ - getFocusable(): boolean; - - /** - * Sets the value of the property. - */ - setFocusable(focusable: boolean): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHiddenBehavior(): number; - - /** - * Sets the value of the property. - */ - setHiddenBehavior(hiddenBehavior: number): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getOverrideCurrentAnimation(): boolean; - - /** - * Sets the value of the property. - */ - setOverrideCurrentAnimation(overrideCurrentAnimation: boolean): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getRotation(): number; - - /** - * Sets the value of the property. - */ - setRotation(rotation: number): void; - - /** - * Gets the value of the property. - */ - getRotationX(): number; - - /** - * Sets the value of the property. - */ - setRotationX(rotationX: number): void; - - /** - * Gets the value of the property. - */ - getRotationY(): number; - - /** - * Sets the value of the property. - */ - setRotationY(rotationY: number): void; - - /** - * Gets the value of the property. - */ - getScaleX(): number; - - /** - * Sets the value of the property. - */ - setScaleX(scaleX: number): void; - - /** - * Gets the value of the property. - */ - getScaleY(): number; - - /** - * Sets the value of the property. - */ - setScaleY(scaleY: number): void; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getSoftKeyboardOnFocus(): number; - - /** - * Sets the value of the property. - */ - setSoftKeyboardOnFocus(softKeyboardOnFocus: number): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedback(): boolean; - - /** - * Sets the value of the property. - */ - setTouchFeedback(touchFeedback: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedbackColor(): string; - - /** - * Sets the value of the property. - */ - setTouchFeedbackColor(touchFeedbackColor: string): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getTranslationX(): number; - - /** - * Sets the value of the property. - */ - setTranslationX(translationX: number): void; - - /** - * Gets the value of the property. - */ - getTranslationY(): number; - - /** - * Sets the value of the property. - */ - setTranslationY(translationY: number): void; - - /** - * Gets the value of the property. - */ - getTranslationZ(): number; - - /** - * Sets the value of the property. - */ - setTranslationZ(translationZ: number): void; - - /** - * Gets the value of the property. - */ - getTransitionName(): string; - - /** - * Sets the value of the property. - */ - setTransitionName(transitionName: string): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getKeepScreenOn(): boolean; - - /** - * Sets the value of the property. - */ - setKeepScreenOn(keepScreenOn: boolean): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getHintText(): string; - - /** - * Sets the value of the property. - */ - setHintText(hintText: string): void; - - /** - * Gets the value of the property. - */ - getHintTextColor(): string; - - /** - * Sets the value of the property. - */ - setHintTextColor(hintTextColor: string): void; - - /** - * Gets the value of the property. - */ - getValue(): string; - - /** - * Sets the value of the property. - */ - setValue(value: string): void; - - /** - * Gets the value of the property. - */ - getIconified(): boolean; - - /** - * Sets the value of the property. - */ - setIconified(iconified: boolean): void; - - /** - * Gets the value of the property. - */ - getIconifiedByDefault(): boolean; - - /** - * Sets the value of the property. - */ - setIconifiedByDefault(iconifiedByDefault: boolean): void; - - /** - * Gets the value of the property. - */ - getSubmitEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setSubmitEnabled(submitEnabled: boolean): void; - - } - } - - /** - * A module used for accessing clipboard data. - */ - namespace Clipboard { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Create a new named clipboard. - */ - let name: string; - - /** - * Create a new clipboard identified by a unique system-generated name. - */ - let unique: boolean; - - /** - * Create a clipboard identified by name if it doesn't exist. - */ - let allowCreation: boolean; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Deletes data of the specified MIME type stored in the clipboard. If MIME type omitted, all - * data is deleted. - */ - function clearData(type?: string): void; - - /** - * Deletes all text data stored in the clipboard. - */ - function clearText(): void; - - /** - * Gets data of the specified MIME type stored in the clipboard. - */ - function getData(type: string): string | Titanium.Blob; - - /** - * Gets text data stored in the clipboard. - */ - function getText(): string; - - /** - * Indicates whether any data of the specified MIME type is stored in the clipboard. - */ - function hasData(type: string): boolean; - - /** - * Indicates whether any text data is stored in the clipboard. - */ - function hasText(): boolean; - - /** - * Indicates whether any URLs are stored in the clipboard. - */ - function hasURLs(): boolean; - - /** - * Indicates whether any images are stored in the clipboard. - */ - function hasImages(): boolean; - - /** - * Indicates whether any colors are stored in the clipboard. - */ - function hasColors(): boolean; - - /** - * Stores data of the specified MIME type in the clipboard. - */ - function setData(type: string, data: any): void; - - /** - * Stores text data in the clipboard. - */ - function setText(text: string): void; - - /** - * Adds an array of items to a clipboard, and sets privacy options for all included items. - */ - function setItems(items: ClipboardItemsType): void; - - /** - * Gets the items that have been specified earlier using . - */ - function getItems(): any[]; - - /** - * Removes the clipboard. - */ - function remove(): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getName(): string; - - /** - * Sets the value of the property. - */ - function setName(name: string): void; - - /** - * Gets the value of the property. - */ - function getUnique(): boolean; - - /** - * Sets the value of the property. - */ - function setUnique(unique: boolean): void; - - /** - * Gets the value of the property. - */ - function getAllowCreation(): boolean; - - /** - * Sets the value of the property. - */ - function setAllowCreation(allowCreation: boolean): void; - - } - - /** - * Apple iOS specific UI capabilities. All properties, methods and events in this namespace will - * only work on Apple iOS devices. - */ - namespace iOS { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Automatically use the large out-of-line title based on the state of the p - * revious item in the navigation bar. - */ - const LARGE_TITLE_DISPLAY_MODE_AUTOMATIC: number; - - /** - * Always use a larger title when this item is top most. - */ - const LARGE_TITLE_DISPLAY_MODE_ALWAYS: number; - - /** - * Never use a larger title when this item is top most. - */ - const LARGE_TITLE_DISPLAY_MODE_NEVER: number; - - /** - * Include treatments so this image can be shown directly over the content - * of the Live Photo. - */ - const LIVEPHOTO_BADGE_OPTIONS_OVER_CONTENT: number; - - /** - * To indicate that the Live Photo aspect is turned off and it will - * be treated as a still (e.g. for sharing). - */ - const LIVEPHOTO_BADGE_OPTIONS_LIVE_OFF: number; - - /** - * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts - * slowly and speeds up. - */ - const ANIMATION_CURVE_EASE_IN: number; - - /** - * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts - * slowly, and speeds up, then slows down at the end of the animation. - */ - const ANIMATION_CURVE_EASE_IN_OUT: number; - - /** - * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts - * quickly, then slows down at the end of the animation. - */ - const ANIMATION_CURVE_EASE_OUT: number; - - /** - * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that proceeds - * at a constant rate. - */ - const ANIMATION_CURVE_LINEAR: number; - - /** - * Use with to specify a font. - */ - const ATTRIBUTE_FONT: number; - - /** - * Use with to specify a font color. - */ - const ATTRIBUTE_FOREGROUND_COLOR: number; - - /** - * Use with to specify a background color. - */ - const ATTRIBUTE_BACKGROUND_COLOR: number; - - /** - * Use with to enable or disable ligatures. - */ - const ATTRIBUTE_LIGATURE: number; - - /** - * Use with to use a letterpress text effect. - */ - const ATTRIBUTE_LETTERPRESS_STYLE: number; - - /** - * Use with to specify kerning (space between characters). - */ - const ATTRIBUTE_KERN: number; - - /** - * Use with to place a horizontal line through the text. - */ - const ATTRIBUTE_STRIKETHROUGH_STYLE: number; - - /** - * Use with to place a horizontal line under the text. - */ - const ATTRIBUTE_UNDERLINES_STYLE: number; - - /** - * Use with to specify a color for the stroke text. - */ - const ATTRIBUTE_STROKE_COLOR: number; - - /** - * Use with to specify the width of the stroke text. - */ - const ATTRIBUTE_STROKE_WIDTH: number; - - /** - * Use with to display a shadow behind the text. - */ - const ATTRIBUTE_SHADOW: number; - - /** - * Use with to control the direction of the text. - */ - const ATTRIBUTE_WRITING_DIRECTION: number; - - /** - * Use with to apply a text effect. - */ - const ATTRIBUTE_TEXT_EFFECT: number; - - /** - * Use with to create a link. - */ - const ATTRIBUTE_LINK: number; - - /** - * Use with to apply a different baseline to the text. - */ - const ATTRIBUTE_BASELINE_OFFSET: number; - - /** - * Use with to change the color of the horizontal line. - */ - const ATTRIBUTE_UNDERLINE_COLOR: number; - - /** - * Use with to change the color of the horizontal line. - */ - const ATTRIBUTE_STRIKETHROUGH_COLOR: number; - - /** - * Use with to skew the text. - */ - const ATTRIBUTE_OBLIQUENESS: number; - - /** - * Use with to stretch the text horizontally. - */ - const ATTRIBUTE_EXPANSION: number; - - /** - * Use with to not draw a line. - */ - const ATTRIBUTE_UNDERLINE_STYLE_NONE: number; - - /** - * Use with to draw a single line. - */ - const ATTRIBUTE_UNDERLINE_STYLE_SINGLE: number; - - /** - * Use with to draw a thick line. - */ - const ATTRIBUTE_UNDERLINE_STYLE_THICK: number; - - /** - * Use with to draw a double line. - */ - const ATTRIBUTE_UNDERLINE_STYLE_DOUBLE: number; - - /** - * Use with to draw a solid line. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_SOLID: number; - - /** - * Use with to draw a dotted line. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_DOT: number; - - /** - * Use with to draw a dashed line. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_DASH: number; - - /** - * Use with to draw an alternating line of dashes and dots. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT: number; - - /** - * Use with to draw an alternating line of dashes and two dots. - */ - const ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT_DOT: number; - - /** - * Use with to draw a line only underneath or through words. - */ - const ATTRIBUTE_UNDERLINE_BY_WORD: number; - - /** - * Use with to use the embedded text direction. - */ - const ATTRIBUTE_WRITING_DIRECTION_EMBEDDING: number; - - /** - * Use with to override the text direction. - */ - const ATTRIBUTE_WRITING_DIRECTION_OVERRIDE: number; - - /** - * Use with to use the - * [Unicode Bidirection Algorithm rules P2 and P3](http://www.unicode.org/reports/tr9/#The_Paragraph_Level) - * to determine which direction to use. - */ - const ATTRIBUTE_WRITING_DIRECTION_NATURAL: number; - - /** - * Use with to write text left to right. - */ - const ATTRIBUTE_WRITING_DIRECTION_LEFT_TO_RIGHT: number; - - /** - * Use with to write text right to left. - */ - const ATTRIBUTE_WRITING_DIRECTION_RIGHT_TO_LEFT: number; - - /** - * Converts strings formatted as addresses into clickable links. - */ - const AUTODETECT_ADDRESS: number; - - /** - * Converts all detectable types of data into clickable links. - */ - const AUTODETECT_ALL: number; - - /** - * Converts strings formatted as calendar events into clickable links. - */ - const AUTODETECT_CALENDAR: number; - - /** - * Converts strings formatted as URLs into clickable links. - */ - const AUTODETECT_LINK: number; - - /** - * Disables converting strings into clickable links. - */ - const AUTODETECT_NONE: number; - - /** - * Converts strings formatted as phone numbers into clickable links. - */ - const AUTODETECT_PHONE: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_CLEAR: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_COLOR: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_COLOR_BURN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_COLOR_DODGE: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_COPY: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DARKEN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DESTINATION_ATOP: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DESTINATION_IN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DESTINATION_OUT: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DESTINATION_OVER: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_DIFFERENCE: number; - - /** - * Image mode constant. Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_EXCLUSION: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_HARD_LIGHT: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_HUE: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_LIGHTEN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_LUMINOSITY: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_MULTIPLY: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_NORMAL: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_OVERLAY: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_PLUS_DARKER: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_PLUS_LIGHTER: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SATURATION: number; - - /** - * Image mode constant. Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SCREEN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SOFT_LIGHT: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SOURCE_ATOP: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SOURCE_IN: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_SOURCE_OUT: number; - - /** - * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. - */ - const BLEND_MODE_XOR: number; - - /** - * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. - */ - const BLUR_EFFECT_STYLE_EXTRA_LIGHT: number; - - /** - * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. - */ - const BLUR_EFFECT_STYLE_LIGHT: number; - - /** - * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. - */ - const BLUR_EFFECT_STYLE_DARK: number; - - /** - * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. - */ - const BLUR_EFFECT_STYLE_REGULAR: number; - - /** - * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. - */ - const BLUR_EFFECT_STYLE_PROMINENT: number; - - /** - * Use with [AdView.adSize](Titanium.UI.iOS.AdView.adSize) to specify a banner ad size - * appropriate for portrait orientations. - */ - const AD_SIZE_PORTRAIT: string; - - /** - * Use with [AdView.adSize](Titanium.UI.iOS.AdView.adSize) to specify a banner ad size - * appropriate for landscape orientations. - */ - const AD_SIZE_LANDSCAPE: string; - - /** - * Use with to specify clipping behavior. - */ - const CLIP_MODE_DEFAULT: number; - - /** - * Use with to specify clipping behavior. - */ - const CLIP_MODE_DISABLED: number; - - /** - * Use with to specify clipping behavior. - */ - const CLIP_MODE_ENABLED: number; - - /** - * Use with to specify collisions with both items and - * boundaries. - */ - const COLLISION_MODE_ALL: number; - - /** - * Use with to specify collisions with - * boundaries only. - */ - const COLLISION_MODE_BOUNDARY: number; - - /** - * Use with to specify collisions with items only. - */ - const COLLISION_MODE_ITEM: number; - - /** - * Determines if the 3D-Touch capability "Force Touch" is supported (`true`) or not (`false`) by the device. - */ - const forceTouchSupported: boolean; - - /** - * The feedback type to be used when specifying a selection in . - */ - const FEEDBACK_GENERATOR_TYPE_SELECTION: number; - - /** - * The feedback type to be used when specifying an impact in . - */ - const FEEDBACK_GENERATOR_TYPE_IMPACT: number; - - /** - * The feedback type to be used when specifying a received notification in . - */ - const FEEDBACK_GENERATOR_TYPE_NOTIFICATION: number; - - /** - * The success notification type used as the argument in . - */ - const FEEDBACK_GENERATOR_NOTIFICATION_TYPE_SUCCESS: number; - - /** - * The warning notification type used as the argument in . - */ - const FEEDBACK_GENERATOR_NOTIFICATION_TYPE_WARNING: number; - - /** - * The error notification type used as the argument in . - */ - const FEEDBACK_GENERATOR_NOTIFICATION_TYPE_ERROR: number; - - /** - * The light impact style used as the `style` argument when creating a with the - * type . - */ - const FEEDBACK_GENERATOR_IMPACT_STYLE_LIGHT: number; - - /** - * The medium impact style used as the `style` argument when creating a with the - * type . - */ - const FEEDBACK_GENERATOR_IMPACT_STYLE_MEDIUM: number; - - /** - * The heavy impact style used as the `style` argument when creating a with the - * type . - */ - const FEEDBACK_GENERATOR_IMPACT_STYLE_HEAVY: number; - - /** - * Plays back the entire motion and sound content of the Live Photo, including transition - * effects at the start and end. - */ - const LIVEPHOTO_PLAYBACK_STYLE_FULL: number; - - /** - * Plays back only a brief section of the motion content of the Live Photo, without sound. - */ - const LIVEPHOTO_PLAYBACK_STYLE_HINT: number; - - /** - * An arrow that points upward. - */ - const MENU_POPUP_ARROW_DIRECTION_UP: number; - - /** - * An arrow that points downward. - */ - const MENU_POPUP_ARROW_DIRECTION_DOWN: number; - - /** - * An arrow that points toward the left. - */ - const MENU_POPUP_ARROW_DIRECTION_LEFT: number; - - /** - * An arrow that points toward the right. - */ - const MENU_POPUP_ARROW_DIRECTION_RIGHT: number; - - /** - * An arrow that is automatically aligned. - */ - const MENU_POPUP_ARROW_DIRECTION_DEFAULT: number; - - /** - * View presented with the same style as its parent window. - */ - let MODAL_PRESENTATION_CURRENT_CONTEXT: number; - - /** - * View presented over its parent window. - */ - let MODAL_PRESENTATION_OVER_CURRENT_CONTEXT: number; - - /** - * Presented view covers the screen. - */ - let MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN: number; - - /** - * Window width and height are smaller than those of the screen and the view is centered on - * the screen. - */ - const MODAL_PRESENTATION_FORMSHEET: number; - - /** - * Window covers the screen. - */ - const MODAL_PRESENTATION_FULLSCREEN: number; - - /** - * Window height is the height of the screen and width is equal to screen width in a portrait - * orientation. - */ - const MODAL_PRESENTATION_PAGESHEET: number; - - /** - * When the window is presented, its view slides up from the bottom of the screen. On dismissal, - * the view slides back down (default.) - */ - const MODAL_TRANSITION_STYLE_COVER_VERTICAL: number; - - /** - * When the window is presented, the current view fades out while the new view fades in at the - * same time. On dismissal, a similar type of cross-fade is used to return to the original view. - */ - const MODAL_TRANSITION_STYLE_CROSS_DISSOLVE: number; - - /** - * When the window is presented, the current view initiates a horizontal 3D flip from - * right-to-left, resulting in the revealing of the new view as if it were on the back of the - * previous view. On dismissal, the flip occurs from left-to-right, returning to the original - * view. - */ - const MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL: number; - - /** - * When the window is presented, one corner of the current view curls up to reveal the modal - * view underneath. On dismissal, the curled up page unfurls itself back on top of the modal - * view. - */ - const MODAL_TRANSITION_STYLE_PARTIAL_CURL: number; - - /** - * Use with to specifiy a continuous force. - */ - const PUSH_MODE_CONTINUOUS: number; - - /** - * Use with to specifiy an instantaneous force. - */ - const PUSH_MODE_INSTANTANEOUS: number; - - /** - * The normal style for preview actions. - */ - const PREVIEW_ACTION_STYLE_DEFAULT: number; - - /** - * The selected style for preview actions. - */ - const PREVIEW_ACTION_STYLE_SELECTED: number; - - /** - * The destructive style for preview actions. - */ - const PREVIEW_ACTION_STYLE_DESTRUCTIVE: number; - - /** - * The default style for . - */ - const ROW_ACTION_STYLE_DEFAULT: number; - - /** - * The destructive style for . - */ - const ROW_ACTION_STYLE_DESTRUCTIVE: number; - - /** - * The normal style for . - */ - const ROW_ACTION_STYLE_NORMAL: number; - - /** - * Use with to control deceleration rate. - */ - const SCROLL_DECELERATION_RATE_FAST: number; - - /** - * Use with to control deceleration rate. - */ - const SCROLL_DECELERATION_RATE_NORMAL: number; - - /** - * Use with to control keyboard dismiss mode. - */ - const KEYBOARD_DISMISS_MODE_NONE: number; - - /** - * Use with to control keyboard dismiss mode. - */ - const KEYBOARD_DISMISS_MODE_ON_DRAG: number; - - /** - * Use with to control keyboard dismiss mode. - */ - const KEYBOARD_DISMISS_MODE_INTERACTIVE: number; - - /** - * Use with to change the search bar style. - */ - const SEARCH_BAR_STYLE_PROMINENT: number; - - /** - * Use with to change the search bar style. - */ - const SEARCH_BAR_STYLE_MINIMAL: number; - - /** - * User tapped a link. - */ - const WEBVIEW_NAVIGATIONTYPE_LINK_CLICKED: number; - - /** - * User submitted a form. - */ - const WEBVIEW_NAVIGATIONTYPE_FORM_SUBMITTED: number; - - /** - * User tapped the back or forward button. - */ - const WEBVIEW_NAVIGATIONTYPE_BACK_FORWARD: number; - - /** - * User tapped the reload button. - */ - const WEBVIEW_NAVIGATIONTYPE_RELOAD: number; - - /** - * User resubmitted a form. - */ - const WEBVIEW_NAVIGATIONTYPE_FORM_RESUBMITTED: number; - - /** - * Some other action occurred. - */ - const WEBVIEW_NAVIGATIONTYPE_OTHER: number; - - /** - * String that represents the magnifying glass on the table view index bar - */ - const TABLEVIEW_INDEX_SEARCH: string; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_COMPOSE: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_PLAY: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_PAUSE: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_ADD: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_LOCATION: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_SEARCH: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_SHARE: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_PROHIBIT: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_CONTACT: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_HOME: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_MARK_LOCATION: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_FAVORITE: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_LOVE: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_CLOUD: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_INVITATION: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_CONFIRMATION: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_MAIL: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_MESSAGE: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_DATE: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_TIME: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_CAPTURE_PHOTO: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_CAPTURE_VIDEO: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_TASK: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_TASK_COMPLETED: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_ALARM: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_BOOKMARK: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_SHUFFLE: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_AUDIO: number; - - /** - * Number that represents the icon used for the application shortcut - */ - const SHORTCUT_ICON_TYPE_UPDATE: number; - - /** - * Value of the badge for the application's springboard icon. - */ - let appBadge: number; - - /** - * Determines whether the shake to edit system-wide capability is enabled. - */ - let appSupportsShakeToEdit: boolean; - - /** - * Sets the global status bar background color for the application. - */ - let statusBarBackgroundColor: string; - - /** - * Credential should not be stored. - */ - const CREDENTIAL_PERSISTENCE_NONE: number; - - /** - * Credential should be stored only for this session. - */ - const CREDENTIAL_PERSISTENCE_FOR_SESSION: number; - - /** - * Credential should be stored in the keychain. - */ - const CREDENTIAL_PERSISTENCE_PERMANENT: number; - - /** - * Credential should be stored permanently in the keychain, and in addition should be - * distributed to other devices based on the owning AppleID. - */ - const CREDENTIAL_PERSISTENCE_SYNCHRONIZABLE: number; - - /** - * No media types require a user gesture to begin playing. - */ - const AUDIOVISUAL_MEDIA_TYPE_NONE: number; - - /** - * Media types containing audio require a user gesture to begin playing. - */ - const AUDIOVISUAL_MEDIA_TYPE_AUDIO: number; - - /** - * Media types containing video require a user gesture to begin playing. - */ - const AUDIOVISUAL_MEDIA_TYPE_VIDEO: number; - - /** - * All media types require a user gesture to begin playing. - */ - const AUDIOVISUAL_MEDIA_TYPE_ALL: number; - - /** - * Specifies that the caching logic defined in the protocol implementation, if any, - * is used for a particular URL load request. - */ - const CACHE_POLICY_USE_PROTOCOL_CACHE_POLICY: number; - - /** - * Specifies that the data for the URL load should be loaded from the originating source. - * No existing cache data should be used to satisfy a URL load request. - */ - const CACHE_POLICY_RELOAD_IGNORING_LOCAL_CACHE_DATA: number; - - /** - * Specifies that the existing cached data should be used to satisfy the request, - * regardless of its age or expiration date. - */ - const CACHE_POLICY_RETURN_CACHE_DATA_ELSE_LOAD: number; - - /** - * Specifies that the existing cache data should be used to satisfy a request, - * regardless of its age or expiration date. - */ - const CACHE_POLICY_RETURN_CACHE_DATA_DONT_LOAD: number; - - /** - * Selection granularity varies automatically depending on the selection. - */ - const SELECTION_GRANULARITY_DYNAMIC: number; - - /** - * Selection endpoints can be placed at any character boundary. - */ - const SELECTION_GRANULARITY_CHARACTER: number; - - /** - * Cancel the navigation. - */ - const ACTION_POLICY_CANCEL: number; - - /** - * Allow the navigation to continue. - */ - const ACTION_POLICY_ALLOW: number; - - /** - * Inject the script after the document element is created, but before any other content is loaded. - */ - const INJECTION_TIME_DOCUMENT_START: number; - - /** - * Inject the script after the document finishes loading, but before other subresources finish loading. - */ - const INJECTION_TIME_DOCUMENT_END: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Creates a transition animation when opening or closing windows in a - * or . - */ - function createTransitionAnimation(transition: transitionAnimationParam): Titanium.Proxy; - - /** - * Creates a live photo badge to be used together with the - * API. - */ - function createLivePhotoBadge(type: number): Titanium.Blob; - - /** - * Creates and returns an instance of . - */ - function createAdView(parameters?: any): Titanium.UI.iOS.AdView; - - /** - * Creates and returns an instance of . - */ - function createAnchorAttachmentBehavior(parameters?: any): Titanium.UI.iOS.AnchorAttachmentBehavior; - - /** - * Creates and returns an instance of . - */ - function createAnimator(parameters?: any): Titanium.UI.iOS.Animator; - - /** - * Creates and returns an instance of . - */ - function createApplicationShortcuts(parameters?: any): Titanium.UI.iOS.ApplicationShortcuts; - - /** - * Creates and returns an instance of . - */ - function createAttribute(parameters?: any): Titanium.UI.iOS.Attribute; - - /** - * Creates and returns an instance of . - */ - function createAttributedString(parameters?: any): Titanium.UI.iOS.AttributedString; - - /** - * Creates and returns an instance of . - */ - function createBlurView(parameters?: any): Titanium.UI.iOS.BlurView; - - /** - * Creates and returns an instance of . - */ - function createCollisionBehavior(parameters?: any): Titanium.UI.iOS.CollisionBehavior; - - /** - * Creates and returns an instance of . - */ - function createCoverFlowView(parameters?: any): Titanium.UI.iOS.CoverFlowView; - - /** - * Creates and returns an instance of . - */ - function createDocumentViewer(parameters?: any): Titanium.UI.iOS.DocumentViewer; - - /** - * Creates and returns an instance of . - */ - function createDynamicItemBehavior(parameters?: any): Titanium.UI.iOS.DynamicItemBehavior; - - /** - * Creates and returns an instance of . - */ - function createFeedbackGenerator(parameters?: any): Titanium.UI.iOS.FeedbackGenerator; - - /** - * Creates and returns an instance of . - */ - function createGravityBehavior(parameters?: any): Titanium.UI.iOS.GravityBehavior; - - /** - * Creates and returns an instance of . - */ - function createLivePhotoView(parameters?: any): Titanium.UI.iOS.LivePhotoView; - - /** - * Creates and returns an instance of . - */ - function createMenuPopup(parameters?: any): Titanium.UI.iOS.MenuPopup; - - /** - * Creates and returns an instance of . - */ - function createNavigationWindow(parameters?: any): Titanium.UI.iOS.NavigationWindow; - - /** - * Creates and returns an instance of . - */ - function createPreviewAction(parameters?: any): Titanium.UI.iOS.PreviewAction; - - /** - * Creates and returns an instance of . - */ - function createPreviewActionGroup(parameters?: any): Titanium.UI.iOS.PreviewActionGroup; - - /** - * Creates and returns an instance of . - */ - function createPreviewContext(parameters?: any): Titanium.UI.iOS.PreviewContext; - - /** - * Creates and returns an instance of . - */ - function createPushBehavior(parameters?: any): Titanium.UI.iOS.PushBehavior; - - /** - * Creates and returns an instance of . - */ - function createSnapBehavior(parameters?: any): Titanium.UI.iOS.SnapBehavior; - - /** - * Creates and returns an instance of . - */ - function createSplitWindow(parameters?: any): Titanium.UI.iOS.SplitWindow; - - /** - * Creates and returns an instance of . - */ - function createStepper(parameters?: any): Titanium.UI.iOS.Stepper; - - /** - * Creates and returns an instance of . - */ - function createTabbedBar(parameters?: any): Titanium.UI.iOS.TabbedBar; - - /** - * Creates and returns an instance of . - */ - function createToolbar(parameters?: any): Titanium.UI.iOS.Toolbar; - - /** - * Creates and returns an instance of . - */ - function createViewAttachmentBehavior(parameters?: any): Titanium.UI.iOS.ViewAttachmentBehavior; - - /** - * Creates and returns an instance of . - */ - function createWebViewConfiguration(parameters?: any): Titanium.UI.iOS.WebViewConfiguration; - - /** - * Creates and returns an instance of . - */ - function createWebViewDecisionHandler(parameters?: any): Titanium.UI.iOS.WebViewDecisionHandler; - - /** - * Creates and returns an instance of . - */ - function createWebViewProcessPool(parameters?: any): Titanium.UI.iOS.WebViewProcessPool; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getForceTouchSupported(): boolean; - - /** - * Sets the value of the property. - */ - function setMODAL_PRESENTATION_CURRENT_CONTEXT(MODAL_PRESENTATION_CURRENT_CONTEXT: number): void; - - /** - * Sets the value of the property. - */ - function setMODAL_PRESENTATION_OVER_CURRENT_CONTEXT(MODAL_PRESENTATION_OVER_CURRENT_CONTEXT: number): void; - - /** - * Sets the value of the property. - */ - function setMODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN(MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN: number): void; - - /** - * Gets the value of the property. - */ - function getAppBadge(): number; - - /** - * Sets the value of the property. - */ - function setAppBadge(appBadge: number): void; - - /** - * Gets the value of the property. - */ - function getAppSupportsShakeToEdit(): boolean; - - /** - * Sets the value of the property. - */ - function setAppSupportsShakeToEdit(appSupportsShakeToEdit: boolean): void; - - /** - * Gets the value of the property. - */ - function getStatusBarBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - function setStatusBarBackgroundColor(statusBarBackgroundColor: string): void; - - /** - * The AdView is a view for display Apple iAds. - */ - interface AdView extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Size of the advertisement when minimized. - */ - adSize: string; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Cancel a banner to uncover the user interface. - */ - cancelAction(): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getAdSize(): string; - - /** - * Sets the value of the property. - */ - setAdSize(adSize: string): void; - - } - /** - * Dynamic behavior to support connections between an anchor point and an item. - */ - interface AnchorAttachmentBehavior extends Titanium.Proxy { - /** - * Anchor point for the attachment behavior relative to the animator's coordinate system. - */ - anchor: Point; - - /** - * Amount of damping to apply to the attachment behavior. - */ - damping: number; - - /** - * Distance, in points, between the two attachment points. - */ - distance: number; - - /** - * Frequency of oscillation for the behavior. - */ - frequency: number; - - /** - * Item to connect to use the attachment behavior. - */ - item: Titanium.UI.View; - - /** - * Offset from the center point of the item for the attachment. - */ - offset: Point; - - /** - * Gets the value of the property. - */ - getAnchor(): Point; - - /** - * Sets the value of the property. - */ - setAnchor(anchor: Point): void; - - /** - * Gets the value of the property. - */ - getDamping(): number; - - /** - * Sets the value of the property. - */ - setDamping(damping: number): void; - - /** - * Gets the value of the property. - */ - getDistance(): number; - - /** - * Sets the value of the property. - */ - setDistance(distance: number): void; - - /** - * Gets the value of the property. - */ - getFrequency(): number; - - /** - * Sets the value of the property. - */ - setFrequency(frequency: number): void; - - /** - * Gets the value of the property. - */ - getItem(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setItem(item: any): void; - - /** - * Gets the value of the property. - */ - getOffset(): Point; - - /** - * Sets the value of the property. - */ - setOffset(offset: Point): void; - - } - /** - * Provides support for the built-in iOS dynamic animations - */ - interface Animator extends Titanium.Proxy { - /** - * Behaviors associated with this animator. - */ - behaviors: Titanium.Proxy[]; - - /** - * Titanium View object to initialize as the reference view for the animator. - */ - referenceView: Titanium.UI.View; - - /** - * Returns `true` if the animator is running else `false`. - */ - readonly running: boolean; - - /** - * Adds a dynamic behavior to the animator. - */ - addBehavior(behavior: Titanium.Proxy): void; - - /** - * Removes all behaviors from this animator. - */ - removeAllBehaviors(): void; - - /** - * Removes the specified behavior from the animator. - */ - removeBehavior(behavior: Titanium.Proxy): void; - - /** - * Starts the animation behaviors. - */ - startAnimator(): void; - - /** - * Stops the animation behaviors. - */ - stopAnimator(): void; - - /** - * Updates the animator's state information with the current state of the specified item. - */ - updateItemUsingCurrentState(item: any): void; - - /** - * Gets the value of the property. - */ - getBehaviors(): Titanium.Proxy[]; - - /** - * Sets the value of the property. - */ - setBehaviors(behaviors: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getReferenceView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setReferenceView(referenceView: any): void; - - /** - * Gets the value of the property. - */ - getRunning(): boolean; - - } - /** - * The Home screen quick actions API is for adding shortcuts to your app icon that anticipate and accelerate a - * user's interaction with your app. - */ - interface ApplicationShortcuts extends Titanium.Proxy { - /** - * Returns an array of the application shortcuts created dynamically. - */ - listDynamicShortcuts(): ShortcutParams[]; - - /** - * Returns an array of the application shortcuts listed in your tiapp.xml file. - */ - listStaticShortcuts(): ShortcutParams[]; - - /** - * Removes all dynamically created application shortcuts. - */ - removeAllDynamicShortcuts(): void; - - /** - * Returns true or false depending if the provided shortcut object already exists. - */ - dynamicShortcutExists(itemtype: string): boolean; - - /** - * Creates a new dynamic application shortcut item. - */ - addDynamicShortcut(params: ShortcutParams): void; - - /** - * Removes the dynamic application shortcut item identified by the `itemtype`. - */ - removeDynamicShortcut(itemtype: string): void; - - /** - * Gets the dynamic application shortcut item identified by the `itemtype`. - */ - getDynamicShortcut(itemtype: string): void; - - } - /** - * An abstract datatype for specifying an attributed string attribute. - */ - interface Attribute extends Titanium.Proxy { - /** - * Attribute to apply to the text. - */ - type: number; - - /** - * Attribute value. - */ - value: number; - - /** - * Attribute range. - */ - range: number[]; - - /** - * Gets the value of the property. - */ - getType(): number; - - /** - * Sets the value of the property. - */ - setType(type: number): void; - - /** - * Gets the value of the property. - */ - getValue(): number; - - /** - * Sets the value of the property. - */ - setValue(value: number): void; - - /** - * Gets the value of the property. - */ - getRange(): number[]; - - /** - * Sets the value of the property. - */ - setRange(range: ReadonlyArray): void; - - } - /** - * An attributed string proxy manages character strings and associated sets of attributes (for example, - * font and kerning) that apply to individual characters or ranges of characters in the string. - */ - interface AttributedString extends Titanium.Proxy { - /** - * The text applied to the attributed string. - */ - text: string; - - /** - * An array of attributes to add. - */ - attributes: Attribute[]; - - /** - * Adds an [attribute](Attribute) with the given name and value to the characters in the specified range. - */ - addAttribute(attribute: Attribute): void; - - /** - * Gets the value of the property. - */ - getText(): string; - - /** - * Sets the value of the property. - */ - setText(text: string): void; - - /** - * Gets the value of the property. - */ - getAttributes(): Attribute[]; - - /** - * Sets the value of the property. - */ - setAttributes(attributes: ReadonlyArray): void; - - } - /** - * A object gives you an easy way implement some complex visual effects. - * The blur effect is applied to every view the blur view is added to by default. You can also place the - * blur view above other views and all visible views layered under the blur view are blurred as well. - * For more information on BlurView, please refer to the official [Apple documentation](https://developer.apple.com/documentation/uikit/uivisualeffectview). - * Note: Apple introduced two new constants and in - * iOS 10. These are internally mapped to and . - */ - interface BlurView extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * The effect you provide for the view. - */ - effect: number; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getEffect(): number; - - /** - * Sets the value of the property. - */ - setEffect(effect: number): void; - - } - /** - * Dynamic behavior to support collisions between items and boundaries. - */ - interface CollisionBehavior extends Titanium.Proxy { - /** - * Boundary identfiers added to this behavior. - */ - readonly boundaryIdentifiers: BoundaryIdentifier[]; - - /** - * Specifies the collision behavior. - */ - collisionMode: number; - - /** - * Items added to this behavior. - */ - readonly items: Titanium.UI.View[]; - - /** - * Insets to apply when using the animator's reference view as the boundary. - */ - referenceInsets: ReferenceInsets; - - /** - * Use the animator's reference view as the boundary. - */ - treatReferenceAsBoundary: boolean; - - /** - * Adds a boundary to this behavior. - */ - addBoundary(boundary: BoundaryIdentifier): void; - - /** - * Adds an item to this behavior. - */ - addItem(item: any): void; - - /** - * Removes all boundaries from this behavior. - */ - removeAllBoundaries(): void; - - /** - * Removes the specified boundary from this behavior. - */ - removeBoundary(boundary: BoundaryIdentifier): void; - - /** - * Removes the specified item from this behavior. - */ - removeItem(item: any): void; - - /** - * Gets the value of the property. - */ - getBoundaryIdentifiers(): BoundaryIdentifier[]; - - /** - * Gets the value of the property. - */ - getCollisionMode(): number; - - /** - * Sets the value of the property. - */ - setCollisionMode(collisionMode: number): void; - - /** - * Gets the value of the property. - */ - getItems(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getReferenceInsets(): ReferenceInsets; - - /** - * Sets the value of the property. - */ - setReferenceInsets(referenceInsets: ReferenceInsets): void; - - /** - * Gets the value of the property. - */ - getTreatReferenceAsBoundary(): boolean; - - /** - * Sets the value of the property. - */ - setTreatReferenceAsBoundary(treatReferenceAsBoundary: boolean): void; - - } - /** - * The cover flow view is a container showing animated three-dimensional images in a style - * consistent with the cover flow presentation style used for iPod, iTunes, and file browsing. - */ - interface CoverFlowView extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Images to display in the view. - */ - images: string[] | Titanium.Blob[] | Titanium.Filesystem.File[] | CoverFlowImageType[]; - - /** - * Index to make selected. - */ - selected: number; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Changes the image for a specified index. - */ - setImage(index: number, image: string): void; - - /** - * Changes the image for a specified index. - */ - setImage(index: number, image: Titanium.Blob): void; - - /** - * Changes the image for a specified index. - */ - setImage(index: number, image: Titanium.Filesystem.File): void; - - /** - * Changes the image for a specified index. - */ - setImage(index: number, image: CoverFlowImageType): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getImages(): string[] | Titanium.Blob[] | Titanium.Filesystem.File[] | CoverFlowImageType[]; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setImages(images: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getSelected(): number; - - /** - * Sets the value of the property. - */ - setSelected(selected: number): void; - - } - /** - * A DocumentViewer provides in-app support for managing user interactions with files on the - * local system. - */ - interface DocumentViewer extends Titanium.Proxy { - /** - * Name of the file (without the path). - */ - readonly name: string; - - /** - * URL of the document being previewed. - */ - url: string; - - /** - * Dismisses the document viewer. - */ - hide(options?: DocumentViewerOptions): void; - - /** - * Displays the document viewer over the current view. - */ - show(options?: DocumentViewerOptions): void; - - /** - * Gets the value of the property. - */ - getName(): string; - - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - } - /** - * Base dynamic configuration for an item. - */ - interface DynamicItemBehavior extends Titanium.Proxy { - /** - * Specifies if this item can rotate. - */ - allowsRotation: boolean; - - /** - * Specifies the angular resistance of this item. - */ - angularResistance: number; - - /** - * Specifies the relative mass density of this item. - */ - density: number; - - /** - * Specifies the elasticity applied to collisions for this item. - */ - elasticity: number; - - /** - * Specifies the linear resistance of the item when it slides against another item. - */ - friction: number; - - /** - * Items added to this behavior. - */ - readonly items: Titanium.UI.View[]; - - /** - * Specifies the linear resistance of this item which reduces linear velocity over time. - */ - resistance: number; - - /** - * Adds a specified angular velocity for the item. - */ - addAngularVelocityForItem(item: any, velocity: number): void; - - /** - * Adds an item to this behavior. - */ - addItem(item: any): void; - - /** - * Adds a specified linear velocity for the item. - */ - addLinearVelocityForItem(item: any, velocity: Point): void; - - /** - * Returns the angular velocity of the item. - */ - angularVelocityForItem(item: any): number; - - /** - * Returns the linear velocity of the item. - */ - linearVelocityForItem(item: any): Point; - - /** - * Removes the specified item from this behavior. - */ - removeItem(item: any): void; - - /** - * Gets the value of the property. - */ - getAllowsRotation(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsRotation(allowsRotation: boolean): void; - - /** - * Gets the value of the property. - */ - getAngularResistance(): number; - - /** - * Sets the value of the property. - */ - setAngularResistance(angularResistance: number): void; - - /** - * Gets the value of the property. - */ - getDensity(): number; - - /** - * Sets the value of the property. - */ - setDensity(density: number): void; - - /** - * Gets the value of the property. - */ - getElasticity(): number; - - /** - * Sets the value of the property. - */ - setElasticity(elasticity: number): void; - - /** - * Gets the value of the property. - */ - getFriction(): number; - - /** - * Sets the value of the property. - */ - setFriction(friction: number): void; - - /** - * Gets the value of the property. - */ - getItems(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getResistance(): number; - - /** - * Sets the value of the property. - */ - setResistance(resistance: number): void; - - } - /** - * The feedback generator API is introduced in iOS 10 to handle the haptic feedback when using an iPhone 7 or - * later devices. - */ - interface FeedbackGenerator extends Titanium.Proxy { - /** - * The type of feedback generator you want to create. - */ - type: number; - - /** - * The style of the feedback generator you want to create. This property is only required when using . - */ - style?: number; - - /** - * Used to prepare the haptic sensor for the upcoming interaction with it. - */ - prepare(): void; - - /** - * Used to trigger a haptic feedback after a selection has been made. - */ - selectionChanged(): void; - - /** - * Used to trigger a haptic feedback after an impact occurred. - */ - impactOccurred(): void; - - /** - * Used to trigger a haptic feedback after a notification has been received. - */ - notificationOccurred(notificationType: number): void; - - /** - * Gets the value of the property. - */ - getType(): number; - - /** - * Sets the value of the property. - */ - setType(type: number): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - } - /** - * Gravitational force to apply to an item. - */ - interface GravityBehavior extends Titanium.Proxy { - /** - * Specifies the angle of the gravity vector in radians. - */ - angle: number; - - /** - * Specifies the direction of the gravity vector as an x, y pair. - */ - gravityDirection: Point; - - /** - * Items added to this behavior. - */ - readonly items: Titanium.UI.View[]; - - /** - * Specifies the magnitude of the gravity vector. - */ - magnitude: number; - - /** - * Adds an item to this behavior. - */ - addItem(item: any): void; - - /** - * Removes the specified item from this behavior. - */ - removeItem(item: any): void; - - /** - * Gets the value of the property. - */ - getAngle(): number; - - /** - * Sets the value of the property. - */ - setAngle(angle: number): void; - - /** - * Gets the value of the property. - */ - getGravityDirection(): Point; - - /** - * Sets the value of the property. - */ - setGravityDirection(gravityDirection: Point): void; - - /** - * Gets the value of the property. - */ - getItems(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getMagnitude(): number; - - /** - * Sets the value of the property. - */ - setMagnitude(magnitude: number): void; - - } - /** - * A set of constants for the style that can be used for the `selectionStyle` property of a - * ListItem, which is set in the `properties` dictionary of either the or - * . - */ - interface ListViewCellSelectionStyle extends Titanium.Proxy { - /** - * The cell when selected has a blue background. This is the default value. - */ - readonly BLUE: number; - - /** - * The cell when selected has a gray background. - */ - readonly GRAY: number; - - /** - * The cell has no distinct style for when it is selected. - */ - readonly NONE: number; - - } - /** - * A set of constants for the position value that can be used for the `position` property of - * when invoking the ListView's `scrollToItem`, `appendSection`, - * `deleteSectionAt`, `insertSectionAt` and `replaceSectionAt` methods. - */ - interface ListViewScrollPosition extends Titanium.Proxy { - /** - * The list view scrolls the row of interest to the bottom of the visible list view. - */ - readonly BOTTOM: number; - - /** - * The list view scrolls the row of interest to the middle of the list table view. - */ - readonly MIDDLE: number; - - /** - * The table view scrolls the row of interest to be fully visible with a minimal movement. - * If the row is already fully visible, no scrolling occurs. For example, if the row is above the - * visible area, the behavior is identical to that specified by `TOP`. This is the default. - */ - readonly NONE: number; - - /** - * The list view scrolls the row of interest to the top of the visible list view. - */ - readonly TOP: number; - - } - /** - * A set of constants for the style that can be used for the `style` property of - * . - */ - interface ListViewStyle extends Titanium.Proxy { - /** - * A list view whose sections present distinct groups of rows. The section headers and footers - * do not float. - */ - readonly GROUPED: number; - - /** - * A plain list view. Any section headers or footers are displayed as inline separators and - * float when the list view is scrolled. - */ - readonly PLAIN: number; - - } - /** - * Abstract object representing a live photo used in . - */ - interface LivePhoto extends Titanium.Proxy { - } - /** - * A view to display a object introduced in iOS 9.1. - */ - interface LivePhotoView extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * The Live Photo displayed in the view. - */ - livePhoto: Titanium.UI.iOS.LivePhoto; - - /** - * A Boolean value that determines whether the view plays the audio content of its Live Photo. - */ - muted: boolean; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Begins playback of Live Photo content in the view. - */ - startPlaybackWithStyle(playbackStyle: number): void; - - /** - * Ends playback of Live Photo content in the view. - */ - stopPlayback(): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getLivePhoto(): Titanium.UI.iOS.LivePhoto; - - /** - * Sets the value of the property. - */ - setLivePhoto(livePhoto: Titanium.UI.iOS.LivePhoto): void; - - /** - * Gets the value of the property. - */ - getMuted(): boolean; - - /** - * Sets the value of the property. - */ - setMuted(muted: boolean): void; - - } - /** - * A menu popup provides the ability to create custom tooltip options using the `items` property - * covering the native `UIMenuController` class. - * See also: - * * [iOS Developer Library: UIMenuController](https://developer.apple.com/documentation/uikit/uimenucontroller) - */ - interface MenuPopup extends Titanium.Proxy { - /** - * The items of the menu popup. - */ - items: string; - - /** - * Shows the menu popup. - */ - show(params: MenuPopupShowParams): void; - - /** - * Hides the menu popup. - */ - hide(params?: MenuPopupHideParams): void; - - /** - * Indicates whether the menu popup is currently visible. - */ - isVisible(): void; - - /** - * Gets the value of the property. - */ - getItems(): string; - - /** - * Sets the value of the property. - */ - setItems(items: string): void; - - } - /** - * A `NavigationWindow` implements a specialized view that manages the navigation of hierarchical - * content. - */ - interface NavigationWindow extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the window, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * Window's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * Window's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * The opacity from 0.0-1.0. - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * Window's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * Window's top position, in platform-specific units. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * An array of supported values specified using the EXTEND_EDGE constants in . - */ - extendEdges: number[]; - - /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). - */ - includeOpaqueBars: boolean; - - /** - * Specifies whether or not the view controller should automatically adjust its scroll view insets. - */ - autoAdjustScrollViewInsets: boolean; - - /** - * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. - */ - extendSafeArea: boolean; - - /** - * Boolean value indicating if the window is fullscreen. - */ - fullscreen: boolean; - - /** - * Boolean value indicating whether the system is allowed to hide the visual indicator for returning to the Home screen. - */ - homeIndicatorAutoHidden: boolean; - - /** - * Set this to true to hide the navigation bar on swipe. - */ - hidesBarsOnSwipe: boolean; - - /** - * Set this to true to hide the navigation bar on tap. - */ - hidesBarsOnTap: boolean; - - /** - * Set this to true to hide the navigation bar when the keyboard appears. - */ - hidesBarsWhenKeyboardAppears: boolean; - - /** - * Set this to true to hide the back button of navigation bar. - */ - hidesBackButton: boolean; - - /** - * A Boolean value indicating whether the title should be displayed in a large format. - */ - largeTitleEnabled: string; - - /** - * The mode to use when displaying the title of the navigation bar. - */ - largeTitleDisplayMode: number; - - /** - * An Array of views to show in the left nav bar area. - */ - leftNavButtons: Titanium.UI.View[]; - - /** - * Indicates to open a modal window or not. - */ - modal: boolean; - - /** - * The instance hosting this window. - */ - readonly navigationWindow: Titanium.UI.NavigationWindow; - - /** - * Array of supported orientation modes, specified using the orientation - * constants defined in . - */ - orientationModes: number[]; - - /** - * Current orientation of the window. - */ - readonly orientation: number; - - /** - * An Array of views to show in the right nav bar area. - */ - rightNavButtons: Titanium.UI.View[]; - - /** - * The padding needed to safely display content without it being overlapped by the screen insets and notches. - */ - readonly safeAreaPadding: Dimension; - - /** - * The status bar style associated with this window. - */ - statusBarStyle: number; - - /** - * Title text attributes of the window. - */ - titleAttributes: titleAttributesParams; - - /** - * Window to add to this navigation window. - */ - window: Titanium.UI.Window; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Closes the window. - */ - close(params?: any): void; - - /** - * Hides the navigation bar. - */ - hideNavBar(options?: any): void; - - /** - * Opens the window. - */ - open(params?: openWindowParams): void; - - /** - * Makes the navigation bar visible. - */ - showNavBar(options?: any): void; - - /** - * Makes the bottom toolbar visible. - */ - showToolbar(options?: any): void; - - /** - * Makes the bottom toolbar invisible. - */ - hideToolbar(options?: any): void; - - /** - * Closes a window and removes it from the navigation window. - */ - closeWindow(window: Titanium.UI.Window, options: any): void; - - /** - * Opens a window within the navigation window. - */ - openWindow(window: Titanium.UI.Window, options: any): void; - - /** - * Closes all windows that are currently opened inside the navigation window. - */ - popToRootWindow(options: any): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getExtendEdges(): number[]; - - /** - * Sets the value of the property. - */ - setExtendEdges(extendEdges: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getIncludeOpaqueBars(): boolean; - - /** - * Sets the value of the property. - */ - setIncludeOpaqueBars(includeOpaqueBars: boolean): void; - - /** - * Gets the value of the property. - */ - getAutoAdjustScrollViewInsets(): boolean; - - /** - * Sets the value of the property. - */ - setAutoAdjustScrollViewInsets(autoAdjustScrollViewInsets: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendSafeArea(): boolean; - - /** - * Sets the value of the property. - */ - setExtendSafeArea(extendSafeArea: boolean): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getHomeIndicatorAutoHidden(): boolean; - - /** - * Sets the value of the property. - */ - setHomeIndicatorAutoHidden(homeIndicatorAutoHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnSwipe(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnSwipe(hidesBarsOnSwipe: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnTap(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnTap(hidesBarsOnTap: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsWhenKeyboardAppears(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsWhenKeyboardAppears(hidesBarsWhenKeyboardAppears: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBackButton(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBackButton(hidesBackButton: boolean): void; - - /** - * Gets the value of the property. - */ - getLargeTitleEnabled(): string; - - /** - * Sets the value of the property. - */ - setLargeTitleEnabled(largeTitleEnabled: string): void; - - /** - * Gets the value of the property. - */ - getLargeTitleDisplayMode(): number; - - /** - * Sets the value of the property. - */ - setLargeTitleDisplayMode(largeTitleDisplayMode: number): void; - - /** - * Gets the value of the property. - */ - getLeftNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setLeftNavButtons(leftNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getModal(): boolean; - - /** - * Sets the value of the property. - */ - setModal(modal: boolean): void; - - /** - * Gets the value of the property. - */ - getNavigationWindow(): Titanium.UI.NavigationWindow; - - /** - * Gets the value of the property. - */ - getOrientationModes(): number[]; - - /** - * Sets the value of the property. - */ - setOrientationModes(orientationModes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOrientation(): number; - - /** - * Gets the value of the property. - */ - getRightNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setRightNavButtons(rightNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getSafeAreaPadding(): Dimension; - - /** - * Gets the value of the property. - */ - getStatusBarStyle(): number; - - /** - * Sets the value of the property. - */ - setStatusBarStyle(statusBarStyle: number): void; - - /** - * Gets the value of the property. - */ - getTitleAttributes(): titleAttributesParams; - - /** - * Sets the value of the property. - */ - setTitleAttributes(titleAttributes: titleAttributesParams): void; - - /** - * Gets the value of the property. - */ - getWindow(): Titanium.UI.Window; - - /** - * Sets the value of the property. - */ - setWindow(window: Titanium.UI.Window): void; - - } - /** - * A PreviewAction provides options to configure actions used by the iOS 9 3D-Touch "Peek and Pop" - * feature. - */ - interface PreviewAction extends Titanium.Proxy { - /** - * The title of the action. - */ - title: string; - - /** - * The style of the action. - */ - style: number; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - } - /** - * A PreviewActionGroup provides options to configure a group of actions used by the iOS9 3D-Touch - * feature "Peek and Pop". - */ - interface PreviewActionGroup extends Titanium.Proxy { - /** - * The title of the action group. - */ - title: string; - - /** - * The style of the action group. - */ - style: number; - - /** - * The preview actions assigned to this preview action group. - */ - actions: Titanium.UI.iOS.PreviewAction[]; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - /** - * Gets the value of the property. - */ - getActions(): Titanium.UI.iOS.PreviewAction[]; - - /** - * Sets the value of the property. - */ - setActions(actions: ReadonlyArray): void; - - } - /** - * A PreviewContext provides options to configure the iOS 9 3D-Touch "Peek and Pop" feature. - */ - interface PreviewContext extends Titanium.Proxy { - /** - * The preview actions and preview action groups. - */ - actions: Titanium.UI.iOS.PreviewAction[]; - - /** - * The height of the preview. - */ - contentHeight: number; - - /** - * The preview view. - */ - preview: Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getActions(): Titanium.UI.iOS.PreviewAction[]; - - /** - * Sets the value of the property. - */ - setActions(actions: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getContentHeight(): number; - - /** - * Sets the value of the property. - */ - setContentHeight(contentHeight: number): void; - - /** - * Gets the value of the property. - */ - getPreview(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setPreview(preview: any): void; - - } - /** - * Continuous or instantaneous force to apply to an item. - */ - interface PushBehavior extends Titanium.Proxy { - /** - * State of the push behavior's force. - */ - active: boolean; - - /** - * Specifies the angle of the force vector in radians. - */ - angle: number; - - /** - * Items added to this behavior. - */ - readonly items: Titanium.UI.View[]; - - /** - * Specifies the magnitude of the force vector. - */ - magnitude: number; - - /** - * Specifies the direction of the force vector as an x, y pair. - */ - pushDirection: Point; - - /** - * Specifies the push mode. - */ - pushMode: number; - - /** - * Adds an item to this behavior. - */ - addItem(item: any): void; - - /** - * Removes the specified item from this behavior. - */ - removeItem(item: any): void; - - /** - * Gets the value of the property. - */ - getActive(): boolean; - - /** - * Sets the value of the property. - */ - setActive(active: boolean): void; - - /** - * Gets the value of the property. - */ - getAngle(): number; - - /** - * Sets the value of the property. - */ - setAngle(angle: number): void; - - /** - * Gets the value of the property. - */ - getItems(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getMagnitude(): number; - - /** - * Sets the value of the property. - */ - setMagnitude(magnitude: number): void; - - /** - * Gets the value of the property. - */ - getPushDirection(): Point; - - /** - * Sets the value of the property. - */ - setPushDirection(pushDirection: Point): void; - - /** - * Gets the value of the property. - */ - getPushMode(): number; - - /** - * Sets the value of the property. - */ - setPushMode(pushMode: number): void; - - } - /** - * Dynamic behavior defining an item's movement to a specific point. - */ - interface SnapBehavior extends Titanium.Proxy { - /** - * Specifies the amount of oscillation during the conclusion of the snap. - */ - damping: number; - - /** - * Item to add to this behavior. - */ - item: Titanium.UI.View; - - /** - * Specifies the point to snap to. - */ - snapPoint: Point; - - /** - * Gets the value of the property. - */ - getDamping(): number; - - /** - * Sets the value of the property. - */ - setDamping(damping: number): void; - - /** - * Gets the value of the property. - */ - getItem(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setItem(item: any): void; - - /** - * Gets the value of the property. - */ - getSnapPoint(): Point; - - /** - * Sets the value of the property. - */ - setSnapPoint(snapPoint: Point): void; - - } - /** - * A SplitWindow is a window that manages the presentation of two side-by-side view - * controllers. - */ - interface SplitWindow extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the window, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * Window's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * Window's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * The opacity from 0.0-1.0. - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * Window's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * Window's top position, in platform-specific units. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Title for the back button. This is only valid when the window is a child of a tab. - */ - backButtonTitle: string; - - /** - * The image to show as the back button. This is only valid when the window is a child of a tab. - */ - backButtonTitleImage: string | Titanium.Blob; - - /** - * Background color for the nav bar, as a color name or hex triplet. - */ - barColor: string; - - /** - * Background image for the nav bar, specified as a URL to a local image. - */ - barImage: string; - - /** - * An array of supported values specified using the EXTEND_EDGE constants in . - */ - extendEdges: number[]; - - /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). - */ - includeOpaqueBars: boolean; - - /** - * Specifies whether or not the view controller should automatically adjust its scroll view insets. - */ - autoAdjustScrollViewInsets: boolean; - - /** - * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. - */ - extendSafeArea: boolean; - - /** - * Boolean value indicating if the window is fullscreen. - */ - fullscreen: boolean; - - /** - * Boolean value indicating whether the system is allowed to hide the visual indicator for returning to the Home screen. - */ - homeIndicatorAutoHidden: boolean; - - /** - * Set this to true to hide the shadow image of the navigation bar. - */ - hideShadow: boolean; - - /** - * Set this to true to hide the navigation bar on swipe. - */ - hidesBarsOnSwipe: boolean; - - /** - * Set this to true to hide the navigation bar on tap. - */ - hidesBarsOnTap: boolean; - - /** - * Set this to true to hide the navigation bar when the keyboard appears. - */ - hidesBarsWhenKeyboardAppears: boolean; - - /** - * Set this to true to hide the back button of navigation bar. - */ - hidesBackButton: boolean; - - /** - * A Boolean value indicating whether the title should be displayed in a large format. - */ - largeTitleEnabled: string; - - /** - * The mode to use when displaying the title of the navigation bar. - */ - largeTitleDisplayMode: number; - - /** - * View to show in the left nav bar area. - */ - leftNavButton: Titanium.UI.View; - - /** - * An Array of views to show in the left nav bar area. - */ - leftNavButtons: Titanium.UI.View[]; - - /** - * Indicates to open a modal window or not. - */ - modal: boolean; - - /** - * Hides the navigation bar (`true`) or shows the navigation bar (`false`). - */ - navBarHidden: boolean; - - /** - * The tintColor to apply to the navigation bar. - */ - navTintColor: string; - - /** - * The instance hosting this window. - */ - readonly navigationWindow: Titanium.UI.NavigationWindow; - - /** - * Array of supported orientation modes, specified using the orientation - * constants defined in . - */ - orientationModes: number[]; - - /** - * Current orientation of the window. - */ - readonly orientation: number; - - /** - * View to show in the right nav bar area. - */ - rightNavButton: Titanium.UI.View; - - /** - * An Array of views to show in the right nav bar area. - */ - rightNavButtons: Titanium.UI.View[]; - - /** - * The padding needed to safely display content without it being overlapped by the screen insets and notches. - */ - readonly safeAreaPadding: Dimension; - - /** - * Shadow image for the navigation bar, specified as a URL to a local image.. - */ - shadowImage: string; - - /** - * The status bar style associated with this window. - */ - statusBarStyle: number; - - /** - * Boolean value indicating if the tab bar should be hidden. - */ - tabBarHidden: boolean; - - /** - * Title of the window. - */ - title: string; - - /** - * Title text attributes of the window. - */ - titleAttributes: titleAttributesParams; - - /** - * View to show in the title area of the nav bar. - */ - titleControl: Titanium.UI.View; - - /** - * Image to show in the title area of the nav bar, specified as a local file path or URL. - */ - titleImage: string; - - /** - * Title prompt for the window. - */ - titlePrompt: string; - - /** - * Key identifying a string from the locale file to use for the window title. - */ - titleid: string; - - /** - * Key identifying a string from the locale file to use for the window title prompt. - */ - titlepromptid: string; - - /** - * Array of button objects to show in the window's toolbar. - */ - toolbar: any[]; - - /** - * Boolean value indicating if the nav bar is translucent. - */ - translucent: boolean; - - /** - * Loads a JavaScript file from a local URL. - */ - url: string; - - /** - * Window for the detail view section of the SplitWindow. - */ - detailView: Titanium.UI.Window; - - /** - * Window for the master view section of the SplitWindow. - */ - masterView: Titanium.UI.Window; - - /** - * Determines whether to show the master view in portrait orientation. - */ - showMasterInPortrait: boolean; - - /** - * Determines whether to show the master view is overlayed in portrait orientation. - */ - masterIsOverlayed: boolean; - - /** - * Determines whether to show the master view or hide. - */ - masterViewVisible: boolean; - - /** - * Determines the width of the `masterView` in portrait mode. - */ - portraitSplit: number; - - /** - * Determines the width of the `masterView` in landscape mode. - */ - landscapeSplit: number; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Closes the window. - */ - close(params?: any): void; - - /** - * Hides the navigation bar. - */ - hideNavBar(options?: any): void; - - /** - * Hides the tab bar. Must be called before opening the window. - */ - hideTabBar(): void; - - /** - * Opens the window. - */ - open(params?: openWindowParams): void; - - /** - * Sets the array of items to show in the window's toolbar. - */ - setToolbar(items: ReadonlyArray, params?: windowToolbarParam): void; - - /** - * Makes the navigation bar visible. - */ - showNavBar(options?: any): void; - - /** - * Makes the bottom toolbar visible. - */ - showToolbar(options?: any): void; - - /** - * Makes the bottom toolbar invisible. - */ - hideToolbar(options?: any): void; - - /** - * Sets the value of the [showMasterInPortrait](Titanium.UI.iOS.SplitWindow.showMasterInPortrait) property. - */ - setShowMasterInPortrait(showMasterInPortrait: boolean, animated?: animationOption): void; - - /** - * Sets the value of the [masterIsOverlayed](Titanium.UI.iOS.SplitWindow.masterIsOverlayed) property. - */ - setMasterIsOverlayed(masterIsOverlayed: boolean, animated?: animationOption): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getBackButtonTitle(): string; - - /** - * Sets the value of the property. - */ - setBackButtonTitle(backButtonTitle: string): void; - - /** - * Gets the value of the property. - */ - getBackButtonTitleImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setBackButtonTitleImage(backButtonTitleImage: string): void; - - /** - * Sets the value of the property. - */ - setBackButtonTitleImage(backButtonTitleImage: Titanium.Blob): void; - - /** - * Gets the value of the property. - */ - getBarColor(): string; - - /** - * Sets the value of the property. - */ - setBarColor(barColor: string): void; - - /** - * Gets the value of the property. - */ - getBarImage(): string; - - /** - * Sets the value of the property. - */ - setBarImage(barImage: string): void; - - /** - * Gets the value of the property. - */ - getExtendEdges(): number[]; - - /** - * Sets the value of the property. - */ - setExtendEdges(extendEdges: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getIncludeOpaqueBars(): boolean; - - /** - * Sets the value of the property. - */ - setIncludeOpaqueBars(includeOpaqueBars: boolean): void; - - /** - * Gets the value of the property. - */ - getAutoAdjustScrollViewInsets(): boolean; - - /** - * Sets the value of the property. - */ - setAutoAdjustScrollViewInsets(autoAdjustScrollViewInsets: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendSafeArea(): boolean; - - /** - * Sets the value of the property. - */ - setExtendSafeArea(extendSafeArea: boolean): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getHomeIndicatorAutoHidden(): boolean; - - /** - * Sets the value of the property. - */ - setHomeIndicatorAutoHidden(homeIndicatorAutoHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getHideShadow(): boolean; - - /** - * Sets the value of the property. - */ - setHideShadow(hideShadow: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnSwipe(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnSwipe(hidesBarsOnSwipe: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnTap(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnTap(hidesBarsOnTap: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsWhenKeyboardAppears(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsWhenKeyboardAppears(hidesBarsWhenKeyboardAppears: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBackButton(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBackButton(hidesBackButton: boolean): void; - - /** - * Gets the value of the property. - */ - getLargeTitleEnabled(): string; - - /** - * Sets the value of the property. - */ - setLargeTitleEnabled(largeTitleEnabled: string): void; - - /** - * Gets the value of the property. - */ - getLargeTitleDisplayMode(): number; - - /** - * Sets the value of the property. - */ - setLargeTitleDisplayMode(largeTitleDisplayMode: number): void; - - /** - * Gets the value of the property. - */ - getLeftNavButton(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setLeftNavButton(leftNavButton: any): void; - - /** - * Gets the value of the property. - */ - getLeftNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setLeftNavButtons(leftNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getModal(): boolean; - - /** - * Sets the value of the property. - */ - setModal(modal: boolean): void; - - /** - * Gets the value of the property. - */ - getNavBarHidden(): boolean; - - /** - * Sets the value of the property. - */ - setNavBarHidden(navBarHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getNavTintColor(): string; - - /** - * Sets the value of the property. - */ - setNavTintColor(navTintColor: string): void; - - /** - * Gets the value of the property. - */ - getNavigationWindow(): Titanium.UI.NavigationWindow; - - /** - * Gets the value of the property. - */ - getOrientationModes(): number[]; - - /** - * Sets the value of the property. - */ - setOrientationModes(orientationModes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOrientation(): number; - - /** - * Gets the value of the property. - */ - getRightNavButton(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setRightNavButton(rightNavButton: any): void; - - /** - * Gets the value of the property. - */ - getRightNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setRightNavButtons(rightNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getSafeAreaPadding(): Dimension; - - /** - * Gets the value of the property. - */ - getShadowImage(): string; - - /** - * Sets the value of the property. - */ - setShadowImage(shadowImage: string): void; - - /** - * Gets the value of the property. - */ - getStatusBarStyle(): number; - - /** - * Sets the value of the property. - */ - setStatusBarStyle(statusBarStyle: number): void; - - /** - * Gets the value of the property. - */ - getTabBarHidden(): boolean; - - /** - * Sets the value of the property. - */ - setTabBarHidden(tabBarHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleAttributes(): titleAttributesParams; - - /** - * Sets the value of the property. - */ - setTitleAttributes(titleAttributes: titleAttributesParams): void; - - /** - * Gets the value of the property. - */ - getTitleControl(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setTitleControl(titleControl: any): void; - - /** - * Gets the value of the property. - */ - getTitleImage(): string; - - /** - * Sets the value of the property. - */ - setTitleImage(titleImage: string): void; - - /** - * Gets the value of the property. - */ - getTitlePrompt(): string; - - /** - * Sets the value of the property. - */ - setTitlePrompt(titlePrompt: string): void; - - /** - * Gets the value of the property. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - /** - * Gets the value of the property. - */ - getTitlepromptid(): string; - - /** - * Sets the value of the property. - */ - setTitlepromptid(titlepromptid: string): void; - - /** - * Gets the value of the property. - */ - getToolbar(): any[]; - - /** - * Gets the value of the property. - */ - getTranslucent(): boolean; - - /** - * Sets the value of the property. - */ - setTranslucent(translucent: boolean): void; - - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - /** - * Gets the value of the property. - */ - getDetailView(): Titanium.UI.Window; - - /** - * Sets the value of the property. - */ - setDetailView(detailView: Titanium.UI.Window): void; - - /** - * Gets the value of the property. - */ - getMasterView(): Titanium.UI.Window; - - /** - * Sets the value of the property. - */ - setMasterView(masterView: Titanium.UI.Window): void; - - /** - * Gets the value of the property. - */ - getShowMasterInPortrait(): boolean; - - /** - * Gets the value of the property. - */ - getMasterIsOverlayed(): boolean; - - /** - * Gets the value of the property. - */ - getMasterViewVisible(): boolean; - - /** - * Sets the value of the property. - */ - setMasterViewVisible(masterViewVisible: boolean): void; - - /** - * Gets the value of the property. - */ - getPortraitSplit(): number; - - /** - * Sets the value of the property. - */ - setPortraitSplit(portraitSplit: number): void; - - /** - * Gets the value of the property. - */ - getLandscapeSplit(): number; - - /** - * Sets the value of the property. - */ - setLandscapeSplit(landscapeSplit: number): void; - - } - /** - * A widget used to increment and decrement a value. - */ - interface Stepper extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the stepper in its normal state, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * Sets the color for the widget, any backgroundImages added will be set to the same color. - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Determines if the stepper is enabled or disabled. - */ - enabled: boolean; - - /** - * The current value of the stepper. - */ - value: number; - - /** - * If YES, value change events are sent immediately when the value changes during user interaction. - * If NO, a value change event is sent when user interaction ends. - * The default value is YES. - */ - continuous: boolean; - - /** - * If YES, the user pressing and holding on the stepper repeatedly alters value. - * The default value is YES. - */ - autorepeat: boolean; - - /** - * If YES, incrementing beyond sets value to . likewise, decrementing below - * sets value to . If NO, the stepper does not increment beyond nor - * does it decrement below but rather holds at those values. - * The default value is NO. - */ - wraps: boolean; - - /** - * The minimum value the stepper will be set to, the value must be smaller than the maximum value. - * If you attempt to set a value equal to or greater than maximum, the system will default the - * value to 0. - */ - minimum: number; - - /** - * The maximum value the stepper will be set to, the value must be greater than the minimum value. - * If you attempt to set a value equal to or lower than minimum, the system will default the - * value to 100. - */ - maximum: number; - - /** - * The value the stepper will increment and decrement by, default value for this property is 1. When setting - * a new value, it must be greater than 1. - */ - steps: number; - - /** - * Background image for the stepper decrement button in its normal state, specified as a local - * file path or URL. - */ - decrementImage: string; - - /** - * Background image for the stepper decrement button in its disabled state, specified as a local - * file path or URL. The decrement button enters a disabled state ones the value is equal to the - * minimumValue , setting the enabled property to false will have no effect to decrement button state. - */ - decrementDisabledImage: string; - - /** - * Background image for the stepper increment button in its normal state, specified as a local - * file path or URL. - */ - incrementImage: string; - - /** - * Background image for the stepper increment button in its disabled state, specified as a local - * file path or URL.The increment button enters a disabled state ones the value is equal to the - * maximumValue , setting the enabled property to false will have no effect to increment button state. - */ - incrementDisabledImage: string; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setEnabled(enabled: boolean): void; - - /** - * Gets the value of the property. - */ - getValue(): number; - - /** - * Sets the value of the property. - */ - setValue(value: number): void; - - /** - * Gets the value of the property. - */ - getContinuous(): boolean; - - /** - * Sets the value of the property. - */ - setContinuous(continuous: boolean): void; - - /** - * Gets the value of the property. - */ - getAutorepeat(): boolean; - - /** - * Sets the value of the property. - */ - setAutorepeat(autorepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getWraps(): boolean; - - /** - * Sets the value of the property. - */ - setWraps(wraps: boolean): void; - - /** - * Gets the value of the property. - */ - getMinimum(): number; - - /** - * Sets the value of the property. - */ - setMinimum(minimum: number): void; - - /** - * Gets the value of the property. - */ - getMaximum(): number; - - /** - * Sets the value of the property. - */ - setMaximum(maximum: number): void; - - /** - * Gets the value of the property. - */ - getSteps(): number; - - /** - * Sets the value of the property. - */ - setSteps(steps: number): void; - - /** - * Gets the value of the property. - */ - getDecrementImage(): string; - - /** - * Sets the value of the property. - */ - setDecrementImage(decrementImage: string): void; - - /** - * Gets the value of the property. - */ - getDecrementDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setDecrementDisabledImage(decrementDisabledImage: string): void; - - /** - * Gets the value of the property. - */ - getIncrementImage(): string; - - /** - * Sets the value of the property. - */ - setIncrementImage(incrementImage: string): void; - - /** - * Gets the value of the property. - */ - getIncrementDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setIncrementDisabledImage(incrementDisabledImage: string): void; - - } - /** - * A button bar that maintains a selected state. - */ - interface TabbedBar extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Index of the currently selected button. - */ - index: number; - - /** - * Array of labels for the tabbed bar. - */ - labels: string[] | BarItemType[]; - - /** - * Style of the tabbed bar. - */ - style: number; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getIndex(): number; - - /** - * Sets the value of the property. - */ - setIndex(index: number): void; - - /** - * Gets the value of the property. - */ - getLabels(): string[] | BarItemType[]; - - /** - * Sets the value of the property. - */ - setLabels(labels: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setLabels(labels: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - - } - /** - * An iOS toolbar, which can contain buttons and certain other controls. - */ - interface Toolbar extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * The preview context used in the 3D-Touch feature "Peek and Pop". - */ - previewContext: Titanium.UI.iOS.PreviewContext; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Background color for the toolbar, as a color name or hex triplet. - */ - barColor: string; - - /** - * An array of buttons (or other widgets) contained in the toolbar. - */ - items: Titanium.UI.View[]; - - /** - * If `true`, the background of the toolbar extends upwards. - */ - extendBackground: boolean; - - /** - * If `true`, a translucent background color is used for the toolbar. - */ - translucent: boolean; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getPreviewContext(): Titanium.UI.iOS.PreviewContext; - - /** - * Sets the value of the property. - */ - setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getBarColor(): string; - - /** - * Sets the value of the property. - */ - setBarColor(barColor: string): void; - - /** - * Gets the value of the property. - */ - getItems(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setItems(items: any[]): void; - - /** - * Gets the value of the property. - */ - getExtendBackground(): boolean; - - /** - * Sets the value of the property. - */ - setExtendBackground(extendBackground: boolean): void; - - /** - * Gets the value of the property. - */ - getTranslucent(): boolean; - - /** - * Sets the value of the property. - */ - setTranslucent(translucent: boolean): void; - - } - /** - * Dynamic behavior to support connections between two items. - */ - interface ViewAttachmentBehavior extends Titanium.Proxy { - /** - * Item to use as the anchor in this behavior. - */ - anchorItem: Titanium.UI.View; - - /** - * Offset from the center point of the anchor item for the attachment. - */ - anchorOffset: Point; - - /** - * Amount of damping to apply to the attachment behavior. - */ - damping: number; - - /** - * Distance, in points, between the two attachment points. - */ - distance: number; - - /** - * Frequency of oscillation for the behavior. - */ - frequency: number; - - /** - * Item to connect to use the attachment behavior. - */ - item: Titanium.UI.View; - - /** - * Offset from the center point of the item for the attachment. - */ - itemOffset: Point; - - /** - * Gets the value of the property. - */ - getAnchorItem(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setAnchorItem(anchorItem: any): void; - - /** - * Gets the value of the property. - */ - getAnchorOffset(): Point; - - /** - * Sets the value of the property. - */ - setAnchorOffset(anchorOffset: Point): void; - - /** - * Gets the value of the property. - */ - getDamping(): number; - - /** - * Sets the value of the property. - */ - setDamping(damping: number): void; - - /** - * Gets the value of the property. - */ - getDistance(): number; - - /** - * Sets the value of the property. - */ - setDistance(distance: number): void; - - /** - * Gets the value of the property. - */ - getFrequency(): number; - - /** - * Sets the value of the property. - */ - setFrequency(frequency: number): void; - - /** - * Gets the value of the property. - */ - getItem(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setItem(item: any): void; - - /** - * Gets the value of the property. - */ - getItemOffset(): Point; - - /** - * Sets the value of the property. - */ - setItemOffset(itemOffset: Point): void; - - } - /** - * A collection of properties used to initialize a web view. - */ - interface WebViewConfiguration extends Titanium.Proxy { - /** - * The preference settings to be used by the web view. - */ - preferences: WebViewPreferencesObject; - - /** - * The level of granularity with which the user can interactively select content in the web view. - */ - selectionGranularity: number; - - /** - * Determines which media types require a user gesture to begin playing. - */ - mediaTypesRequiringUserActionForPlayback: number; - - /** - * A Boolean value indicating whether the web view suppresses content rendering until it is fully - * loaded into memory. - */ - suppressesIncrementalRendering: boolean; - - /** - * A Boolean value indicating whether HTML5 videos play inline or use the native full-screen controller. - */ - allowsInlineMediaPlayback: boolean; - - /** - * A Boolean value indicating whether AirPlay is allowed. - */ - allowsAirPlayMediaPlayback: boolean; - - /** - * A Boolean value indicating whether HTML5 videos can play picture-in-picture. - */ - allowsPictureInPictureMediaPlayback: boolean; - - /** - * The process pool from which to obtain the Web Content process of view. - */ - processPool: Titanium.UI.iOS.WebViewProcessPool; - - /** - * Gets the value of the property. - */ - getPreferences(): WebViewPreferencesObject; - - /** - * Sets the value of the property. - */ - setPreferences(preferences: WebViewPreferencesObject): void; - - /** - * Gets the value of the property. - */ - getSelectionGranularity(): number; - - /** - * Sets the value of the property. - */ - setSelectionGranularity(selectionGranularity: number): void; - - /** - * Gets the value of the property. - */ - getMediaTypesRequiringUserActionForPlayback(): number; - - /** - * Sets the value of the property. - */ - setMediaTypesRequiringUserActionForPlayback(mediaTypesRequiringUserActionForPlayback: number): void; - - /** - * Gets the value of the property. - */ - getSuppressesIncrementalRendering(): boolean; - - /** - * Sets the value of the property. - */ - setSuppressesIncrementalRendering(suppressesIncrementalRendering: boolean): void; - - /** - * Gets the value of the property. - */ - getAllowsInlineMediaPlayback(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsInlineMediaPlayback(allowsInlineMediaPlayback: boolean): void; - - /** - * Gets the value of the property. - */ - getAllowsAirPlayMediaPlayback(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsAirPlayMediaPlayback(allowsAirPlayMediaPlayback: boolean): void; - - /** - * Gets the value of the property. - */ - getAllowsPictureInPictureMediaPlayback(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsPictureInPictureMediaPlayback(allowsPictureInPictureMediaPlayback: boolean): void; - - /** - * Gets the value of the property. - */ - getProcessPool(): Titanium.UI.iOS.WebViewProcessPool; - - /** - * Sets the value of the property. - */ - setProcessPool(processPool: Titanium.UI.iOS.WebViewProcessPool): void; - - } - /** - * It represents the decision handler to tell to webview, whether allow or cancel the navigation. - */ - interface WebViewDecisionHandler extends Titanium.Proxy { - /** - * It calls the decision handler with given action policy. - */ - invoke(value: number): void; - - } - /** - * It represents a pool of Web Content processes. - */ - interface WebViewProcessPool extends Titanium.Proxy { - } - - /** - * A set of constants for the style that can be used for the `style` property of - * . - */ - namespace AlertDialogStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * A standard alert dialog. This is the default value. - */ - const DEFAULT: number; - - /** - * An alert dialog that allows the user to enter text. - */ - const PLAIN_TEXT_INPUT: number; - - /** - * An alert dialog that allows the user to enter text. The text field is obscured. - */ - const SECURE_TEXT_INPUT: number; - - /** - * An alert dialog that allows the user to enter login identifier and password. - */ - const LOGIN_AND_PASSWORD_INPUT: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the animation styles used for view transitions. - * One of the group of animation style constants - * * [CURL_DOWN](Titanium.UI.iOS.AnimationStyle.CURL_DOWN) - * * [CURL_UP](Titanium.UI.iOS.AnimationStyle.CURL_UP) - * * [FLIP_FROM_LEFT](Titanium.UI.iOS.AnimationStyle.FLIP_FROM_LEFT) - * * [FLIP_FROM_RIGHT](Titanium.UI.iOS.AnimationStyle.FLIP_FROM_RIGHT) - * * [FLIP_FROM_TOP](Titanium.UI.iOS.AnimationStyle.FLIP_FROM_TOP) - * * [FLIP_FROM_BOTTOM](Titanium.UI.iOS.AnimationStyle.FLIP_FROM_BOTTOM) - * * [CROSS_DISSOLVE](Titanium.UI.iOS.AnimationStyle.CROSS_DISSOLVE) - * * [NONE](Titanium.UI.iOS.AnimationStyle.NONE) - */ - namespace AnimationStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Curl downwards during a transition animation. - */ - const CURL_DOWN: number; - - /** - * Curl upwards during a transition animation. - */ - const CURL_UP: number; - - /** - * Flip from left to right during a transition animation. - */ - const FLIP_FROM_LEFT: number; - - /** - * Flip from right to left during a transition animation. - */ - const FLIP_FROM_RIGHT: number; - - /** - * Flip from top to bottom during a transition animation. - */ - const FLIP_FROM_TOP: number; - - /** - * Flip from bottom to top during a transition animation. - */ - const FLIP_FROM_BOTTOM: number; - - /** - * A transition that dissolves from one view to the next. - */ - const CROSS_DISSOLVE: number; - - /** - * No animation. - */ - const NONE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the bar styles used on the `style` property of . - */ - namespace ProgressBarStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The style of progress view that is used in a toolbar. - */ - const BAR: number; - - /** - * The standard progress-view style. This is the default. - */ - const DEFAULT: number; - - /** - * The standard progress-view style. Same as `DEFAULT`. - */ - const PLAIN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the Animation Styles used for transition on table view rows. - */ - namespace RowAnimationStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The inserted row or rows slides in from the bottom; the deleted row or rows slides out - * toward the bottom. - */ - const BOTTOM: number; - - /** - * The inserted or deleted row or rows fades into or out of the table view. - */ - const FADE: number; - - /** - * The inserted row or rows slides in from the left; the deleted row or rows slides out to the - * left. - */ - const LEFT: number; - - /** - * No animation is performed. The new cell value appears as if the cell had just been reloaded. - */ - const NONE: number; - - /** - * The inserted row or rows slides in from the right; the deleted row or rows slides out to - * the right. - */ - const RIGHT: number; - - /** - * The inserted row or rows slides in from the top; the deleted row or rows slides out toward - * the top. - */ - const TOP: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the styles available for scrollbars used with and properties. - */ - namespace ScrollIndicatorStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * A style of indicator which is black smaller than the default style. This style is good - * against a white content background. - */ - const BLACK: number; - - /** - * The default style of scroll indicator, which is black with a white border. This style is - * good against any content background. - */ - const DEFAULT: number; - - /** - * A style of indicator is white and smaller than the default style. This style is good against - * a black content background. - */ - const WHITE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the status bar style. - */ - namespace StatusBar { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * No animation style, when the status bar is hidden or shown. - */ - const ANIMATION_STYLE_NONE: number; - - /** - * Slide animation style, when the status bar is hidden or shown. - */ - const ANIMATION_STYLE_SLIDE: number; - - /** - * Fade animation style, when the status bar is hidden or shown. - */ - const ANIMATION_STYLE_FADE: number; - - /** - * Default status bar style. - */ - const DEFAULT: number; - - /** - * Gray-colored status bar style. - */ - const GRAY: number; - - /** - * Gray-colored status bar style. - */ - const GREY: number; - - /** - * Status bar style to use with dark backgrounds. - */ - const LIGHT_CONTENT: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for creating standard iOS system buttons. - */ - namespace SystemButton { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Action** button. - */ - const ACTION: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create an activity indicator that - * can be used in navigation bars and toolbars. - */ - const ACTIVITY: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Add** button. - */ - const ADD: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Bookmarks** button. - */ - const BOOKMARKS: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Camera** button. - */ - const CAMERA: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Cancel** button. - */ - const CANCEL: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Compose** button. - */ - const COMPOSE: number; - - /** - * Use with [Button.style](Titanium.UI.Button.style) to specify a **ContactAdd** button. - */ - const CONTACT_ADD: number; - - /** - * Use with [Button.style](Titanium.UI.Button.style) to specify a **Disclosure** button. - */ - const DISCLOSURE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Done** button. - */ - const DONE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Edit** button. - */ - const EDIT: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Fast Forward** button. - */ - const FAST_FORWARD: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create a fixed-width blank space - * for spacing items in toolbars. - */ - const FIXED_SPACE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create a flexible blank space - * for spacing items in toolbars. - */ - const FLEXIBLE_SPACE: number; - - /** - * Use with [Button.style](Titanium.UI.Button.style) to specify a dark-colored **Info** button. - */ - const INFO_DARK: number; - - /** - * Use with [Button.style](Titanium.UI.Button.style) to specify a light-colored **Info** button. - */ - const INFO_LIGHT: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Organize** button. - */ - const ORGANIZE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Pause** button. - */ - const PAUSE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Play** button. - */ - const PLAY: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Refresh** button. - */ - const REFRESH: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Reply** button. - */ - const REPLY: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Rewind** button. - */ - const REWIND: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Save** button. - */ - const SAVE: number; - - /** - * Identical to [ACTIVITY](Titanium.UI.iOS.SystemButton.ACTIVITY). - */ - const SPINNER: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Stop** button. - */ - const STOP: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Trash** button. - */ - const TRASH: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the system button styles that can be used for the button `style` property. - */ - namespace SystemButtonStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * A simple button style with a border. - */ - const BORDERED: number; - - /** - * The style for a **Done** button--for example, a button that completes some task and returns - * to the previous view. - */ - const DONE: number; - - /** - * Specifies a borderless button, the default style for toolbars, button bars, and tabbed bars. - */ - const PLAIN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the system icon styles that can be used on a tab group tab. - */ - namespace SystemIcon { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Bookmark style icon - */ - const BOOKMARKS: number; - - /** - * Contacts style icon - */ - const CONTACTS: number; - - /** - * Downloads style icon - */ - const DOWNLOADS: number; - - /** - * Favorites style icon - */ - const FAVORITES: number; - - /** - * Featured style icon - */ - const FEATURED: number; - - /** - * History style icon - */ - const HISTORY: number; - - /** - * More style icon - */ - const MORE: number; - - /** - * Most recent style icon - */ - const MOST_RECENT: number; - - /** - * Most viewed style icon - */ - const MOST_VIEWED: number; - - /** - * Recents style icon - */ - const RECENTS: number; - - /** - * Search style icon - */ - const SEARCH: number; - - /** - * Top rated style icon - */ - const TOP_RATED: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the style that can be used for the `selectionStyle` property of - * . - */ - namespace TableViewCellSelectionStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The cell when selected has a blue background. This is the default value. - */ - const BLUE: number; - - /** - * Then cell when selected has a gray background. - */ - const GRAY: number; - - /** - * The cell has no distinct style for when it is selected. - */ - const NONE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the position value that can be used for the `position` property of - * when invoking `scrollToIndex`. - */ - namespace TableViewScrollPosition { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The table view scrolls the row of interest to the bottom of the visible table view. - */ - const BOTTOM: number; - - /** - * The table view scrolls the row of interest to the middle of the visible table view. - */ - const MIDDLE: number; - - /** - * The table view scrolls the row of interest to be fully visible with a minimum of movement. If the row is already fully visible, no scrolling occurs. For example, if the row is above the visible area, the behavior is identical to that specified by `TOP`. This is the default. - */ - const NONE: number; - - /** - * The table view scrolls the row of interest to the top of the visible table view. - */ - const TOP: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the style that can be used for the button `style` property of - * . - */ - namespace TableViewStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * A table view whose sections present distinct groups of rows. The section headers and footers - * do not float. - */ - const GROUPED: number; - - /** - * A plain table view. Any section headers or footers are displayed as inline separators and - * float when the table view is scrolled. - */ - const PLAIN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - } - - /** - * iPad specific UI capabilities. - */ - namespace iPad { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * An arrow that points in any direction. - */ - const POPOVER_ARROW_DIRECTION_ANY: number; - - /** - * An arrow that points downward. - */ - const POPOVER_ARROW_DIRECTION_DOWN: number; - - /** - * An arrow that points toward the left. - */ - const POPOVER_ARROW_DIRECTION_LEFT: number; - - /** - * An arrow that points toward the right. - */ - const POPOVER_ARROW_DIRECTION_RIGHT: number; - - /** - * The status of the arrow is currently unknown. - */ - const POPOVER_ARROW_DIRECTION_UNKNOWN: number; - - /** - * An arrow that points upward. - */ - const POPOVER_ARROW_DIRECTION_UP: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Creates and returns an instance of . - */ - function createDocumentViewer(parameters?: any): Titanium.UI.iPad.DocumentViewer; - - /** - * Creates and returns an instance of . - */ - function createPopover(parameters?: any): Titanium.UI.iPad.Popover; - - /** - * Creates and returns an instance of . - */ - function createSplitWindow(parameters?: any): Titanium.UI.iPad.SplitWindow; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * A DocumentViewer provides in-app support for managing user interactions with files on the - * local system. - */ - interface DocumentViewer extends Titanium.Proxy { - /** - * Displays the document viewer over the current view. - */ - show(animated: boolean, view: any): void; - - /** - * Sets the url of the document viewer. - */ - setUrl(url: string): void; - - } - /** - * A Popover is used to manage the presentation of content in a popover. - */ - interface Popover extends Titanium.Proxy { - /** - * Sets the background color of the popover. - */ - backgroundColor: string; - - /** - * Height of the popover. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Width of the popover. - */ - width: number | string; - - /** - * Indicates the arrow direction of the popover. - */ - arrowDirection: number; - - /** - * View to use for the popover content. Must be set before calling the `show()` method. - */ - contentView: Titanium.UI.View; - - /** - * Left button in the navigation area of the popover. - */ - leftNavButton: any; - - /** - * Passthrough views to use when the popover is shown. - */ - passthroughViews: Titanium.UI.View[]; - - /** - * Right button in the navigation area of the popover. - */ - rightNavButton: any; - - /** - * Title of the navigation area of the popover. - */ - title: string; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides the popover. - */ - hide(options: PopoverParams): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Displays the popover. - */ - show(params: PopoverParams): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getArrowDirection(): number; - - /** - * Sets the value of the property. - */ - setArrowDirection(arrowDirection: number): void; - - /** - * Gets the value of the property. - */ - getContentView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setContentView(contentView: any): void; - - /** - * Gets the value of the property. - */ - getLeftNavButton(): any; - - /** - * Sets the value of the property. - */ - setLeftNavButton(leftNavButton: any): void; - - /** - * Gets the value of the property. - */ - getPassthroughViews(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setPassthroughViews(passthroughViews: any[]): void; - - /** - * Gets the value of the property. - */ - getRightNavButton(): any; - - /** - * Sets the value of the property. - */ - setRightNavButton(rightNavButton: any): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - } - /** - * A SplitWindow is a window that manages the presentation of two side-by-side view - * controllers. - */ - interface SplitWindow extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the window, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * Window's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Adds a horizontal parallax effect to the view - */ - horizontalMotionEffect: any; - - /** - * Window's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * The opacity from 0.0-1.0. - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - * Defaults to `undefined`. Results in a light grey background color on the wrapper view. - */ - pullBackgroundColor: string; - - /** - * Window's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * The view's tintColor - */ - tintColor: string; - - /** - * Window's top position, in platform-specific units. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Adds a vertical parallax effect to the view - */ - verticalMotionEffect: any; - - /** - * Determines the blur radius used to create the shadow. - */ - viewShadowRadius: number; - - /** - * Determines the color of the shadow. - */ - viewShadowColor: string; - - /** - * Determines the offset for the shadow of the view. - */ - viewShadowOffset: Point; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Title for the back button. This is only valid when the window is a child of a tab. - */ - backButtonTitle: string; - - /** - * The image to show as the back button. This is only valid when the window is a child of a tab. - */ - backButtonTitleImage: string | Titanium.Blob; - - /** - * Background color for the nav bar, as a color name or hex triplet. - */ - barColor: string; - - /** - * Background image for the nav bar, specified as a URL to a local image. - */ - barImage: string; - - /** - * An array of supported values specified using the EXTEND_EDGE constants in . - */ - extendEdges: number[]; - - /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). - */ - includeOpaqueBars: boolean; - - /** - * Specifies whether or not the view controller should automatically adjust its scroll view insets. - */ - autoAdjustScrollViewInsets: boolean; - - /** - * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. - */ - extendSafeArea: boolean; - - /** - * Boolean value indicating if the window is fullscreen. - */ - fullscreen: boolean; - - /** - * Boolean value indicating whether the system is allowed to hide the visual indicator for returning to the Home screen. - */ - homeIndicatorAutoHidden: boolean; - - /** - * Set this to true to hide the shadow image of the navigation bar. - */ - hideShadow: boolean; - - /** - * Set this to true to hide the navigation bar on swipe. - */ - hidesBarsOnSwipe: boolean; - - /** - * Set this to true to hide the navigation bar on tap. - */ - hidesBarsOnTap: boolean; - - /** - * Set this to true to hide the navigation bar when the keyboard appears. - */ - hidesBarsWhenKeyboardAppears: boolean; - - /** - * Set this to true to hide the back button of navigation bar. - */ - hidesBackButton: boolean; - - /** - * A Boolean value indicating whether the title should be displayed in a large format. - */ - largeTitleEnabled: string; - - /** - * The mode to use when displaying the title of the navigation bar. - */ - largeTitleDisplayMode: number; - - /** - * View to show in the left nav bar area. - */ - leftNavButton: Titanium.UI.View; - - /** - * An Array of views to show in the left nav bar area. - */ - leftNavButtons: Titanium.UI.View[]; - - /** - * Indicates to open a modal window or not. - */ - modal: boolean; - - /** - * Hides the navigation bar (`true`) or shows the navigation bar (`false`). - */ - navBarHidden: boolean; - - /** - * The tintColor to apply to the navigation bar. - */ - navTintColor: string; - - /** - * The instance hosting this window. - */ - readonly navigationWindow: Titanium.UI.NavigationWindow; - - /** - * Array of supported orientation modes, specified using the orientation - * constants defined in . - */ - orientationModes: number[]; - - /** - * Current orientation of the window. - */ - readonly orientation: number; - - /** - * View to show in the right nav bar area. - */ - rightNavButton: Titanium.UI.View; - - /** - * An Array of views to show in the right nav bar area. - */ - rightNavButtons: Titanium.UI.View[]; - - /** - * The padding needed to safely display content without it being overlapped by the screen insets and notches. - */ - readonly safeAreaPadding: Dimension; - - /** - * Shadow image for the navigation bar, specified as a URL to a local image.. - */ - shadowImage: string; - - /** - * The status bar style associated with this window. - */ - statusBarStyle: number; - - /** - * Boolean value indicating if the tab bar should be hidden. - */ - tabBarHidden: boolean; - - /** - * Title of the window. - */ - title: string; - - /** - * Title text attributes of the window. - */ - titleAttributes: titleAttributesParams; - - /** - * View to show in the title area of the nav bar. - */ - titleControl: Titanium.UI.View; - - /** - * Image to show in the title area of the nav bar, specified as a local file path or URL. - */ - titleImage: string; - - /** - * Title prompt for the window. - */ - titlePrompt: string; - - /** - * Key identifying a string from the locale file to use for the window title. - */ - titleid: string; - - /** - * Key identifying a string from the locale file to use for the window title prompt. - */ - titlepromptid: string; - - /** - * Array of button objects to show in the window's toolbar. - */ - toolbar: any[]; - - /** - * Boolean value indicating if the nav bar is translucent. - */ - translucent: boolean; - - /** - * Loads a JavaScript file from a local URL. - */ - url: string; - - /** - * View for the detail view section of the SplitWindow. - */ - detailView: Titanium.UI.View; - - /** - * View for the master view section of the SplitWindow. - */ - masterView: Titanium.UI.View; - - /** - * Determines whether to show the master view in portrait orientation. - */ - showMasterInPortrait: boolean; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Closes the window. - */ - close(params?: any): void; - - /** - * Hides the navigation bar. - */ - hideNavBar(options?: any): void; - - /** - * Hides the tab bar. Must be called before opening the window. - */ - hideTabBar(): void; - - /** - * Opens the window. - */ - open(params?: openWindowParams): void; - - /** - * Sets the array of items to show in the window's toolbar. - */ - setToolbar(items: ReadonlyArray, params?: windowToolbarParam): void; - - /** - * Makes the navigation bar visible. - */ - showNavBar(options?: any): void; - - /** - * Makes the bottom toolbar visible. - */ - showToolbar(options?: any): void; - - /** - * Makes the bottom toolbar invisible. - */ - hideToolbar(options?: any): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setHorizontalMotionEffect(horizontalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getVerticalMotionEffect(): any; - - /** - * Sets the value of the property. - */ - setVerticalMotionEffect(verticalMotionEffect: any): void; - - /** - * Gets the value of the property. - */ - getViewShadowRadius(): number; - - /** - * Sets the value of the property. - */ - setViewShadowRadius(viewShadowRadius: number): void; - - /** - * Gets the value of the property. - */ - getViewShadowColor(): string; - - /** - * Sets the value of the property. - */ - setViewShadowColor(viewShadowColor: string): void; - - /** - * Gets the value of the property. - */ - getViewShadowOffset(): Point; - - /** - * Sets the value of the property. - */ - setViewShadowOffset(viewShadowOffset: Point): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getBackButtonTitle(): string; - - /** - * Sets the value of the property. - */ - setBackButtonTitle(backButtonTitle: string): void; - - /** - * Gets the value of the property. - */ - getBackButtonTitleImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setBackButtonTitleImage(backButtonTitleImage: string): void; - - /** - * Sets the value of the property. - */ - setBackButtonTitleImage(backButtonTitleImage: Titanium.Blob): void; - - /** - * Gets the value of the property. - */ - getBarColor(): string; - - /** - * Sets the value of the property. - */ - setBarColor(barColor: string): void; - - /** - * Gets the value of the property. - */ - getBarImage(): string; - - /** - * Sets the value of the property. - */ - setBarImage(barImage: string): void; - - /** - * Gets the value of the property. - */ - getExtendEdges(): number[]; - - /** - * Sets the value of the property. - */ - setExtendEdges(extendEdges: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getIncludeOpaqueBars(): boolean; - - /** - * Sets the value of the property. - */ - setIncludeOpaqueBars(includeOpaqueBars: boolean): void; - - /** - * Gets the value of the property. - */ - getAutoAdjustScrollViewInsets(): boolean; - - /** - * Sets the value of the property. - */ - setAutoAdjustScrollViewInsets(autoAdjustScrollViewInsets: boolean): void; - - /** - * Gets the value of the property. - */ - getExtendSafeArea(): boolean; - - /** - * Sets the value of the property. - */ - setExtendSafeArea(extendSafeArea: boolean): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getHomeIndicatorAutoHidden(): boolean; - - /** - * Sets the value of the property. - */ - setHomeIndicatorAutoHidden(homeIndicatorAutoHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getHideShadow(): boolean; - - /** - * Sets the value of the property. - */ - setHideShadow(hideShadow: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnSwipe(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnSwipe(hidesBarsOnSwipe: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsOnTap(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsOnTap(hidesBarsOnTap: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBarsWhenKeyboardAppears(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBarsWhenKeyboardAppears(hidesBarsWhenKeyboardAppears: boolean): void; - - /** - * Gets the value of the property. - */ - getHidesBackButton(): boolean; - - /** - * Sets the value of the property. - */ - setHidesBackButton(hidesBackButton: boolean): void; - - /** - * Gets the value of the property. - */ - getLargeTitleEnabled(): string; - - /** - * Sets the value of the property. - */ - setLargeTitleEnabled(largeTitleEnabled: string): void; - - /** - * Gets the value of the property. - */ - getLargeTitleDisplayMode(): number; - - /** - * Sets the value of the property. - */ - setLargeTitleDisplayMode(largeTitleDisplayMode: number): void; - - /** - * Gets the value of the property. - */ - getLeftNavButton(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setLeftNavButton(leftNavButton: any): void; - - /** - * Gets the value of the property. - */ - getLeftNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setLeftNavButtons(leftNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getModal(): boolean; - - /** - * Sets the value of the property. - */ - setModal(modal: boolean): void; - - /** - * Gets the value of the property. - */ - getNavBarHidden(): boolean; - - /** - * Sets the value of the property. - */ - setNavBarHidden(navBarHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getNavTintColor(): string; - - /** - * Sets the value of the property. - */ - setNavTintColor(navTintColor: string): void; - - /** - * Gets the value of the property. - */ - getNavigationWindow(): Titanium.UI.NavigationWindow; - - /** - * Gets the value of the property. - */ - getOrientationModes(): number[]; - - /** - * Sets the value of the property. - */ - setOrientationModes(orientationModes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOrientation(): number; - - /** - * Gets the value of the property. - */ - getRightNavButton(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setRightNavButton(rightNavButton: any): void; - - /** - * Gets the value of the property. - */ - getRightNavButtons(): Titanium.UI.View[]; - - /** - * Sets the value of the property. - */ - setRightNavButtons(rightNavButtons: any[]): void; - - /** - * Gets the value of the property. - */ - getSafeAreaPadding(): Dimension; - - /** - * Gets the value of the property. - */ - getShadowImage(): string; - - /** - * Sets the value of the property. - */ - setShadowImage(shadowImage: string): void; - - /** - * Gets the value of the property. - */ - getStatusBarStyle(): number; - - /** - * Sets the value of the property. - */ - setStatusBarStyle(statusBarStyle: number): void; - - /** - * Gets the value of the property. - */ - getTabBarHidden(): boolean; - - /** - * Sets the value of the property. - */ - setTabBarHidden(tabBarHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getTitleAttributes(): titleAttributesParams; - - /** - * Sets the value of the property. - */ - setTitleAttributes(titleAttributes: titleAttributesParams): void; - - /** - * Gets the value of the property. - */ - getTitleControl(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setTitleControl(titleControl: any): void; - - /** - * Gets the value of the property. - */ - getTitleImage(): string; - - /** - * Sets the value of the property. - */ - setTitleImage(titleImage: string): void; - - /** - * Gets the value of the property. - */ - getTitlePrompt(): string; - - /** - * Sets the value of the property. - */ - setTitlePrompt(titlePrompt: string): void; - - /** - * Gets the value of the property. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - /** - * Gets the value of the property. - */ - getTitlepromptid(): string; - - /** - * Sets the value of the property. - */ - setTitlepromptid(titlepromptid: string): void; - - /** - * Gets the value of the property. - */ - getToolbar(): any[]; - - /** - * Gets the value of the property. - */ - getTranslucent(): boolean; - - /** - * Sets the value of the property. - */ - setTranslucent(translucent: boolean): void; - - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - /** - * Gets the value of the property. - */ - getDetailView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setDetailView(detailView: any): void; - - /** - * Gets the value of the property. - */ - getMasterView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setMasterView(masterView: any): void; - - /** - * Gets the value of the property. - */ - getShowMasterInPortrait(): boolean; - - /** - * Sets the value of the property. - */ - setShowMasterInPortrait(showMasterInPortrait: boolean): void; - - } - } - - /** - * The iPhone/iPad-specific UI capabilities. All properties, methods and events in this namespace - * will only work on Apple iOS systems. - */ - namespace iPhone { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * View presented with the same style as its parent window. - */ - const MODAL_PRESENTATION_CURRENT_CONTEXT: number; - - /** - * Window width and height are smaller than those of the screen and the view is centered on - * the screen. - */ - const MODAL_PRESENTATION_FORMSHEET: number; - - /** - * Window covers the screen. - */ - const MODAL_PRESENTATION_FULLSCREEN: number; - - /** - * Window height is the height of the screen and width is equal to screen width in a portrait - * orientation. - */ - const MODAL_PRESENTATION_PAGESHEET: number; - - /** - * When the window is presented, its view slides up from the bottom of the screen. On dismissal, - * the view slides back down (default.) - */ - const MODAL_TRANSITION_STYLE_COVER_VERTICAL: number; - - /** - * When the window is presented, the current view fades out while the new view fades in at the - * same time. On dismissal, a similar type of cross-fade is used to return to the original view. - */ - const MODAL_TRANSITION_STYLE_CROSS_DISSOLVE: number; - - /** - * When the window is presented, the current view initiates a horizontal 3D flip from - * right-to-left, resulting in the revealing of the new view as if it were on the back of the - * previous view. On dismissal, the flip occurs from left-to-right, returning to the original - * view. - */ - const MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL: number; - - /** - * When the window is presented, one corner of the current view curls up to reveal the modal - * view underneath. On dismissal, the curled up page unfurls itself back on top of the modal - * view. - */ - const MODAL_TRANSITION_STYLE_PARTIAL_CURL: number; - - /** - * Value of the badge for the application's springboard icon. - */ - let appBadge: number; - - /** - * Determines whether the shake to edit system-wide capability is enabled. - */ - let appSupportsShakeToEdit: boolean; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getAppBadge(): number; - - /** - * Sets the value of the property. - */ - function setAppBadge(appBadge: number): void; - - /** - * Gets the value of the property. - */ - function getAppSupportsShakeToEdit(): boolean; - - /** - * Sets the value of the property. - */ - function setAppSupportsShakeToEdit(appSupportsShakeToEdit: boolean): void; - - /** - * A set of constants for the style that can be used for the `selectionStyle` property of a - * ListItem, which is set in the `properties` dictionary of either the or - * . - */ - interface ListViewCellSelectionStyle extends Titanium.Proxy { - /** - * The cell when selected has a blue background. This is the default value. - */ - readonly BLUE: number; - - /** - * The cell when selected has a gray background. - */ - readonly GRAY: number; - - /** - * The cell has no distinct style for when it is selected. - */ - readonly NONE: number; - - } - /** - * A set of constants for the position value that can be used for the `position` property of - * when invoking the ListView's `scrollToItem`, `appendSection`, - * `deleteSectionAt`, `insertSectionAt` and `replaceSectionAt` methods. - */ - interface ListViewScrollPosition extends Titanium.Proxy { - /** - * The list view scrolls the row of interest to the bottom of the visible list view. - */ - readonly BOTTOM: number; - - /** - * The list view scrolls the row of interest to the middle of the list table view. - */ - readonly MIDDLE: number; - - /** - * The table view scrolls the row of interest to be fully visible with a minimal movement. - * If the row is already fully visible, no scrolling occurs. For example, if the row is above the - * visible area, the behavior is identical to that specified by `TOP`. This is the default. - */ - readonly NONE: number; - - /** - * The list view scrolls the row of interest to the top of the visible list view. - */ - readonly TOP: number; - - } - /** - * A set of constants for the style that can be used for the `style` property of - * . - */ - interface ListViewStyle extends Titanium.Proxy { - /** - * A list view whose sections present distinct groups of rows. The section headers and footers - * do not float. - */ - readonly GROUPED: number; - - /** - * A plain list view. Any section headers or footers are displayed as inline separators and - * float when the list view is scrolled. - */ - readonly PLAIN: number; - - } - - /** - * A set of constants for the styles available for objects. - */ - namespace ActivityIndicatorStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Large white spinning indicator. - */ - const BIG: number; - - /** - * Small gray spinning indicator. - */ - const DARK: number; - - /** - * Small white spinning indicator (default.) - */ - const PLAIN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the style that can be used for the `style` property of - * . - */ - namespace AlertDialogStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * A standard alert dialog. This is the default value. - */ - const DEFAULT: number; - - /** - * An alert dialog that allows the user to enter text. - */ - const PLAIN_TEXT_INPUT: number; - - /** - * An alert dialog that allows the user to enter text. The text field is obscured. - */ - const SECURE_TEXT_INPUT: number; - - /** - * An alert dialog that allows the user to enter login identifier and password. - */ - const LOGIN_AND_PASSWORD_INPUT: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the animation styles used for view transitions. - */ - namespace AnimationStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Curl downwards during a transition animation. - */ - const CURL_DOWN: number; - - /** - * Curl upwards during a transition animation. - */ - const CURL_UP: number; - - /** - * Flip from left to right during a transition animation. - */ - const FLIP_FROM_LEFT: number; - - /** - * Flip from right to left during a transition animation. - */ - const FLIP_FROM_RIGHT: number; - - /** - * No animation. - */ - const NONE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the style that can be used for the `separatorStyle` property of - * . - */ - namespace ListViewSeparatorStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The separator cell has no distinct style. - */ - const NONE: number; - - /** - * The separator cell has a single line running across its width. This is the default value. - */ - const SINGLE_LINE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the bar styles used on the `style` property of . - */ - namespace ProgressBarStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The style of progress view that is used in a toolbar. - */ - const BAR: number; - - /** - * The standard progress-view style. This is the default. - */ - const DEFAULT: number; - - /** - * The standard progress-view style. Same as `DEFAULT`. - */ - const PLAIN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the Animation Styles used for transition on table view rows. - */ - namespace RowAnimationStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The inserted row or rows slides in from the bottom; the deleted row or rows slides out - * toward the bottom. - */ - const BOTTOM: number; - - /** - * The inserted or deleted row or rows fades into or out of the table view. - */ - const FADE: number; - - /** - * The inserted row or rows slides in from the left; the deleted row or rows slides out to the - * left. - */ - const LEFT: number; - - /** - * No animation is performed. The new cell value appears as if the cell had just been reloaded. - */ - const NONE: number; - - /** - * The inserted row or rows slides in from the right; the deleted row or rows slides out to - * the right. - */ - const RIGHT: number; - - /** - * The inserted row or rows slides in from the top; the deleted row or rows slides out toward - * the top. - */ - const TOP: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the styles available for scrollbars used with and properties. - */ - namespace ScrollIndicatorStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * A style of indicator which is black smaller than the default style. This style is good - * against a white content background. - */ - const BLACK: number; - - /** - * The default style of scroll indicator, which is black with a white border. This style is - * good against any content background. - */ - const DEFAULT: number; - - /** - * A style of indicator is white and smaller than the default style. This style is good against - * a black content background. - */ - const WHITE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for creating standard iOS system buttons. - */ - namespace SystemButton { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Action** button. - */ - const ACTION: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create an activity indicator that - * can be used in navigation bars and toolbars. - */ - const ACTIVITY: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Add** button. - */ - const ADD: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Bookmarks** button. - */ - const BOOKMARKS: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Camera** button. - */ - const CAMERA: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Cancel** button. - */ - const CANCEL: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Compose** button. - */ - const COMPOSE: number; - - /** - * Use with [Button.style](Titanium.UI.Button.style) to specify a **ContactAdd** button. - */ - const CONTACT_ADD: number; - - /** - * Use with [Button.style](Titanium.UI.Button.style) to specify a **Disclosure** button. - */ - const DISCLOSURE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Done** button. - */ - const DONE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Edit** button. - */ - const EDIT: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Fast Forward** button. - */ - const FAST_FORWARD: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create a fixed-width blank space - * for spacing items in toolbars. - */ - const FIXED_SPACE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create a flexible blank space - * for spacing items in toolbars. - */ - const FLEXIBLE_SPACE: number; - - /** - * Use with [Button.style](Titanium.UI.Button.style) to specify a dark-colored **Info** button. - */ - const INFO_DARK: number; - - /** - * Use with [Button.style](Titanium.UI.Button.style) to specify a light-colored **Info** button. - */ - const INFO_LIGHT: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Organize** button. - */ - const ORGANIZE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Pause** button. - */ - const PAUSE: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Play** button. - */ - const PLAY: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Refresh** button. - */ - const REFRESH: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Reply** button. - */ - const REPLY: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Rewind** button. - */ - const REWIND: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Save** button. - */ - const SAVE: number; - - /** - * Identical to [ACTIVITY](Titanium.UI.iPhone.SystemButton.ACTIVITY). - */ - const SPINNER: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Stop** button. - */ - const STOP: number; - - /** - * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Trash** button. - */ - const TRASH: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the system button styles that can be used for the button `style` property. - */ - namespace SystemButtonStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Used with [ButtonBar](Titanium.UI.ButtonBar) or [TabbedBar](Titanium.UI.iOS.TabbedBar) only, - * to use the more condensed style used in nav bars and tool bars. - */ - const BAR: number; - - /** - * A simple button style with a border. - */ - const BORDERED: number; - - /** - * The style for a **Done** button--for example, a button that completes some task and returns - * to the previous view. - */ - const DONE: number; - - /** - * Specifies a borderless button, the default style for toolbars, button bars, and tabbed bars. - */ - const PLAIN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the system icon styles that can be used on a tab group tab. - */ - namespace SystemIcon { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Bookmark style icon - */ - const BOOKMARKS: number; - - /** - * Contacts style icon - */ - const CONTACTS: number; - - /** - * Downloads style icon - */ - const DOWNLOADS: number; - - /** - * Favorites style icon - */ - const FAVORITES: number; - - /** - * Featured style icon - */ - const FEATURED: number; - - /** - * History style icon - */ - const HISTORY: number; - - /** - * More style icon - */ - const MORE: number; - - /** - * Most recent style icon - */ - const MOST_RECENT: number; - - /** - * Most viewed style icon - */ - const MOST_VIEWED: number; - - /** - * Recents style icon - */ - const RECENTS: number; - - /** - * Search style icon - */ - const SEARCH: number; - - /** - * Top rated style icon - */ - const TOP_RATED: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the style that can be used for the `selectionStyle` property of - * . - */ - namespace TableViewCellSelectionStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The cell when selected has a blue background. This is the default value. - */ - const BLUE: number; - - /** - * Then cell when selected has a gray background. - */ - const GRAY: number; - - /** - * The cell has no distinct style for when it is selected. - */ - const NONE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the position value that can be used for the `position` property of - * when invoking `scrollToIndex`. - */ - namespace TableViewScrollPosition { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The table view scrolls the row of interest to the bottom of the visible table view. - */ - const BOTTOM: number; - - /** - * The table view scrolls the row of interest to the middle of the visible table view. - */ - const MIDDLE: number; - - /** - * The table view scrolls the row of interest to be fully visible with a minimum of movement. If the row is already fully visible, no scrolling occurs. For example, if the row is above the visible area, the behavior is identical to that specified by `TOP`. This is the default. - */ - const NONE: number; - - /** - * The table view scrolls the row of interest to the top of the visible table view. - */ - const TOP: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the style that can be used for the `separatorStyle` property of - * . - */ - namespace TableViewSeparatorStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The separator cell has no distinct style. - */ - const NONE: number; - - /** - * The separator cell has a single line running across its width. This is the default value. - */ - const SINGLE_LINE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - - /** - * A set of constants for the style that can be used for the button `style` property of - * . - */ - namespace TableViewStyle { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * A table view whose sections present distinct groups of rows. The section headers and footers - * do not float. - */ - const GROUPED: number; - - /** - * A plain table view. Any section headers or footers are displayed as inline separators and - * float when the table view is scrolled. - */ - const PLAIN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - } - } + function getVersion(): string; /** - * Base type for all Titanium modules. + * Removes the specified callback as an event listener for the named event. */ - namespace Module { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * The top-level API module, containing methods to output messages to the system log. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - namespace API { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Logs messages with a `debug` severity-level. - */ - function debug(...message: string[]): void; - - /** - * Logs messages with an `error` severity-level. - */ - function error(...message: string[]): void; - - /** - * Logs messages with an `info` severity-level. - */ - function info(...message: string[]): void; - - /** - * Logs messages with the specified severity-level. - */ - function log(level: string, message: ReadonlyArray): void; - - /** - * Logs messages with the specified severity-level. - */ - function log(level: string, message: string): void; - - /** - * Logs messages with a `timestamp` severity-level, prefixed with a timestamp float number - * representing the number of seconds since January 1st, 2001. - */ - function timestamp(message: ReadonlyArray): void; - - /** - * Logs messages with a `timestamp` severity-level, prefixed with a timestamp float number - * representing the number of seconds since January 1st, 2001. - */ - function timestamp(message: string): void; - - /** - * Logs messages with a `trace` severity-level. - */ - function trace(message: ReadonlyArray): void; - - /** - * Logs messages with a `trace` severity-level. - */ - function trace(message: string): void; - - /** - * Logs messages with a `warn` severity-level. - */ - function warn(message: ReadonlyArray): void; - - /** - * Logs messages with a `warn` severity-level. - */ - function warn(message: string): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - - /** - * The top-level Accelerometer module, used to determine the device's physical position. - */ - namespace Accelerometer { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - - /** - * Used for transmitting developer-defined Analytics events to the Appcelerator Analytics product. - */ - namespace Analytics { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * JSON representation of the last Analytics event generated. - */ - const lastEvent: string; - - /** - * Allows the user to opt out from Analytics during runtime to comply to GPDR. - */ - let optedOut: boolean; - - /** - * Sends a generic event for this application session. - * **Not displayed in Analytics UI**. - */ - function addEvent(type: string, name: string, data?: any): void; - - /** - * Sends a feature event for this application session. - */ - function featureEvent(name: string, data?: any): number; - - /** - * Sets a list of events that will not be sent to the Analytics server. - */ - function filterEvents(events: ReadonlyArray): void; - - /** - * Sends a navigation event for this application session. - * **Not displayed in Analytics UI**. - */ - function navEvent(from: string, to: string, name?: string, data?: any): void; - - /** - * Sends a settings event for this application session. - * **Not displayed in Analytics UI**. - */ - function settingsEvent(name: string, data?: any): void; - - /** - * Send a timed event for this application session. - * **Not displayed in Analytics UI**. - */ - function timedEvent(name: string, start: Date, stop: Date, duration: number, data?: any): void; - - /** - * Sends a user event for this application session. **Not displayed in Analytics UI**. - */ - function userEvent(name: string, data?: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getLastEvent(): string; - - /** - * Gets the value of the property. - */ - function getOptedOut(): boolean; - - /** - * Sets the value of the property. - */ - function setOptedOut(optedOut: boolean): void; - - } + function setUserAgent(userAgent: string): void; /** * The top-level Android module. */ namespace Android { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - /** * User switched airplane mode on or off. */ @@ -39119,6 +3391,11 @@ declare namespace Titanium { */ const ACTION_WEB_SEARCH: string; + /** + * Notification category indicating an alarm or timer. + */ + const CATEGORY_ALARM: string; + /** * Set if the activity should be considered as an alternative action to the data the user is currently viewing. */ @@ -39129,6 +3406,12 @@ declare namespace Titanium { */ const CATEGORY_BROWSABLE: string; + /** + * Notification category indicating an incoming call (voice or video) or similar synchronous + * communication request. + */ + const CATEGORY_CALL: string; + /** * Activity should be used as the default action to perform on a piece of data. */ @@ -39139,11 +3422,26 @@ declare namespace Titanium { */ const CATEGORY_DEVELOPMENT_PREFERENCE: string; + /** + * Notification category indicating an asynchronous bulk message (email). + */ + const CATEGORY_EMAIL: string; + /** * Activity can run inside a parent activity. */ const CATEGORY_EMBED: string; + /** + * Notification category indicating an error in background operation or authentication status. + */ + const CATEGORY_ERROR: string; + + /** + * Notification category indicating a calendar event. + */ + const CATEGORY_EVENT: string; + /** * To be used as test code for framework instrumentation tests. */ @@ -39164,6 +3462,11 @@ declare namespace Titanium { */ const CATEGORY_LAUNCHER: string; + /** + * Notification category indicating an incoming direct message (SMS, instant message, etc.). + */ + const CATEGORY_MESSAGE: string; + /** * This activity may be exercised by the monkey or other automated test tools. */ @@ -39179,6 +3482,21 @@ declare namespace Titanium { */ const CATEGORY_PREFERENCE: string; + /** + * Notification category indicating the progress of a long-running background operation. + */ + const CATEGORY_PROGRESS: string; + + /** + * Notification category indicating a promotion or advertisement. + */ + const CATEGORY_PROMO: string; + + /** + * Notification category indicating a specific, timely recommendation for a single thing. + */ + const CATEGORY_RECOMMENDATION: string; + /** * To be used as a sample code example (not part of the normal user experience). */ @@ -39190,6 +3508,21 @@ declare namespace Titanium { */ const CATEGORY_SELECTED_ALTERNATIVE: string; + /** + * Notification category for a running background service. + */ + const CATEGORY_SERVICE: string; + + /** + * Notification category for a social network or sharing update. + */ + const CATEGORY_SOCIAL: string; + + /** + * Notification category indicating ongoing information about device or contextual status. + */ + const CATEGORY_STATUS: string; + /** * Activity to be used in a tab activity. */ @@ -39200,11 +3533,40 @@ declare namespace Titanium { */ const CATEGORY_TEST: string; + /** + * Notification category indicating media transport control for playback. + */ + const CATEGORY_TRANSPORT: string; + /** * To be used as a unit test (run through the Test Harness). */ const CATEGORY_UNIT_TEST: string; + /** + * Use all default settings for a notification; see + * [Notification.defaults](Titanium.Android.Notification.defaults). + */ + const DEFAULT_ALL: number; + + /** + * Use the default light settings for a notification; see + * [Notification.defaults](Titanium.Android.Notification.defaults). + */ + const DEFAULT_LIGHTS: number; + + /** + * Use the default sound settings for a notification; see + * [Notification.defaults](Titanium.Android.Notification.defaults). + */ + const DEFAULT_SOUND: number; + + /** + * Use the default vibration settings for a notification; see + * [Notification.defaults](Titanium.Android.Notification.defaults). + */ + const DEFAULT_VIBRATE: number; + /** * Integer indicating how many pending alarms are being delivered with the intent. */ @@ -39405,6 +3767,16 @@ declare namespace Titanium { */ const FLAG_ACTIVITY_SINGLE_TOP: number; + /** + * Cancel the notification when it is clicked by the user. + */ + const FLAG_AUTO_CANCEL: number; + + /** + * Cancel the current pending intent before creating a new one. + */ + const FLAG_CANCEL_CURRENT: number; + /** * Enable a log message to print out the resolution of the intent. */ @@ -39426,14 +3798,15 @@ declare namespace Titanium { const FLAG_GRANT_WRITE_URI_PERMISSION: number; /** - * When sending a broadcast, only registered receivers will be called. + * Repeat audio until the notification is cancelled or the notification window + * is opened. */ - const FLAG_RECEIVER_REGISTERED_ONLY: number; + const FLAG_INSISTENT: number; /** - * Cancel the current pending intent before creating a new one. + * Do not cancel the notification when the user clicks the Clear All button. */ - const FLAG_CANCEL_CURRENT: number; + const FLAG_NO_CLEAR: number; /** * If the current intent does not exist, do not create it. @@ -39445,117 +3818,6 @@ declare namespace Titanium { */ const FLAG_ONE_SHOT: number; - /** - * If the current pending intent already exists, only update the current intent's extra data. - */ - const FLAG_UPDATE_CURRENT: number; - - /** - * Notification category indicating an alarm or timer. - */ - const CATEGORY_ALARM: string; - - /** - * Notification category indicating an incoming call (voice or video) or similar synchronous - * communication request. - */ - const CATEGORY_CALL: string; - - /** - * Notification category indicating an asynchronous bulk message (email). - */ - const CATEGORY_EMAIL: string; - - /** - * Notification category indicating an error in background operation or authentication status. - */ - const CATEGORY_ERROR: string; - - /** - * Notification category indicating a calendar event. - */ - const CATEGORY_EVENT: string; - - /** - * Notification category indicating an incoming direct message (SMS, instant message, etc.). - */ - const CATEGORY_MESSAGE: string; - - /** - * Notification category indicating the progress of a long-running background operation. - */ - const CATEGORY_PROGRESS: string; - - /** - * Notification category indicating a promotion or advertisement. - */ - const CATEGORY_PROMO: string; - - /** - * Notification category indicating a specific, timely recommendation for a single thing. - */ - const CATEGORY_RECOMMENDATION: string; - - /** - * Notification category for a running background service. - */ - const CATEGORY_SERVICE: string; - - /** - * Notification category for a social network or sharing update. - */ - const CATEGORY_SOCIAL: string; - - /** - * Notification category indicating ongoing information about device or contextual status. - */ - const CATEGORY_STATUS: string; - - /** - * Notification category indicating media transport control for playback. - */ - const CATEGORY_TRANSPORT: string; - - /** - * Use all default settings for a notification; see - * [Notification.defaults](Titanium.Android.Notification.defaults). - */ - const DEFAULT_ALL: number; - - /** - * Use the default light settings for a notification; see - * [Notification.defaults](Titanium.Android.Notification.defaults). - */ - const DEFAULT_LIGHTS: number; - - /** - * Use the default sound settings for a notification; see - * [Notification.defaults](Titanium.Android.Notification.defaults). - */ - const DEFAULT_SOUND: number; - - /** - * Use the default vibration settings for a notification; see - * [Notification.defaults](Titanium.Android.Notification.defaults). - */ - const DEFAULT_VIBRATE: number; - - /** - * Cancel the notification when it is clicked by the user. - */ - const FLAG_AUTO_CANCEL: number; - - /** - * Repeat audio until the notification is cancelled or the notification window - * is opened. - */ - const FLAG_INSISTENT: number; - - /** - * Do not cancel the notification when the user clicks the Clear All button. - */ - const FLAG_NO_CLEAR: number; - /** * Specifies that a notification is in reference to something that is ongoing, like a phone call. */ @@ -39566,116 +3828,155 @@ declare namespace Titanium { */ const FLAG_ONLY_ALERT_ONCE: number; + /** + * When sending a broadcast, only registered receivers will be called. + */ + const FLAG_RECEIVER_REGISTERED_ONLY: number; + /** * Use LED lights to alert the user to the notification. */ const FLAG_SHOW_LIGHTS: number; + /** + * If the current pending intent already exists, only update the current intent's extra data. + */ + const FLAG_UPDATE_CURRENT: number; + + /** + * Constant corresponding to connectedDevice in the R.attr.foregroundServiceType attribute. Auto, bluetooth, TV or other devices connection, monitoring and interaction. + */ + const FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE: number; + + /** + * Constant corresponding to location in the R.attr.foregroundServiceType attribute. GPS, map, navigation location update. + */ + const FOREGROUND_SERVICE_TYPE_LOCATION: number; + + /** + * A special value indicates to use all types set in manifest file. + */ + const FOREGROUND_SERVICE_TYPE_MANIFEST: number; + + /** + * Constant corresponding to mediaPlayback in the R.attr.foregroundServiceType attribute. Music, video, news or other media playback. + */ + const FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK: number; + + /** + * Constant corresponding to mediaProjection in the R.attr.foregroundServiceType attribute. Managing a media projection session, e.g for screen recording or taking screenshots. + */ + const FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION: number; + + /** + * The default foreground service type if not been set in manifest file. + */ + const FOREGROUND_SERVICE_TYPE_NONE: number; + + /** + * Constant corresponding to phoneCall in the R.attr.foregroundServiceType attribute. Ongoing phone call or video conference. + */ + const FOREGROUND_SERVICE_TYPE_PHONE_CALL: number; + + /** + * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + */ + const IMPORTANCE_DEFAULT: number; + + /** + * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + */ + const IMPORTANCE_HIGH: number; + + /** + * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + */ + const IMPORTANCE_LOW: number; + + /** + * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + */ + const IMPORTANCE_MAX: number; + + /** + * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + */ + const IMPORTANCE_MIN: number; + + /** + * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + */ + const IMPORTANCE_NONE: number; + + /** + * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + */ + const IMPORTANCE_UNSPECIFIED: number; + + /** + * Standard Action Bar navigation mode. + */ + const NAVIGATION_MODE_STANDARD: number; + + /** + * Action Bar tab navigation mode. + */ + const NAVIGATION_MODE_TABS: number; + + /** + * Not used. + * @deprecated + */ + const PENDING_INTENT_FOR_ACTIVITY: number; + + /** + * Not used. + * @deprecated + */ + const PENDING_INTENT_FOR_BROADCAST: number; + + /** + * Not used. + * @deprecated + */ + const PENDING_INTENT_FOR_SERVICE: number; + + /** + * Not used. + * @deprecated + */ + const PENDING_INTENT_MAX_VALUE: number; + + /** + * Default priority if it does not fit into another priority category. + */ + const PRIORITY_DEFAULT: number; + + /** + * Use for high priority notifications like real-time chat messages. + */ + const PRIORITY_HIGH: number; + + /** + * Use for low priority notifications like software updates. + */ + const PRIORITY_LOW: number; + /** * Use for urgent or time-critical notifications, for example, turn-by-turn directions or * emergency alerts. */ const PRIORITY_MAX: number; - /** - * Use for high priority notifications like real-time chat messages. - */ - const PRIORITY_HIGH: number; - - /** - * Default priority if it does not fit into another priority category. - */ - const PRIORITY_DEFAULT: number; - - /** - * Use for low priority notifications like software updates. - */ - const PRIORITY_LOW: number; - /** * Use for expired events. */ const PRIORITY_MIN: number; /** - * Shows basic information about the notification. + * Accessor for Android system resources. */ - const VISIBILITY_PRIVATE: number; - - /** - * Shows the notification's full content on the lockscreen. This is the system default if visibility is left unspecified. - */ - const VISIBILITY_PUBLIC: number; - - /** - * Shows the most minimal information of the notification on the lockscreen. - */ - const VISIBILITY_SECRET: number; - - /** - * QuickSettings tile is unavailble. - */ - const TILE_STATE_UNAVAILABLE: number; - - /** - * QuickSettings tile is inactive. - */ - const TILE_STATE_INACTIVE: number; - - /** - * QuickSettings tile is active. - */ - const TILE_STATE_ACTIVE: number; - - /** - * Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off. - */ - const WAKE_LOCK_PARTIAL: number; - - /** - * Ensures that the screen and keyboard backlight are on at full brightness. - */ - const WAKE_LOCK_FULL: number; - - /** - * Ensures that the screen is on (but may be dimmed); the keyboard backlight will be allowed to go off. - */ - const WAKE_LOCK_SCREEN_DIM: number; - - /** - * Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off. - */ - const WAKE_LOCK_SCREEN_BRIGHT: number; - - /** - * Turn the screen on when the wake lock is acquired. - */ - const WAKE_LOCK_ACQUIRE_CAUSES_WAKEUP: number; - - /** - * When this wake lock is released, poke the user activity timer so the screen stays on for a little longer. - */ - const WAKE_LOCK_ON_AFTER_RELEASE: number; - - /** - * Not used. - */ - const PENDING_INTENT_FOR_ACTIVITY: number; - - /** - * Not used. - */ - const PENDING_INTENT_FOR_BROADCAST: number; - - /** - * Not used. - */ - const PENDING_INTENT_FOR_SERVICE: number; - - /** - * Not used. - */ - const PENDING_INTENT_MAX_VALUE: number; + const R: Titanium.Android.R; /** * Used with [setResult](Titanium.Android.Activity.setResult) to specify that @@ -39764,16 +4065,6 @@ declare namespace Titanium { */ const SHOW_AS_ACTION_WITH_TEXT: number; - /** - * Standard Action Bar navigation mode. - */ - const NAVIGATION_MODE_STANDARD: number; - - /** - * Action Bar tab navigation mode. - */ - const NAVIGATION_MODE_TABS: number; - /** * A Service start mode indicating that if the host application is stopped by Android, the service should not be restarted automatically. */ @@ -39826,238 +4117,86 @@ declare namespace Titanium { */ const STREAM_VOICE_CALL: number; + /** + * QuickSettings tile is active. + */ + const TILE_STATE_ACTIVE: number; + + /** + * QuickSettings tile is inactive. + */ + const TILE_STATE_INACTIVE: number; + + /** + * QuickSettings tile is unavailble. + */ + const TILE_STATE_UNAVAILABLE: number; + /** * The URI scheme used for intent URIs. */ const URI_INTENT_SCHEME: number; /** - * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + * Shows basic information about the notification. */ - const IMPORTANCE_DEFAULT: number; + const VISIBILITY_PRIVATE: number; /** - * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + * Shows the notification's full content on the lockscreen. This is the system default if visibility is left unspecified. */ - const IMPORTANCE_HIGH: number; + const VISIBILITY_PUBLIC: number; /** - * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + * Shows the most minimal information of the notification on the lockscreen. */ - const IMPORTANCE_LOW: number; + const VISIBILITY_SECRET: number; /** - * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + * Turn the screen on when the wake lock is acquired. */ - const IMPORTANCE_MAX: number; + const WAKE_LOCK_ACQUIRE_CAUSES_WAKEUP: number; /** - * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + * Ensures that the screen and keyboard backlight are on at full brightness. */ - const IMPORTANCE_MIN: number; + const WAKE_LOCK_FULL: number; /** - * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + * When this wake lock is released, poke the user activity timer so the screen stays on for a little longer. */ - const IMPORTANCE_NONE: number; + const WAKE_LOCK_ON_AFTER_RELEASE: number; /** - * Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level. + * Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off. */ - const IMPORTANCE_UNSPECIFIED: number; + const WAKE_LOCK_PARTIAL: number; /** - * References the top-most window's activity. + * Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off. */ - const currentActivity: Titanium.Android.Activity; + const WAKE_LOCK_SCREEN_BRIGHT: number; /** - * Service in the active context. + * Ensures that the screen is on (but may be dimmed); the keyboard backlight will be allowed to go off. */ - const currentService: Titanium.Android.Service; - - /** - * The first activity launched by the application. - */ - const rootActivity: Titanium.Android.Activity; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Creates an activity chooser intent, used to allow the user to select a target activity - * for an intent. - */ - function createIntentChooser(intent: Titanium.Android.Intent, title: string): Titanium.Android.Intent; - - /** - * Creates a [PendingIntent](Titanium.Android.PendingIntent) to be used inside a - * [Notification](Titanium.Android.Notification). - */ - function createPendingIntent(parameters?: any): Titanium.Android.PendingIntent; - - /** - * Create a so you can start/stop it and listen for events from it. - */ - function createService(intent: Titanium.Android.Intent): Titanium.Android.Service; - - /** - * Create an `Intent` to be used to start a service. - */ - function createServiceIntent(options: ServiceIntentOptions): Titanium.Android.Intent; - - /** - * Creates a [DrawerLayout](Titanium.UI.Android.DrawerLayout). - */ - function createDrawerLayout(parameters?: any): Titanium.UI.Android.DrawerLayout; - - /** - * Returns `true` if the app has permission access. - */ - function hasPermission(permission: string): boolean; - - /** - * Returns `true` if the app has permission access. - */ - function hasPermission(permission: ReadonlyArray): boolean; - - /** - * Request for permission access. - */ - function requestPermissions(permissions: string, callback?: (param0: RequestPermissionAccessResult) => any): void; - - /** - * Request for permission access. - */ - function requestPermissions(permissions: ReadonlyArray, callback?: (param0: RequestPermissionAccessResult) => any): void; - - /** - * Check on state of Service. - */ - function isServiceRunning(intent: Titanium.Android.Intent): boolean; - - /** - * Registers broadcast receiver for the given actions. - */ - function registerBroadcastReceiver(broadcastReceiver: Titanium.Android.BroadcastReceiver, actions: ReadonlyArray): void; - - /** - * Unregisters a broadcast receiver. - */ - function unregisterBroadcastReceiver(broadcastReceiver: Titanium.Android.BroadcastReceiver): void; - - /** - * Starts a simple service. - */ - function startService(intent: Titanium.Android.Intent): void; - - /** - * Stop a simple service that was started with `startService`. - */ - function stopService(intent: Titanium.Android.Intent): void; - - /** - * Create an `Intent` to be used in a broadcast. - */ - function createBroadcastIntent(parameters?: any): Titanium.Android.Intent; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Creates and returns an instance of . - */ - function createBigPictureStyle(parameters?: any): Titanium.Android.BigPictureStyle; - - /** - * Creates and returns an instance of . - */ - function createBigTextStyle(parameters?: any): Titanium.Android.BigTextStyle; - - /** - * Creates and returns an instance of . - */ - function createBroadcastReceiver(parameters?: any): Titanium.Android.BroadcastReceiver; - - /** - * Creates and returns an instance of . - */ - function createIntent(parameters?: any): Titanium.Android.Intent; - - /** - * Creates and returns an instance of . - */ - function createNotification(parameters?: any): Titanium.Android.Notification; - - /** - * Creates and returns an instance of . - */ - function createNotificationChannel(parameters?: any): Titanium.Android.NotificationChannel; - - /** - * Creates and returns an instance of . - */ - function createQuickSettingsService(parameters?: any): Titanium.Android.QuickSettingsService; - - /** - * Creates and returns an instance of . - */ - function createRemoteViews(parameters?: any): Titanium.Android.RemoteViews; + const WAKE_LOCK_SCREEN_DIM: number; /** * An action bar is a window feature that identifies the application and user location, * and provides user actions and navigation modes. */ - interface ActionBar extends Titanium.Proxy { + class ActionBar extends Titanium.Proxy { /** * The background image for the action bar, specified as a local file path or URL. */ backgroundImage: string; + /** + * Sets a view to be used for a custom navigation mode. + */ + customView: Titanium.UI.View; + /** * Displays an "up" affordance on the "home" area of the action bar. */ @@ -40086,7 +4225,7 @@ declare namespace Titanium { /** * Callback function called when the home icon is clicked. */ - onHomeIconItemSelected: () => any; + onHomeIconItemSelected: (...args: any[]) => void; /** * Sets the subtitle of the action bar. @@ -40099,15 +4238,67 @@ declare namespace Titanium { title: string; /** - * Sets a view to be used for a custom navigation mode. + * Adds the specified callback as an event listener for the named event. */ - customView: Titanium.UI.View; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCustomView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavigationMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSubtitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; /** * Hides the action bar if it is currently showing. */ hide(): void; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage(backgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCustomView(customView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisplayHomeAsUp(displayHomeAsUp: boolean): void; + /** * Shows or hides the action bar home icon */ @@ -40118,86 +4309,108 @@ declare namespace Titanium { */ setDisplayShowTitleEnabled(show: boolean): void; - /** - * Shows the action bar if it is currently hidden. - */ - show(): void; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Sets the value of the property. - */ - setDisplayHomeAsUp(displayHomeAsUp: boolean): void; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setHomeButtonEnabled(homeButtonEnabled: boolean): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setIcon(icon: string): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setLogo(logo: string): void; - /** - * Gets the value of the property. - */ - getNavigationMode(): number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setNavigationMode(navigationMode: number): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ - setOnHomeIconItemSelected(onHomeIconItemSelected: () => any): void; - - /** - * Gets the value of the property. - */ - getSubtitle(): string; + setOnHomeIconItemSelected(onHomeIconItemSelected: (...args: any[]) => void): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setSubtitle(subtitle: string): void; - /** - * Gets the value of the property. - */ - getTitle(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setTitle(title: string): void; /** - * Gets the value of the property. + * Shows the action bar if it is currently hidden. */ - getCustomView(): Titanium.UI.View; + show(): void; + } + /** + * Base event for class Titanium.Android.Activity + */ + interface ActivityBaseEvent extends Ti.Event { /** - * Sets the value of the property. + * Source object that fired the event. */ - setCustomView(customView: any): void; + source: Titanium.Android.Activity; + + } + /** + * Fired when the activity is already running and an intent different than the one that launched it was received. + */ + interface Activity_newintent_Event extends ActivityBaseEvent { + /** + * The `Intent` passed to the native `onNewIntent` method. + */ + intent: Titanium.Android.Intent; + + } + /** + * Fired when the activity is launched. + */ + interface Activity_onIntent_Event extends ActivityBaseEvent { + /** + * The `Intent` used to launch the Activity. + */ + intent: Titanium.Android.Intent; + + } + /** + * Fired when the activity is about to go into the background as a result of user choice. + */ + interface Activity_userleavehint_Event extends ActivityBaseEvent { + } + /** + * Called whenever a key, touch, or trackball event is dispatched to the activity. + */ + interface Activity_userinteraction_Event extends ActivityBaseEvent { + } + interface ActivityEventMap extends ProxyEventMap { + newintent: Activity_newintent_Event; + + onIntent: Activity_onIntent_Event; + + userinteraction: Activity_userinteraction_Event; + + userleavehint: Activity_userleavehint_Event; } /** * The Titanium binding of an Android Activity. */ - interface Activity extends Titanium.Proxy { + class Activity extends Titanium.Proxy { /** * The action bar for this activity. */ @@ -40211,49 +4424,49 @@ declare namespace Titanium { /** * Callback function called when the Android activity is created. */ - onCreate: (param0: any) => any; + onCreate: (param0: ActivityLifecycleCallbackObject) => void; /** * Callback function called to initially create an Android options menu * for this Activity when the user presses the **Menu** button. */ - onCreateOptionsMenu: (param0: any) => any; + onCreateOptionsMenu: (param0: OptionsMenuCallbackObject) => void; /** * Callback function called when the Android activity is destroyed. */ - onDestroy: (param0: any) => any; + onDestroy: (param0: ActivityLifecycleCallbackObject) => void; /** * Callback function called when the Android activity is paused. */ - onPause: (param0: any) => any; + onPause: (param0: ActivityLifecycleCallbackObject) => void; /** * Callback function called to prepare an options menu for display when the user presses * the **Menu** button. */ - onPrepareOptionsMenu: (param0: any) => any; + onPrepareOptionsMenu: (param0: OptionsMenuCallbackObject) => void; /** * Callback function called when the Android activity is restarted. */ - onRestart: (param0: any) => any; + onRestart: (param0: ActivityLifecycleCallbackObject) => void; /** * Callback function called when the Android activity is resumed. */ - onResume: (param0: any) => any; + onResume: (param0: ActivityLifecycleCallbackObject) => void; /** * Callback function called when the Android activity is started. */ - onStart: (param0: any) => any; + onStart: (param0: ActivityLifecycleCallbackObject) => void; /** * Callback function called when the Android activity is stopped. */ - onStop: (param0: any) => any; + onStop: (param0: ActivityLifecycleCallbackObject) => void; /** * Specifies a specific orientation for this activity. @@ -40265,21 +4478,192 @@ declare namespace Titanium { */ supportToolbar: Titanium.UI.Toolbar; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.Android.Activity, event: ActivityEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Closes this activity. */ finish(): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ActivityEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActionBar(): Titanium.Android.ActionBar; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIntent(): Titanium.Android.Intent; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnCreate(): (param0: ActivityLifecycleCallbackObject) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnCreateOptionsMenu(): (param0: OptionsMenuCallbackObject) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnDestroy(): (param0: ActivityLifecycleCallbackObject) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnPause(): (param0: ActivityLifecycleCallbackObject) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnPrepareOptionsMenu(): (param0: OptionsMenuCallbackObject) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnRestart(): (param0: ActivityLifecycleCallbackObject) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnResume(): (param0: ActivityLifecycleCallbackObject) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnStart(): (param0: ActivityLifecycleCallbackObject) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnStop(): (param0: ActivityLifecycleCallbackObject) => void; + /** * Gets an Android or Application string using the specified Resource ID and optional format arguments. */ getString(resourceId: number, format: any): string; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSupportToolbar(): Titanium.UI.Toolbar; + /** * Declares that the option menu has changed and should be recreated. */ invalidateOptionsMenu(): void; + /** + * Programmatically opens the options menu. + */ + openOptionsMenu(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Android.Activity, event: ActivityEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Broadcast the passed in `Intent` to all `BroadcastReceiver`s. + */ + sendBroadcast(intent: Titanium.Android.Intent): void; + + /** + * Broadcast the passed in `Intent` to all `BroadcastReceiver`s with an optional permission. + */ + sendBroadcastWithPermission(intent: Titanium.Android.Intent, receiverPermission?: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnCreate(onCreate: (param0: ActivityLifecycleCallbackObject) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnCreateOptionsMenu(onCreateOptionsMenu: (param0: OptionsMenuCallbackObject) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnDestroy(onDestroy: (param0: ActivityLifecycleCallbackObject) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnPause(onPause: (param0: ActivityLifecycleCallbackObject) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnPrepareOptionsMenu(onPrepareOptionsMenu: (param0: OptionsMenuCallbackObject) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnRestart(onRestart: (param0: ActivityLifecycleCallbackObject) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnResume(onResume: (param0: ActivityLifecycleCallbackObject) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnStart(onStart: (param0: ActivityLifecycleCallbackObject) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnStop(onStop: (param0: ActivityLifecycleCallbackObject) => void): void; + /** * Sets the requested Activity orientation. */ @@ -40295,6 +4679,12 @@ declare namespace Titanium { */ setSupportActionBar(toolbar: Titanium.UI.Toolbar): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSupportToolbar(supportToolbar: Titanium.UI.Toolbar): void; + /** * Starts a new activity, using the passed in `Intent` as the description. */ @@ -40303,138 +4693,18 @@ declare namespace Titanium { /** * The same as `startActivity`, but also accepts a callback function for handling the result of the started Activity. */ - startActivityForResult(intent: Titanium.Android.Intent, callback: (param0: ActivityResult) => any): void; - - /** - * Programmatically opens the options menu. - */ - openOptionsMenu(): void; - - /** - * Broadcast the passed in `Intent` to all `BroadcastReceiver`s. - */ - sendBroadcast(intent: Titanium.Android.Intent): void; - - /** - * Broadcast the passed in `Intent` to all `BroadcastReceiver`s with an optional permission. - */ - sendBroadcastWithPermission(intent: Titanium.Android.Intent, receiverPermission?: string): void; - - /** - * Gets the value of the property. - */ - getActionBar(): Titanium.Android.ActionBar; - - /** - * Gets the value of the property. - */ - getIntent(): Titanium.Android.Intent; - - /** - * Gets the value of the property. - */ - getOnCreate(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnCreate(onCreate: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnCreateOptionsMenu(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnCreateOptionsMenu(onCreateOptionsMenu: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnDestroy(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnDestroy(onDestroy: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnPause(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnPause(onPause: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnPrepareOptionsMenu(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnPrepareOptionsMenu(onPrepareOptionsMenu: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnRestart(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnRestart(onRestart: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnResume(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnResume(onResume: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnStart(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnStart(onStart: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnStop(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnStop(onStop: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getSupportToolbar(): Titanium.UI.Toolbar; - - /** - * Sets the value of the property. - */ - setSupportToolbar(supportToolbar: Titanium.UI.Toolbar): void; + startActivityForResult(intent: Titanium.Android.Intent, callback: (param0: ActivityResult) => void): void; } /** * Helper object for generating large-format notifications that include a large image attachment. */ - interface BigPictureStyle extends Titanium.Proxy { + class BigPictureStyle extends Titanium.Proxy { + /** + * Overrides in the big form of the notification. This defaults to the value passed to . + */ + bigContentTitle: string; + /** * Override the when the big notification is shown. */ @@ -40445,11 +4715,6 @@ declare namespace Titanium { */ bigPicture: number | string | Titanium.Blob | Titanium.Filesystem.File; - /** - * Overrides in the big form of the notification. This defaults to the value passed to . - */ - bigContentTitle: string; - /** * Number of times to retry decoding the bitmap at bigPicture URL. */ @@ -40461,72 +4726,77 @@ declare namespace Titanium { summaryText: string; /** - * Gets the value of the property. + * Adds the specified callback as an event listener for the named event. */ - getBigLargeIcon(): number | string; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Sets the value of the property. + * Fires a synthesized event to any registered listeners. */ - setBigLargeIcon(bigLargeIcon: number): void; - - /** - * Sets the value of the property. - */ - setBigLargeIcon(bigLargeIcon: string): void; - - /** - * Gets the value of the property. - */ - getBigPicture(): number | string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Sets the value of the property. - */ - setBigPicture(bigPicture: number): void; - - /** - * Sets the value of the property. - */ - setBigPicture(bigPicture: string): void; - - /** - * Sets the value of the property. - */ - setBigPicture(bigPicture: Titanium.Blob): void; - - /** - * Sets the value of the property. - */ - setBigPicture(bigPicture: Titanium.Filesystem.File): void; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getBigContentTitle(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setBigContentTitle(bigContentTitle: string): void; + getBigLargeIcon(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBigPicture(): number | string | Titanium.Blob | Titanium.Filesystem.File; /** * Gets the value of the property. + * @deprecated Access instead. */ getDecodeRetries(): number; - /** - * Sets the value of the property. - */ - setDecodeRetries(decodeRetries: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getSummaryText(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBigContentTitle(bigContentTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBigLargeIcon(bigLargeIcon: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBigPicture(bigPicture: number | string | Titanium.Blob | Titanium.Filesystem.File): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDecodeRetries(decodeRetries: number): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setSummaryText(summaryText: string): void; @@ -40534,49 +4804,70 @@ declare namespace Titanium { /** * Helper object for generating large-format notifications that include a lot of text. */ - interface BigTextStyle extends Titanium.Proxy { - /** - * Sets the longer text to be displayed in the big form of the notification in place of the content text. - */ - bigText: string; - + class BigTextStyle extends Titanium.Proxy { /** * Overrides in the big form of the notification. This defaults to the value passed to . */ bigContentTitle: string; + /** + * Sets the longer text to be displayed in the big form of the notification in place of the content text. + */ + bigText: string; + /** * Set the first line of text after the detail section in the big form of the notification. */ summaryText: string; /** - * Gets the value of the property. + * Adds the specified callback as an event listener for the named event. */ - getBigText(): string; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Sets the value of the property. + * Fires a synthesized event to any registered listeners. */ - setBigText(bigText: string): void; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getBigContentTitle(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setBigContentTitle(bigContentTitle: string): void; + getBigText(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getSummaryText(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBigContentTitle(bigContentTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBigText(bigText: string): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setSummaryText(summaryText: string): void; @@ -40584,11 +4875,11 @@ declare namespace Titanium { /** * Monitor and handle Android system broadcasts. */ - interface BroadcastReceiver extends Titanium.Proxy { + class BroadcastReceiver extends Titanium.Proxy { /** * The function called when a broadcast is received. */ - onReceived: (param0: any) => any; + onReceived: (param0: any) => void; /** * URL of the JavaScript file to handle the broadcast. @@ -40596,30 +4887,55 @@ declare namespace Titanium { url: string; /** - * Gets the value of the property. + * Adds the specified callback as an event listener for the named event. */ - getOnReceived(): (param0: any) => any; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Sets the value of the property. + * Fires a synthesized event to any registered listeners. */ - setOnReceived(onReceived: (param0: any) => any): void; + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnReceived(): (param0: any) => void; /** * Gets the value of the property. + * @deprecated Access instead. */ getUrl(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnReceived(onReceived: (param0: any) => void): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setUrl(url: string): void; } + /** + * The Android.Calendar module provides proxies and methods for accessing the native Android + * calendar functionality. + * @deprecated Use [Titanium.Calendar](Titanium.Calendar) instead. + */ + const Calendar: never; /** * Message objects passed between Android application components. */ - interface Intent extends Titanium.Proxy { + class Intent extends Titanium.Proxy { /** * The action associated with this intent. */ @@ -40661,11 +4977,27 @@ declare namespace Titanium { */ addCategory(name: string): void; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Adds to the existing flags on the `Intent`. */ addFlags(flags: number): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAction(): string; + /** * Get a property from this `Intent`. */ @@ -40676,6 +5008,12 @@ declare namespace Titanium { */ getBooleanExtra(name: string, defaultValue: boolean): boolean; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClassName(): string; + /** * Get the Data URI from this `Intent`. */ @@ -40686,6 +5024,12 @@ declare namespace Titanium { */ getDoubleExtra(name: string, defaultValue: number): number; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFlags(): number; + /** * Get an integer property from this `Intent`. */ @@ -40696,11 +5040,29 @@ declare namespace Titanium { */ getLongExtra(name: string, defaultValue: number): number; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPackageName(): string; + /** * Get a string property from this `Intent`. */ getStringExtra(name: string): string; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string; + /** * Returns `true` if this `Intent` has the specified property. */ @@ -40717,57 +5079,37 @@ declare namespace Titanium { putExtraUri(name: string, value: any): void; /** - * Gets the value of the property. + * Removes the specified callback as an event listener for the named event. */ - getAction(): string; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setAction(action: string): void; - /** - * Gets the value of the property. - */ - getClassName(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setClassName(className: string): void; - /** - * Gets the value of the property. - */ - getFlags(): number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setFlags(flags: number): void; - /** - * Gets the value of the property. - */ - getPackageName(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setPackageName(packageName: string): void; - /** - * Gets the value of the property. - */ - getType(): string; - - /** - * Gets the value of the property. - */ - getUrl(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setUrl(url: string): void; @@ -40775,7 +5117,7 @@ declare namespace Titanium { /** * The Titanium binding of an Android Options Menu. */ - interface Menu extends Titanium.Proxy { + class Menu extends Titanium.Proxy { /** * Array of menu items in this menu. */ @@ -40786,6 +5128,11 @@ declare namespace Titanium { */ add(options: any): Titanium.Android.MenuItem; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Clears all items from this menu. */ @@ -40799,23 +5146,34 @@ declare namespace Titanium { /** * Locates a [MenuItem](Titanium.Android.MenuItem) in this menu, by item ID or reference. */ - findItem(item: number): Titanium.Android.MenuItem; + findItem(item: number | Titanium.Android.MenuItem): Titanium.Android.MenuItem; /** - * Locates a [MenuItem](Titanium.Android.MenuItem) in this menu, by item ID or reference. + * Fires a synthesized event to any registered listeners. */ - findItem(item: Titanium.Android.MenuItem): Titanium.Android.MenuItem; + fireEvent(name: string, event?: any): void; /** * Returns the [MenuItem](Titanium.Android.MenuItem) at a specific index. */ getItem(index: number): Titanium.Android.MenuItem; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): Titanium.Android.MenuItem[]; + /** * Returns `true` if this menu has visible items. */ hasVisibleItems(): boolean; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Removes all menu items with the specified * [groupId](Titanium.Android.MenuItem.groupId). @@ -40845,16 +5203,59 @@ declare namespace Titanium { */ size(): number; + } + /** + * Base event for class Titanium.Android.MenuItem + */ + interface MenuItemBaseEvent extends Ti.Event { /** - * Gets the value of the property. + * Source object that fired the event. */ - getItems(): Titanium.Android.MenuItem[]; + source: Titanium.Android.MenuItem; + + } + /** + * Fired when the user clicks the menu item. + */ + interface MenuItem_click_Event extends MenuItemBaseEvent { + } + /** + * Fired when the action view has been expanded. + */ + interface MenuItem_expand_Event extends MenuItemBaseEvent { + } + /** + * Fired when the action view has been collapsed. + */ + interface MenuItem_collapse_Event extends MenuItemBaseEvent { + } + interface MenuItemEventMap extends ProxyEventMap { + click: MenuItem_click_Event; + + collapse: MenuItem_collapse_Event; + + expand: MenuItem_expand_Event; } /** * The Titanium binding of an Android menu item. */ - interface MenuItem extends Titanium.Proxy { + class MenuItem extends Titanium.Proxy { + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: string; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: string; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: string; + /** * Custom view that replaces the default menu item button. */ @@ -40920,6 +5321,16 @@ declare namespace Titanium { */ visible: boolean; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.Android.MenuItem, event: MenuItemEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Collapse the action view associated with this menu item. */ @@ -40930,6 +5341,70 @@ declare namespace Titanium { */ expandActionView(): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: MenuItemEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActionView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getGroupId(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItemId(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOrder(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleCondensed(): string; + /** * Returns the [actionViewExpanded](Titanium.Android.MenuItem.actionViewExpanded) state of the menu item. */ @@ -40955,6 +5430,40 @@ declare namespace Titanium { */ isVisible(): boolean; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Android.MenuItem, event: MenuItemEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint(accessibilityHint: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel(accessibilityLabel: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue(accessibilityValue: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActionView(actionView: Titanium.UI.View): void; + /** * Sets the [checkable](Titanium.Android.MenuItem.checkable) state of the menu item. */ @@ -40970,76 +5479,40 @@ declare namespace Titanium { */ setEnabled(enabled: boolean): void; - /** - * Sets the [visible](Titanium.Android.MenuItem.visible) state of the menu item. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getActionView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setActionView(actionView: any): void; - - /** - * Gets the value of the property. - */ - getGroupId(): number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ - setIcon(icon: number): void; - - /** - * Sets the value of the property. - */ - setIcon(icon: string): void; - - /** - * Gets the value of the property. - */ - getItemId(): number; - - /** - * Gets the value of the property. - */ - getOrder(): number; + setIcon(icon: number | string): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setShowAsAction(showAsAction: number): void; - /** - * Gets the value of the property. - */ - getTitle(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setTitle(title: string): void; - /** - * Gets the value of the property. - */ - getTitleCondensed(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setTitleCondensed(titleCondensed: string): void; + /** + * Sets the [visible](Titanium.Android.MenuItem.visible) state of the menu item. + */ + setVisible(visible: boolean): void; + } /** * UI notifications that can be sent while the application is in the background. */ - interface Notification extends Titanium.Proxy { + class Notification extends Titanium.Proxy { /** * The audio stream type to use when playing the sound. */ @@ -41050,6 +5523,11 @@ declare namespace Titanium { */ category: string; + /** + * Accent color used behind icon. + */ + color: string; + /** * The `PendingIntent` to execute when the expanded status entry is clicked. */ @@ -41105,11 +5583,6 @@ declare namespace Titanium { */ largeIcon: number | string; - /** - * Accent color used behind icon. - */ - color: string; - /** * The color for the LED to blink. */ @@ -41159,13 +5632,13 @@ declare namespace Titanium { * Will wake up the device for the given time (in milliseconds) when the notification is shown. * The application needs to also set the `android.permission.WAKE_LOCK` permission * in the Android manifest section of the `tiapp.xml` file. - * - * - * - * - * - * - * + * + * + * + * + * + * + * */ wakeLock: wakeLockOptions; @@ -41174,296 +5647,335 @@ declare namespace Titanium { */ when: Date | number; + /** + * Add an action button to the notification + */ + addAction(icon: number | string, title: string, intent: Titanium.Android.PendingIntent): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAudioStreamType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCategory(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentIntent(): Titanium.Android.PendingIntent; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDefaults(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDeleteIntent(): Titanium.Android.PendingIntent; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFlags(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getGroupKey(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getGroupSummary(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIcon(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLargeIcon(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLedARGB(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLedOffMS(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLedOnMS(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNumber(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPriority(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSound(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): Titanium.Android.BigTextStyle | Titanium.Android.BigPictureStyle; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTickerText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisibility(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWakeLock(): wakeLockOptions; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWhen(): Date | number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioStreamType(audioStreamType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCategory(category: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentIntent(contentIntent: Titanium.Android.PendingIntent): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentText(contentText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentTitle(contentTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentView(contentView: Titanium.Android.RemoteViews): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDefaults(defaults: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDeleteIntent(deleteIntent: Titanium.Android.PendingIntent): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFlags(flags: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setGroupKey(groupKey: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setGroupSummary(groupSummary: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIcon(icon: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLargeIcon(largeIcon: number | string): void; + /** * Sets the latest event info using the built-in notification view for this notification. */ setLatestEventInfo(contentTitle: string, contentText: string, contentIntent: Titanium.Android.PendingIntent): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLedARGB(ledARGB: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLedOffMS(ledOffMS: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLedOnMS(ledOnMS: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNumber(number: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPriority(priority: number): void; + /** * Set the progress this notification represents. */ setProgress(max: number, progress: number, indeterminate: boolean): void; - /** - * Add an action button to the notification - */ - addAction(icon: number, title: string, intent: Titanium.Android.PendingIntent): void; - - /** - * Add an action button to the notification - */ - addAction(icon: string, title: string, intent: Titanium.Android.PendingIntent): void; - - /** - * Gets the value of the property. - */ - getAudioStreamType(): number; - - /** - * Sets the value of the property. - */ - setAudioStreamType(audioStreamType: number): void; - - /** - * Gets the value of the property. - */ - getCategory(): string; - - /** - * Sets the value of the property. - */ - setCategory(category: string): void; - - /** - * Gets the value of the property. - */ - getContentIntent(): Titanium.Android.PendingIntent; - - /** - * Sets the value of the property. - */ - setContentIntent(contentIntent: Titanium.Android.PendingIntent): void; - - /** - * Gets the value of the property. - */ - getContentText(): string; - - /** - * Sets the value of the property. - */ - setContentText(contentText: string): void; - - /** - * Gets the value of the property. - */ - getContentTitle(): string; - - /** - * Sets the value of the property. - */ - setContentTitle(contentTitle: string): void; - - /** - * Sets the value of the property. - */ - setContentView(contentView: Titanium.Android.RemoteViews): void; - - /** - * Gets the value of the property. - */ - getDefaults(): number; - - /** - * Sets the value of the property. - */ - setDefaults(defaults: number): void; - - /** - * Gets the value of the property. - */ - getDeleteIntent(): Titanium.Android.PendingIntent; - - /** - * Sets the value of the property. - */ - setDeleteIntent(deleteIntent: Titanium.Android.PendingIntent): void; - - /** - * Gets the value of the property. - */ - getFlags(): number; - - /** - * Sets the value of the property. - */ - setFlags(flags: number): void; - - /** - * Gets the value of the property. - */ - getGroupKey(): string; - - /** - * Sets the value of the property. - */ - setGroupKey(groupKey: string): void; - - /** - * Gets the value of the property. - */ - getGroupSummary(): boolean; - - /** - * Sets the value of the property. - */ - setGroupSummary(groupSummary: boolean): void; - - /** - * Gets the value of the property. - */ - getIcon(): number | string; - - /** - * Sets the value of the property. - */ - setIcon(icon: number): void; - - /** - * Sets the value of the property. - */ - setIcon(icon: string): void; - - /** - * Gets the value of the property. - */ - getLargeIcon(): number | string; - - /** - * Sets the value of the property. - */ - setLargeIcon(largeIcon: number): void; - - /** - * Sets the value of the property. - */ - setLargeIcon(largeIcon: string): void; - - /** - * Gets the value of the property. - */ - getColor(): string; - - /** - * Sets the value of the property. - */ - setColor(color: string): void; - - /** - * Gets the value of the property. - */ - getLedARGB(): number; - - /** - * Sets the value of the property. - */ - setLedARGB(ledARGB: number): void; - - /** - * Gets the value of the property. - */ - getLedOffMS(): number; - - /** - * Sets the value of the property. - */ - setLedOffMS(ledOffMS: number): void; - - /** - * Gets the value of the property. - */ - getLedOnMS(): number; - - /** - * Sets the value of the property. - */ - setLedOnMS(ledOnMS: number): void; - - /** - * Gets the value of the property. - */ - getNumber(): number; - - /** - * Sets the value of the property. - */ - setNumber(number: number): void; - - /** - * Gets the value of the property. - */ - getPriority(): number; - - /** - * Sets the value of the property. - */ - setPriority(priority: number): void; - - /** - * Gets the value of the property. - */ - getSound(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setSound(sound: string): void; - /** - * Gets the value of the property. - */ - getStyle(): Titanium.Android.BigTextStyle | Titanium.Android.BigPictureStyle; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ - setStyle(style: Titanium.Android.BigTextStyle): void; - - /** - * Sets the value of the property. - */ - setStyle(style: Titanium.Android.BigPictureStyle): void; - - /** - * Gets the value of the property. - */ - getTickerText(): string; + setStyle(style: Titanium.Android.BigTextStyle | Titanium.Android.BigPictureStyle): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setTickerText(tickerText: string): void; - /** - * Gets the value of the property. - */ - getVisibility(): number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setVisibility(visibility: number): void; - /** - * Gets the value of the property. - */ - getWakeLock(): wakeLockOptions; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setWakeLock(wakeLock: wakeLockOptions): void; - /** - * Gets the value of the property. - */ - getWhen(): Date | number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ - setWhen(when: Date): void; - - /** - * Sets the value of the property. - */ - setWhen(when: number): void; + setWhen(when: Date | number): void; } /** * Module for notification channels. */ - interface NotificationChannel extends Titanium.Proxy { + class NotificationChannel extends Titanium.Proxy { /** * Whether or not notifications posted to this channel can interrupt the user. */ @@ -41489,16 +6001,16 @@ declare namespace Titanium { */ groupId: string; - /** - * The audio stream type to use when playing the sound. - */ - importance: number; - /** * The channel id specified for the notification channel. */ id: string; + /** + * The audio stream type to use when playing the sound. + */ + importance: number; + /** * The notification light color for notifications posted to this channel. */ @@ -41524,131 +6036,320 @@ declare namespace Titanium { */ vibratePattern: number[]; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getBypassDnd(): boolean; - /** - * Sets the value of the property. - */ - setBypassDnd(bypassDnd: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getDescription(): string; - /** - * Sets the value of the property. - */ - setDescription(description: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getEnableLights(): boolean; - /** - * Sets the value of the property. - */ - setEnableLights(enableLights: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getEnableVibration(): boolean; - /** - * Sets the value of the property. - */ - setEnableVibration(enableVibration: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getGroupId(): string; - /** - * Sets the value of the property. - */ - setGroupId(groupId: string): void; - - /** - * Gets the value of the property. - */ - getImportance(): number; - - /** - * Sets the value of the property. - */ - setImportance(importance: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getId(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setId(id: string): void; + getImportance(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getLightColor(): number; - /** - * Sets the value of the property. - */ - setLightColor(lightColor: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getLockscreenVisibility(): number; - /** - * Sets the value of the property. - */ - setLockscreenVisibility(lockscreenVisibility: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getShowBadge(): boolean; - /** - * Sets the value of the property. - */ - setShowBadge(showBadge: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getSound(): string; - /** - * Sets the value of the property. - */ - setSound(sound: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getVibratePattern(): number[]; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBypassDnd(bypassDnd: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDescription(description: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnableLights(enableLights: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnableVibration(enableVibration: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setGroupId(groupId: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setId(id: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setImportance(importance: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLightColor(lightColor: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLockscreenVisibility(lockscreenVisibility: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowBadge(showBadge: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSound(sound: string): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setVibratePattern(vibratePattern: ReadonlyArray): void; + } + /** + * Module for managing notifications. + */ + class NotificationManager extends Titanium.Module { + /** + * Use instead. + */ + static readonly DEFAULT_ALL: number; + + /** + * Use instead. + */ + static readonly DEFAULT_LIGHTS: number; + + /** + * Use instead. + */ + static readonly DEFAULT_SOUND: number; + + /** + * Use instead. + */ + static readonly DEFAULT_VIBRATE: number; + + /** + * Use instead. + */ + static readonly FLAG_AUTO_CANCEL: number; + + /** + * Use instead. + */ + static readonly FLAG_INSISTENT: number; + + /** + * Use instead. + */ + static readonly FLAG_NO_CLEAR: number; + + /** + * Use instead. + */ + static readonly FLAG_ONGOING_EVENT: number; + + /** + * Use instead. + */ + static readonly FLAG_ONLY_ALERT_ONCE: number; + + /** + * Use instead. + */ + static readonly FLAG_SHOW_LIGHTS: number; + + /** + * Use instead. + */ + static readonly STREAM_DEFAULT: number; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Returns whether showing notifications is enabled for the application. + */ + static areNotificationsEnabled(): boolean; + + /** + * Cancels a previously displayed notification. + */ + static cancel(id: number): void; + + /** + * Cancels all previously displayed notifications. + */ + static cancelAll(): void; + + /** + * Create a notification channel. + */ + static createNotificationChannel(parameters: Dictionary): Titanium.Android.NotificationChannel; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds a persistent notification to the status bar. + */ + static notify(id: number, notification: Titanium.Android.Notification): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + } /** * The Titanium binding of an Android `PendingIntent`. */ - interface PendingIntent extends Titanium.Proxy { + class PendingIntent extends Titanium.Proxy { /** * Flags used for creating the Pending Intent. */ @@ -41665,117 +6366,230 @@ declare namespace Titanium { */ updateCurrentIntent: boolean; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getFlags(): number; - /** - * Sets the value of the property. - */ - setFlags(flags: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getIntent(): Titanium.Android.Intent; - /** - * Sets the value of the property. - */ - setIntent(intent: Titanium.Android.Intent): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getUpdateCurrentIntent(): boolean; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFlags(flags: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIntent(intent: Titanium.Android.Intent): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setUpdateCurrentIntent(updateCurrentIntent: boolean): void; + } + /** + * Base event for class Titanium.Android.QuickSettingsService + */ + interface QuickSettingsServiceBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Android.QuickSettingsService; + + } + /** + * For Javascript-based services that you create, `pause` fires after each time the JavaScript + * code executes. + */ + interface QuickSettingsService_pause_Event extends QuickSettingsServiceBaseEvent { + /** + * Incrementing integer indicating which iteration of an interval-based Service is pausing. + * For example, if you have an interval-based Service running every 10 seconds, iteration + * 3 would occur at about 30 seconds after you start the instance (assuming your service + * code runs quickly). + */ + iteration: number; + + } + /** + * For JavaScript-based Services which you create, `resume` fires each time the JavaScript + * code executes. + */ + interface QuickSettingsService_resume_Event extends QuickSettingsServiceBaseEvent { + /** + * Incrementing integer indicating which iteration of an interval-based Service is pausing. + * For example, if you have an interval-based Service running every 10 seconds, iteration + * 3 would occur at about 30 seconds after you start the instance (assuming your service + * code runs quickly). + */ + iteration: number; + + } + /** + * Fired when the bound service instance starts. + */ + interface QuickSettingsService_start_Event extends QuickSettingsServiceBaseEvent { + } + /** + * Fired when the bound service instance stops. + */ + interface QuickSettingsService_stop_Event extends QuickSettingsServiceBaseEvent { + } + /** + * Fired when the task that comes from the service's application has been removed. + */ + interface QuickSettingsService_taskremoved_Event extends QuickSettingsServiceBaseEvent { + } + /** + * Tile is listening for events. + */ + interface QuickSettingsService_startlistening_Event extends QuickSettingsServiceBaseEvent { + } + /** + * Tile has stopped listening for events. + */ + interface QuickSettingsService_stoplistening_Event extends QuickSettingsServiceBaseEvent { + } + /** + * The Tile has been added in the quick menu. + */ + interface QuickSettingsService_tileadded_Event extends QuickSettingsServiceBaseEvent { + } + /** + * The Tile has been removed from the quick menu. + */ + interface QuickSettingsService_tileremoved_Event extends QuickSettingsServiceBaseEvent { + } + /** + * An item from the signle choice menu has been selected. + */ + interface QuickSettingsService_tiledialogoptionselected_Event extends QuickSettingsServiceBaseEvent { + /** + * Index of the selected item from the single choice menu in the dialog. + */ + itemIndex: number; + + } + /** + * Dispatched when the alert dialog has been cancelled. + */ + interface QuickSettingsService_tiledialogcancelled_Event extends QuickSettingsServiceBaseEvent { + } + /** + * Dispatched when the positive (index 0) button has been clicked. + */ + interface QuickSettingsService_tiledialogpositive_Event extends QuickSettingsServiceBaseEvent { + } + /** + * Dispatched when the neutral (index 1) button has been clicked. + */ + interface QuickSettingsService_tiledialogneutral_Event extends QuickSettingsServiceBaseEvent { + } + /** + * Dispatched when the negative (index 2) button has been clicked. + */ + interface QuickSettingsService_tiledialognegative_Event extends QuickSettingsServiceBaseEvent { + } + interface QuickSettingsServiceEventMap extends ProxyEventMap { + pause: QuickSettingsService_pause_Event; + + resume: QuickSettingsService_resume_Event; + + start: QuickSettingsService_start_Event; + + startlistening: QuickSettingsService_startlistening_Event; + + stop: QuickSettingsService_stop_Event; + + stoplistening: QuickSettingsService_stoplistening_Event; + + taskremoved: QuickSettingsService_taskremoved_Event; + + tileadded: QuickSettingsService_tileadded_Event; + + tiledialogcancelled: QuickSettingsService_tiledialogcancelled_Event; + + tiledialognegative: QuickSettingsService_tiledialognegative_Event; + + tiledialogneutral: QuickSettingsService_tiledialogneutral_Event; + + tiledialogoptionselected: QuickSettingsService_tiledialogoptionselected_Event; + + tiledialogpositive: QuickSettingsService_tiledialogpositive_Event; + + tileremoved: QuickSettingsService_tileremoved_Event; + } /** * Android service for creating custom quick settings tiles and handling user's interaction with them. */ - interface QuickSettingsService extends Titanium.Proxy { + class QuickSettingsService extends Titanium.Android.Service { /** - * The intent used to start or bind to the Service. + * Adds the specified callback as an event listener for the named event. */ - readonly intent: Titanium.Android.Intent; + addEventListener(name: K, callback: (this: Titanium.Android.QuickSettingsService, event: QuickSettingsServiceEventMap[K]) => void): void; /** - * A service can be started more than once -- this number (based on an incrementing integer) - * indicates which "start number" in the sequence the current service instance is. + * Adds the specified callback as an event listener for the named event. */ - readonly serviceInstanceId: number; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Puts the service into the "background" state and removes its foreground notification. + * Fires a synthesized event to any registered listeners. */ - foregroundCancel(): void; + fireEvent(name: K, event?: QuickSettingsServiceEventMap[K]): void; /** - * Puts the service into the "foreground" state and displays a notification. + * Fires a synthesized event to any registered listeners. */ - foregroundNotify(id: number, notification: Titanium.Android.Notification): void; - - /** - * Starts the Service. - */ - start(): void; - - /** - * Stops this running instance of the Service. - */ - stop(): void; - - /** - * Applies current tile's properties. - */ - updateTile(): void; - - /** - * Changes the Tile's icon. - */ - setIcon(icon: string): void; - - /** - * Changes the Tile's icon. - */ - setIcon(icon: Titanium.Blob): void; - - /** - * Changes the Tile's icon. - */ - setIcon(icon: Titanium.Filesystem.File): void; - - /** - * Sets the state of the Tile. - */ - setState(state: number): void; - - /** - * Changes the Tile's label. - */ - setLabel(label: string): void; + fireEvent(name: string, event?: any): void; /** * Returns the Tile's current icon. */ getIcon(): string | Titanium.Blob | Titanium.Filesystem.File; - /** - * Returns the Tile's current state. - */ - getState(): number; - /** * Returns the Tile's current label. */ getLabel(): string; + /** + * Returns the Tile's current state. + */ + getState(): number; + /** * Returns 'true' if the device is currently locked, 'false' otherwise. */ @@ -41786,6 +6600,31 @@ declare namespace Titanium { */ isSecure(): boolean; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Android.QuickSettingsService, event: QuickSettingsServiceEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Changes the Tile's icon. + */ + setIcon(icon: string | Titanium.Blob | Titanium.Filesystem.File): void; + + /** + * Changes the Tile's label. + */ + setLabel(label: string): void; + + /** + * Sets the state of the Tile. + */ + setState(state: number): void; + /** * Opens an Alert dialog. */ @@ -41802,20 +6641,189 @@ declare namespace Titanium { unlockAndRun(jsCode: string): void; /** - * Gets the value of the property. + * Applies current tile's properties. */ - getIntent(): Titanium.Android.Intent; + updateTile(): void; + + } + /** + * The Titanium binding of the native Android `R` class, giving access to + * Android system-wide resources or application resources. + */ + interface R extends Titanium.Proxy { + /** + * Animation resources. See + * [R.anim](https://developer.android.com/reference/android/R.anim.html) + * in the Android Developer Reference. + */ + readonly anim: any; /** - * Gets the value of the property. + * Animator resources. See + * [R.animator](https://developer.android.com/reference/android/R.animator.html) + * in the Android Developer Reference. */ - getServiceInstanceId(): number; + readonly animator: any; + + /** + * Array resources. See [R.array](https://developer.android.com/reference/android/R.array.html) + * in the Android Developer Reference. + */ + readonly array: any; + + /** + * Attribute resources. See + * [R.attr](https://developer.android.com/reference/android/R.attr.html) + * in the Android Developer Reference. + */ + readonly attr: any; + + /** + * Boolean resources. See + * [R.bool](https://developer.android.com/reference/android/R.bool.html) + * in the Android Developer Reference. + */ + readonly bool: any; + + /** + * Color resources. See + * [R.color](https://developer.android.com/reference/android/R.color.html) + * in the Android Developer Reference. + */ + readonly color: any; + + /** + * Dimension resources. See + * [https://developer.android.com/reference/android/R.dimen.html](https://developer.android.com/reference/android/R.dimen.html) + * in the Android Developer Reference. + */ + readonly dimen: any; + + /** + * Drawable resources. See + * [R.drawable](https://developer.android.com/reference/android/R.drawable.html) + * in the Android Developer Reference. + */ + readonly drawable: any; + + /** + * Fraction resources. See + * [R.fraction](https://developer.android.com/reference/android/R.fraction.html) + * in the Android Developer Reference. + */ + readonly fraction: any; + + /** + * ID resources. See + * [R.id](https://developer.android.com/reference/android/R.id.html) + * in the Android Developer Reference. + */ + readonly id: any; + + /** + * Integer resources. See + * [R.integer](https://developer.android.com/reference/android/R.integer.html) + * in the Android Developer Reference. + */ + readonly integer: any; + + /** + * Interpolator resources. See + * [R.fraction](https://developer.android.com/reference/android/R.interpolator.html) + * in the Android Developer Reference. + */ + readonly interpolator: any; + + /** + * Layout resources. See + * [R.layout](https://developer.android.com/reference/android/R.layout.html) + * in the Android Developer Reference. + */ + readonly layout: any; + + /** + * Menu resources. See + * [R.menu](https://developer.android.com/reference/android/R.menu.html) + * in the Android Developer Reference. + */ + readonly menu: any; + + /** + * Mipmap resources. See + * [R.mipmap](https://developer.android.com/reference/android/R.mipmap.html) + * in the Android Developer Reference. + */ + readonly mipmap: any; + + /** + * Plurals resources. See + * [R.plurals](https://developer.android.com/reference/android/R.plurals.html) + * in the Android Developer Reference. + */ + readonly plurals: any; + + /** + * Raw resources. See + * [R.raw](https://developer.android.com/reference/android/R.raw.html) + * in the Android Developer Reference. + */ + readonly raw: any; + + /** + * String resources. See + * [R.string](https://developer.android.com/reference/android/R.string.html) + * in the Android Developer Reference. + */ + readonly string: any; + + /** + * Style resources. See + * [R.style](https://developer.android.com/reference/android/R.style.html) + * in the Android Developer Reference. + */ + readonly style: any; + + /** + * Styleable resources. See + * [R.styleable](https://developer.android.com/reference/android/R.styleable.html) + * in the Android Developer Reference. + */ + readonly styleable: any; + + /** + * Transition resources. See + * [R.transition](https://developer.android.com/reference/android/R.transition.html) + * in the Android Developer Reference. + */ + readonly transition: any; + + /** + * XML resources. See + * [R.xml](https://developer.android.com/reference/android/R.xml.html) + * in the Android Developer Reference. + */ + readonly xml: any; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * The Titanium binding of [Android RemoteViews](https://developer.android.com/reference/android/widget/RemoteViews.html). */ - interface RemoteViews extends Titanium.Proxy { + class RemoteViews extends Titanium.Proxy { /** * Android layout resource ID for the view to display. Required. */ @@ -41826,6 +6834,33 @@ declare namespace Titanium { */ packageName: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayoutId(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPackageName(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Calls a method taking a single `boolean` argument on a view in the remote view * hierarchy. See Android's documentation for @@ -41860,11 +6895,23 @@ declare namespace Titanium { */ setInt(viewId: number, methodName: string, value: number): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayoutId(layoutId: number): void; + /** * Launches a when the specified view is clicked. */ setOnClickPendingIntent(viewId: number, pendingIntent: Titanium.Android.PendingIntent): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPackageName(packageName: string): void; + /** * Sets the progress, max value, and indeterminate flag of a progress bar in the * remote view hierarchy. @@ -41897,31 +6944,76 @@ declare namespace Titanium { */ setViewVisibility(viewId: number, visibility: number): void; + } + /** + * Base event for class Titanium.Android.Service + */ + interface ServiceBaseEvent extends Ti.Event { /** - * Gets the value of the property. + * Source object that fired the event. */ - getLayoutId(): number; + source: Titanium.Android.Service; + } + /** + * For Javascript-based services that you create, `pause` fires after each time the JavaScript + * code executes. + */ + interface Service_pause_Event extends ServiceBaseEvent { /** - * Sets the value of the property. + * Incrementing integer indicating which iteration of an interval-based Service is pausing. + * For example, if you have an interval-based Service running every 10 seconds, iteration + * 3 would occur at about 30 seconds after you start the instance (assuming your service + * code runs quickly). */ - setLayoutId(layoutId: number): void; + iteration: number; + } + /** + * For JavaScript-based Services which you create, `resume` fires each time the JavaScript + * code executes. + */ + interface Service_resume_Event extends ServiceBaseEvent { /** - * Gets the value of the property. + * Incrementing integer indicating which iteration of an interval-based Service is pausing. + * For example, if you have an interval-based Service running every 10 seconds, iteration + * 3 would occur at about 30 seconds after you start the instance (assuming your service + * code runs quickly). */ - getPackageName(): string; + iteration: number; - /** - * Sets the value of the property. - */ - setPackageName(packageName: string): void; + } + /** + * Fired when the bound service instance starts. + */ + interface Service_start_Event extends ServiceBaseEvent { + } + /** + * Fired when the bound service instance stops. + */ + interface Service_stop_Event extends ServiceBaseEvent { + } + /** + * Fired when the task that comes from the service's application has been removed. + */ + interface Service_taskremoved_Event extends ServiceBaseEvent { + } + interface ServiceEventMap extends ProxyEventMap { + pause: Service_pause_Event; + + resume: Service_resume_Event; + + start: Service_start_Event; + + stop: Service_stop_Event; + + taskremoved: Service_taskremoved_Event; } /** * Android application component that executes in the background. */ - interface Service extends Titanium.Proxy { + class Service extends Titanium.Proxy { /** * The intent used to start or bind to the Service. */ @@ -41933,6 +7025,26 @@ declare namespace Titanium { */ readonly serviceInstanceId: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.Android.Service, event: ServiceEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ServiceEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Puts the service into the "background" state and removes its foreground notification. */ @@ -41941,7 +7053,29 @@ declare namespace Titanium { /** * Puts the service into the "foreground" state and displays a notification. */ - foregroundNotify(id: number, notification: Titanium.Android.Notification): void; + foregroundNotify(id: number, notification: Titanium.Android.Notification, foregroundServiceType?: number): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIntent(): Titanium.Android.Intent; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getServiceInstanceId(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Android.Service, event: ServiceEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Starts the Service. @@ -41953,944 +7087,13 @@ declare namespace Titanium { */ stop(): void; - /** - * Gets the value of the property. - */ - getIntent(): Titanium.Android.Intent; - - /** - * Gets the value of the property. - */ - getServiceInstanceId(): number; - - } - - /** - * The Android.Calendar module provides proxies and methods for accessing the native Android - * calendar functionality. - */ - namespace Calendar { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Reminder alert delivery method. - */ - const METHOD_ALERT: number; - - /** - * Reminder default delivery method. - */ - const METHOD_DEFAULT: number; - - /** - * Reminder email delivery method. - */ - const METHOD_EMAIL: number; - - /** - * Reminder SMS delivery method. - */ - const METHOD_SMS: number; - - /** - * Alert dismissed state. - */ - const STATE_DISMISSED: number; - - /** - * Alert fired state. - */ - const STATE_FIRED: number; - - /** - * Alert scheduled status. - */ - const STATE_SCHEDULED: number; - - /** - * Event canceled status. - */ - const STATUS_CANCELED: number; - - /** - * Event confirmed status. - */ - const STATUS_CONFIRMED: number; - - /** - * Event tentative status. - */ - const STATUS_TENTATIVE: number; - - /** - * Event confidential visibility. - */ - const VISIBILITY_CONFIDENTIAL: number; - - /** - * Event default visibility. - */ - const VISIBILITY_DEFAULT: number; - - /** - * Event private visibility. - */ - const VISIBILITY_PRIVATE: number; - - /** - * Event public visibility. - */ - const VISIBILITY_PUBLIC: number; - - /** - * All alerts in selected calendars. - */ - const allAlerts: Titanium.Android.Calendar.Alert[]; - - /** - * All calendars known to the native calendar app. - */ - const allCalendars: Titanium.Android.Calendar.Calendar[]; - - /** - * All calendars selected within the native calendar app, which may be a subset of `allCalendars`. - */ - const selectableCalendars: Titanium.Android.Calendar.Calendar[]; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the calendar with the specified identifier. - */ - function getCalendarById(id: number): Titanium.Android.Calendar.Calendar; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getAllAlerts(): Titanium.Android.Calendar.Alert[]; - - /** - * Gets the value of the property. - */ - function getAllCalendars(): Titanium.Android.Calendar.Calendar[]; - - /** - * Gets the value of the property. - */ - function getSelectableCalendars(): Titanium.Android.Calendar.Calendar[]; - - /** - * An object that represents a single alert for an event in an Android calendar. - */ - interface Alert extends Titanium.Proxy { - /** - * Date/time at which this alert alarm is set to trigger. - */ - readonly alarmTime: Date; - - /** - * Start date/time for the corresponding event. - */ - readonly begin: Date; - - /** - * End date/time for the corresponding event. - */ - readonly end: Date; - - /** - * Identifier of the event for which this alert is set. - */ - readonly eventId: number; - - /** - * Identifier of this alert. - */ - readonly id: string; - - /** - * Reminder notice period in minutes, that determines how long prior to the event this alert - * should trigger. - */ - readonly minutes: number; - - /** - * The current state of the alert. - */ - readonly state: number; - - /** - * Gets the value of the property. - */ - getAlarmTime(): Date; - - /** - * Gets the value of the property. - */ - getBegin(): Date; - - /** - * Gets the value of the property. - */ - getEnd(): Date; - - /** - * Gets the value of the property. - */ - getEventId(): number; - - /** - * Gets the value of the property. - */ - getId(): string; - - /** - * Gets the value of the property. - */ - getMinutes(): number; - - /** - * Gets the value of the property. - */ - getState(): number; - - } - /** - * An object that represents a single calendar on Android. - */ - interface Calendar extends Titanium.Proxy { - /** - * Indicates whether this calendar is hidden. - */ - readonly hidden: boolean; - - /** - * Identifier of this calendar. - */ - readonly id: string; - - /** - * Display name of this calendar. - */ - readonly name: string; - - /** - * Indicates whether the calendar is selected. - */ - readonly selected: boolean; - - /** - * Creates an event in this calendar. - */ - createEvent(properties: any): Titanium.Android.Calendar.Event; - - /** - * Gets the event with the specified identifier. - */ - getEventById(id: number): Titanium.Android.Calendar.Event; - - /** - * Gets events that occur between two dates. - */ - getEventsBetweenDates(date1: Date, date2: Date): Titanium.Android.Calendar.Event[]; - - /** - * Gets events that occur on a specified date. - */ - getEventsInDate(year: number, month: number, day: number): Titanium.Android.Calendar.Event[]; - - /** - * Gets events that occur during a specified month. - */ - getEventsInMonth(year: number, month: number): Titanium.Android.Calendar.Event[]; - - /** - * Gets all events that occur during a specified year. - */ - getEventsInYear(year: number): Titanium.Android.Calendar.Event[]; - - /** - * Gets the value of the property. - */ - getHidden(): boolean; - - /** - * Gets the value of the property. - */ - getId(): string; - - /** - * Gets the value of the property. - */ - getName(): string; - - /** - * Gets the value of the property. - */ - getSelected(): boolean; - - } - /** - * An object that represents a single event in an Android calendar. - */ - interface Event extends Titanium.Proxy { - /** - * Existing alerts for this event. - */ - readonly alerts: Titanium.Android.Calendar.Alert[]; - - /** - * Indicates whether this event is all day. - */ - readonly allDay: boolean; - - /** - * Start date/time of this event. - */ - readonly begin: Date; - - /** - * Description of this event. - */ - readonly description: string; - - /** - * End date/time of this event. - */ - readonly end: Date; - - /** - * Extended properties of this event. - */ - readonly extendedProperties: any; - - /** - * Indicates whether an alarm is scheduled for this event. - */ - readonly hasAlarm: boolean; - - /** - * Indicates whether [extendedProperties](Titanium.Android.Calendar.Event.extendedProperties) - * exists for this event. - */ - readonly hasExtendedProperties: boolean; - - /** - * Identifier of this event. - */ - readonly id: string; - - /** - * Location of this event. - */ - readonly location: string; - - /** - * Existing reminders for this event. - */ - readonly reminders: Titanium.Android.Calendar.Reminder[]; - - /** - * Status of this event. - */ - readonly status: number; - - /** - * Title of this event. - */ - readonly title: string; - - /** - * Visibility of this event. - */ - readonly visibility: number; - - /** - * Creates an alert for this event. - */ - createAlert(data: any): Titanium.Android.Calendar.Alert; - - /** - * Creates a reminder for this event. - */ - createReminder(data: any): Titanium.Android.Calendar.Reminder; - - /** - * Gets the value of the specified extended property. - */ - getExtendedProperty(name: string): string; - - /** - * Sets the value of the specified extended property. - */ - setExtendedProperty(name: string, value: string): void; - - /** - * Gets the value of the property. - */ - getAlerts(): Titanium.Android.Calendar.Alert[]; - - /** - * Gets the value of the property. - */ - getAllDay(): boolean; - - /** - * Gets the value of the property. - */ - getBegin(): Date; - - /** - * Gets the value of the property. - */ - getDescription(): string; - - /** - * Gets the value of the property. - */ - getEnd(): Date; - - /** - * Gets the value of the property. - */ - getExtendedProperties(): any; - - /** - * Gets the value of the property. - */ - getHasAlarm(): boolean; - - /** - * Gets the value of the property. - */ - getHasExtendedProperties(): boolean; - - /** - * Gets the value of the property. - */ - getId(): string; - - /** - * Gets the value of the property. - */ - getLocation(): string; - - /** - * Gets the value of the property. - */ - getReminders(): Titanium.Android.Calendar.Reminder[]; - - /** - * Gets the value of the property. - */ - getStatus(): number; - - /** - * Gets the value of the property. - */ - getTitle(): string; - - /** - * Gets the value of the property. - */ - getVisibility(): number; - - } - /** - * An object that represents a single reminder for an event in an Android calendar. - */ - interface Reminder extends Titanium.Proxy { - /** - * Identifier of this reminder. - */ - readonly id: string; - - /** - * Method by which this reminder will be delivered. - */ - readonly method: number; - - /** - * Reminder notice period in minutes, that determines how long prior to the event this reminder - * should trigger. - */ - readonly minutes: number; - - /** - * Gets the value of the property. - */ - getId(): string; - - /** - * Gets the value of the property. - */ - getMethod(): number; - - /** - * Gets the value of the property. - */ - getMinutes(): number; - - } - } - - /** - * Module for managing notifications. - */ - namespace NotificationManager { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Use instead. - */ - const DEFAULT_ALL: number; - - /** - * Use instead. - */ - const DEFAULT_LIGHTS: number; - - /** - * Use instead. - */ - const DEFAULT_SOUND: number; - - /** - * Use instead. - */ - const DEFAULT_VIBRATE: number; - - /** - * Use instead. - */ - const FLAG_AUTO_CANCEL: number; - - /** - * Use instead. - */ - const FLAG_INSISTENT: number; - - /** - * Use instead. - */ - const FLAG_NO_CLEAR: number; - - /** - * Use instead. - */ - const FLAG_ONGOING_EVENT: number; - - /** - * Use instead. - */ - const FLAG_ONLY_ALERT_ONCE: number; - - /** - * Use instead. - */ - const FLAG_SHOW_LIGHTS: number; - - /** - * Use instead. - */ - const STREAM_DEFAULT: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Cancels a previously displayed notification. - */ - function cancel(id: number): void; - - /** - * Cancels all previously displayed notifications. - */ - function cancelAll(): void; - - /** - * Adds a persistent notification to the status bar. - */ - function notify(id: number, notification: Titanium.Android.Notification): void; - - /** - * Create a notification channel. - */ - function createNotificationChannel(parameters: any): Titanium.Android.NotificationChannel; - - /** - * Returns whether showing notifications is enabled for the application. - */ - function areNotificationsEnabled(): boolean; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - - /** - * The Titanium binding of the Android system-wide resources class. - */ - namespace R { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Animation resources. See - * [R.anim](https://developer.android.com/reference/android/R.anim.html) - * in the Android Developer Reference. - */ - const anim: any; - - /** - * Animator resources. See - * [R.animator](https://developer.android.com/reference/android/R.animator.html) - * in the Android Developer Reference. - */ - const animator: any; - - /** - * Array resources. See [R.array](https://developer.android.com/reference/android/R.array.html) - * in the Android Developer Reference. - */ - const array: any; - - /** - * Attribute resources. See - * [R.attr](https://developer.android.com/reference/android/R.attr.html) - * in the Android Developer Reference. - */ - const attr: any; - - /** - * Boolean resources. See - * [R.bool](https://developer.android.com/reference/android/R.bool.html) - * in the Android Developer Reference. - */ - const bool: any; - - /** - * Color resources. See - * [R.color](https://developer.android.com/reference/android/R.color.html) - * in the Android Developer Reference. - */ - const color: any; - - /** - * Dimension resources. See - * [https://developer.android.com/reference/android/R.dimen.html](https://developer.android.com/reference/android/R.dimen.html) - * in the Android Developer Reference. - */ - const dimen: any; - - /** - * Drawable resources. See - * [R.drawable](https://developer.android.com/reference/android/R.drawable.html) - * in the Android Developer Reference. - */ - const drawable: any; - - /** - * Fraction resources. See - * [R.fraction](https://developer.android.com/reference/android/R.fraction.html) - * in the Android Developer Reference. - */ - const fraction: any; - - /** - * ID resources. See - * [R.id](https://developer.android.com/reference/android/R.id.html) - * in the Android Developer Reference. - */ - const id: any; - - /** - * Integer resources. See - * [R.integer](https://developer.android.com/reference/android/R.integer.html) - * in the Android Developer Reference. - */ - const integer: any; - - /** - * Interpolator resources. See - * [R.fraction](https://developer.android.com/reference/android/R.interpolator.html) - * in the Android Developer Reference. - */ - const interpolator: any; - - /** - * Layout resources. See - * [R.layout](https://developer.android.com/reference/android/R.layout.html) - * in the Android Developer Reference. - */ - const layout: any; - - /** - * Menu resources. See - * [R.menu](https://developer.android.com/reference/android/R.menu.html) - * in the Android Developer Reference. - */ - const menu: any; - - /** - * Mipmap resources. See - * [R.mipmap](https://developer.android.com/reference/android/R.mipmap.html) - * in the Android Developer Reference. - */ - const mipmap: any; - - /** - * Plurals resources. See - * [R.plurals](https://developer.android.com/reference/android/R.plurals.html) - * in the Android Developer Reference. - */ - const plurals: any; - - /** - * Raw resources. See - * [R.raw](https://developer.android.com/reference/android/R.raw.html) - * in the Android Developer Reference. - */ - const raw: any; - - /** - * String resources. See - * [R.string](https://developer.android.com/reference/android/R.string.html) - * in the Android Developer Reference. - */ - const string: any; - - /** - * Style resources. See - * [R.style](https://developer.android.com/reference/android/R.style.html) - * in the Android Developer Reference. - */ - const style: any; - - /** - * Styleable resources. See - * [R.styleable](https://developer.android.com/reference/android/R.styleable.html) - * in the Android Developer Reference. - */ - const styleable: any; - - /** - * Transition resources. See - * [R.transition](https://developer.android.com/reference/android/R.transition.html) - * in the Android Developer Reference. - */ - const transition: any; - - /** - * XML resources. See - * [R.xml](https://developer.android.com/reference/android/R.xml.html) - * in the Android Developer Reference. - */ - const xml: any; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - } } - /** * The top-level App module is mainly used for accessing information about the * application at runtime, and for sending or listening for system events. */ namespace App { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - /** * Convenience constant for system event "accessibilityannouncement". */ @@ -42901,581 +7104,11 @@ declare namespace Titanium { */ const EVENT_ACCESSIBILITY_CHANGED: string; - /** - * Indicates whether Accessibility is enabled by the system. - */ - const accessibilityEnabled: boolean; - - /** - * Indicates whether Analytics is enabled, determined by `tiapp.xml`. - */ - const analytics: boolean; - - /** - * Application copyright statement, determined by `tiapp.xml`. - */ - const copyright: string; - - /** - * Build type that reflects how the application was packaged. - * Returns one of the following values: - * * `development` (Simulator) - * * `test` (Device) - * * `production` (App Store / Adhoc) - */ - const deployType: string; - - /** - * Application description, determined by `tiapp.xml`. - */ - const description: string; - - /** - * Application globally-unique ID, determined by `tiapp.xml`. - */ - const guid: string; - - /** - * Shows the application's splash screen on app resume. - */ - let forceSplashAsSnapshot: boolean; - - /** - * Application ID, from `tiapp.xml`. - */ - const id: string; - - /** - * The install ID for this application. - */ - const installId: string; - - /** - * Determines whether the screen is locked when the device is idle. - */ - let idleTimerDisabled: boolean; - - /** - * Application name, determined by `tiapp.xml`. - */ - const name: string; - - /** - * Determines whether proximity detection is enabled. - */ - let proximityDetection: boolean; - - /** - * Indicates the state of the device's proximity sensor, according to the - * event. - */ - const proximityState: boolean; - - /** - * Prevents network activity indicator from being displayed. - */ - let disableNetworkActivityIndicator: boolean; - - /** - * Application publisher, from `tiapp.xml`. - */ - const publisher: string; - - /** - * Unique session identifier for the current continuous run of the application. - */ - const sessionId: string; - - /** - * Application URL, from `tiapp.xml`. - */ - const url: string; - - /** - * Application version, from `tiapp.xml`. - */ - const version: string; - - /** - * Indicates whether or not the soft keyboard is visible. - */ - const keyboardVisible: boolean; - - /** - * Indicates whether or not the user interaction shoud be tracked. - */ - let trackUserInteraction: boolean; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event?: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Fire a system-level event such as . - */ - function fireSystemEvent(eventName: string, param?: any): void; - - /** - * Returns the arguments passed to the application on startup. - */ - function getArguments(): launchOptions; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getAccessibilityEnabled(): boolean; - - /** - * Gets the value of the property. - */ - function getAnalytics(): boolean; - - /** - * Gets the value of the property. - */ - function getCopyright(): string; - - /** - * Gets the value of the property. - */ - function getDeployType(): string; - - /** - * Gets the value of the property. - */ - function getDescription(): string; - - /** - * Gets the value of the property. - */ - function getGuid(): string; - - /** - * Gets the value of the property. - */ - function getForceSplashAsSnapshot(): boolean; - - /** - * Sets the value of the property. - */ - function setForceSplashAsSnapshot(forceSplashAsSnapshot: boolean): void; - - /** - * Gets the value of the property. - */ - function getId(): string; - - /** - * Gets the value of the property. - */ - function getInstallId(): string; - - /** - * Gets the value of the property. - */ - function getIdleTimerDisabled(): boolean; - - /** - * Sets the value of the property. - */ - function setIdleTimerDisabled(idleTimerDisabled: boolean): void; - - /** - * Gets the value of the property. - */ - function getName(): string; - - /** - * Gets the value of the property. - */ - function getProximityDetection(): boolean; - - /** - * Sets the value of the property. - */ - function setProximityDetection(proximityDetection: boolean): void; - - /** - * Gets the value of the property. - */ - function getProximityState(): boolean; - - /** - * Gets the value of the property. - */ - function getDisableNetworkActivityIndicator(): boolean; - - /** - * Sets the value of the property. - */ - function setDisableNetworkActivityIndicator(disableNetworkActivityIndicator: boolean): void; - - /** - * Gets the value of the property. - */ - function getPublisher(): string; - - /** - * Gets the value of the property. - */ - function getSessionId(): string; - - /** - * Gets the value of the property. - */ - function getUrl(): string; - - /** - * Gets the value of the property. - */ - function getVersion(): string; - - /** - * Gets the value of the property. - */ - function getKeyboardVisible(): boolean; - - - /** - * A module used to access Android application resources. - */ - namespace Android { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * The `R` namespace for application resources. - */ - const R: Titanium.App.Android.R; - - /** - * The version number of the application. - */ - const appVersionCode: number; - - /** - * The version name of the application. - */ - const appVersionName: string; - - /** - * Return the intent that was used to launch the application. - */ - const launchIntent: Titanium.Android.Intent; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getAppVersionCode(): number; - - /** - * Gets the value of the property. - */ - function getAppVersionName(): string; - - /** - * Gets the value of the property. - */ - function getLaunchIntent(): Titanium.Android.Intent; - - /** - * The Titanium binding of the native Android `R` class, giving access to application resources. - */ - interface R extends Titanium.Proxy { - } - } - - /** - * The App Properties module is used for storing application-related data in property/value pairs - * that persist beyond application sessions and device power cycles. - */ - namespace Properties { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Returns the value of a property as a boolean data type. - */ - function getBool(property: string, defaultValue?: boolean): boolean; - - /** - * Returns the value of a property as a double (double-precision, floating point) data type. - */ - function getDouble(property: string, defaultValue?: number): number; - - /** - * Returns the value of a property as an integer data type. - */ - function getInt(property: string, defaultValue?: number): number; - - /** - * Returns the value of a property as an array data type. - */ - function getList(property: string, defaultValue?: ReadonlyArray): any[]; - - /** - * Returns the value of a property as an object. - */ - function getObject(property: string, defaultValue?: any): any; - - /** - * Returns the value of a property as a string data type. - */ - function getString(property: string, defaultValue?: string): string; - - /** - * Indicates whether a property exists. - */ - function hasProperty(property: string): boolean; - - /** - * Returns an array of property names. - */ - function listProperties(): any[]; - - /** - * Removes a property if it exists, or does nothing otherwise. - */ - function removeProperty(property: string): void; - - /** - * Removes all properties that have been set by the user on runtime, or does nothing otherwise. - */ - function removeAllProperties(): void; - - /** - * Sets the value of a property as a boolean data type. The property will be created if it - * does not exist. - */ - function setBool(property: string, value: boolean): void; - - /** - * Sets the value of a property as a double (double-precision, floating point) data type. The - * property will be created if it does not exist. - */ - function setDouble(property: string, value: number): void; - - /** - * Sets the value of a property as an integer data type. The property will be created if it - * does not exist. - */ - function setInt(property: string, value: number): void; - - /** - * Sets the value of a property as an array data type. The property will be created if it - * does not exist. - */ - function setList(property: string, value: ReadonlyArray): void; - - /** - * Sets the value of a property as an object data type. The property will be created if it - * does not exist. - */ - function setObject(property: string, value: any): void; - - /** - * Sets the value of a property as a string data type. The property will be created if it - * does not exist. - */ - function setString(property: string, value: string): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - /** * The top-level App iOS module, available only to iOS devices, that includes the facilities to * create and manage local notifications and background services. */ namespace iOS { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Convenience constant for system event "accessibilitylayoutchanged". - */ - const EVENT_ACCESSIBILITY_LAYOUT_CHANGED: string; - - /** - * Convenience constant for system event "accessibilityscreenchanged". - */ - const EVENT_ACCESSIBILITY_SCREEN_CHANGED: string; - /** * Use with [setMinimumBackgroundFetchInterval](Titanium.App.iOS.setMinimumBackgroundFetchInterval) method. * Specifies the smallest fetch interval supported by the system. @@ -43489,46 +7122,29 @@ declare namespace Titanium { const BACKGROUNDFETCHINTERVAL_NEVER: number; /** - * The application may not present any UI upon a notification being received. - * Use with the [types](UserNotificationSettings.types) property. + * Convenience constant for system event "accessibilitylayoutchanged". */ - const USER_NOTIFICATION_TYPE_NONE: number; + const EVENT_ACCESSIBILITY_LAYOUT_CHANGED: string; /** - * The application may badge its icon upon a notification being received. - * Use with the [types](UserNotificationSettings.types) property. + * Convenience constant for system event "accessibilityscreenchanged". */ - const USER_NOTIFICATION_TYPE_BADGE: number; + const EVENT_ACCESSIBILITY_SCREEN_CHANGED: string; /** - * The application may play a sound upon a notification being received. - * Use with the [types](UserNotificationSettings.types) property. + * A dark interface style. */ - const USER_NOTIFICATION_TYPE_SOUND: number; + const USER_INTERFACE_STYLE_DARK: number; /** - * The application may display an alert upon a notification being received. - * Use with the [types](UserNotificationSettings.types) property. + * A light interface style. */ - const USER_NOTIFICATION_TYPE_ALERT: number; + const USER_INTERFACE_STYLE_LIGHT: number; /** - * The ability to play sounds for critical alerts. - * Use with the [types](UserNotificationSettings.types) property. + * An unspecified interface style. */ - const USER_NOTIFICATION_TYPE_CRITICAL_ALERT: number; - - /** - * The ability to post non-interrupting notifications provisionally to the Notification Center. - * Use with the [types](UserNotificationSettings.types) property. - */ - const USER_NOTIFICATION_TYPE_PROVISIONAL: number; - - /** - * An option indicating the system should display a button for in-app notification settings. - * Use with the [types](UserNotificationSettings.types) property. - */ - const USER_NOTIFICATION_TYPE_PROVIDES_APP_NOTIFICATION_SETTINGS: number; + const USER_INTERFACE_STYLE_UNSPECIFIED: number; /** * The action will execute in background. Use with the @@ -43543,20 +7159,19 @@ declare namespace Titanium { const USER_NOTIFICATION_ACTIVATION_MODE_FOREGROUND: number; /** - * Default action behavior with no additional action support. + * A alert dialog is presented when the notification is received. */ - const USER_NOTIFICATION_BEHAVIOR_DEFAULT: number; + const USER_NOTIFICATION_ALERT_STYLE_ALERT: number; /** - * Provides a textfield with the notification for the user to enter a text response. + * A banner is presented when the notification is received. */ - const USER_NOTIFICATION_BEHAVIOR_TEXTINPUT: number; + const USER_NOTIFICATION_ALERT_STYLE_BANNER: number; /** - * The user has not yet made a choice regarding whether the application may post - * user notifications. + * No banner or alert dialog is presented when the notification is received. */ - const USER_NOTIFICATION_AUTHORIZATION_STATUS_NOT_DETERMINED: number; + const USER_NOTIFICATION_ALERT_STYLE_NONE: number; /** * The application is authorized to post user notifications. @@ -43568,50 +7183,26 @@ declare namespace Titanium { */ const USER_NOTIFICATION_AUTHORIZATION_STATUS_DENIED: number; + /** + * The user has not yet made a choice regarding whether the application may post + * user notifications. + */ + const USER_NOTIFICATION_AUTHORIZATION_STATUS_NOT_DETERMINED: number; + /** * The application is provisionally authorized to post non-interruptive user notifications. */ const USER_NOTIFICATION_AUTHORIZATION_STATUS_PROVISIONAL: number; /** - * The application does not support this notification type. + * Default action behavior with no additional action support. */ - const USER_NOTIFICATION_SETTING_NOT_SUPPORTED: number; + const USER_NOTIFICATION_BEHAVIOR_DEFAULT: number; /** - * The notification setting is turned on. + * Provides a textfield with the notification for the user to enter a text response. */ - const USER_NOTIFICATION_SETTING_ENABLED: number; - - /** - * The notification setting is turned off. - */ - const USER_NOTIFICATION_SETTING_DISABLED: number; - - /** - * No banner or alert dialog is presented when the notification is received. - */ - const USER_NOTIFICATION_ALERT_STYLE_NONE: number; - - /** - * A alert dialog is presented when the notification is received. - */ - const USER_NOTIFICATION_ALERT_STYLE_ALERT: number; - - /** - * A banner is presented when the notification is received. - */ - const USER_NOTIFICATION_ALERT_STYLE_BANNER: number; - - /** - * No options. - */ - const USER_NOTIFICATION_CATEGORY_OPTION_NONE: number; - - /** - * Send dismiss actions to the UNUserNotificationCenter object's delegate for handling. - */ - const USER_NOTIFICATION_CATEGORY_OPTION_CUSTOM_DISMISS_ACTION: number; + const USER_NOTIFICATION_BEHAVIOR_TEXTINPUT: number; /** * Allow CarPlay to display notifications of this type. @@ -43619,9 +7210,9 @@ declare namespace Titanium { const USER_NOTIFICATION_CATEGORY_OPTION_ALLOW_IN_CARPLAY: number; /** - * Show the notification's title, even if the user has disabled notification previews for the app. + * Send dismiss actions to the UNUserNotificationCenter object's delegate for handling. */ - const USER_NOTIFICATION_CATEGORY_OPTION_HIDDEN_PREVIEWS_SHOW_TITLE: number; + const USER_NOTIFICATION_CATEGORY_OPTION_CUSTOM_DISMISS_ACTION: number; /** * Show the notification's subtitle, even if the user has disabled notification previews for the app. @@ -43629,55 +7220,91 @@ declare namespace Titanium { const USER_NOTIFICATION_CATEGORY_OPTION_HIDDEN_PREVIEWS_SHOW_SUBTITLE: number; /** - * Uniform type identifier for all text types. + * Show the notification's title, even if the user has disabled notification previews for the app. */ - const UTTYPE_TEXT: string; + const USER_NOTIFICATION_CATEGORY_OPTION_HIDDEN_PREVIEWS_SHOW_TITLE: number; /** - * Uniform type identifier for a plain text type, equivalent to MIME type text/plain. + * No options. */ - const UTTYPE_PLAIN_TEXT: string; + const USER_NOTIFICATION_CATEGORY_OPTION_NONE: number; /** - * Uniform type identifier for Unicode-8 plain text type. + * The notification setting is turned off. */ - const UTTYPE_UTF8_PLAIN_TEXT: string; + const USER_NOTIFICATION_SETTING_DISABLED: number; /** - * Uniform type identifier for Unicode-16 with byte-order mark (BOM), or if BOM is not present, - * an external representation byte order (big-endian). + * The notification setting is turned on. */ - const UTTYPE_UTF16_EXTERNAL_PLAIN_TEXT: string; + const USER_NOTIFICATION_SETTING_ENABLED: number; /** - * Uniform type identifier for Unicode-16, native byte order, with an optional byte-order mark (BOM). + * The application does not support this notification type. */ - const UTTYPE_UTF16_PLAIN_TEXT: string; + const USER_NOTIFICATION_SETTING_NOT_SUPPORTED: number; /** - * Uniform type identifier for Rich Text. + * The application may display an alert upon a notification being received. + * Use with the [types](UserNotificationSettings.types) property. */ - const UTTYPE_RTF: string; + const USER_NOTIFICATION_TYPE_ALERT: number; /** - * Uniform type identifier for HTML. + * The application may badge its icon upon a notification being received. + * Use with the [types](UserNotificationSettings.types) property. */ - const UTTYPE_HTML: string; + const USER_NOTIFICATION_TYPE_BADGE: number; /** - * Uniform type identifier for XML. + * The ability to play sounds for critical alerts. + * Use with the [types](UserNotificationSettings.types) property. */ - const UTTYPE_XML: string; + const USER_NOTIFICATION_TYPE_CRITICAL_ALERT: number; /** - * Uniform type identifier for PDF data. + * The application may not present any UI upon a notification being received. + * Use with the [types](UserNotificationSettings.types) property. */ - const UTTYPE_PDF: string; + const USER_NOTIFICATION_TYPE_NONE: number; /** - * Uniform type identifier for Rich Text Format Directory, that is, Rich Text with content embedding, on-disk format. + * An option indicating the system should display a button for in-app notification settings. + * Use with the [types](UserNotificationSettings.types) property. */ - const UTTYPE_RTFD: string; + const USER_NOTIFICATION_TYPE_PROVIDES_APP_NOTIFICATION_SETTINGS: number; + + /** + * The ability to post non-interrupting notifications provisionally to the Notification Center. + * Use with the [types](UserNotificationSettings.types) property. + */ + const USER_NOTIFICATION_TYPE_PROVISIONAL: number; + + /** + * The application may play a sound upon a notification being received. + * Use with the [types](UserNotificationSettings.types) property. + */ + const USER_NOTIFICATION_TYPE_SOUND: number; + + /** + * Uniform type identifier for Mac OS icon images. + */ + const UTTYPE_APPLE_ICNS: string; + + /** + * Uniform type identifier for protected MPEG-4 audio (iTunes music store format). + */ + const UTTYPE_APPLE_PROTECTED_MPEG4_AUDIO: string; + + /** + * Uniform type identifier for all audio content. + */ + const UTTYPE_AUDIO: string; + + /** + * Uniform type identifier for Windows bitmap images. + */ + const UTTYPE_BMP: string; /** * Uniform type identifier for Rich Text with content embedding, pasteboard format. @@ -43685,14 +7312,19 @@ declare namespace Titanium { const UTTYPE_FLAT_RTFD: string; /** - * Uniform type identifier for MLTE (Textension) format for mixed text and multimedia data. + * Uniform type identifier for GIF images. */ - const UTTYPE_TXN_TEXT_AND_MULTIMEDIA_DATA: string; + const UTTYPE_GIF: string; /** - * Uniform type identifier for WebKit webarchive format. + * Uniform type identifier for HTML. */ - const UTTYPE_WEB_ARCHIVE: string; + const UTTYPE_HTML: string; + + /** + * Uniform type identifier for Windows icon images. + */ + const UTTYPE_ICO: string; /** * Uniform type identifier for all image types. @@ -43709,65 +7341,15 @@ declare namespace Titanium { */ const UTTYPE_JPEG2000: string; - /** - * Uniform type identifier for TIFF images. - */ - const UTTYPE_TIFF: string; - - /** - * Uniform type identifier for PICT images. - */ - const UTTYPE_PICT: string; - - /** - * Uniform type identifier for GIF images. - */ - const UTTYPE_GIF: string; - - /** - * Uniform type identifier for PNG images. - */ - const UTTYPE_PNG: string; - - /** - * Uniform type identifier for QuickTime images. - */ - const UTTYPE_QUICKTIME_IMAGE: string; - - /** - * Uniform type identifier for Mac OS icon images. - */ - const UTTYPE_APPLE_ICNS: string; - - /** - * Uniform type identifier for Windows bitmap images. - */ - const UTTYPE_BMP: string; - - /** - * Uniform type identifier for Windows icon images. - */ - const UTTYPE_ICO: string; - /** * Uniform type identifier for all audiovisual content. */ const UTTYPE_MOVIE: string; /** - * Uniform type identifier for all video content without audio. + * Uniform type identifier for MP3 audio. */ - const UTTYPE_VIDEO: string; - - /** - * Uniform type identifier for all audio content. - */ - const UTTYPE_AUDIO: string; - - /** - * Uniform type identifier for QuickTime movies. - */ - const UTTYPE_QUICKTIME_MOVIE: string; + const UTTYPE_MP3: string; /** * Uniform type identifier for MPEG-1 and MPEG-2 content. @@ -43779,181 +7361,133 @@ declare namespace Titanium { */ const UTTYPE_MPEG4: string; - /** - * Uniform type identifier for MP3 audio. - */ - const UTTYPE_MP3: string; - /** * Uniform type identifier for MPEG-4 audio. */ const UTTYPE_MPEG4_AUDIO: string; /** - * Uniform type identifier for protected MPEG-4 audio (iTunes music store format). + * Uniform type identifier for PDF data. */ - const UTTYPE_APPLE_PROTECTED_MPEG4_AUDIO: string; + const UTTYPE_PDF: string; /** - * Notification types and user notification categories the application is registered to use. + * Uniform type identifier for PICT images. */ - const currentUserNotificationSettings: UserNotificationSettings; + const UTTYPE_PICT: string; /** - * Provides an Array of the NSUserActivityTypes keys defined within your Titanium project. + * Uniform type identifier for a plain text type, equivalent to MIME type text/plain. */ - const supportedUserActivityTypes: string[]; + const UTTYPE_PLAIN_TEXT: string; /** - * Returns a URL to open the app's settings. + * Uniform type identifier for PNG images. */ - const applicationOpenSettingsURL: string; + const UTTYPE_PNG: string; /** - * Adds the specified callback as an event listener for the named event. + * Uniform type identifier for QuickTime images. */ - function addEventListener(name: string, callback: (param0: any) => any): void; + const UTTYPE_QUICKTIME_IMAGE: string; /** - * Removes the specified callback as an event listener for the named event. + * Uniform type identifier for QuickTime movies. */ - function removeEventListener(name: string, callback: (param0: any) => any): void; + const UTTYPE_QUICKTIME_MOVIE: string; /** - * Fires a synthesized event to any registered listeners. + * Uniform type identifier for Rich Text. */ - function fireEvent(name: string, event: any): void; + const UTTYPE_RTF: string; /** - * Applies the properties to the proxy. + * Uniform type identifier for Rich Text Format Directory, that is, Rich Text with content embedding, on-disk format. */ - function applyProperties(props: any): void; + const UTTYPE_RTFD: string; /** - * Creates and returns an instance of Titanium.App.iOS.UserDefaults. + * Uniform type identifier for all text types. */ - function createUserDefaults(parameters: any): Titanium.App.iOS.UserDefaults; + const UTTYPE_TEXT: string; /** - * Cancels all scheduled local notifications. + * Uniform type identifier for TIFF images. */ - function cancelAllLocalNotifications(): void; + const UTTYPE_TIFF: string; /** - * Cancels a local notification. + * Uniform type identifier for MLTE (Textension) format for mixed text and multimedia data. */ - function cancelLocalNotification(id: number): void; + const UTTYPE_TXN_TEXT_AND_MULTIMEDIA_DATA: string; /** - * Cancels a local notification. + * Uniform type identifier for Unicode-16 with byte-order mark (BOM), or if BOM is not present, + * an external representation byte order (big-endian). */ - function cancelLocalNotification(id: string): void; + const UTTYPE_UTF16_EXTERNAL_PLAIN_TEXT: string; /** - * Registers a service to run when the application is placed in the background. + * Uniform type identifier for Unicode-16, native byte order, with an optional byte-order mark (BOM). */ - function registerBackgroundService(params: any): Titanium.App.iOS.BackgroundService; + const UTTYPE_UTF16_PLAIN_TEXT: string; /** - * Registers the application to use the requested notification types and categories. + * Uniform type identifier for Unicode-8 plain text type. */ - function registerUserNotificationSettings(params: UserNotificationSettings): void; + const UTTYPE_UTF8_PLAIN_TEXT: string; /** - * Schedule a local notification. + * Uniform type identifier for all video content without audio. */ - function scheduleLocalNotification(params: NotificationParams): Titanium.App.iOS.LocalNotification; + const UTTYPE_VIDEO: string; /** - * Specifies the minimum amount of time that must elapse between background fetch operations. - * Available only on iOS 7 and later. + * Uniform type identifier for WebKit webarchive format. */ - function setMinimumBackgroundFetchInterval(fetchInterval: number): void; + const UTTYPE_WEB_ARCHIVE: string; /** - * Marks the end of the app execution after initiating the download operation. Available only on iOS 7 and later. + * Uniform type identifier for XML. */ - function endBackgroundHandler(handlerID: string): void; - - /** - * Marks the end of an `openParentApplication:reply` execution by a WatchKit extension. - */ - function sendWatchExtensionReply(handlerId: string, userInfo: any): void; - - /** - * Creates and returns an instance of . - */ - function createSearchQuery(parameters?: any): Titanium.App.iOS.SearchQuery; - - /** - * Creates and returns an instance of . - */ - function createSearchableIndex(parameters?: any): Titanium.App.iOS.SearchableIndex; - - /** - * Creates and returns an instance of . - */ - function createSearchableItem(parameters?: any): Titanium.App.iOS.SearchableItem; - - /** - * Creates and returns an instance of . - */ - function createSearchableItemAttributeSet(parameters?: any): Titanium.App.iOS.SearchableItemAttributeSet; - - /** - * Creates and returns an instance of . - */ - function createUserActivity(parameters?: any): Titanium.App.iOS.UserActivity; - - /** - * Creates and returns an instance of . - */ - function createUserNotificationAction(parameters?: any): Titanium.App.iOS.UserNotificationAction; - - /** - * Creates and returns an instance of . - */ - function createUserNotificationCategory(parameters?: any): Titanium.App.iOS.UserNotificationCategory; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getCurrentUserNotificationSettings(): UserNotificationSettings; - - /** - * Gets the value of the property. - */ - function getSupportedUserActivityTypes(): string[]; - - /** - * Gets the value of the property. - */ - function getApplicationOpenSettingsURL(): string; + const UTTYPE_XML: string; /** * A service that runs when the application is placed in the background. */ - interface BackgroundService extends Titanium.Proxy { + class BackgroundService extends Titanium.Proxy { /** * A local URL to a JavaScript file containing the code to run in the background. */ url: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUrl(url: string): void; + /** * Stops the service from running during the current background session to conserve resources. */ @@ -43964,92 +7498,190 @@ declare namespace Titanium { */ unregister(): void; - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - } /** * A local notification to alert the user of new or pending application information. */ - interface LocalNotification extends Titanium.Proxy { + class LocalNotification extends Titanium.Proxy { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Cancels the pending notification. + * @deprecated Use [Titanium.App.iOS.UserNotificationCenter.removePendingNotifications](Titanium.App.iOS.UserNotificationCenter.removePendingNotifications) instead. */ cancel(): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * Base event for class Titanium.App.iOS.SearchQuery + */ + interface SearchQueryBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.App.iOS.SearchQuery; + + } + /** + * Fired when the query finds a new batch of matching items. + */ + interface SearchQuery_founditems_Event extends SearchQueryBaseEvent { + /** + * The number of items that are currently fetched. + */ + foundItemsCount: number; + + /** + * An array of indexed items that match the specified query. + */ + items: Titanium.App.iOS.SearchableItem[]; + + } + /** + * Fired when the query completes to inform you about it's success. + * To receive items, use the `founditems` event. + */ + interface SearchQuery_completed_Event extends SearchQueryBaseEvent { + /** + * Error message, if any returned. Undefined otherwise. + */ + error: string; + + /** + * Indicates if the operation succeeded. Returns true if download succeeded, false otherwise. + */ + success: boolean; + + } + interface SearchQueryEventMap extends ProxyEventMap { + completed: SearchQuery_completed_Event; + + founditems: SearchQuery_founditems_Event; + } /** * A search query object manages the criteria to apply when searching app content that you have previously * indexed by using the Core Spotlight APIs. */ - interface SearchQuery extends Titanium.Proxy { - /** - * A formatted string that defines the matching criteria to apply to indexed items. - */ - queryString: string; - + class SearchQuery extends Titanium.Proxy { /** * An array of strings that represent the attributes of indexed items. */ attributes: string[]; /** - * Asynchronously queries the index for items that match the query object's specifications. + * A formatted string that defines the matching criteria to apply to indexed items. */ - start(): void; + queryString: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.App.iOS.SearchQuery, event: SearchQueryEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Cancels a query operation. */ cancel(): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: SearchQueryEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * A Boolean value that indicates if the query has been cancelled (`true`) or not (`false`). */ isCancelled(): boolean; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.App.iOS.SearchQuery, event: SearchQueryEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Asynchronously queries the index for items that match the query object's specifications. + */ + start(): void; + } /** * The SearchableIndex module is used to add or remove Ti.App.iOS.SearchableItem objects from the device search index. */ - interface SearchableIndex extends Titanium.Proxy { + class SearchableIndex extends Titanium.Proxy { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds an array of Titanium.App.iOS.SearchableItem objects to the default search index. + */ + addToDefaultSearchableIndex(Array: ReadonlyArray, callback: (param0: any) => void): void; + + /** + * Removes search items based on an array of domain identifiers. + */ + deleteAllSearchableItemByDomainIdenifiers(Array: ReadonlyArray, callback: (param0: any) => void): void; + + /** + * Removes all search items added by the application. + */ + deleteAllSearchableItems(callback: (param0: any) => void): void; + + /** + * Removes search items based on an array of identifiers. + */ + deleteSearchableItemsByIdentifiers(Array: ReadonlyArray, callback: (param0: any) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Indicates whether indexing is supported by the device. */ isSupported(): boolean; /** - * Adds an array of Titanium.App.iOS.SearchableItem objects to the default search index. + * Removes the specified callback as an event listener for the named event. */ - addToDefaultSearchableIndex(Array: ReadonlyArray, callback: (param0: any) => any): void; - - /** - * Removes all search items added by the application. - */ - deleteAllSearchableItems(callback: (param0: any) => any): void; - - /** - * Removes search items based on an array of domain identifiers. - */ - deleteAllSearchableItemByDomainIdenifiers(Array: ReadonlyArray, callback: (param0: any) => any): void; - - /** - * Removes search items based on an array of identifiers. - */ - deleteSearchableItemsByIdentifiers(Array: ReadonlyArray, callback: (param0: any) => any): void; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * Used to create a unique object containing all of the search information that will appear in the device search index. */ - interface SearchableItem extends Titanium.Proxy { + class SearchableItem extends Titanium.Proxy { /** * Set of metadata properties to display for the item. */ @@ -44070,33 +7702,54 @@ declare namespace Titanium { */ uniqueIdentifier: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getDomainIdentifier(): string; - /** - * Sets the value of the property. - */ - setDomainIdentifier(domainIdentifier: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getExpirationDate(): string; - /** - * Sets the value of the property. - */ - setExpirationDate(expirationDate: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getUniqueIdentifier(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDomainIdentifier(domainIdentifier: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setExpirationDate(expirationDate: string): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setUniqueIdentifier(uniqueIdentifier: string): void; @@ -44104,236 +7757,76 @@ declare namespace Titanium { /** * The SearchableItemAttributeSet module defines metadata properties for SearchItem and UserActivity objects. */ - interface SearchableItemAttributeSet extends Titanium.Proxy { + class SearchableItemAttributeSet extends Titanium.Proxy { /** - * Content type of the attribute set. + * The date that the item was moved into the current location. */ - itemContentType: string; - - /** - * A localized string to be displayed in the UI for this item. - */ - displayName: string; - - /** - * An array of localized strings of alternate display names for this item. - */ - alternateNames: string[]; - - /** - * The complete path to the item. - */ - path: string; - - /** - * File URL representing the content to be indexed. - */ - contentURL: string; - - /** - * File URL pointing to a thumbnail image for this item. - */ - thumbnailURL: string; - - /** - * Image data for thumbnail for this item. - */ - thumbnailData: string | Titanium.Blob; - - /** - * For activities this is the unique identifier for the item this activity is related to. - */ - relatedUniqueIdentifier: string; - - /** - * The date that the last metadata attribute was changed. - */ - metadataModificationDate: string; - - /** - * UTI Type pedigree for an item. - */ - contentType: string; - - /** - * Array of strings related to the content tree of the item. - */ - contentTypeTree: string[]; - - /** - * Represents keywords associated with this particular item. Example keywords might be Birthday etc. - */ - keywords: string[]; - - /** - * The title of the particular item. - */ - title: string; - - /** - * Subject of the the item. - */ - subject: string; - - /** - * Theme of the the item. - */ - theme: string; - - /** - * An account of the content of the resource. - */ - contentDescription: string; - - /** - * Used to reference to the resource within a given context. - */ - identifier: string; - - /** - * A class of entity for whom the resource is intended or useful. - */ - audiences: string[]; - - /** - * Size of the document in MB. - */ - fileSize: number; - - /** - * Number of pages in the item. - */ - pageCount: number; - - /** - * Width in points (72 points per inch) of the document page. - */ - pageWidth: number; - - /** - * Height in points (72 points per inch) of the document page. - */ - pageHeight: number; - - /** - * Security (encryption) method used in the file. - */ - securityMethod: string; - - /** - * Application used to create the document content (e.g. "Word","Framemaker", etc.). - */ - creator: string; - - /** - * Software used to convert the original content into a PDF stream. - */ - encodingApplications: string[]; - - /** - * Kind that the item represents. - */ - kind: string; - - /** - * Array of font names used in the item. - */ - fontNames: string[]; - - /** - * The sample rate of the audio data contained in the file. - */ - audioSampleRate: number; - - /** - * The number of channels in the audio data contained in the file. - */ - audioChannelCount: number; - - /** - * The tempo of the music contained in the audio file in Beats Per Minute. - */ - tempo: number; - - /** - * The musical key of the song/composition contained in an audio file. - */ - keySignature: string; - - /** - * The time signature of the musical composition contained in the audio/MIDI file. - */ - timeSignature: string; - - /** - * The name of the application that encoded the data contained in the audio file. - */ - audioEncodingApplication: string; - - /** - * The composer of the song/composition contained in the audio file. - */ - composer: string; - - /** - * The lyricist/text writer for song/composition contained in the audio file. - */ - lyricist: string; + addedDate: string; /** * The title for a collection of media. */ album: string; + /** + * An array of localized strings of alternate display names for this item. + */ + alternateNames: string[]; + /** * The artist for the media. */ artist: string; + /** + * A class of entity for whom the resource is intended or useful. + */ + audiences: string[]; + + /** + * The audio bit rate. + */ + audioBitRate: number; + + /** + * The number of channels in the audio data contained in the file. + */ + audioChannelCount: number; + + /** + * The name of the application that encoded the data contained in the audio file. + */ + audioEncodingApplication: string; + + /** + * The sample rate of the audio data contained in the file. + */ + audioSampleRate: number; + /** * The track number of a song/composition when it is part of an album. */ audioTrackNumber: number; /** - * The recording date of the song/composition. + * The codecs used to encode/decode the media. */ - recordingDate: string; + codecs: string[]; /** - * The musical genre of the song/composition contained in the audio file. + * Comment related to a file. */ - musicalGenre: string; + comment: string; /** - * Used to indicates whether the MIDI sequence contained in the file is setup for use with a General MIDI device. + * The composer of the song/composition contained in the audio file. */ - generalMIDISequence: number; + composer: string; /** - * Metadata attribute that stores the category of instrument. + * A list of contacts that are somehow associated with this document beyond what is captured as Author. */ - musicalInstrumentCategory: string; - - /** - * Metadata attribute that stores the name of instrument. - */ - musicalInstrumentName: string; - - /** - * Used to indicate that using the phone number is appropriate. - */ - supportsPhoneCall: number; - - /** - * Used to determine if navigation is supported. - */ - supportsNavigation: number; - - /** - * Title displayed in the search container - */ - containerTitle: string; + contactKeywords: string[]; /** * Display of the search container @@ -44351,44 +7844,29 @@ declare namespace Titanium { containerOrder: number; /** - * The list of editor/editors that have worked on this item. + * Title displayed in the search container */ - editors: string[]; - - /** - * The list of people who are visible in an image or movie or written about in a document. - */ - participants: string[]; - - /** - * The list of projects that this item is part of. - */ - projects: string[]; - - /** - * The date that the file was last downloaded / received. - */ - downloadedDate: string; - - /** - * The date that the item was last used. - */ - lastUsedDate: string; + containerTitle: string; /** * The date that the contents of the item were created. */ contentCreationDate: string; + /** + * An account of the content of the resource. + */ + contentDescription: string; + /** * The date that the contents of the item were last modified. */ contentModificationDate: string; /** - * The date that the item was moved into the current location. + * Whether or not the item has explicit content. Set to `1` for explicit or `0` for clean. */ - addedDate: string; + contentRating: number; /** * Used to indicate where the item was obtained from. @@ -44396,119 +7874,44 @@ declare namespace Titanium { contentSources: string[]; /** - * Comment related to a file. + * UTI Type pedigree for an item. */ - comment: string; + contentType: string; /** - * Copyright of the content. + * Array of strings related to the content tree of the item. */ - copyright: string; + contentTypeTree: string[]; /** - * Duration in seconds of the content of the item (if appropriate). + * File URL representing the content to be indexed. */ - duration: number; - - /** - * A list of contacts that are somehow associated with this document beyond what is captured as Author. - */ - contactKeywords: string[]; - - /** - * The codecs used to encode/decode the media. - */ - codecs: string[]; - - /** - * Used to indicate company/Organization that created the document. - */ - organizations: string[]; - - /** - * Media types present in the content. - */ - mediaTypes: string[]; - - /** - * A version specifier for this item. - */ - version: string; - - /** - * Used to indicate the role of the document creator. - */ - role: string; - - /** - * Whether the content is prepared for streaming. Set to `0` for not streamable and `1` for streamable. - */ - streamable: number; - - /** - * The total bit rate (audio and video combined) of the media. - */ - totalBitRate: number; - - /** - * The video bit rate. - */ - videoBitRate: number; - - /** - * The audio bit rate. - */ - audioBitRate: number; - - /** - * The delivery type of the item. Set to `0` for fast start and `1` for RTSP. - */ - deliveryType: number; - - /** - * Used to designate the languages of the intellectual content of the resource. - */ - languages: string[]; - - /** - * Used to provide a link to information about rights held in and over resource. - */ - rights: string[]; - - /** - * Used to designate the entity responsible for making the resource available. - */ - publishers: string[]; + contentURL: string; /** * Used to designate the entity responsible for making contributions to the content of the resource. */ contributors: string[]; + /** + * Copyright of the content. + */ + copyright: string; + /** * Used to designate the extent or scope of the content of the resource. */ coverage: string[]; /** - * User rating of this item out of 5 stars. + * Application used to create the document content (e.g. "Word","Framemaker", etc.). */ - rating: number; + creator: string; /** - * A description of the rating, for example, the number of reviewers. + * The delivery type of the item. Set to `0` for fast start and `1` for RTSP. */ - ratingDescription: string; - - /** - * User play count of this item. - */ - playCount: number; - - /** - * Information about the item. - */ - information: string; + deliveryType: number; /** * Director of the item, for example, the movie director. @@ -44516,9 +7919,49 @@ declare namespace Titanium { director: string; /** - * Producer of the content. + * A localized string to be displayed in the UI for this item. */ - producer: string; + displayName: string; + + /** + * The date that the file was last downloaded / received. + */ + downloadedDate: string; + + /** + * Duration in seconds of the content of the item (if appropriate). + */ + duration: number; + + /** + * The list of editor/editors that have worked on this item. + */ + editors: string[]; + + /** + * Software used to convert the original content into a PDF stream. + */ + encodingApplications: string[]; + + /** + * Size of the document in MB. + */ + fileSize: number; + + /** + * Array of font names used in the item. + */ + fontNames: string[]; + + /** + * The fully formatted address of the item (obtained from MapKit). + */ + fullyFormattedAddress: string; + + /** + * Used to indicates whether the MIDI sequence contained in the file is setup for use with a General MIDI device. + */ + generalMIDISequence: number; /** * Genre of the item, for example, movie genre. @@ -44526,9 +7969,84 @@ declare namespace Titanium { genre: string; /** - * Performers in the movie. + * Used to reference to the resource within a given context. */ - performers: string[]; + identifier: string; + + /** + * Information about the item. + */ + information: string; + + /** + * Content type of the attribute set. + */ + itemContentType: string; + + /** + * The musical key of the song/composition contained in an audio file. + */ + keySignature: string; + + /** + * Represents keywords associated with this particular item. Example keywords might be Birthday etc. + */ + keywords: string[]; + + /** + * Kind that the item represents. + */ + kind: string; + + /** + * Used to designate the languages of the intellectual content of the resource. + */ + languages: string[]; + + /** + * The date that the item was last used. + */ + lastUsedDate: string; + + /** + * Whether or not the item is local. Set to `1` if true and `0` otherwise. + */ + local: number; + + /** + * The lyricist/text writer for song/composition contained in the audio file. + */ + lyricist: string; + + /** + * Media types present in the content. + */ + mediaTypes: string[]; + + /** + * The date that the last metadata attribute was changed. + */ + metadataModificationDate: string; + + /** + * The musical genre of the song/composition contained in the audio file. + */ + musicalGenre: string; + + /** + * Metadata attribute that stores the category of instrument. + */ + musicalInstrumentCategory: string; + + /** + * Metadata attribute that stores the name of instrument. + */ + musicalInstrumentName: string; + + /** + * Used to indicate company/Organization that created the document. + */ + organizations: string[]; /** * Original format of the movie. @@ -44541,34 +8059,39 @@ declare namespace Titanium { originalSource: string; /** - * Whether or not the item is local. Set to `1` if true and `0` otherwise. + * Number of pages in the item. */ - local: number; + pageCount: number; /** - * Whether or not the item has explicit content. Set to `1` for explicit or `0` for clean. + * Height in points (72 points per inch) of the document page. */ - contentRating: number; + pageHeight: number; /** - * URL of the item. + * Width in points (72 points per inch) of the document page. */ - url: string; + pageWidth: number; /** - * The fully formatted address of the item (obtained from MapKit). + * The list of people who are visible in an image or movie or written about in a document. */ - fullyFormattedAddress: string; + participants: string[]; /** - * The sub-location (e.g., street number) for the item according to guidelines established by the provider. + * The complete path to the item. */ - subThoroughfare: string; + path: string; /** - * The location (e.g., street name) for the item according to guidelines established by the provider. + * Performers in the movie. */ - thoroughfare: string; + performers: string[]; + + /** + * User play count of this item. + */ + playCount: number; /** * The postal code for the item according to guidelines established by the provider. @@ -44576,960 +8099,1353 @@ declare namespace Titanium { postalCode: string; /** - * Gets the value of the property. + * Producer of the content. */ - getDisplayName(): string; + producer: string; /** - * Sets the value of the property. + * The list of projects that this item is part of. */ - setDisplayName(displayName: string): void; + projects: string[]; /** - * Gets the value of the property. + * Used to designate the entity responsible for making the resource available. */ - getAlternateNames(): string[]; + publishers: string[]; /** - * Sets the value of the property. + * User rating of this item out of 5 stars. */ - setAlternateNames(alternateNames: ReadonlyArray): void; + rating: number; /** - * Gets the value of the property. + * A description of the rating, for example, the number of reviewers. */ - getPath(): string; + ratingDescription: string; /** - * Sets the value of the property. + * The recording date of the song/composition. */ - setPath(path: string): void; + recordingDate: string; /** - * Gets the value of the property. + * For activities this is the unique identifier for the item this activity is related to. */ - getContentURL(): string; + relatedUniqueIdentifier: string; /** - * Sets the value of the property. + * Used to provide a link to information about rights held in and over resource. */ - setContentURL(contentURL: string): void; + rights: string[]; /** - * Gets the value of the property. + * Used to indicate the role of the document creator. */ - getThumbnailURL(): string; + role: string; /** - * Sets the value of the property. + * Security (encryption) method used in the file. */ - setThumbnailURL(thumbnailURL: string): void; + securityMethod: string; /** - * Gets the value of the property. + * Whether the content is prepared for streaming. Set to `0` for not streamable and `1` for streamable. */ - getThumbnailData(): string | Titanium.Blob; + streamable: number; /** - * Sets the value of the property. + * The sub-location (e.g., street number) for the item according to guidelines established by the provider. */ - setThumbnailData(thumbnailData: string): void; + subThoroughfare: string; /** - * Sets the value of the property. + * Subject of the the item. */ - setThumbnailData(thumbnailData: Titanium.Blob): void; + subject: string; /** - * Gets the value of the property. + * Used to determine if navigation is supported. */ - getRelatedUniqueIdentifier(): string; + supportsNavigation: number; /** - * Sets the value of the property. + * Used to indicate that using the phone number is appropriate. */ - setRelatedUniqueIdentifier(relatedUniqueIdentifier: string): void; + supportsPhoneCall: number; /** - * Gets the value of the property. + * The tempo of the music contained in the audio file in Beats Per Minute. */ - getMetadataModificationDate(): string; + tempo: number; /** - * Sets the value of the property. + * Theme of the the item. */ - setMetadataModificationDate(metadataModificationDate: string): void; + theme: string; /** - * Gets the value of the property. + * The location (e.g., street name) for the item according to guidelines established by the provider. */ - getContentType(): string; + thoroughfare: string; /** - * Sets the value of the property. + * Image data for thumbnail for this item. */ - setContentType(contentType: string): void; + thumbnailData: string | Titanium.Blob; /** - * Gets the value of the property. + * File URL pointing to a thumbnail image for this item. */ - getContentTypeTree(): string[]; + thumbnailURL: string; /** - * Sets the value of the property. + * The time signature of the musical composition contained in the audio/MIDI file. */ - setContentTypeTree(contentTypeTree: ReadonlyArray): void; + timeSignature: string; /** - * Gets the value of the property. + * The title of the particular item. */ - getKeywords(): string[]; + title: string; /** - * Sets the value of the property. + * The total bit rate (audio and video combined) of the media. */ - setKeywords(keywords: ReadonlyArray): void; + totalBitRate: number; /** - * Gets the value of the property. + * URL of the item. */ - getTitle(): string; + url: string; /** - * Sets the value of the property. + * A version specifier for this item. */ - setTitle(title: string): void; + version: string; /** - * Gets the value of the property. + * The video bit rate. */ - getSubject(): string; + videoBitRate: number; /** - * Sets the value of the property. + * Adds the specified callback as an event listener for the named event. */ - setSubject(subject: string): void; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Gets the value of the property. + * Fires a synthesized event to any registered listeners. */ - getTheme(): string; - - /** - * Sets the value of the property. - */ - setTheme(theme: string): void; - - /** - * Gets the value of the property. - */ - getContentDescription(): string; - - /** - * Sets the value of the property. - */ - setContentDescription(contentDescription: string): void; - - /** - * Gets the value of the property. - */ - getIdentifier(): string; - - /** - * Sets the value of the property. - */ - setIdentifier(identifier: string): void; - - /** - * Gets the value of the property. - */ - getAudiences(): string[]; - - /** - * Sets the value of the property. - */ - setAudiences(audiences: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getFileSize(): number; - - /** - * Sets the value of the property. - */ - setFileSize(fileSize: number): void; - - /** - * Gets the value of the property. - */ - getPageCount(): number; - - /** - * Sets the value of the property. - */ - setPageCount(pageCount: number): void; - - /** - * Gets the value of the property. - */ - getPageWidth(): number; - - /** - * Sets the value of the property. - */ - setPageWidth(pageWidth: number): void; - - /** - * Gets the value of the property. - */ - getPageHeight(): number; - - /** - * Sets the value of the property. - */ - setPageHeight(pageHeight: number): void; - - /** - * Gets the value of the property. - */ - getSecurityMethod(): string; - - /** - * Sets the value of the property. - */ - setSecurityMethod(securityMethod: string): void; - - /** - * Gets the value of the property. - */ - getCreator(): string; - - /** - * Sets the value of the property. - */ - setCreator(creator: string): void; - - /** - * Gets the value of the property. - */ - getEncodingApplications(): string[]; - - /** - * Sets the value of the property. - */ - setEncodingApplications(encodingApplications: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getKind(): string; - - /** - * Sets the value of the property. - */ - setKind(kind: string): void; - - /** - * Gets the value of the property. - */ - getFontNames(): string[]; - - /** - * Sets the value of the property. - */ - setFontNames(fontNames: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getAudioSampleRate(): number; - - /** - * Sets the value of the property. - */ - setAudioSampleRate(audioSampleRate: number): void; - - /** - * Gets the value of the property. - */ - getAudioChannelCount(): number; - - /** - * Sets the value of the property. - */ - setAudioChannelCount(audioChannelCount: number): void; - - /** - * Gets the value of the property. - */ - getTempo(): number; - - /** - * Sets the value of the property. - */ - setTempo(tempo: number): void; - - /** - * Gets the value of the property. - */ - getKeySignature(): string; - - /** - * Sets the value of the property. - */ - setKeySignature(keySignature: string): void; - - /** - * Gets the value of the property. - */ - getTimeSignature(): string; - - /** - * Sets the value of the property. - */ - setTimeSignature(timeSignature: string): void; - - /** - * Gets the value of the property. - */ - getAudioEncodingApplication(): string; - - /** - * Sets the value of the property. - */ - setAudioEncodingApplication(audioEncodingApplication: string): void; - - /** - * Gets the value of the property. - */ - getComposer(): string; - - /** - * Sets the value of the property. - */ - setComposer(composer: string): void; - - /** - * Gets the value of the property. - */ - getLyricist(): string; - - /** - * Sets the value of the property. - */ - setLyricist(lyricist: string): void; - - /** - * Gets the value of the property. - */ - getAlbum(): string; - - /** - * Sets the value of the property. - */ - setAlbum(album: string): void; - - /** - * Gets the value of the property. - */ - getArtist(): string; - - /** - * Sets the value of the property. - */ - setArtist(artist: string): void; - - /** - * Gets the value of the property. - */ - getAudioTrackNumber(): number; - - /** - * Sets the value of the property. - */ - setAudioTrackNumber(audioTrackNumber: number): void; - - /** - * Gets the value of the property. - */ - getRecordingDate(): string; - - /** - * Sets the value of the property. - */ - setRecordingDate(recordingDate: string): void; - - /** - * Gets the value of the property. - */ - getMusicalGenre(): string; - - /** - * Sets the value of the property. - */ - setMusicalGenre(musicalGenre: string): void; - - /** - * Gets the value of the property. - */ - getGeneralMIDISequence(): number; - - /** - * Sets the value of the property. - */ - setGeneralMIDISequence(generalMIDISequence: number): void; - - /** - * Gets the value of the property. - */ - getMusicalInstrumentCategory(): string; - - /** - * Sets the value of the property. - */ - setMusicalInstrumentCategory(musicalInstrumentCategory: string): void; - - /** - * Gets the value of the property. - */ - getMusicalInstrumentName(): string; - - /** - * Sets the value of the property. - */ - setMusicalInstrumentName(musicalInstrumentName: string): void; - - /** - * Gets the value of the property. - */ - getSupportsPhoneCall(): number; - - /** - * Sets the value of the property. - */ - setSupportsPhoneCall(supportsPhoneCall: number): void; - - /** - * Gets the value of the property. - */ - getSupportsNavigation(): number; - - /** - * Sets the value of the property. - */ - setSupportsNavigation(supportsNavigation: number): void; - - /** - * Gets the value of the property. - */ - getContainerTitle(): string; - - /** - * Sets the value of the property. - */ - setContainerTitle(containerTitle: string): void; - - /** - * Gets the value of the property. - */ - getContainerDisplayName(): string; - - /** - * Sets the value of the property. - */ - setContainerDisplayName(containerDisplayName: string): void; - - /** - * Gets the value of the property. - */ - getContainerIdentifier(): string; - - /** - * Sets the value of the property. - */ - setContainerIdentifier(containerIdentifier: string): void; - - /** - * Gets the value of the property. - */ - getContainerOrder(): number; - - /** - * Sets the value of the property. - */ - setContainerOrder(containerOrder: number): void; - - /** - * Gets the value of the property. - */ - getEditors(): string[]; - - /** - * Sets the value of the property. - */ - setEditors(editors: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getParticipants(): string[]; - - /** - * Sets the value of the property. - */ - setParticipants(participants: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getProjects(): string[]; - - /** - * Sets the value of the property. - */ - setProjects(projects: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getDownloadedDate(): string; - - /** - * Sets the value of the property. - */ - setDownloadedDate(downloadedDate: string): void; - - /** - * Gets the value of the property. - */ - getLastUsedDate(): string; - - /** - * Sets the value of the property. - */ - setLastUsedDate(lastUsedDate: string): void; - - /** - * Gets the value of the property. - */ - getContentCreationDate(): string; - - /** - * Sets the value of the property. - */ - setContentCreationDate(contentCreationDate: string): void; - - /** - * Gets the value of the property. - */ - getContentModificationDate(): string; - - /** - * Sets the value of the property. - */ - setContentModificationDate(contentModificationDate: string): void; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getAddedDate(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setAddedDate(addedDate: string): void; + getAlbum(): string; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getContentSources(): string[]; + getAlternateNames(): string[]; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setContentSources(contentSources: ReadonlyArray): void; + getArtist(): string; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getComment(): string; - - /** - * Sets the value of the property. - */ - setComment(comment: string): void; - - /** - * Gets the value of the property. - */ - getCopyright(): string; - - /** - * Sets the value of the property. - */ - setCopyright(copyright: string): void; - - /** - * Gets the value of the property. - */ - getDuration(): number; - - /** - * Sets the value of the property. - */ - setDuration(duration: number): void; - - /** - * Gets the value of the property. - */ - getContactKeywords(): string[]; - - /** - * Sets the value of the property. - */ - setContactKeywords(contactKeywords: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getCodecs(): string[]; - - /** - * Sets the value of the property. - */ - setCodecs(codecs: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOrganizations(): string[]; - - /** - * Sets the value of the property. - */ - setOrganizations(organizations: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getMediaTypes(): string[]; - - /** - * Sets the value of the property. - */ - setMediaTypes(mediaTypes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getVersion(): string; - - /** - * Sets the value of the property. - */ - setVersion(version: string): void; - - /** - * Gets the value of the property. - */ - getRole(): string; - - /** - * Sets the value of the property. - */ - setRole(role: string): void; - - /** - * Gets the value of the property. - */ - getStreamable(): number; - - /** - * Sets the value of the property. - */ - setStreamable(streamable: number): void; - - /** - * Gets the value of the property. - */ - getTotalBitRate(): number; - - /** - * Sets the value of the property. - */ - setTotalBitRate(totalBitRate: number): void; - - /** - * Gets the value of the property. - */ - getVideoBitRate(): number; - - /** - * Sets the value of the property. - */ - setVideoBitRate(videoBitRate: number): void; + getAudiences(): string[]; /** * Gets the value of the property. + * @deprecated Access instead. */ getAudioBitRate(): number; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setAudioBitRate(audioBitRate: number): void; + getAudioChannelCount(): number; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getDeliveryType(): number; + getAudioEncodingApplication(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setDeliveryType(deliveryType: number): void; + getAudioSampleRate(): number; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getLanguages(): string[]; + getAudioTrackNumber(): number; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setLanguages(languages: ReadonlyArray): void; + getCodecs(): string[]; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getRights(): string[]; + getComment(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setRights(rights: ReadonlyArray): void; + getComposer(): string; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getPublishers(): string[]; + getContactKeywords(): string[]; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setPublishers(publishers: ReadonlyArray): void; + getContainerDisplayName(): string; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getContributors(): string[]; + getContainerIdentifier(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setContributors(contributors: ReadonlyArray): void; + getContainerOrder(): number; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getCoverage(): string[]; + getContainerTitle(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setCoverage(coverage: ReadonlyArray): void; + getContentCreationDate(): string; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getRating(): number; + getContentDescription(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setRating(rating: number): void; - - /** - * Gets the value of the property. - */ - getRatingDescription(): string; - - /** - * Sets the value of the property. - */ - setRatingDescription(ratingDescription: string): void; - - /** - * Gets the value of the property. - */ - getPlayCount(): number; - - /** - * Sets the value of the property. - */ - setPlayCount(playCount: number): void; - - /** - * Gets the value of the property. - */ - getInformation(): string; - - /** - * Sets the value of the property. - */ - setInformation(information: string): void; - - /** - * Gets the value of the property. - */ - getDirector(): string; - - /** - * Sets the value of the property. - */ - setDirector(director: string): void; - - /** - * Gets the value of the property. - */ - getProducer(): string; - - /** - * Sets the value of the property. - */ - setProducer(producer: string): void; - - /** - * Gets the value of the property. - */ - getGenre(): string; - - /** - * Sets the value of the property. - */ - setGenre(genre: string): void; - - /** - * Gets the value of the property. - */ - getPerformers(): string[]; - - /** - * Sets the value of the property. - */ - setPerformers(performers: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getOriginalFormat(): string; - - /** - * Sets the value of the property. - */ - setOriginalFormat(originalFormat: string): void; - - /** - * Gets the value of the property. - */ - getOriginalSource(): string; - - /** - * Sets the value of the property. - */ - setOriginalSource(originalSource: string): void; - - /** - * Gets the value of the property. - */ - getLocal(): number; - - /** - * Sets the value of the property. - */ - setLocal(local: number): void; + getContentModificationDate(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getContentRating(): number; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setContentRating(contentRating: number): void; + getContentSources(): string[]; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getUrl(): string; + getContentType(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setUrl(url: string): void; + getContentTypeTree(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentURL(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContributors(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCopyright(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCoverage(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCreator(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDeliveryType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDirector(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisplayName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDownloadedDate(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditors(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEncodingApplications(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFileSize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFontNames(): string[]; /** * Gets the value of the property. + * @deprecated Access instead. */ getFullyFormattedAddress(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setFullyFormattedAddress(fullyFormattedAddress: string): void; + getGeneralMIDISequence(): number; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getSubThoroughfare(): string; + getGenre(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setSubThoroughfare(subThoroughfare: string): void; + getIdentifier(): string; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getThoroughfare(): string; + getInformation(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setThoroughfare(thoroughfare: string): void; + getKeySignature(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeywords(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKind(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLanguages(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLastUsedDate(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLocal(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLyricist(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMediaTypes(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMetadataModificationDate(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMusicalGenre(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMusicalInstrumentCategory(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMusicalInstrumentName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOrganizations(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOriginalFormat(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOriginalSource(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPageCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPageHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPageWidth(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getParticipants(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPath(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPerformers(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPlayCount(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getPostalCode(): string; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getProducer(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getProjects(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPublishers(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRating(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRatingDescription(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRecordingDate(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRelatedUniqueIdentifier(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRights(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRole(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSecurityMethod(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStreamable(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSubThoroughfare(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSubject(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSupportsNavigation(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSupportsPhoneCall(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTempo(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTheme(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getThoroughfare(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getThumbnailData(): string | Titanium.Blob; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getThumbnailURL(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTimeSignature(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTotalBitRate(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVersion(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVideoBitRate(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAddedDate(addedDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAlbum(album: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAlternateNames(alternateNames: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setArtist(artist: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudiences(audiences: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioBitRate(audioBitRate: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioChannelCount(audioChannelCount: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioEncodingApplication(audioEncodingApplication: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioSampleRate(audioSampleRate: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioTrackNumber(audioTrackNumber: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCodecs(codecs: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setComment(comment: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setComposer(composer: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContactKeywords(contactKeywords: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContainerDisplayName(containerDisplayName: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContainerIdentifier(containerIdentifier: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContainerOrder(containerOrder: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContainerTitle(containerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentCreationDate(contentCreationDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentDescription(contentDescription: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentModificationDate(contentModificationDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentRating(contentRating: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentSources(contentSources: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentType(contentType: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentTypeTree(contentTypeTree: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentURL(contentURL: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContributors(contributors: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCopyright(copyright: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCoverage(coverage: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCreator(creator: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDeliveryType(deliveryType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDirector(director: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisplayName(displayName: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDownloadedDate(downloadedDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDuration(duration: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditors(editors: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEncodingApplications(encodingApplications: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFileSize(fileSize: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFontNames(fontNames: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFullyFormattedAddress(fullyFormattedAddress: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setGeneralMIDISequence(generalMIDISequence: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setGenre(genre: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIdentifier(identifier: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setInformation(information: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeySignature(keySignature: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeywords(keywords: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKind(kind: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLanguages(languages: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLastUsedDate(lastUsedDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLocal(local: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLyricist(lyricist: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMediaTypes(mediaTypes: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMetadataModificationDate(metadataModificationDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMusicalGenre(musicalGenre: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMusicalInstrumentCategory(musicalInstrumentCategory: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMusicalInstrumentName(musicalInstrumentName: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOrganizations(organizations: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOriginalFormat(originalFormat: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOriginalSource(originalSource: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPageCount(pageCount: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPageHeight(pageHeight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPageWidth(pageWidth: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setParticipants(participants: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPath(path: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPerformers(performers: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPlayCount(playCount: number): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setPostalCode(postalCode: string): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setProducer(producer: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setProjects(projects: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPublishers(publishers: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRating(rating: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRatingDescription(ratingDescription: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRecordingDate(recordingDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRelatedUniqueIdentifier(relatedUniqueIdentifier: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRights(rights: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRole(role: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSecurityMethod(securityMethod: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStreamable(streamable: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSubThoroughfare(subThoroughfare: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSubject(subject: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSupportsNavigation(supportsNavigation: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSupportsPhoneCall(supportsPhoneCall: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTempo(tempo: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTheme(theme: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setThoroughfare(thoroughfare: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setThumbnailData(thumbnailData: string | Titanium.Blob): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setThumbnailURL(thumbnailURL: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTimeSignature(timeSignature: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTotalBitRate(totalBitRate: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUrl(url: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVersion(version: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVideoBitRate(videoBitRate: number): void; + + } + /** + * Base event for class Titanium.App.iOS.UserActivity + */ + interface UserActivityBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.App.iOS.UserActivity; + + } + /** + * Fired if the activity context needs to be saved before being continued on another device. + * To fire the event, set the UserActiviy object's `needsSave ` property to `true`. + * The receiver should update the activity with current activity state. + * After the event is fired, iOS will reset the `needsSave` property to false. + */ + interface UserActivity_useractivitywillsave_Event extends UserActivityBaseEvent { + /** + * The activityType of the User Activity triggering the event. + */ + activityType: string; + + /** + * The title of the User Activity if defined. + */ + title: string; + + /** + * Dictionary object containing the userInfo data of the User Activity. + */ + userInfo: any; + + /** + * The webpageURL of the User Activity if defined. + */ + webpageURL: string; + + } + /** + * Fired when the user activity was continued on another device. + */ + interface UserActivity_useractivitywascontinued_Event extends UserActivityBaseEvent { + /** + * The activityType of the User Activity triggering the event. + */ + activityType: string; + + /** + * The title of the User Activity if defined. + */ + title: string; + + /** + * Dictionary object containing the userInfo data of the User Activity. + */ + userInfo: any; + + /** + * The webpageURL of the User Activity if defined. + */ + webpageURL: string; + + } + /** + * Fired when the user activity get deleted using the or + * methods. + */ + interface UserActivity_useractivitydeleted_Event extends UserActivityBaseEvent { + } + interface UserActivityEventMap extends ProxyEventMap { + useractivitydeleted: UserActivity_useractivitydeleted_Event; + + useractivitywascontinued: UserActivity_useractivitywascontinued_Event; + + useractivitywillsave: UserActivity_useractivitywillsave_Event; + } /** * The UserActivity module is used to enable device Handoff and to create User Activities. */ - interface UserActivity extends Titanium.Proxy { + class UserActivity extends Titanium.Proxy { /** * Name of the activity type. */ activityType: string; - /** - * Set to `true` if the user activity can be publicly accessed by all iOS users. - */ - eligibleForPublicIndexing: boolean; - - /** - * Set to true if the user activity should be added to the on-device index. - */ - eligibleForSearch: boolean; - /** * Set to true if this user activity should be eligible to be handed off to another device */ @@ -45541,9 +9457,14 @@ declare namespace Titanium { eligibleForPrediction: boolean; /** - * A value used to identify the user activity. + * Set to `true` if the user activity can be publicly accessed by all iOS users. */ - persistentIdentifier: string; + eligibleForPublicIndexing: boolean; + + /** + * Set to true if the user activity should be added to the on-device index. + */ + eligibleForSearch: boolean; /** * Absolute date after which the activity is no longer eligible to be indexed or handed off. @@ -45560,6 +9481,11 @@ declare namespace Titanium { */ needsSave: boolean; + /** + * A value used to identify the user activity. + */ + persistentIdentifier: string; + /** * An array of String keys from the userInfo property which represent the minimal information about the user activity that should be stored for later restoration. */ @@ -45567,6 +9493,7 @@ declare namespace Titanium { /** * Determines if user activities are supported (`true`) or not (`false`) by the device. + * @deprecated Use [Titanium.App.iOS.UserActivity.isSupported](Titanium.App.iOS.UserActivity.isSupported) instead. */ supported: boolean; @@ -45591,281 +9518,304 @@ declare namespace Titanium { */ addContentAttributeSet(contentAttributeSet: Titanium.App.iOS.SearchableItemAttributeSet): void; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.App.iOS.UserActivity, event: UserActivityEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Marks the activity as currently in use by the user. */ becomeCurrent(): void; - /** - * Invalidates an activity when it is no longer eligible for continuation. - */ - invalidate(): void; - - /** - * Marks the activity as currently **not** in use and ineligible to be continued. - */ - resignCurrent(): void; - - /** - * Determines if user activities are supported (`true`) or not (`false`) by the device. - */ - isSupported(): boolean; - - /** - * Deletes user activities created by your app that have the specified persistent identifiers. - */ - deleteSavedUserActivitiesForPersistentIdentifiers(persistentIdentifiers: ReadonlyArray): void; - /** * Deletes all user activities created by your app. */ deleteAllSavedUserActivities(): void; + /** + * Deletes user activities created by your app that have the specified persistent identifiers. + */ + deleteSavedUserActivitiesForPersistentIdentifiers(persistentIdentifiers: ReadonlyArray): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: UserActivityEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getActivityType(): string; - /** - * Sets the value of the property. - */ - setActivityType(activityType: string): void; - - /** - * Gets the value of the property. - */ - getEligibleForPublicIndexing(): boolean; - - /** - * Sets the value of the property. - */ - setEligibleForPublicIndexing(eligibleForPublicIndexing: boolean): void; - - /** - * Gets the value of the property. - */ - getEligibleForSearch(): boolean; - - /** - * Sets the value of the property. - */ - setEligibleForSearch(eligibleForSearch: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getEligibleForHandoff(): boolean; - /** - * Sets the value of the property. - */ - setEligibleForHandoff(eligibleForHandoff: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getEligibleForPrediction(): boolean; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setEligibleForPrediction(eligibleForPrediction: boolean): void; + getEligibleForPublicIndexing(): boolean; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getPersistentIdentifier(): string; - - /** - * Sets the value of the property. - */ - setPersistentIdentifier(persistentIdentifier: string): void; + getEligibleForSearch(): boolean; /** * Gets the value of the property. + * @deprecated Access instead. */ getExpirationDate(): string; - /** - * Sets the value of the property. - */ - setExpirationDate(expirationDate: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getKeywords(): string[]; - /** - * Sets the value of the property. - */ - setKeywords(keywords: ReadonlyArray): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getNeedsSave(): boolean; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setNeedsSave(needsSave: boolean): void; + getPersistentIdentifier(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getRequiredUserInfoKeys(): string[]; - /** - * Sets the value of the property. - */ - setRequiredUserInfoKeys(requiredUserInfoKeys: ReadonlyArray): void; - /** * Gets the value of the property. + * @deprecated Use [Titanium.App.iOS.UserActivity.isSupported](Titanium.App.iOS.UserActivity.isSupported) instead. */ getSupported(): boolean; - /** - * Sets the value of the property. - */ - setSupported(supported: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getTitle(): string; - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getUserInfo(): any; - /** - * Sets the value of the property. - */ - setUserInfo(userInfo: any): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getWebpageURL(): string; + /** + * Invalidates an activity when it is no longer eligible for continuation. + */ + invalidate(): void; + + /** + * Determines if user activities are supported (`true`) or not (`false`) by the device. + */ + isSupported(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.App.iOS.UserActivity, event: UserActivityEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Marks the activity as currently **not** in use and ineligible to be continued. + */ + resignCurrent(): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivityType(activityType: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEligibleForHandoff(eligibleForHandoff: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEligibleForPrediction(eligibleForPrediction: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEligibleForPublicIndexing(eligibleForPublicIndexing: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEligibleForSearch(eligibleForSearch: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setExpirationDate(expirationDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeywords(keywords: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNeedsSave(needsSave: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPersistentIdentifier(persistentIdentifier: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRequiredUserInfoKeys(requiredUserInfoKeys: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.App.iOS.UserActivity.isSupported](Titanium.App.iOS.UserActivity.isSupported) instead. + */ + setSupported(supported: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUserInfo(userInfo: any): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setWebpageURL(webpageURL: string): void; + } + /** + * Base event for class Titanium.App.iOS.UserDefaults + */ + interface UserDefaultsBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.App.iOS.UserDefaults; + + } + /** + * Fired when a property is changed. + */ + interface UserDefaults_change_Event extends UserDefaultsBaseEvent { + } + interface UserDefaultsEventMap extends ProxyEventMap { + change: UserDefaults_change_Event; + } /** * The UserDefaults module is used for storing application-related data in property/value pairs * that persist beyond application sessions and device power cycles. UserDefaults allows the suiteName * of the UserDefaults to be specified at creation time. */ - interface UserDefaults extends Titanium.Proxy { + interface UserDefaults extends Titanium.App.Properties { /** * Sets the name of the suite to be used to access UserDefaults. */ suiteName: string; /** - * Returns the value of a property as a boolean data type. + * Adds the specified callback as an event listener for the named event. */ - getBool(property: string, defaultValue?: boolean): boolean; + addEventListener(name: K, callback: (this: Titanium.App.iOS.UserDefaults, event: UserDefaultsEventMap[K]) => void): void; /** - * Returns the value of a property as a double (double-precision, floating point) data type. + * Adds the specified callback as an event listener for the named event. */ - getDouble(property: string, defaultValue?: number): number; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Returns the value of a property as an integer data type. + * Fires a synthesized event to any registered listeners. */ - getInt(property: string, defaultValue?: number): number; + fireEvent(name: K, event?: UserDefaultsEventMap[K]): void; /** - * Returns the value of a property as an array data type. + * Fires a synthesized event to any registered listeners. */ - getList(property: string, defaultValue?: ReadonlyArray): any[]; - - /** - * Returns the value of a property as an object. - */ - getObject(property: string, defaultValue?: any): any; - - /** - * Returns the value of a property as a string data type. - */ - getString(property: string, defaultValue?: string): string; - - /** - * Indicates whether a property exists. - */ - hasProperty(property: string): boolean; - - /** - * Returns an array of property names. - */ - listProperties(): any[]; - - /** - * Removes a property if it exists, or does nothing otherwise. - */ - removeProperty(property: string): void; - - /** - * Removes all properties that have been set by the user on runtime, or does nothing otherwise. - */ - removeAllProperties(): void; - - /** - * Sets the value of a property as a boolean data type. The property will be created if it - * does not exist. - */ - setBool(property: string, value: boolean): void; - - /** - * Sets the value of a property as a double (double-precision, floating point) data type. The - * property will be created if it does not exist. - */ - setDouble(property: string, value: number): void; - - /** - * Sets the value of a property as an integer data type. The property will be created if it - * does not exist. - */ - setInt(property: string, value: number): void; - - /** - * Sets the value of a property as an array data type. The property will be created if it - * does not exist. - */ - setList(property: string, value: ReadonlyArray): void; - - /** - * Sets the value of a property as an object data type. The property will be created if it - * does not exist. - */ - setObject(property: string, value: any): void; - - /** - * Sets the value of a property as a string data type. The property will be created if it - * does not exist. - */ - setString(property: string, value: string): void; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getSuiteName(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.App.iOS.UserDefaults, event: UserDefaultsEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setSuiteName(suiteName: string): void; @@ -45873,21 +9823,26 @@ declare namespace Titanium { /** * An action the user selects in response to an interactive notification. */ - interface UserNotificationAction extends Titanium.Proxy { + class UserNotificationAction extends Titanium.Proxy { /** * Selects how to activate the application. */ activationMode: number; + /** + * Set to true if the action requires the device to be unlocked. On the Apple Watch actions never require authentication. + */ + authenticationRequired: boolean; + /** * Custom behavior the user notification supports. */ behavior: number; /** - * Set to true if the action requires the device to be unlocked. On the Apple Watch actions never require authentication. + * Indicates if the proxy will bubble an event to its parent. */ - authenticationRequired: boolean; + bubbleParent: never; /** * Set to true if the action causes destructive behavior to the user's data or the application. @@ -45904,31 +9859,67 @@ declare namespace Titanium { */ title: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener: never; + + /** + * Applies the properties to the proxy. + */ + applyProperties: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent: never; + /** * Gets the value of the property. + * @deprecated Access instead. */ getActivationMode(): number; - /** - * Sets the value of the property. - */ - setActivationMode(activationMode: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getBehavior(): number; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBubbleParent: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivationMode(activationMode: number): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setBehavior(behavior: number): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBubbleParent: never; + } /** * A set of notification actions to associate with a notification. */ - interface UserNotificationCategory extends Titanium.Proxy { + class UserNotificationCategory extends Titanium.Proxy { /** * Array of notification actions to associate with the group. */ @@ -45939,11 +9930,21 @@ declare namespace Titanium { */ actionsForMinimalContext: Titanium.App.iOS.UserNotificationAction[]; + /** + * Indicates if the proxy will bubble an event to its parent. + */ + bubbleParent: never; + /** * A format string for the summary description used when the system groups the category's notifications. */ categorySummaryFormat: string; + /** + * The placeholder text to display when notification previews are disabled for the app. + */ + hiddenPreviewsBodyPlaceholder: string; + /** * Identifier for this category. */ @@ -45954,82 +9955,1308 @@ declare namespace Titanium { */ intentIdentifiers: string[]; - /** - * The placeholder text to display when notification previews are disabled for the app. - */ - hiddenPreviewsBodyPlaceholder: string; - /** * Options for how to handle notifications of this type. */ options: number[]; - } + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener: never; + /** + * Applies the properties to the proxy. + */ + applyProperties: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBubbleParent: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBubbleParent: never; + + } /** * The top-level App iOS Notification Center module. It is used to control scheduled notifications * and receive details about the system-wide notification settings. */ - namespace UserNotificationCenter { + class UserNotificationCenter extends Titanium.Module { /** * The name of the API that this proxy corresponds to. */ - const apiName: string; + static readonly apiName: string; /** - * Fetches the pending notifications asynchronously. + * Indicates if the proxy will bubble an event to its parent. */ - function getPendingNotifications(callback: (param0: UserNotificationCallbackResponse) => any): void; + static bubbleParent: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener: never; + + /** + * Applies the properties to the proxy. + */ + static applyProperties: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent: never; /** * Fetches the delivered notifications asynchronously. */ - function getDeliveredNotifications(callback: (param0: UserNotificationCallbackResponse) => any): void; + static getDeliveredNotifications(callback: (param0: UserNotificationCallbackResponse) => void): void; /** - * Removes the specified pending notifications to prevent them from being triggered. - * If no notifications are specified, all pending notifications will be removed. + * Fetches the pending notifications asynchronously. */ - function removePendingNotifications(notifications?: ReadonlyArray): void; + static getPendingNotifications(callback: (param0: UserNotificationCallbackResponse) => void): void; /** * Removes the specified delivered notifications from the notification-center. * If no notifications are specified, all delivered notifications will be removed. */ - function removeDeliveredNotifications(notifications: ReadonlyArray): void; + static removeDeliveredNotifications(notifications: ReadonlyArray): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener: never; + + /** + * Removes the specified pending notifications to prevent them from being triggered. + * If no notifications are specified, all pending notifications will be removed. + */ + static removePendingNotifications(notifications: ReadonlyArray): void; /** * Notification types and user notification categories the application is registered to use. */ - function requestUserNotificationSettings(callback: (param0: GetUserNotificationSettings) => any): void; + static requestUserNotificationSettings(callback: (param0: GetUserNotificationSettings) => void): void; /** - * Gets the value of the property. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - function getApiName(): string; + static setBubbleParent: never; } } - } + /** + * Base event for class Titanium.App.Android + */ + interface AndroidBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.App.Android; + } + /** + * Fired when a is clicked. + */ + interface Android_shortcutitemclick_Event extends AndroidBaseEvent { + /** + * Identifier of the clicked shortcut item. + */ + id: string; + + } + interface AndroidEventMap extends ProxyEventMap { + shortcutitemclick: Android_shortcutitemclick_Event; + + } + /** + * A module used to access Android application resources. + */ + class Android extends Titanium.Module { + /** + * The `R` namespace for application resources. + */ + static readonly R: Titanium.Android.R; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * The version number of the application. + */ + static readonly appVersionCode: number; + + /** + * The version name of the application. + */ + static readonly appVersionName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Return the intent that was used to launch the application. + */ + static readonly launchIntent: Titanium.Android.Intent; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.App.Android, event: AndroidEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: AndroidEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAppVersionCode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAppVersionName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLaunchIntent(): Titanium.Android.Intent; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.App.Android, event: AndroidEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * Base event for class Titanium.App.Properties + */ + interface PropertiesBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.App.Properties; + + } + /** + * Fired when a property is changed. + */ + interface Properties_change_Event extends PropertiesBaseEvent { + } + interface PropertiesEventMap extends ProxyEventMap { + change: Properties_change_Event; + + } + /** + * The App Properties module is used for storing application-related data in property/value pairs + * that persist beyond application sessions and device power cycles. + */ + class Properties extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.App.Properties, event: PropertiesEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: PropertiesEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Returns the value of a property as a boolean data type. + */ + static getBool(property: string, defaultValue?: boolean): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Returns the value of a property as a double (double-precision, floating point) data type. + */ + static getDouble(property: string, defaultValue?: number): number; + + /** + * Returns the value of a property as an integer data type. + */ + static getInt(property: string, defaultValue?: number): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Returns the value of a property as an array data type. + */ + static getList(property: string, defaultValue?: ReadonlyArray): any[]; + + /** + * Returns the value of a property as an object. + */ + static getObject(property: string, defaultValue?: any): any; + + /** + * Returns the value of a property as a string data type. + */ + static getString(property: string, defaultValue?: string): string; + + /** + * Indicates whether a property exists. + */ + static hasProperty(property: string): boolean; + + /** + * Returns an array of property names. + */ + static listProperties(): any[]; + + /** + * Removes all properties that have been set by the user on runtime, or does nothing otherwise. + */ + static removeAllProperties(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.App.Properties, event: PropertiesEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes a property if it exists, or does nothing otherwise. + */ + static removeProperty(property: string): void; + + /** + * Sets the value of a property as a boolean data type. The property will be created if it + * does not exist. + */ + static setBool(property: string, value: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of a property as a double (double-precision, floating point) data type. The + * property will be created if it does not exist. + */ + static setDouble(property: string, value: number): void; + + /** + * Sets the value of a property as an integer data type. The property will be created if it + * does not exist. + */ + static setInt(property: string, value: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Sets the value of a property as an array data type. The property will be created if it + * does not exist. + */ + static setList(property: string, value: ReadonlyArray): void; + + /** + * Sets the value of a property as an object data type. The property will be created if it + * does not exist. + */ + static setObject(property: string, value: any): void; + + /** + * Sets the value of a property as a string data type. The property will be created if it + * does not exist. + */ + static setString(property: string, value: string): void; + + } + /** + * Base event for class Titanium.App.iOS + */ + interface iOSBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.App.iOS; + + } + /** + * Fired when a local notification is received by the application. + */ + interface iOS_notification_Event extends iOSBaseEvent { + /** + * Alert button text ('View', by default) or slider text ('slide to unlock...', by default). + */ + alertAction: string; + + /** + * Alert message. + */ + alertBody: string; + + /** + * Image displayed instead of `Default.png` when launching the application. + */ + alertLaunchImage: string; + + /** + * Application badge value. + */ + badge: number; + + /** + * The identifier of the app-defined [category object](Titanium.App.iOS.UserNotificationCategory). Available in Titanium SDK 7.5.0+ and iOS 10+. + */ + category: string; + + /** + * Date and time when the notification was configured to fire. + */ + date: Date; + + /** + * Boolean indicating if notification was received while app was in background. Available in Titanium SDK 6.2.0. + * On iOS 10+ this is no longer available since this event will only fire if the app is in foreground. + */ + inBackground: boolean; + + /** + * Name of the sound file configured to play when the notification was fired. + */ + sound: string; + + /** + * The unique identifier for the thread or conversation related to this notification request. + * It will be used to visually group notifications together. Available in Titanium SDK 7.5.0+ and iOS 10+. + */ + threadIdentifier: string; + + /** + * Timezone of the date when the notification was configured to fire. Available in Titanium SDK 7.4.0+. + */ + timezone: string; + + /** + * Custom data object. + */ + userInfo: any; + + } + /** + * Fired when a user selects an action for an interactive local notification. + */ + interface iOS_localnotificationaction_Event extends iOSBaseEvent { + /** + * Alert button text ('Open', by default) or slider text ('slide to unlock...', by default). + */ + alertAction: string; + + /** + * Alert message. + */ + alertBody: string; + + /** + * Image displayed instead of `Default.png` when launching the application. + */ + alertLaunchImage: string; + + /** + * Application badge value. + */ + badge: number; + + /** + * The identifier of the app-defined [category object](Titanium.App.iOS.UserNotificationCategory). Available in Titanium SDK 7.5.0+ and iOS 10+. + */ + category: string; + + /** + * Date and time when the notification was configured to fire. + */ + date: Date; + + /** + * Identifier of the action that was selected of the interactive notification. + */ + identifier: string; + + /** + * Boolean indicating if notification was received while app was in background (since Titanium SDK 6.2.0). + * On iOS 10+ this is no longer available since the event will only fire when opening the app after interacting + * with a notification from the iOS notification center (which means the app was in background when the + * notification was received). + */ + inBackground: boolean; + + /** + * Path to the sound file configured to play when the notification was fired. + */ + sound: string; + + /** + * The unique identifier for the thread or conversation related to this notification request. + * It will be used to visually group notifications together. Available in Titanium SDK 7.5.0+ and iOS 10+. + */ + threadIdentifier: string; + + /** + * Timezone of the date when the notification was configured to fire. + */ + timezone: string; + + /** + * User input if the notification used the `USER_NOTIFICATION_BEHAVIOR_TEXTINPUT` behavior. + */ + typedText: string; + + /** + * Custom data object. + */ + userInfo: any; + + } + /** + * Fired when a user selects an action for an interactive remote notification. + */ + interface iOS_remotenotificationaction_Event extends iOSBaseEvent { + /** + * Identifier of the category of the interactive notification. + */ + category: string; + + /** + * The payload passed to the Apple Push Notification Service. + */ + data: any; + + /** + * Identifier of the action that was selected of the interactive notification. + */ + identifier: string; + + } + /** + * Fired when the application is woken up for a fetch operation. Available only on iOS 7 and later. + */ + interface iOS_backgroundfetch_Event extends iOSBaseEvent { + /** + * Unique string identifier for the `backgroundfetch` event. This identifier should be passed as the argument + * to the [endBackgroundHandler](Titanium.App.iOS.endBackgroundHandler) method. + */ + handlerId: string; + + } + /** + * Fired when the application is woken up by a silent remote notification. Available only on iOS 7 and later. + */ + interface iOS_silentpush_Event extends iOSBaseEvent { + /** + * Unique string identifier for the `silentpush` event. This identifier should be passed as the argument + * to the [endBackgroundHandler](Titanium.App.iOS.endBackgroundHandler) method. + */ + handlerId: string; + + } + /** + * Fired when the events related to a [urlSession](Modules.URLSession) are waiting to be processed. + * Available only on iOS 7 and later. + */ + interface iOS_backgroundtransfer_Event extends iOSBaseEvent { + /** + * Unique string identifier for the `backgroundtransfer` event. This identifier should be passed as the argument + * to the [endBackgroundHandler](Titanium.App.iOS.endBackgroundHandler) method. + */ + handlerId: string; + + /** + * The identifier of the URL session requiring attention. If your app was just launched, + * you can use this identifier to create a new `urlSession` object that can receive the events. + */ + sessionId: string; + + } + /** + * Fired periodically to inform the app about the download's progress of a [urlSession](Modules.URLSession). + * Available only on iOS 7 and later. + */ + interface iOS_downloadprogress_Event extends iOSBaseEvent { + /** + * The number of bytes transferred since the last time this event was fired. + */ + bytesWritten: number; + + /** + * The `urlSession` session identifier. If it does not exist, this property is not provided. + * This property is available since Titanium Mobile 5.4.0.GA. + */ + sessionIdentifier: string; + + /** + * The `urlSession` download task's identifier. + */ + taskIdentifier: number; + + /** + * The expected length of the file, as provided by the Content-Length header. If this + * header was not provided, the value is zero. + */ + totalBytesExpectedToWrite: number; + + /** + * The total number of bytes transferred so far. + */ + totalBytesWritten: number; + + } + /** + * Fired periodically to inform the app about the upload's progress of a [urlSession](Modules.URLSession). + * Available only on iOS 7 and later. + */ + interface iOS_uploadprogress_Event extends iOSBaseEvent { + /** + * The number of bytes transferred since the last time this event was fired. + */ + bytesSent: number; + + /** + * The `urlSession` session identifier. If it does not exist, this property is not provided. + * This property is available since Titanium Mobile 5.4.0.GA. + */ + sessionIdentifier: string; + + /** + * The `urlSession` upload task's identifier. + */ + taskIdentifier: number; + + /** + * The expected length of the file, as provided by the Content-Length header. If this + * header was not provided, the value is zero. + */ + totalBytesExpectedToSend: number; + + /** + * The total number of bytes transferred so far. + */ + totalBytesSent: number; + + } + /** + * Fired to indicate that a [urlSession's](Modules.URLSession) download task has finished downloading. + * Available only on iOS 7 and later. + */ + interface iOS_downloadcompleted_Event extends iOSBaseEvent { + /** + * The downloaded data as a Titanium.Blob object. + */ + data: Titanium.Blob; + + /** + * The `urlSession` session identifier. If it does not exist, this property is not provided. + * This property is available since Titanium Mobile 5.4.0.GA. + */ + sessionIdentifier: string; + + /** + * The `urlSession` download task's identifier. + */ + taskIdentifier: number; + + } + /** + * Fired to indicate that a [urlSession](Modules.URLSession) task finished transferring data. + * Available only on iOS 7 and later. + */ + interface iOS_sessioncompleted_Event extends iOSBaseEvent { + /** + * The error code of the error, if any (potentially system-dependent). + */ + errorCode: number; + + /** + * A string containing the localized description of the error. + */ + message: string; + + /** + * The response text for upload tasks (since SDK 7.2.0). + */ + responseText: string; + + /** + * The `urlSession` session identifier. If it does not exist, this property is not provided. + * This property is available since Titanium Mobile 5.4.0.GA. + */ + sessionIdentifier: string; + + /** + * The response status code for upload tasks (since SDK 7.2.0). + */ + statusCode: number; + + /** + * Indicates if the operation succeeded. Returns true if download succeeded, false otherwise. + */ + success: boolean; + + /** + * The `urlSession` download task's identifier. + */ + taskIdentifier: number; + + } + /** + * Fired to indicate that all messages enqueued for a [urlSession](Modules.URLSession) have been delivered. + * Available only on iOS 7 and later. + */ + interface iOS_sessioneventscompleted_Event extends iOSBaseEvent { + /** + * The `urlSession` session identifier. If it does not exist, this property is not provided. + * This property is available since Titanium Mobile 5.4.0.GA. + */ + sessionIdentifier: string; + + } + /** + * Fired when the user notification settings are registered. + */ + interface iOS_usernotificationsettings_Event extends iOSBaseEvent { + /** + * Set of categories of user notification actions the application is registered to use. + */ + categories: Titanium.App.iOS.UserNotificationCategory[]; + + /** + * Notification types the application is registered to use. + */ + types: number[]; + + } + /** + * Fired when openParentApplication:reply is called from a WatchKit extension. Available only on iOS 8.2 and later. + */ + interface iOS_watchkitextensionrequest_Event extends iOSBaseEvent { + /** + * Unique string identifier for the `watchkitextensionrequest` event. This identifier should be passed an argument + * to the [sendWatchExtensionReply](Titanium.App.iOS.sendWatchExtensionReply) method. + */ + handlerId: string; + + /** + * The payload passed to the `openParentApplication:reply` method from the WatchKit extension. + */ + userInfo: any; + + } + /** + * Fired when iOS continueactivity calls `continueUserActivity`. + */ + interface iOS_continueactivity_Event extends iOSBaseEvent { + /** + * Unique string identifier for the handoff user activity. The identifier must be defined in your `tiapp.xml` file. + */ + activityType: string; + + /** + * With field will contain the searchable Unique Identifier if the continueactivity is fired from a Core Spotlight searh result. + */ + searchableItemActivityIdentifier: string; + + /** + * The optional title provided to the user activity or search item. + */ + title: string; + + /** + * The optional userInfo provided to the user activity. The userInfo is a custom dictionary and can contain any information needed + * to create your handoff or Core Spotlight session. + */ + userInfo: any; + + /** + * The optional webpageURL provided to the user activity. + */ + webpageURL: string; + + } + /** + * Fired when a user taps the Application Shortcut. + */ + interface iOS_shortcutitemclick_Event extends iOSBaseEvent { + /** + * The unique identifier for the application shortcut. + */ + itemtype: string; + + /** + * The subtitle of the application shortcut. + */ + subtitle: string; + + /** + * The title of the application shortcut. + */ + title: string; + + /** + * The payload passed by the application shortcut. + */ + userInfo: any; + + } + /** + * Fired when a new URL is handled by the application. + */ + interface iOS_handleurl_Event extends iOSBaseEvent { + /** + * The launch options that are related to opening the URL. + */ + launchOptions: LaunchOptionsType; + + } + /** + * Fired when the trait collection of the device changes, e.g. the user interface style. + */ + interface iOS_traitcollectionchange_Event extends iOSBaseEvent { + } + interface iOSEventMap extends ProxyEventMap { + backgroundfetch: iOS_backgroundfetch_Event; + + backgroundtransfer: iOS_backgroundtransfer_Event; + + continueactivity: iOS_continueactivity_Event; + + downloadcompleted: iOS_downloadcompleted_Event; + + downloadprogress: iOS_downloadprogress_Event; + + handleurl: iOS_handleurl_Event; + + localnotificationaction: iOS_localnotificationaction_Event; + + notification: iOS_notification_Event; + + remotenotificationaction: iOS_remotenotificationaction_Event; + + sessioncompleted: iOS_sessioncompleted_Event; + + sessioneventscompleted: iOS_sessioneventscompleted_Event; + + shortcutitemclick: iOS_shortcutitemclick_Event; + + silentpush: iOS_silentpush_Event; + + traitcollectionchange: iOS_traitcollectionchange_Event; + + uploadprogress: iOS_uploadprogress_Event; + + usernotificationsettings: iOS_usernotificationsettings_Event; + + watchkitextensionrequest: iOS_watchkitextensionrequest_Event; + + } + /** + * The top-level App iOS module, available only to iOS devices, that includes the facilities to + * create and manage local notifications and background services. + */ + class iOS extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Returns a URL to open the app's settings. + */ + static readonly applicationOpenSettingsURL: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Notification types and user notification categories the application is registered to use. + * @deprecated Use [Titanium.App.iOS.UserNotificationCenter.requestUserNotificationSettings](Titanium.App.iOS.UserNotificationCenter.requestUserNotificationSettings) instead. + */ + static readonly currentUserNotificationSettings: UserNotificationSettings; + + /** + * Provides an Array of the NSUserActivityTypes keys defined within your Titanium project. + */ + static readonly supportedUserActivityTypes: string[]; + + /** + * The style associated with the user interface. + */ + static readonly userInterfaceStyle: string[]; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.App.iOS, event: iOSEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Cancels all scheduled local notifications. + * @deprecated Use [Titanium.App.iOS.UserNotificationCenter.removePendingNotifications](Titanium.App.iOS.UserNotificationCenter.removePendingNotifications) instead. + */ + static cancelAllLocalNotifications(): void; + + /** + * Cancels a local notification. + * @deprecated Use [Titanium.App.iOS.UserNotificationCenter.removePendingNotifications](Titanium.App.iOS.UserNotificationCenter.removePendingNotifications) instead. + */ + static cancelLocalNotification(id: number | string): void; + + /** + * Creates and returns an instance of . + */ + static createSearchQuery(parameters?: Dictionary): Titanium.App.iOS.SearchQuery; + + /** + * Creates and returns an instance of . + */ + static createSearchableIndex(parameters?: Dictionary): Titanium.App.iOS.SearchableIndex; + + /** + * Creates and returns an instance of . + */ + static createSearchableItem(parameters?: Dictionary): Titanium.App.iOS.SearchableItem; + + /** + * Creates and returns an instance of . + */ + static createSearchableItemAttributeSet(parameters?: Dictionary): Titanium.App.iOS.SearchableItemAttributeSet; + + /** + * Creates and returns an instance of . + */ + static createUserActivity(parameters?: Dictionary): Titanium.App.iOS.UserActivity; + + /** + * Creates and returns an instance of Titanium.App.iOS.UserDefaults. + */ + static createUserDefaults(parameters: Dictionary): Titanium.App.iOS.UserDefaults; + + /** + * Creates and returns an instance of . + */ + static createUserNotificationAction(parameters?: Dictionary): Titanium.App.iOS.UserNotificationAction; + + /** + * Creates and returns an instance of . + */ + static createUserNotificationCategory(parameters?: Dictionary): Titanium.App.iOS.UserNotificationCategory; + + /** + * Marks the end of the app execution after initiating the download operation. Available only on iOS 7 and later. + */ + static endBackgroundHandler(handlerID: string): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: iOSEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApplicationOpenSettingsURL(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.App.iOS.UserNotificationCenter.requestUserNotificationSettings](Titanium.App.iOS.UserNotificationCenter.requestUserNotificationSettings) instead. + */ + static getCurrentUserNotificationSettings(): UserNotificationSettings; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getSupportedUserActivityTypes(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getUserInterfaceStyle(): string[]; + + /** + * Registers a service to run when the application is placed in the background. + */ + static registerBackgroundService(params: any): Titanium.App.iOS.BackgroundService; + + /** + * Registers the application to use the requested notification types and categories. + */ + static registerUserNotificationSettings(params: UserNotificationSettings): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.App.iOS, event: iOSEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Schedule a local notification. + */ + static scheduleLocalNotification(params: NotificationParams): Titanium.App.iOS.LocalNotification; + + /** + * Marks the end of an `openParentApplication:reply` execution by a WatchKit extension. + * @deprecated Use [Titanium.WatchSession](Titanium.WatchSession) instead, which is supported on iOS 9 and later. + * + */ + static sendWatchExtensionReply(handlerId: string, userInfo: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Specifies the minimum amount of time that must elapse between background fetch operations. + * Available only on iOS 7 and later. + */ + static setMinimumBackgroundFetchInterval(fetchInterval: number): void; + + } + } /** * The Calendar module provides an API for accessing the native calendar functionality. */ namespace Calendar { /** - * Indicates if the proxy will bubble an event to its parent. + * Attendee role is chair. */ - let bubbleParent: boolean; + const ATTENDEE_ROLE_CHAIR: number; /** - * The name of the API that this proxy corresponds to. + * Attendee is not a participant. */ - const apiName: string; + const ATTENDEE_ROLE_NON_PARTICIPANT: number; /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + * Attendee role is optional. */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + const ATTENDEE_ROLE_OPTIONAL: number; + + /** + * Attendee role is required. + */ + const ATTENDEE_ROLE_REQUIRED: number; + + /** + * Attendee role is unknown. + */ + const ATTENDEE_ROLE_UNKNOWN: number; + + /** + * Attendee status is accepted. + */ + const ATTENDEE_STATUS_ACCEPTED: number; + + /** + * Attendee status is declined. + */ + const ATTENDEE_STATUS_DECLINED: number; + + /** + * Attendee status is delegated. + */ + const ATTENDEE_STATUS_DELEGATED: number; + + /** + * Attendee status is invited. + */ + const ATTENDEE_STATUS_INVITED: number; + + /** + * Attendee status is in process. + */ + const ATTENDEE_STATUS_IN_PROCESS: number; + + /** + * There is no Attendee status. + */ + const ATTENDEE_STATUS_NONE: number; + + /** + * Attendee status is pending. + */ + const ATTENDEE_STATUS_PENDING: number; + + /** + * Attendee status is tentative. + */ + const ATTENDEE_STATUS_TENTATIVE: number; + + /** + * Attendee status is unknown. + */ + const ATTENDEE_STATUS_UNKNOWN: number; + + /** + * Attendee type is group. + */ + const ATTENDEE_TYPE_GROUP: number; + + /** + * There is not attendee type. + */ + const ATTENDEE_TYPE_NONE: number; + + /** + * Attendee type is person. + */ + const ATTENDEE_TYPE_PERSON: number; + + /** + * Attendee type is required. + */ + const ATTENDEE_TYPE_REQUIRED: number; + + /** + * Attendee type is resource. + */ + const ATTENDEE_TYPE_RESOURCE: number; + + /** + * Attendee type is room. + */ + const ATTENDEE_TYPE_ROOM: number; + + /** + * Attendee type is unknown. + */ + const ATTENDEE_TYPE_UNKNOWN: number; + + /** + * An [calendarAuthorization](Titanium.Calendar.calendarAuthorization) value + * indicating that the application is authorized to use events in the Calendar. + */ + const AUTHORIZATION_AUTHORIZED: number; + + /** + * An [calendarAuthorization](Titanium.Calendar.calendarAuthorization) value + * indicating that the application is not authorized to use events in the Calendar. + */ + const AUTHORIZATION_DENIED: number; + + /** + * An [calendarAuthorization](Titanium.Calendar.calendarAuthorization) value + * indicating that the application is not authorized to use events in the Calendar. + * the user cannot change this application's status. + */ + const AUTHORIZATION_RESTRICTED: number; + + /** + * An [calendarAuthorization](Titanium.Calendar.calendarAuthorization) value + * indicating that the authorization state is unknown. + */ + const AUTHORIZATION_UNKNOWN: number; + + /** + * Event has a busy availability setting. + */ + const AVAILABILITY_BUSY: number; + + /** + * Event has a free availability setting. + */ + const AVAILABILITY_FREE: number; + + /** + * Availability settings are not supported by the event's calendar. + */ + const AVAILABILITY_NOTSUPPORTED: number; + + /** + * Event has a tentative availability setting. + */ + const AVAILABILITY_TENTATIVE: number; + + /** + * Event has a tentative availability setting. + */ + const AVAILABILITY_UNAVAILABLE: number; /** * Reminder alert delivery method. @@ -46051,193 +11278,26 @@ declare namespace Titanium { */ const METHOD_SMS: number; - /** - * Alert dismissed state. - */ - const STATE_DISMISSED: number; - - /** - * Alert fired state. - */ - const STATE_FIRED: number; - - /** - * Alert scheduled status. - */ - const STATE_SCHEDULED: number; - - /** - * Event has no status. - */ - const STATUS_NONE: number; - - /** - * Event canceled status. - */ - const STATUS_CANCELLED: number; - - /** - * Event canceled status. - */ - const STATUS_CANCELED: number; - - /** - * Event confirmed status. - */ - const STATUS_CONFIRMED: number; - - /** - * Event tentative status. - */ - const STATUS_TENTATIVE: number; - - /** - * Availability settings are not supported by the event's calendar. - */ - const AVAILABILITY_NOTSUPPORTED: number; - - /** - * Event has a busy availability setting. - */ - const AVAILABILITY_BUSY: number; - - /** - * Event has a free availability setting. - */ - const AVAILABILITY_FREE: number; - - /** - * Event has a tentative availability setting. - */ - const AVAILABILITY_TENTATIVE: number; - - /** - * Event has a tentative availability setting. - */ - const AVAILABILITY_UNAVAILABLE: number; - - /** - * A [eventsAuthorization](Titanium.Calendar.eventsAuthorization) value - * indicating that the application is authorized to use events in the Calendar. - */ - const AUTHORIZATION_AUTHORIZED: number; - - /** - * A [eventsAuthorization](Titanium.Calendar.eventsAuthorization) value - * indicating that the application is not authorized to use events in the Calendar. - */ - const AUTHORIZATION_DENIED: number; - - /** - * A [eventsAuthorization](Titanium.Calendar.eventsAuthorization) value - * indicating that the application is not authorized to use events in the Calendar. - * the user cannot change this application's status. - */ - const AUTHORIZATION_RESTRICTED: number; - - /** - * A [eventsAuthorization](Titanium.Calendar.eventsAuthorization) value - * indicating that the authorization state is unknown. - */ - const AUTHORIZATION_UNKNOWN: number; - - /** - * A [save](Titanium.Calendar.Event.save)/[remove](Titanium.Calendar.Event.remove) event value, - * indicating modifications to this event instance should affect only this instance. - */ - const SPAN_THISEVENT: number; - - /** - * A [save](Titanium.Calendar.Event.save)/[remove](Titanium.Calendar.Event.remove) event value, - * indicating modifications to this event instance should also affect future instances of this event. - */ - const SPAN_FUTUREEVENTS: number; - /** * Indicates a daily recurrence rule for a events reccurance frequency. */ const RECURRENCEFREQUENCY_DAILY: number; - /** - * Indicates a weekly recurrence rule for a events reccurance frequency. - */ - const RECURRENCEFREQUENCY_WEEKLY: number; - /** * Indicates a monthly recurrence rule for a events reccurance frequency. */ const RECURRENCEFREQUENCY_MONTHLY: number; + /** + * Indicates a weekly recurrence rule for a events reccurance frequency. + */ + const RECURRENCEFREQUENCY_WEEKLY: number; + /** * Indicates a yearly recurrence rule for a events reccurance frequency. */ const RECURRENCEFREQUENCY_YEARLY: number; - /** - * Event confidential visibility. - */ - const VISIBILITY_CONFIDENTIAL: number; - - /** - * Event default visibility. - */ - const VISIBILITY_DEFAULT: number; - - /** - * Event private visibility. - */ - const VISIBILITY_PRIVATE: number; - - /** - * Event public visibility. - */ - const VISIBILITY_PUBLIC: number; - - /** - * Attendee status is unknown. - */ - const ATTENDEE_STATUS_UNKNOWN: number; - - /** - * Attendee status is pending. - */ - const ATTENDEE_STATUS_PENDING: number; - - /** - * Attendee status is accepted. - */ - const ATTENDEE_STATUS_ACCEPTED: number; - - /** - * Attendee status is declined. - */ - const ATTENDEE_STATUS_DECLINED: number; - - /** - * Attendee status is tentative. - */ - const ATTENDEE_STATUS_TENTATIVE: number; - - /** - * Attendee status is invited. - */ - const ATTENDEE_STATUS_INVITED: number; - - /** - * There is no Attendee status. - */ - const ATTENDEE_STATUS_NONE: number; - - /** - * Attendee status is delegated. - */ - const ATTENDEE_STATUS_DELEGATED: number; - - /** - * Attendee status is in process. - */ - const ATTENDEE_STATUS_IN_PROCESS: number; - /** * Relationship is attendee. */ @@ -46269,69 +11329,14 @@ declare namespace Titanium { const RELATIONSHIP_UNKNOWN: number; /** - * Attendee role is unknown. + * A birthday calendar source. */ - const ATTENDEE_ROLE_UNKNOWN: number; + const SOURCE_TYPE_BIRTHDAYS: number; /** - * Attendee role is optional. + * A calDev calendar source. */ - const ATTENDEE_ROLE_OPTIONAL: number; - - /** - * Attendee role is required. - */ - const ATTENDEE_ROLE_REQUIRED: number; - - /** - * Attendee role is chair. - */ - const ATTENDEE_ROLE_CHAIR: number; - - /** - * Attendee is not a participant. - */ - const ATTENDEE_ROLE_NON_PARTICIPANT: number; - - /** - * Attendee type is unknown. - */ - const ATTENDEE_TYPE_UNKNOWN: number; - - /** - * Attendee type is person. - */ - const ATTENDEE_TYPE_PERSON: number; - - /** - * Attendee type is room. - */ - const ATTENDEE_TYPE_ROOM: number; - - /** - * Attendee type is resource. - */ - const ATTENDEE_TYPE_RESOURCE: number; - - /** - * There is not attendee type. - */ - const ATTENDEE_TYPE_NONE: number; - - /** - * Attendee type is required. - */ - const ATTENDEE_TYPE_REQUIRED: number; - - /** - * Attendee type is group. - */ - const ATTENDEE_TYPE_GROUP: number; - - /** - * A local calendar source. - */ - const SOURCE_TYPE_LOCAL: number; + const SOURCE_TYPE_CALDAV: number; /** * A microsoft exchange calendar source. @@ -46339,9 +11344,9 @@ declare namespace Titanium { const SOURCE_TYPE_EXCHANGE: number; /** - * A calDev calendar source. + * A local calendar source. */ - const SOURCE_TYPE_CALDAV: number; + const SOURCE_TYPE_LOCAL: number; /** * A mobileMe calendar source. @@ -46354,165 +11359,87 @@ declare namespace Titanium { const SOURCE_TYPE_SUBSCRIBED: number; /** - * A birthday calendar source. + * A [save](Titanium.Calendar.Event.save)/[remove](Titanium.Calendar.Event.remove) event value, + * indicating modifications to this event instance should also affect future instances of this event. */ - const SOURCE_TYPE_BIRTHDAYS: number; + const SPAN_FUTUREEVENTS: number; /** - * Returns an authorization constant indicating if the application has access to the events in the EventKit. + * A [save](Titanium.Calendar.Event.save)/[remove](Titanium.Calendar.Event.remove) event value, + * indicating modifications to this event instance should affect only this instance. */ - const eventsAuthorization: number; + const SPAN_THISEVENT: number; /** - * Returns an authorization constant indicating if the application has access to the events in the EventKit. + * Alert dismissed state. */ - const calendarAuthorization: number; + const STATE_DISMISSED: number; /** - * All alerts in selected calendars. + * Alert fired state. */ - const allAlerts: Titanium.Calendar.Alert[]; + const STATE_FIRED: number; /** - * All calendars known to the native calendar app. + * Alert scheduled status. */ - const allCalendars: Titanium.Calendar.Calendar[]; + const STATE_SCHEDULED: number; /** - * All calendars known to the native calendar app that can add, edit, and - * delete items in the calendar. + * Event canceled status. */ - const allEditableCalendars: Titanium.Calendar.Calendar[]; + const STATUS_CANCELED: number; /** - * All calendars selected within the native calendar app, which may be a subset of `allCalendars`. + * Event canceled status. + * @deprecated Use [Titanium.Calendar.STATUS_CANCELED](Titanium.Calendar.STATUS_CANCELED) instead. */ - const selectableCalendars: Titanium.Calendar.Calendar[]; + const STATUS_CANCELLED: never; /** - * Calendar that events are added to by default, as specified by user settings. + * Event confirmed status. */ - const defaultCalendar: Titanium.Calendar.Calendar; + const STATUS_CONFIRMED: number; /** - * Adds the specified callback as an event listener for the named event. + * Event has no status. */ - function addEventListener(name: string, callback: (param0: any) => any): void; + const STATUS_NONE: number; /** - * Removes the specified callback as an event listener for the named event. + * Event tentative status. */ - function removeEventListener(name: string, callback: (param0: any) => any): void; + const STATUS_TENTATIVE: number; /** - * Fires a synthesized event to any registered listeners. + * Event confidential visibility. */ - function fireEvent(name: string, event: any): void; + const VISIBILITY_CONFIDENTIAL: number; /** - * Applies the properties to the proxy. + * Event default visibility. */ - function applyProperties(props: any): void; + const VISIBILITY_DEFAULT: number; /** - * Gets the calendar with the specified identifier. + * Event private visibility. */ - function getCalendarById(id: string): Titanium.Calendar.Calendar; + const VISIBILITY_PRIVATE: number; /** - * Returns `true` if the app has calendar access. + * Event public visibility. */ - function hasCalendarPermissions(): boolean; - - /** - * Requests for calendar access. - */ - function requestCalendarPermissions(callback: (param0: EventsAuthorizationResponse) => any): void; - - /** - * If authorization is unknown, will bring up a dialog requesting permission. - */ - function requestEventsAuthorization(callback: (param0: EventsAuthorizationResponse) => any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getEventsAuthorization(): number; - - /** - * Gets the value of the property. - */ - function getCalendarAuthorization(): number; - - /** - * Gets the value of the property. - */ - function getAllAlerts(): Titanium.Calendar.Alert[]; - - /** - * Gets the value of the property. - */ - function getAllCalendars(): Titanium.Calendar.Calendar[]; - - /** - * Gets the value of the property. - */ - function getAllEditableCalendars(): Titanium.Calendar.Calendar[]; - - /** - * Gets the value of the property. - */ - function getSelectableCalendars(): Titanium.Calendar.Calendar[]; - - /** - * Gets the value of the property. - */ - function getDefaultCalendar(): Titanium.Calendar.Calendar; + const VISIBILITY_PUBLIC: number; /** * An object that represents a single alert for an event in an calendar. */ - interface Alert extends Titanium.Proxy { + class Alert extends Titanium.Proxy { /** * The absolute date for the alarm. */ absoluteDate: Date; - /** - * The offset from the start of an event, at which the alarm fires. - */ - relativeOffset: number; - /** * Date/time at which this alert alarm is set to trigger. */ @@ -46544,166 +11471,188 @@ declare namespace Titanium { */ readonly minutes: number; + /** + * The offset from the start of an event, at which the alarm fires. + */ + relativeOffset: number; + /** * The current state of the alert. */ readonly state: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getAbsoluteDate(): Date; - /** - * Sets the value of the property. - */ - setAbsoluteDate(absoluteDate: Date): void; - - /** - * Gets the value of the property. - */ - getRelativeOffset(): number; - - /** - * Sets the value of the property. - */ - setRelativeOffset(relativeOffset: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getAlarmTime(): Date; /** * Gets the value of the property. + * @deprecated Access instead. */ getBegin(): Date; /** * Gets the value of the property. + * @deprecated Access instead. */ getEnd(): Date; /** * Gets the value of the property. + * @deprecated Access instead. */ getEventId(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getId(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getMinutes(): number; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRelativeOffset(): number; + /** * Gets the value of the property. + * @deprecated Access instead. */ getState(): number; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAbsoluteDate(absoluteDate: Date): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRelativeOffset(relativeOffset: number): void; + } /** * An object that represents a single attendee of an event. */ - interface Attendee extends Titanium.Proxy { + class Attendee extends Titanium.Proxy { + /** + * The attendee email. + */ + readonly email: string; + /** * Indicates whether this attendee is the event organizer. */ - isOrganizer: boolean; + readonly isOrganizer: boolean; /** * The attendee name. */ - name: string; - - /** - * The attendee email. - */ - email: string; + readonly name: string; /** * The role of the attendee. */ - role: number; - - /** - * The type of the attendee. - */ - type: number; + readonly role: number; /** * The status of the attendee. */ - status: number; + readonly status: number; /** - * Gets the value of the property. + * The type of the attendee. */ - getIsOrganizer(): boolean; + readonly type: number; /** - * Sets the value of the property. + * Adds the specified callback as an event listener for the named event. */ - setIsOrganizer(isOrganizer: boolean): void; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Gets the value of the property. + * Fires a synthesized event to any registered listeners. */ - getName(): string; - - /** - * Sets the value of the property. - */ - setName(name: string): void; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getEmail(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setEmail(email: string): void; + getIsOrganizer(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getName(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getRole(): number; - /** - * Sets the value of the property. - */ - setRole(role: number): void; - - /** - * Gets the value of the property. - */ - getType(): number; - - /** - * Sets the value of the property. - */ - setType(type: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getStatus(): number; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setStatus(status: number): void; + getType(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * An object that represents a single calendar. */ - interface Calendar extends Titanium.Proxy { + class Calendar extends Titanium.Proxy { /** * Indicates whether this calendar can be edited or deleted. */ @@ -46724,6 +11673,11 @@ declare namespace Titanium { */ readonly selected: boolean; + /** + * Displays the source identifier. + */ + readonly sourceIdentifier: string; + /** * Displays the source title. */ @@ -46735,95 +11689,100 @@ declare namespace Titanium { readonly sourceType: number; /** - * Displays the source identifier. + * Adds the specified callback as an event listener for the named event. */ - readonly sourceIdentifier: string; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Creates an event in this calendar. */ - createEvent(properties: any): Titanium.Calendar.Event; + createEvent(properties: Dictionary): Titanium.Calendar.Event; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; /** * Gets the event with the specified identifier. */ - getEventById(id: number): Titanium.Calendar.Event; + getEventById(id: string): Titanium.Calendar.Event; /** * Gets events that occur between two dates. */ - getEventsBetweenDates(date1: Date, date2: Date | string): Titanium.Calendar.Event[]; - - /** - * Gets events that occur between two dates. - */ - getEventsBetweenDates(date1: string, date2: Date | string): Titanium.Calendar.Event[]; - - /** - * Gets events that occur between two dates. - */ - getEventsBetweenDates(date1: Date | string, date2: Date): Titanium.Calendar.Event[]; - - /** - * Gets events that occur between two dates. - */ - getEventsBetweenDates(date1: Date | string, date2: string): Titanium.Calendar.Event[]; + getEventsBetweenDates(date1: Date | string, date2: Date | string): Titanium.Calendar.Event[]; /** * Gets events that occur on a specified date. + * @deprecated Use [Titanium.Calendar.Calendar.getEventsBetweenDates](Titanium.Calendar.Calendar.getEventsBetweenDates) instead. */ getEventsInDate(year: number, month: number, day: number): Titanium.Calendar.Event[]; /** * Gets events that occur during a specified month. + * @deprecated Use [Titanium.Calendar.Calendar.getEventsBetweenDates](Titanium.Calendar.Calendar.getEventsBetweenDates) instead. */ getEventsInMonth(year: number, month: number): Titanium.Calendar.Event[]; /** * Gets all events that occur during a specified year. + * @deprecated Use [Titanium.Calendar.Calendar.getEventsBetweenDates](Titanium.Calendar.Calendar.getEventsBetweenDates) instead. */ getEventsInYear(year: number): Titanium.Calendar.Event[]; /** * Gets the value of the property. + * @deprecated Access instead. */ getHidden(): boolean; /** * Gets the value of the property. + * @deprecated Access instead. */ getId(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getName(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getSelected(): boolean; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSourceIdentifier(): string; + /** * Gets the value of the property. + * @deprecated Access instead. */ getSourceTitle(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getSourceType(): number; /** - * Gets the value of the property. + * Removes the specified callback as an event listener for the named event. */ - getSourceIdentifier(): string; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * An object that represents a single event in a calendar. */ - interface Event extends Titanium.Proxy { + class Event extends Titanium.Proxy { /** * Alarms associated with the calendar item, as an array of objects. */ @@ -46834,16 +11793,21 @@ declare namespace Titanium { */ allDay: boolean; + /** + * The list of event attendees. This list will be empty if the event has no attendees. + */ + readonly attendees: Titanium.Calendar.Attendee[]; + + /** + * Availability of this event. + */ + availability: number; + /** * Start date/time of this event. */ begin: Date; - /** - * Notes for this event. - */ - notes: string; - /** * Description of this event. */ @@ -46869,11 +11833,27 @@ declare namespace Titanium { */ readonly id: string; + /** + * Boolean value that indicates whether an event is a detached instance of a + * repeating event. + */ + readonly isDetached: boolean; + /** * Location of this event. */ location: string; + /** + * Notes for this event. + */ + notes: string; + + /** + * The recurrence rules for the calendar item. + */ + recurrenceRules: Titanium.Calendar.RecurrenceRule[]; + /** * Existing reminders for this event. */ @@ -46884,78 +11864,20 @@ declare namespace Titanium { */ readonly status: number; - /** - * Availability of this event. - */ - readonly availability: number; - - /** - * Boolean value that indicates whether an event is a detached instance of a - * repeating event. - */ - readonly isDetached: boolean; - /** * Title of this event. */ title: string; - /** - * The recurrence rules for the calendar item. - */ - recurrenceRules: Titanium.Calendar.RecurrenceRule[]; - /** * Visibility of this event. */ readonly visibility: number; /** - * The list of event attendees. This list will be empty if the event has no attendees. + * Adds the specified callback as an event listener for the named event. */ - readonly attendees: Titanium.Calendar.Attendee[]; - - /** - * Creates an alert for this event. - */ - createAlert(data: any): Titanium.Calendar.Alert; - - /** - * Creates a reminder for this event. - */ - createReminder(data: any): Titanium.Calendar.Reminder; - - /** - * Gets the value of the specified extended property. - */ - getExtendedProperty(name: string): string; - - /** - * Sets the value of the specified extended property. - */ - setExtendedProperty(name: string, value: string): void; - - /** - * Creates an recurrence pattern for a recurring event. - * All of the properties for the recurrence rule must be set during creation. - * The recurrence rule properties cannot be modified. - */ - createRecurrenceRule(data: any): Titanium.Calendar.RecurrenceRule; - - /** - * Saves changes to an event permanently. - */ - save(span: number): boolean; - - /** - * Removes an event from the event store. - */ - remove(span: number): boolean; - - /** - * Updates the event's data with the current information in the Calendar database. - */ - refresh(): boolean; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Adds a recurrence rule to the recurrence rule array. @@ -46963,150 +11885,259 @@ declare namespace Titanium { addRecurrenceRule(rule: Titanium.Calendar.RecurrenceRule): void; /** - * Removes a recurrence rule to the recurrence rule array. + * Creates an alert for this event. */ - removeRecurrenceRule(rule: Titanium.Calendar.RecurrenceRule): void; + createAlert(data: Dictionary): Titanium.Calendar.Alert; + + /** + * Creates an recurrence pattern for a recurring event. + * All of the properties for the recurrence rule must be set during creation. + * The recurrence rule properties cannot be modified. + */ + createRecurrenceRule(data: Dictionary): Titanium.Calendar.RecurrenceRule; + + /** + * Creates a reminder for this event. + */ + createReminder(data: Dictionary): Titanium.Calendar.Reminder; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getAlerts(): Titanium.Calendar.Alert[]; - /** - * Sets the value of the property. - */ - setAlerts(alerts: ReadonlyArray): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getAllDay(): boolean; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setAllDay(allDay: boolean): void; + getAttendees(): Titanium.Calendar.Attendee[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAvailability(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getBegin(): Date; - /** - * Sets the value of the property. - */ - setBegin(begin: Date): void; - - /** - * Gets the value of the property. - */ - getNotes(): string; - - /** - * Sets the value of the property. - */ - setNotes(notes: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getDescription(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getEnd(): Date; - /** - * Sets the value of the property. - */ - setEnd(end: Date): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getExtendedProperties(): any; + /** + * Gets the value of the specified extended property. + */ + getExtendedProperty(name: string): string; + /** * Gets the value of the property. + * @deprecated Access instead. */ getHasAlarm(): boolean; /** * Gets the value of the property. + * @deprecated Access instead. */ getId(): string; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIsDetached(): boolean; + /** * Gets the value of the property. + * @deprecated Access instead. */ getLocation(): string; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setLocation(location: string): void; + getNotes(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRecurrenceRules(): Titanium.Calendar.RecurrenceRule[]; /** * Gets the value of the property. + * @deprecated Access instead. */ getReminders(): Titanium.Calendar.Reminder[]; /** * Gets the value of the property. + * @deprecated Access instead. */ getStatus(): number; - /** - * Gets the value of the property. - */ - getAvailability(): number; - - /** - * Gets the value of the property. - */ - getIsDetached(): boolean; - /** * Gets the value of the property. + * @deprecated Access instead. */ getTitle(): string; - /** - * Sets the value of the property. - */ - setTitle(title: string): void; - - /** - * Gets the value of the property. - */ - getRecurrenceRules(): Titanium.Calendar.RecurrenceRule[]; - - /** - * Sets the value of the property. - */ - setRecurrenceRules(recurrenceRules: ReadonlyArray): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getVisibility(): number; /** - * Gets the value of the property. + * Updates the event's data with the current information in the Calendar database. */ - getAttendees(): Titanium.Calendar.Attendee[]; + refresh(): boolean; + + /** + * Removes an event from the event store. + */ + remove(span: number): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes a recurrence rule to the recurrence rule array. + */ + removeRecurrenceRule(rule: Titanium.Calendar.RecurrenceRule): void; + + /** + * Saves changes to an event permanently. + */ + save(span: number): boolean; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAlerts(alerts: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllDay(allDay: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAvailability(availability: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBegin(begin: Date): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnd(end: Date): void; + + /** + * Sets the value of the specified extended property. + */ + setExtendedProperty(name: string, value: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLocation(location: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNotes(notes: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRecurrenceRules(recurrenceRules: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; } /** * An object that is used to describe the recurrence pattern for a recurring event. */ - interface RecurrenceRule extends Titanium.Proxy { + class RecurrenceRule extends Titanium.Proxy { /** * Identifier for the recurrence rule's calendar. */ readonly calendarID: string; + /** + * The days of the month that the event occurs, as an array of number objects. + * Values can be from 1 to 31 and from -1 to -31. This parameter is only valid for + * recurrence rules of type + * [RECURRENCEFREQUENCY_MONTHLY](Titanium.Calendar.RECURRENCEFREQUENCY_MONTHLY). + */ + readonly daysOfTheMonth: number[]; + + /** + * The days of the week that the event occurs, as an array of objects `daysOfWeek` and `Week`. + */ + readonly daysOfTheWeek: daysOfTheWeekDictionary[]; + + /** + * The days of the year that the event occurs, as an array of number objects. + * Values can be from 1 to 366 and from -1 to -366. This parameter is only valid for + * recurrence rules of type [RECURRENCEFREQUENCY_YEARLY](Titanium.Calendar.RECURRENCEFREQUENCY_YEARLY). + */ + readonly daysOfTheYear: number[]; + + /** + * End of a recurrence rule. + */ + readonly end: recurrenceEndDictionary; + /** * Frequency of the recurrence rule. */ @@ -47118,19 +12149,6 @@ declare namespace Titanium { */ readonly interval: number; - /** - * The days of the week that the event occurs, as an Dictionay of `daysOfWeek` and `Week`. - */ - readonly daysOfTheWeek: daysOfTheWeekDictionary; - - /** - * The days of the month that the event occurs, as an array of number objects. - * Values can be from 1 to 31 and from -1 to -31. This parameter is only valid for - * recurrence rules of type - * [RECURRENCEFREQUENCY_MONTHLY](Titanium.Calendar.RECURRENCEFREQUENCY_MONTHLY). - */ - readonly daysOfTheMonth: number[]; - /** * The months of the year that the event occurs, as an array of Number objects. * Values can be from 1 to 12. This parameter is only valid for recurrence rules of @@ -47138,20 +12156,6 @@ declare namespace Titanium { */ readonly monthsOfTheYear: number[]; - /** - * The weeks of the year that the event occurs, as an array of number objects. - * Values can be from 1 to 53 and from -1 to -53. This parameter is only valid for - * recurrence rules of type [RECURRENCEFREQUENCY_YEARLY](Titanium.Calendar.RECURRENCEFREQUENCY_YEARLY). - */ - readonly weeksOfTheYear: number[]; - - /** - * The days of the year that the event occurs, as an array of number objects. - * Values can be from 1 to 366 and from -1 to -366. This parameter is only valid for - * recurrence rules of type [RECURRENCEFREQUENCY_YEARLY](Titanium.Calendar.RECURRENCEFREQUENCY_YEARLY). - */ - readonly daysOfTheYear: number[]; - /** * An array of ordinal numbers that filters which recurrences to include in the * recurrence rule's frequency. For example, a yearly recurrence rule that has a @@ -47162,65 +12166,92 @@ declare namespace Titanium { readonly setPositions: number[]; /** - * End of a recurrence rule. + * The weeks of the year that the event occurs, as an array of number objects. + * Values can be from 1 to 53 and from -1 to -53. This parameter is only valid for + * recurrence rules of type [RECURRENCEFREQUENCY_YEARLY](Titanium.Calendar.RECURRENCEFREQUENCY_YEARLY). */ - readonly end: recurrenceEndDictionary; + readonly weeksOfTheYear: number[]; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getCalendarID(): string; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDaysOfTheMonth(): number[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDaysOfTheWeek(): daysOfTheWeekDictionary[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDaysOfTheYear(): number[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnd(): recurrenceEndDictionary; + /** * Gets the value of the property. + * @deprecated Access instead. */ getFrequency(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getInterval(): number; - /** - * Gets the value of the property. - */ - getDaysOfTheWeek(): daysOfTheWeekDictionary; - - /** - * Gets the value of the property. - */ - getDaysOfTheMonth(): number[]; - /** * Gets the value of the property. + * @deprecated Access instead. */ getMonthsOfTheYear(): number[]; - /** - * Gets the value of the property. - */ - getWeeksOfTheYear(): number[]; - - /** - * Gets the value of the property. - */ - getDaysOfTheYear(): number[]; - /** * Gets the value of the property. + * @deprecated Access instead. */ getSetPositions(): number[]; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - getEnd(): recurrenceEndDictionary; + getWeeksOfTheYear(): number[]; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * An object that represents a single reminder for an event in a calendar. */ - interface Reminder extends Titanium.Proxy { + class Reminder extends Titanium.Proxy { /** * Identifier of this reminder. */ @@ -47237,209 +12268,70 @@ declare namespace Titanium { */ readonly minutes: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getId(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getMethod(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getMinutes(): number; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + } } - - /** - * A module for translating between primitive types and raw byte streams. - */ - namespace Codec { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * ASCII character encoding.. - */ - const CHARSET_ASCII: string; - - /** - * ISO 8859-1 (Latin-1) character encoding. - */ - const CHARSET_ISO_LATIN_1: string; - - /** - * UTF-8 character encoding. - */ - const CHARSET_UTF8: string; - - /** - * UTF-16 character encoding with default byte order. - */ - const CHARSET_UTF16: string; - - /** - * UTF-16 character encoding with big endian byte order. - */ - const CHARSET_UTF16BE: string; - - /** - * UTF-16 character encoding with little endian byte order. - */ - const CHARSET_UTF16LE: string; - - /** - * 8-bit integer encoding type. - */ - const TYPE_BYTE: string; - - /** - * 16-bit integer encoding type. - */ - const TYPE_SHORT: string; - - /** - * 32-bit integer encoding type. - */ - const TYPE_INT: string; - - /** - * 32-bit single precision floating-point type. - */ - const TYPE_FLOAT: string; - - /** - * 64-bit integer encoding type. - */ - const TYPE_LONG: string; - - /** - * 64-bit double precision floating-point type. - */ - const TYPE_DOUBLE: string; - - /** - * Big endian (network) byte order -- that is, the most significant byte first. - */ - const BIG_ENDIAN: number; - - /** - * Little endian byte order -- that is, the least significant byte first. - */ - const LITTLE_ENDIAN: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Get the OS native byte order (either or - * ). - */ - function getNativeByteOrder(): number; - - /** - * Encodes a number and writes it to a buffer. - */ - function encodeNumber(options: EncodeNumberDict): number; - - /** - * Decodes a number from the `source` buffer using the specified data type. - */ - function decodeNumber(options: DecodeNumberDict): number; - - /** - * Encodes a string into a series of bytes in a buffer using the specified character set. - */ - function encodeString(options: any): number; - - /** - * Decodes the source buffer into a String using the supplied character set. - */ - function decodeString(options: DecodeStringDict): string; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - /** * The top-level Contacts module, used for accessing and modifying the system contacts address book. */ namespace Contacts { /** - * Indicates if the proxy will bubble an event to its parent. + * A [contactsAuthorization](Titanium.Contacts.contactsAuthorization) value + * indicating that the application is authorized to use the address book. */ - let bubbleParent: boolean; + const AUTHORIZATION_AUTHORIZED: number; /** - * The name of the API that this proxy corresponds to. + * A [contactsAuthorization](Titanium.Contacts.contactsAuthorization) value + * indicating that the application is not authorized to use the address book. */ - const apiName: string; + const AUTHORIZATION_DENIED: number; /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + * A [contactsAuthorization](Titanium.Contacts.contactsAuthorization) value + * indicating that the application is not authorized to use the address book *and* + * the user cannot change this application's status. + * @deprecated iOS 9 and later does not use this constant anymore. Use the other available constants instead. */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + const AUTHORIZATION_RESTRICTED: never; + + /** + * A [contactsAuthorization](Titanium.Contacts.contactsAuthorization) value + * indicating that the authorization state is unknown. + */ + const AUTHORIZATION_UNKNOWN: number; /** * Specifies that a contact is an organization. @@ -47461,182 +12353,15 @@ declare namespace Titanium { */ const CONTACTS_SORT_LAST_NAME: number; - /** - * A [contactsAuthorization](Titanium.Contacts.contactsAuthorization) value - * indicating that the application is authorized to use the address book. - */ - const AUTHORIZATION_AUTHORIZED: number; - - /** - * A [contactsAuthorization](Titanium.Contacts.contactsAuthorization) value - * indicating that the application is not authorized to use the address book. - */ - const AUTHORIZATION_DENIED: number; - - /** - * A [contactsAuthorization](Titanium.Contacts.contactsAuthorization) value - * indicating that the application is not authorized to use the address book *and* - * the user cannot change this application's status. - */ - const AUTHORIZATION_RESTRICTED: number; - - /** - * A [contactsAuthorization](Titanium.Contacts.contactsAuthorization) value - * indicating that the authorization state is unknown. - */ - const AUTHORIZATION_UNKNOWN: number; - - /** - * Returns an authorization constant indicating if the application has access to the address book. - */ - const contactsAuthorization: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Creates and returns an instance of . - */ - function createGroup(parameters?: any): Titanium.Contacts.Group; - - /** - * Creates and returns an instance of , and commits all pending - * changes to the underlying contacts database. - */ - function createPerson(parameters?: any): Titanium.Contacts.Person; - - /** - * Gets all groups. - */ - function getAllGroups(): Titanium.Contacts.Group[]; - - /** - * Gets all people, unless a limit is specified. - */ - function getAllPeople(limit: number): Titanium.Contacts.Person[]; - - /** - * Gets the group with the specified identifier. - */ - function getGroupByID(id: number): Titanium.Contacts.Group; - - /** - * Gets the group with the specified identifier. - */ - function getGroupByIdentifier(id: string): Titanium.Contacts.Group; - - /** - * Gets people with a `firstName`, `middleName` or `lastName` field, or a combination - * of these fields, that match the specified name. - */ - function getPeopleWithName(name: string): Titanium.Contacts.Person[]; - - /** - * Gets the person with the specified identifier. - */ - function getPersonByID(id: number): Titanium.Contacts.Person; - - /** - * Gets the person with the specified identifier. - */ - function getPersonByIdentifier(id: number): Titanium.Contacts.Person; - - /** - * Removes a group from the address book. - */ - function removeGroup(group: Titanium.Contacts.Group): void; - - /** - * Removes a contact from the address book. - */ - function removePerson(person: Titanium.Contacts.Person): void; - - /** - * Reverts all changes made by the previous save to the address book. Deprecated for >= iOS9. - */ - function revert(): void; - - /** - * Commits all pending changes to the underlying contacts database. - */ - function save(contacts: ReadonlyArray): void; - - /** - * Displays a picker that allows a person to be selected. - */ - function showContacts(params: showContactsParams): void; - - /** - * Returns `true` if the app has contacts access. - */ - function hasContactsPermissions(): boolean; - - /** - * Requests for contacts access. - */ - function requestContactsPermissions(callback: (param0: ContactsAuthorizationResponse) => any): void; - - /** - * If authorization is unknown, will bring up a dialog requesting permission. - */ - function requestAuthorization(callback: (param0: ContactsAuthorizationResponse) => any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getContactsAuthorization(): number; - /** * An object which represents a group in the system contacts address book. */ - interface Group extends Titanium.Proxy { + class Group extends Titanium.Proxy { + /** + * Identifier of the group. + */ + readonly identifier: string; + /** * Name of this group. */ @@ -47647,16 +12372,39 @@ declare namespace Titanium { */ recordId: number; - /** - * Identifier of the group. - */ - readonly identifier: string; - /** * Adds a person to this group. */ add(person: Titanium.Contacts.Person): void; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIdentifier(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRecordId(): number; + /** * Gets people that are members of this group. */ @@ -47669,56 +12417,48 @@ declare namespace Titanium { remove(person: Titanium.Contacts.Person): void; /** - * Gets people that are members of this group, sorted in the specified order. + * Removes the specified callback as an event listener for the named event. */ - sortedMembers(sortBy: number): Titanium.Contacts.Person[]; - - /** - * Gets the value of the property. - */ - getName(): string; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setName(name: string): void; - /** - * Gets the value of the property. - */ - getRecordId(): number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setRecordId(recordId: number): void; /** - * Gets the value of the property. + * Gets people that are members of this group, sorted in the specified order. */ - getIdentifier(): string; + sortedMembers(sortBy: number): Titanium.Contacts.Person[]; } /** * An object that represents a contact record for a person or organization in the system contacts * address book. */ - interface Person extends Titanium.Proxy { + class Person extends Titanium.Proxy { /** * Addresses for the person. Multi-value. Read-only on Android. */ address: any; - /** - * Date of birth of the person. Single value. - */ - birthday: string; - /** * Alternate birthday of the person. Single Dictionary. */ alternateBirthday: any; + /** + * Date of birth of the person. Single value. + */ + birthday: string; + /** * Date and time that the person record was created. Single value. Deprecated since iOS 9. */ @@ -47774,11 +12514,6 @@ declare namespace Titanium { */ instantMessage: any; - /** - * Social profile information of the person. Multi-value. - */ - socialProfile: any; - /** * Job title of the person. Single value. */ @@ -47850,6 +12585,11 @@ declare namespace Titanium { */ relatedNames: any; + /** + * Social profile information of the person. Multi-value. + */ + socialProfile: any; + /** * Suffix for the person. Single value. */ @@ -47860,304 +12600,358 @@ declare namespace Titanium { */ url: any; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getAddress(): any; - /** - * Sets the value of the property. - */ - setAddress(address: any): void; - - /** - * Gets the value of the property. - */ - getBirthday(): string; - - /** - * Sets the value of the property. - */ - setBirthday(birthday: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getAlternateBirthday(): any; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setAlternateBirthday(alternateBirthday: any): void; + getBirthday(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getCreated(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getDate(): any; - /** - * Sets the value of the property. - */ - setDate(date: any): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getDepartment(): string; - /** - * Sets the value of the property. - */ - setDepartment(department: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getEmail(): any; - /** - * Sets the value of the property. - */ - setEmail(email: any): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getFirstName(): string; - /** - * Sets the value of the property. - */ - setFirstName(firstName: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getFirstPhonetic(): string; - /** - * Sets the value of the property. - */ - setFirstPhonetic(firstPhonetic: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getFullName(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getId(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getIdentifier(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getImage(): Titanium.Blob; - /** - * Sets the value of the property. - */ - setImage(image: Titanium.Blob): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getInstantMessage(): any; - /** - * Sets the value of the property. - */ - setInstantMessage(instantMessage: any): void; - - /** - * Gets the value of the property. - */ - getSocialProfile(): any; - - /** - * Sets the value of the property. - */ - setSocialProfile(socialProfile: any): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getJobTitle(): string; - /** - * Sets the value of the property. - */ - setJobTitle(jobTitle: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getKind(): number; - /** - * Sets the value of the property. - */ - setKind(kind: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getLastName(): string; - /** - * Sets the value of the property. - */ - setLastName(lastName: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getLastPhonetic(): string; - /** - * Sets the value of the property. - */ - setLastPhonetic(lastPhonetic: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getMiddleName(): string; - /** - * Sets the value of the property. - */ - setMiddleName(middleName: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getMiddlePhonetic(): string; - /** - * Sets the value of the property. - */ - setMiddlePhonetic(middlePhonetic: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getModified(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getNickname(): string; - /** - * Sets the value of the property. - */ - setNickname(nickname: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getNote(): string; - /** - * Sets the value of the property. - */ - setNote(note: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getOrganization(): string; - /** - * Sets the value of the property. - */ - setOrganization(organization: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getPhone(): any; - /** - * Sets the value of the property. - */ - setPhone(phone: any): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getPrefix(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getRecordId(): number; - /** - * Sets the value of the property. - */ - setRecordId(recordId: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getRelatedNames(): any; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setRelatedNames(relatedNames: any): void; + getSocialProfile(): any; /** * Gets the value of the property. + * @deprecated Access instead. */ getSuffix(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getUrl(): any; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAddress(address: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAlternateBirthday(alternateBirthday: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBirthday(birthday: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDate(date: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDepartment(department: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEmail(email: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFirstName(firstName: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFirstPhonetic(firstPhonetic: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setImage(image: Titanium.Blob): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setInstantMessage(instantMessage: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setJobTitle(jobTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKind(kind: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLastName(lastName: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLastPhonetic(lastPhonetic: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMiddleName(middleName: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMiddlePhonetic(middlePhonetic: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNickname(nickname: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNote(note: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOrganization(organization: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPhone(phone: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRecordId(recordId: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRelatedNames(relatedNames: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSocialProfile(socialProfile: any): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setUrl(url: any): void; } } - /** * The top-level `Database` module, used for creating and accessing the * in-application SQLite database. */ namespace Database { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - /** * Constant for requesting a column's value returned in double form. */ @@ -48178,70 +12972,10 @@ declare namespace Titanium { */ const FIELD_TYPE_STRING: number; - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Installs an SQLite database to device's internal storage. - */ - function install(path: string, dbName: string): Titanium.Database.DB; - - /** - * Opens an SQLite database. - */ - function open(dbName: string): Titanium.Database.DB; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - /** * The `Database` instance returned by or . */ - interface DB extends Titanium.Proxy { + class DB extends Titanium.Proxy { /** * A `File` object representing the file where this database is stored. Must only be used for * setting file properties. @@ -48251,17 +12985,22 @@ declare namespace Titanium { /** * The identifier of the last populated row. */ - lastInsertRowId: number; + readonly lastInsertRowId: number; /** * The name of the database. */ - name: string; + readonly name: string; /** * The number of rows affected by the last query. */ - rowsAffected: number; + readonly rowsAffected: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Closes the database and releases resources from memory. Once closed, this instance is no @@ -48273,7 +13012,7 @@ declare namespace Titanium { /** * Executes an SQL statement against the database and returns a `ResultSet`. */ - execute(sql: string, vararg?: string): Titanium.Database.ResultSet; + execute(sql: string, ...vararg: string[]): Titanium.Database.ResultSet; /** * Executes an SQL statement against the database and returns a `ResultSet`. @@ -48283,13 +13022,59 @@ declare namespace Titanium { /** * Executes an SQL statement against the database and returns a `ResultSet`. */ - execute(sql: string, vararg?: any): Titanium.Database.ResultSet; + execute(sql: string, ...vararg: any[]): Titanium.Database.ResultSet; /** * Executes an SQL statement against the database and returns a `ResultSet`. */ execute(sql: string, vararg?: ReadonlyArray): Titanium.Database.ResultSet; + /** + * Synchronously executes an array of SQL statements against the database and returns an array of `ResultSet`. + * On failure, this will throw an [Error](BatchQueryError) that reports the failed index and partial results + */ + executeAll(queries: ReadonlyArray): Titanium.Database.ResultSet[]; + + /** + * Asynchronously executes an array of SQL statements against the database and fires a callback with a possible Error, and an array of `ResultSet`. + * On failure, this will call the callback with an [Error](PossibleBatchQueryError) that reports the failed index, and a second argument with the partial results + */ + executeAllAsync(queries: ReadonlyArray, callback: (param0: PossibleBatchQueryError, param1: Titanium.Database.ResultSet[]) => void): void; + + /** + * Asynchronously executes an SQL statement against the database and fires a callback with a possible `Error` argument, and a second argument holding a possible `ResultSet`. + */ + executeAsync(query: string, vararg?: any, callback?: (param0: any, param1: Titanium.Database.ResultSet) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFile(): Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLastInsertRowId(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRowsAffected(): number; + /** * Removes the database files for this instance from disk. WARNING: this is a destructive * operation and cannot be reversed. All data in the database will be lost; use with caution. @@ -48297,45 +13082,15 @@ declare namespace Titanium { remove(): void; /** - * Gets the value of the property. + * Removes the specified callback as an event listener for the named event. */ - getFile(): Titanium.Filesystem.File; - - /** - * Gets the value of the property. - */ - getLastInsertRowId(): number; - - /** - * Sets the value of the property. - */ - setLastInsertRowId(lastInsertRowId: number): void; - - /** - * Gets the value of the property. - */ - getName(): string; - - /** - * Sets the value of the property. - */ - setName(name: string): void; - - /** - * Gets the value of the property. - */ - getRowsAffected(): number; - - /** - * Sets the value of the property. - */ - setRowsAffected(rowsAffected: number): void; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * The ResultSet instance returned by . */ - interface ResultSet extends Titanium.Proxy { + class ResultSet extends Titanium.Proxy { /** * The number of columns in this result set. */ @@ -48351,6 +13106,11 @@ declare namespace Titanium { */ readonly validRow: boolean; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Closes this result set and release resources. Once closed, the result set must no longer * be used. @@ -48374,11 +13134,34 @@ declare namespace Titanium { */ fieldName(index: number): string; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFieldCount(): number; + /** * Returns the field name for the specified field index. */ getFieldName(index: number): string; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRowCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValidRow(): boolean; + /** * Returns whether the current row is valid. */ @@ -48391,41 +13174,35 @@ declare namespace Titanium { next(): boolean; /** - * Gets the value of the property. + * Removes the specified callback as an event listener for the named event. */ - getFieldCount(): number; - - /** - * Gets the value of the property. - */ - getRowCount(): number; - - /** - * Gets the value of the property. - */ - getValidRow(): boolean; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } } - /** * The top level filesystem module, used to access files and directories on the device. */ namespace Filesystem { /** - * Indicates if the proxy will bubble an event to its parent. + * Constant used to set protection key to NSFileProtectionComplete in file attributes. */ - let bubbleParent: boolean; + const IOS_FILE_PROTECTION_COMPLETE: string; /** - * The name of the API that this proxy corresponds to. + * Constant used to set protection key to NSFileProtectionCompleteUnlessOpen in file attributes. */ - const apiName: string; + const IOS_FILE_PROTECTION_COMPLETE_UNLESS_OPEN: string; /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + * Constant used to set protection key to NSFileProtectionCompleteUntilFirstUserAuthentication in file attributes. */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + const IOS_FILE_PROTECTION_COMPLETE_UNTIL_FIRST_USER_AUTHENTICATION: string; + + /** + * Constant used to set protection key to NSFileProtectionNone in file attributes. + */ + const IOS_FILE_PROTECTION_NONE: string; /** * Constant for append mode for file operations. @@ -48442,230 +13219,10 @@ declare namespace Titanium { */ const MODE_WRITE: number; - /** - * Constant used to set protection key to NSFileProtectionNone in file attributes. - */ - const IOS_FILE_PROTECTION_NONE: string; - - /** - * Constant used to set protection key to NSFileProtectionComplete in file attributes. - */ - const IOS_FILE_PROTECTION_COMPLETE: string; - - /** - * Constant used to set protection key to NSFileProtectionCompleteUnlessOpen in file attributes. - */ - const IOS_FILE_PROTECTION_COMPLETE_UNLESS_OPEN: string; - - /** - * Constant used to set protection key to NSFileProtectionCompleteUntilFirstUserAuthentication in file attributes. - */ - const IOS_FILE_PROTECTION_COMPLETE_UNTIL_FIRST_USER_AUTHENTICATION: string; - - /** - * Path to the application's internal cache directory. - */ - const applicationCacheDirectory: string; - - /** - * Path to the application's data directory. - */ - const applicationDataDirectory: string; - - /** - * Path to the iOS application directory. - */ - const applicationDirectory: string; - - /** - * Path to the application support directory. - */ - const applicationSupportDirectory: string; - - /** - * Path to a directory on removable storage, such as SD card. - */ - const externalStorageDirectory: string; - - /** - * Platform-specific line ending constant. - */ - const lineEnding: string; - - /** - * Path to the application's resource directory. - */ - const resourcesDirectory: string; - - /** - * Path to the application's raw resource directory. - */ - const resRawDirectory: string; - - /** - * Platform-specific path separator constant. - */ - const separator: string; - - /** - * Path for the application's temporary directory. - */ - const tempDirectory: string; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Creates a temporary directory and returns a [File](Titanium.Filesystem.File) object representing the new directory. - */ - function createTempDirectory(): Titanium.Filesystem.File; - - /** - * Creates a temporary file and returns a [File](Titanium.Filesystem.File) object representing the new file. - */ - function createTempFile(): Titanium.Filesystem.File; - - /** - * Returns a `File` object representing the file identified by the path arguments. - */ - function getFile(...paths: string[]): Titanium.Filesystem.File; - - /** - * Returns a `File` object representing the file identified by the path arguments. - */ - function getFile(...paths: string[]): Titanium.Filesystem.File; - - /** - * Returns a `Blob` object representing the asset catalog image identified by the path arguments. - */ - function getAsset(path: string): Titanium.Blob; - - /** - * Returns `true` if the device supports external storage *and* the external storage device is mounted. - */ - function isExternalStoragePresent(): boolean; - - /** - * Returns `true` if the app has storage permissions. - */ - function hasStoragePermissions(): boolean; - - /** - * Requests for storage permissions - */ - function requestStoragePermissions(callback: (param0: RequestStorageAccessResult) => any): void; - - /** - * Opens file using the interface. - */ - function openStream(mode: number, path: string): Titanium.Filesystem.FileStream; - - /** - * Returns the path to the container directory associated with the specified security application group ID. - */ - function directoryForSuite(suiteName: string): string; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getApplicationCacheDirectory(): string; - - /** - * Gets the value of the property. - */ - function getApplicationDataDirectory(): string; - - /** - * Gets the value of the property. - */ - function getApplicationDirectory(): string; - - /** - * Gets the value of the property. - */ - function getApplicationSupportDirectory(): string; - - /** - * Gets the value of the property. - */ - function getExternalStorageDirectory(): string; - - /** - * Gets the value of the property. - */ - function getLineEnding(): string; - - /** - * Gets the value of the property. - */ - function getResourcesDirectory(): string; - - /** - * Gets the value of the property. - */ - function getResRawDirectory(): string; - - /** - * Gets the value of the property. - */ - function getSeparator(): string; - - /** - * Gets the value of the property. - */ - function getTempDirectory(): string; - /** * Object representing a path to a file or directory in the device's persistent storage. */ - interface File extends Titanium.Proxy { + class File extends Titanium.Proxy { /** * `true` if the file is executable. */ @@ -48696,16 +13253,16 @@ declare namespace Titanium { */ readonly readonly: boolean; - /** - * Size, in bytes, of the file identified by this object. - */ - readonly size: number; - /** * Value indicating whether or not to back up to a cloud service. */ remoteBackup: boolean; + /** + * Size, in bytes, of the file identified by this object. + */ + readonly size: number; + /** * `true` if the file identified by this object is a symbolic link. */ @@ -48718,23 +13275,19 @@ declare namespace Titanium { /** * `true` if the file identified by this object is writable. + * @deprecated Use [Titanium.Filesystem.File.writable](Titanium.Filesystem.File.writable) instead. */ - readonly writeable: boolean; + readonly writeable: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Appends data to the file identified by this file object. */ - append(data: string): boolean; - - /** - * Appends data to the file identified by this file object. - */ - append(data: Titanium.Blob): boolean; - - /** - * Appends data to the file identified by this file object. - */ - append(data: Titanium.Filesystem.File): boolean; + append(data: string | Titanium.Blob | Titanium.Filesystem.File): boolean; /** * Copies the file identified by this file object to a new path. @@ -48753,6 +13306,7 @@ declare namespace Titanium { /** * Returns the creation timestamp for the file identified by this file object. + * @deprecated Use [createdAt](Titanium.Filesystem.File.createdAt) instead. */ createTimestamp(): number; @@ -48781,15 +13335,48 @@ declare namespace Titanium { */ extension(): string; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Returns a listing of the directory identified by this file object, or `null` * if this object doesn't identify a directory. */ getDirectoryListing(): string[]; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getExecutable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHidden(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNativePath(): string; + /** * Returns the path of the parent directory holding the file identified by this * file object, as a String (deprecated) **or** as a `File` object. + * @deprecated Use the [Titanium.Filesystem.File.parent](Titanium.Filesystem.File.parent) property to receive a `File` + * reference instead. If you wish to receive the path, use the `nativePath` + * property of that reference instead. + * */ getParent(): string | Titanium.Filesystem.File; @@ -48799,6 +13386,42 @@ declare namespace Titanium { */ getProtectionKey(): string; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getReadonly(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRemoteBackup(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSymbolicLink(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWritable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.Filesystem.File.writable](Titanium.Filesystem.File.writable) instead. + */ + getWriteable: never; + /** * Returns `true` if this file object represents a directory. */ @@ -48811,6 +13434,7 @@ declare namespace Titanium { /** * Returns the last modification time for this file. + * @deprecated Use [Titanium.Filesystem.File.modifiedAt](Titanium.Filesystem.File.modifiedAt) instead. */ modificationTimestamp(): number; @@ -48834,6 +13458,11 @@ declare namespace Titanium { */ read(): Titanium.Blob; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Renames the file identified by this file object. */ @@ -48844,11 +13473,23 @@ declare namespace Titanium { */ resolve(): string; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHidden(hidden: boolean): void; + /** * Sets the protection key as an attribute to the file identified by this file object. */ setProtectionKey(fileProtectionType: string): boolean; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRemoteBackup(remoteBackup: boolean): void; + /** * Returns the amount of free space available on the device where the file identified by this file object is stored. */ @@ -48857,136 +13498,57 @@ declare namespace Titanium { /** * Writes the specified data to the file identified by this file object. */ - write(data: string, append?: boolean): boolean; - - /** - * Writes the specified data to the file identified by this file object. - */ - write(data: Titanium.Filesystem.File, append?: boolean): boolean; - - /** - * Writes the specified data to the file identified by this file object. - */ - write(data: Titanium.Blob, append?: boolean): boolean; - - /** - * Gets the value of the property. - */ - getExecutable(): boolean; - - /** - * Gets the value of the property. - */ - getHidden(): boolean; - - /** - * Sets the value of the property. - */ - setHidden(hidden: boolean): void; - - /** - * Gets the value of the property. - */ - getName(): string; - - /** - * Gets the value of the property. - */ - getNativePath(): string; - - /** - * Gets the value of the property. - */ - getReadonly(): boolean; - - /** - * Gets the value of the property. - */ - getSize(): number; - - /** - * Gets the value of the property. - */ - getRemoteBackup(): boolean; - - /** - * Sets the value of the property. - */ - setRemoteBackup(remoteBackup: boolean): void; - - /** - * Gets the value of the property. - */ - getSymbolicLink(): boolean; - - /** - * Gets the value of the property. - */ - getWritable(): boolean; - - /** - * Gets the value of the property. - */ - getWriteable(): boolean; + write(data: string | Titanium.Filesystem.File | Titanium.Blob, append?: boolean): boolean; } /** * Wrapper around `Titanium.Filesystem.File` that implements the `Titanium.IOStream` interface */ - interface FileStream extends Titanium.Proxy { + class FileStream extends Titanium.IOStream { /** - * Reads data from this stream into a buffer. + * Adds the specified callback as an event listener for the named event. */ - read(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: ReadCallbackArgs) => any): number; - - /** - * Writes data from a buffer to this stream. - */ - write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; - - /** - * Indicates whether this stream is writable. - */ - isWritable(): boolean; - - /** - * Indicates whether this stream is readable. - */ - isReadable(): boolean; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * closes file stream, exception is thrown on error */ close(): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + } } - /** * The top level Geolocation module. The Geolocation module is used for accessing device location based information. */ namespace Geolocation { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - /** * Use with [accuracy](Titanium.Geolocation.accuracy) to request the best * accuracy available. */ const ACCURACY_BEST: number; + /** + * Use with [accuracy](Titanium.Geolocation.accuracy) to request highest possible + * accuracy and combine it with additional sensor data. + */ + const ACCURACY_BEST_FOR_NAVIGATION: number; + + /** + * Use with [accuracy](Titanium.Geolocation.accuracy) to request more + * accurate location updates with higher battery usage. + */ + const ACCURACY_HIGH: number; + /** * Use with [accuracy](Titanium.Geolocation.accuracy) to request location * updates accurate to the nearest 100 meters. @@ -48999,6 +13561,12 @@ declare namespace Titanium { */ const ACCURACY_KILOMETER: number; + /** + * Use with [accuracy](Titanium.Geolocation.accuracy) to request less + * accurate location updates with lower battery usage. + */ + const ACCURACY_LOW: number; + /** * Use with [accuracy](Titanium.Geolocation.accuracy) to request location * updates accurate to the nearest 10 meters. @@ -49012,26 +13580,37 @@ declare namespace Titanium { const ACCURACY_THREE_KILOMETERS: number; /** - * Use with [accuracy](Titanium.Geolocation.accuracy) to request more - * accurate location updates with higher battery usage. + * The location data is used for tracking location changes to the automobile specifically during vehicular navigation. */ - const ACCURACY_HIGH: number; + const ACTIVITYTYPE_AUTOMOTIVE_NAVIGATION: string; /** - * Use with [accuracy](Titanium.Geolocation.accuracy) to request highest possible - * accuracy and combine it with additional sensor data. + * The location data is used for tracking any pedestrian-related activity. */ - const ACCURACY_BEST_FOR_NAVIGATION: number; + const ACTIVITYTYPE_FITNESS: string; /** - * Use with [accuracy](Titanium.Geolocation.accuracy) to request less - * accurate location updates with lower battery usage. + * The location data is being used for an unknown activity. */ - const ACCURACY_LOW: number; + const ACTIVITYTYPE_OTHER: string; + + /** + * The location data is used for tracking movements of other types of vehicular + * navigation that are not automobile related. + */ + const ACTIVITYTYPE_OTHER_NAVIGATION: string; + + /** + * A [locationServicesAuthorization](Titanium.Geolocation.locationServicesAuthorization) value + * indicating that the application is authorized to start location services at any time. This authorization + * includes the use of all location services, including monitoring regions and significant location changes. + */ + const AUTHORIZATION_ALWAYS: number; /** * A [locationServicesAuthorization](Titanium.Geolocation.locationServicesAuthorization) value * indicating that the application is authorized to use location services. + * @deprecated Use [Titanium.Geolocation.AUTHORIZATION_ALWAYS](Titanium.Geolocation.AUTHORIZATION_ALWAYS) as advised by Apple. */ const AUTHORIZATION_AUTHORIZED: number; @@ -49055,13 +13634,6 @@ declare namespace Titanium { */ const AUTHORIZATION_UNKNOWN: number; - /** - * A [locationServicesAuthorization](Titanium.Geolocation.locationServicesAuthorization) value - * indicating that the application is authorized to start location services at any time. This authorization - * includes the use of all location services, including monitoring regions and significant location changes. - */ - const AUTHORIZATION_ALWAYS: number; - /** * A [locationServicesAuthorization](Titanium.Geolocation.locationServicesAuthorization) value * indicating that the application is authorized to start most location services only while running in the foreground. @@ -49103,344 +13675,10 @@ declare namespace Titanium { */ const ERROR_REGION_MONITORING_FAILURE: number; - /** - * The location data is being used for an unknown activity. - */ - const ACTIVITYTYPE_OTHER: string; - - /** - * The location data is used for tracking location changes to the automobile specifically during vehicular navigation. - */ - const ACTIVITYTYPE_AUTOMOTIVE_NAVIGATION: string; - - /** - * The location data is used for tracking any pedestrian-related activity. - */ - const ACTIVITYTYPE_FITNESS: string; - - /** - * The location data is used for tracking movements of other types of vehicular - * navigation that are not automobile related. - */ - const ACTIVITYTYPE_OTHER_NAVIGATION: string; - - /** - * Specifies the requested accuracy for location updates. - */ - let accuracy: number; - - /** - * The minimum change of position (in meters) before a 'location' event is fired. - */ - let distanceFilter: number; - - /** - * Requested frequency for location updates, in milliseconds. - */ - let frequency: number; - - /** - * Indicates whether the current device supports a compass. - */ - const hasCompass: boolean; - - /** - * Minimum heading change (in degrees) before a `heading` event is fired. - */ - let headingFilter: number; - - /** - * Returns an authorization constant indicating if the application has access to location services. - */ - let locationServicesAuthorization: number; - - /** - * Indicates if the user has enabled or disabled location services for the device (not the application). - */ - const locationServicesEnabled: boolean; - - /** - * Determines the preferred location provider. - */ - let preferredProvider: string; - - /** - * Determines whether the compass calibration UI is shown if needed. - */ - let showCalibration: boolean; - - /** - * Specifies that an indicator be shown when the app makes use of continuous - * background location updates. - */ - let showBackgroundLocationIndicator: boolean; - - /** - * Indicates if the location changes should be updated only when a significant change - * in location occurs. - */ - let trackSignificantLocationChange: boolean; - - /** - * Determines if the app can do background location updates. - */ - let allowsBackgroundLocationUpdates: boolean; - - /** - * The type of user activity to be associated with the location updates. - */ - let activityType: number; - - /** - * Indicates whether the location updates may be paused. - */ - let pauseLocationUpdateAutomatically: boolean; - - /** - * JSON representation of the last geolocation received. - */ - const lastGeolocation: string; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Resolves an address to a location. - */ - function forwardGeocoder(address: string, callback: (param0: ForwardGeocodeResponse) => any): void; - - /** - * Retrieves the current compass heading. - */ - function getCurrentHeading(callback: (param0: HeadingResponse) => any): void; - - /** - * Retrieves the last known location from the device. - */ - function getCurrentPosition(callback: (param0: LocationResults) => any): void; - - /** - * Returns `true` if the app has location access. - */ - function hasLocationPermissions(authorizationType: number): boolean; - - /** - * Requests for location access. - */ - function requestLocationPermissions(authorizationType: number, callback: (param0: LocationAuthorizationResponse) => any): void; - - /** - * Tries to resolve a location to an address. - */ - function reverseGeocoder(latitude: number, longitude: number, callback: (param0: ReverseGeocodeResponse) => any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getAccuracy(): number; - - /** - * Sets the value of the property. - */ - function setAccuracy(accuracy: number): void; - - /** - * Gets the value of the property. - */ - function getDistanceFilter(): number; - - /** - * Sets the value of the property. - */ - function setDistanceFilter(distanceFilter: number): void; - - /** - * Gets the value of the property. - */ - function getFrequency(): number; - - /** - * Sets the value of the property. - */ - function setFrequency(frequency: number): void; - - /** - * Gets the value of the property. - */ - function getHasCompass(): boolean; - - /** - * Gets the value of the property. - */ - function getHeadingFilter(): number; - - /** - * Sets the value of the property. - */ - function setHeadingFilter(headingFilter: number): void; - - /** - * Gets the value of the property. - */ - function getLocationServicesAuthorization(): number; - - /** - * Sets the value of the property. - */ - function setLocationServicesAuthorization(locationServicesAuthorization: number): void; - - /** - * Gets the value of the property. - */ - function getLocationServicesEnabled(): boolean; - - /** - * Gets the value of the property. - */ - function getPreferredProvider(): string; - - /** - * Sets the value of the property. - */ - function setPreferredProvider(preferredProvider: string): void; - - /** - * Gets the value of the property. - */ - function getShowCalibration(): boolean; - - /** - * Sets the value of the property. - */ - function setShowCalibration(showCalibration: boolean): void; - - /** - * Gets the value of the property. - */ - function getShowBackgroundLocationIndicator(): boolean; - - /** - * Sets the value of the property. - */ - function setShowBackgroundLocationIndicator(showBackgroundLocationIndicator: boolean): void; - - /** - * Gets the value of the property. - */ - function getTrackSignificantLocationChange(): boolean; - - /** - * Sets the value of the property. - */ - function setTrackSignificantLocationChange(trackSignificantLocationChange: boolean): void; - - /** - * Gets the value of the property. - */ - function getAllowsBackgroundLocationUpdates(): boolean; - - /** - * Sets the value of the property. - */ - function setAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates: boolean): void; - - /** - * Gets the value of the property. - */ - function getActivityType(): number; - - /** - * Sets the value of the property. - */ - function setActivityType(activityType: number): void; - - /** - * Gets the value of the property. - */ - function getPauseLocationUpdateAutomatically(): boolean; - - /** - * Sets the value of the property. - */ - function setPauseLocationUpdateAutomatically(pauseLocationUpdateAutomatically: boolean): void; - - /** - * Gets the value of the property. - */ - function getLastGeolocation(): string; - - /** * Module for Android-specific geolocation functionality. */ namespace Android { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Set to `true` to enable manual configuration of location updates through this module. - */ - let manualMode: boolean; - /** * Specifies the GPS location provider. */ @@ -49456,100 +13694,21 @@ declare namespace Titanium { */ const PROVIDER_PASSIVE: string; - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Adds and enables the specified location provider, possibly replacing an existing one. - */ - function addLocationProvider(provider: Titanium.Geolocation.Android.LocationProvider): void; - - /** - * Disables and removes the specified location provider. - */ - function removeLocationProvider(provider: Titanium.Geolocation.Android.LocationProvider): void; - - /** - * Adds and enables the specified location rule. - */ - function addLocationRule(rule: Titanium.Geolocation.Android.LocationRule): void; - - /** - * Disables and removes the specified location rule. - */ - function removeLocationRule(rule: Titanium.Geolocation.Android.LocationRule): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getManualMode(): boolean; - - /** - * Sets the value of the property. - */ - function setManualMode(manualMode: boolean): void; - - /** - * Creates and returns an instance of . - */ - function createLocationProvider(parameters?: any): Titanium.Geolocation.Android.LocationProvider; - - /** - * Creates and returns an instance of . - */ - function createLocationRule(parameters?: any): Titanium.Geolocation.Android.LocationRule; - /** * Represents a source of location information, such as GPS. */ - interface LocationProvider extends Titanium.Proxy { + class LocationProvider extends Titanium.Proxy { + /** + * Don't send a location update unless the location has changed at least `minUpdateDistance` + * meters since the previous update. + */ + minUpdateDistance: number; + + /** + * Limits the frequency of location updates to no more than one per `minUpdateTime` seconds. + */ + minUpdateTime: number; + /** * Type of location provider: [PROVIDER_GPS](Titanium.Geolocation.Android.PROVIDER_GPS), * [PROVIDER_NETWORK](Titanium.Geolocation.Android.PROVIDER_NETWORK), or @@ -49558,67 +13717,66 @@ declare namespace Titanium { name: string; /** - * Limits the frequency of location updates to no more than one per `minUpdateTime` seconds. + * Adds the specified callback as an event listener for the named event. */ - minUpdateTime: number; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Don't send a location update unless the location has changed at least `minUpdateDistance` - * meters since the previous update. + * Fires a synthesized event to any registered listeners. */ - minUpdateDistance: number; - - /** - * Gets the value of the property. - */ - getName(): string; - - /** - * Sets the value of the property. - */ - setName(name: string): void; - - /** - * Gets the value of the property. - */ - getMinUpdateTime(): number; - - /** - * Sets the value of the property. - */ - setMinUpdateTime(minUpdateTime: number): void; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getMinUpdateDistance(): number; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinUpdateTime(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getName(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setMinUpdateDistance(minUpdateDistance: number): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinUpdateTime(minUpdateTime: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setName(name: string): void; + } /** * A location rule to filter the results returned by location providers. */ - interface LocationRule extends Titanium.Proxy { - /** - * If specified, this rule only applies to updates generated - * by the specified provider. If `null`, this rule applies to all updates. - */ - name: string; - + class LocationRule extends Titanium.Proxy { /** * Minimum accuracy required for a location update. */ accuracy: number; - /** - * Controls the frequency of location updates. - */ - minAge: number; - /** * Controls the freshness of location updates. Do not forward an update * unless it is newer than `maxAge` milliseconds. @@ -49626,302 +13784,203 @@ declare namespace Titanium { maxAge: number; /** - * Gets the value of the property. + * Controls the frequency of location updates. */ - getName(): string; + minAge: number; /** - * Sets the value of the property. + * If specified, this rule only applies to updates generated + * by the specified provider. If `null`, this rule applies to all updates. */ - setName(name: string): void; + name: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getAccuracy(): number; - /** - * Sets the value of the property. - */ - setAccuracy(accuracy: number): void; - - /** - * Gets the value of the property. - */ - getMinAge(): number; - - /** - * Sets the value of the property. - */ - setMinAge(minAge: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getMaxAge(): number; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinAge(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getName(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccuracy(accuracy: number): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setMaxAge(maxAge: number): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinAge(minAge: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setName(name: string): void; + } } + /** + * Module for Android-specific geolocation functionality. + */ + class Android extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Set to `true` to enable manual configuration of location updates through this module. + */ + static manualMode: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds and enables the specified location provider, possibly replacing an existing one. + */ + static addLocationProvider(provider: Titanium.Geolocation.Android.LocationProvider): void; + + /** + * Adds and enables the specified location rule. + */ + static addLocationRule(rule: Titanium.Geolocation.Android.LocationRule): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates and returns an instance of . + */ + static createLocationProvider(parameters?: Dictionary): Titanium.Geolocation.Android.LocationProvider; + + /** + * Creates and returns an instance of . + */ + static createLocationRule(parameters?: Dictionary): Titanium.Geolocation.Android.LocationRule; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getManualMode(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Disables and removes the specified location provider. + */ + static removeLocationProvider(provider: Titanium.Geolocation.Android.LocationProvider): void; + + /** + * Disables and removes the specified location rule. + */ + static removeLocationRule(rule: Titanium.Geolocation.Android.LocationRule): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setManualMode(manualMode: boolean): void; + + } } - - /** - * The Gesture module is responsible for high-level device gestures such as orientation changes - * and shake gestures. - */ - namespace Gesture { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Indicates if the device is currently held in portrait form. - */ - const portrait: boolean; - - /** - * Indicates if the device is currently held in landscape form. - */ - const landscape: boolean; - - /** - * Orientation of the device. - */ - const orientation: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Returns whether or not the device is currently held in landscape form. - */ - function isLandscape(): boolean; - - /** - * Returns whether or not the device is currently held in portrait form. - */ - function isPortrait(): boolean; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getOrientation(): number; - - } - - /** - * The top level Locale module. - */ - namespace Locale { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Country of the current system locale, as an ISO 2-letter code. - */ - const currentCountry: string; - - /** - * Language of the current system locale, as an ISO 2-letter code. - */ - const currentLanguage: string; - - /** - * Current system locale, as a combination of ISO 2-letter language and country codes. - */ - const currentLocale: string; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Formats a telephone number according to the current system locale. - */ - function formatTelephoneNumber(number: string): string; - - /** - * Returns the ISO 3-letter currency code for the specified locale. - */ - function getCurrencyCode(locale: string): string; - - /** - * Returns the currency symbol for the specified currency code. - */ - function getCurrencySymbol(currencyCode: string): string; - - /** - * Sets the current language of the application. - */ - function setLanguage(language: string): void; - - /** - * Returns the currency symbol for the specified locale. - */ - function getLocaleCurrencySymbol(locale: string): string; - - /** - * Returns a string, localized according to the current system locale using the appropriate - * `/i18n/LANG/strings.xml` localization file. - */ - function getString(key: string, hint?: string): string; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getCurrentCountry(): string; - - /** - * Gets the value of the property. - */ - function getCurrentLanguage(): string; - - /** - * Gets the value of the property. - */ - function getCurrentLocale(): string; - - } - /** * The top-level Media module. */ namespace Media { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - /** * Audio file format 3GPP2. */ @@ -50004,38 +14063,45 @@ declare namespace Titanium { /** * Line-type constant for headphones. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_HEADPHONES: number; + const AUDIO_HEADPHONES: never; /** * Line-type constant for headphones and microphone. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_HEADPHONES_AND_MIC: number; + const AUDIO_HEADPHONES_AND_MIC: never; /** * Line-type constant for headset in/out. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_HEADSET_INOUT: number; + const AUDIO_HEADSET_INOUT: never; /** * Line-type constant for line-out. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_LINEOUT: number; + const AUDIO_LINEOUT: never; /** * Line-type constant for microphone. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_MICROPHONE: number; + const AUDIO_MICROPHONE: never; /** * Line-type constant indicated mute switch is on. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_MUTED: number; + const AUDIO_MUTED: never; /** * Line-type constant indicating receiver and microphone. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_RECEIVER_AND_MIC: number; + const AUDIO_RECEIVER_AND_MIC: never; /** * For long-duration sounds such as rain, car engine noise, and so on. @@ -50064,28 +14130,33 @@ declare namespace Titanium { /** * For long-duration sounds such as rain, car engine noise, and so on. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_CATEGORY` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_SESSION_MODE_AMBIENT: number; + const AUDIO_SESSION_MODE_AMBIENT: never; /** * Session mode for playing recorded music or other sounds that are central to the successful use of your application. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_CATEGORY` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_SESSION_MODE_PLAYBACK: number; + const AUDIO_SESSION_MODE_PLAYBACK: never; /** * Session mode for recording (input) and playback (output) of audio, such as for a VOIP (voice over IP) application. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_CATEGORY` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_SESSION_MODE_PLAY_AND_RECORD: number; + const AUDIO_SESSION_MODE_PLAY_AND_RECORD: never; /** * Session mode for recording audio; it silences playback audio. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_CATEGORY_*` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_SESSION_MODE_RECORD: number; + const AUDIO_SESSION_MODE_RECORD: never; /** * Session mode for long-duration sounds such as rain, car engine noise, and so on. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_CATEGORY` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_SESSION_MODE_SOLO_AMBIENT: number; + const AUDIO_SESSION_MODE_SOLO_AMBIENT: never; /** * Constant that specifies audio should output to the default audio route. See for more information. @@ -50098,35 +14169,30 @@ declare namespace Titanium { const AUDIO_SESSION_OVERRIDE_ROUTE_SPEAKER: number; /** - * Constant for line level input on a dock connector. This is an input port. + * Constant for output on a remote Air Play device. This is an output port. */ - const AUDIO_SESSION_PORT_LINEIN: string; - - /** - * Constant for built-in microphone on an iOS device. This is an input port. - */ - const AUDIO_SESSION_PORT_BUILTINMIC: string; - - /** - * Constant for microphone on a wired headset. This is an input port. - */ - const AUDIO_SESSION_PORT_HEADSETMIC: string; - - /** - * Constant for line level output on a dock connector. This is an output port. - */ - const AUDIO_SESSION_PORT_LINEOUT: string; - - /** - * Constant for headphone or headset output. This is an output port. - */ - const AUDIO_SESSION_PORT_HEADPHONES: string; + const AUDIO_SESSION_PORT_AIRPLAY: string; /** * Constant for output on a Bluetooth A2DP device. This is an output port. */ const AUDIO_SESSION_PORT_BLUETOOTHA2DP: string; + /** + * Constant for input or output on a Bluetooth Hands-Free Profile device. This can be both an input and output port. + */ + const AUDIO_SESSION_PORT_BLUETOOTHHFP: string; + + /** + * Constant for output on a Bluetooth Low Energy device. This is an output port. This is available on iOS7 and later. + */ + const AUDIO_SESSION_PORT_BLUETOOTHLE: string; + + /** + * Constant for built-in microphone on an iOS device. This is an input port. + */ + const AUDIO_SESSION_PORT_BUILTINMIC: string; + /** * Constant for the speaker you hold to your ear when on a phone call. This is an output port. */ @@ -50137,50 +14203,46 @@ declare namespace Titanium { */ const AUDIO_SESSION_PORT_BUILTINSPEAKER: string; + /** + * Constant for Input or output via Car Audio. This can be both an input and output port. This is available on iOS7 and later. + */ + const AUDIO_SESSION_PORT_CARAUDIO: string; + /** * Constant for output via High-Definition Multimedia Interface. This is an output port */ const AUDIO_SESSION_PORT_HDMI: string; /** - * Constant for output on a remote Air Play device. This is an output port. + * Constant for headphone or headset output. This is an output port. */ - const AUDIO_SESSION_PORT_AIRPLAY: string; + const AUDIO_SESSION_PORT_HEADPHONES: string; /** - * Constant for input or output on a Bluetooth Hands-Free Profile device. This can be both an input and output port. + * Constant for microphone on a wired headset. This is an input port. */ - const AUDIO_SESSION_PORT_BLUETOOTHHFP: string; + const AUDIO_SESSION_PORT_HEADSETMIC: string; + + /** + * Constant for line level input on a dock connector. This is an input port. + */ + const AUDIO_SESSION_PORT_LINEIN: string; + + /** + * Constant for line level output on a dock connector. This is an output port. + */ + const AUDIO_SESSION_PORT_LINEOUT: string; /** * Constant for input or output on a Universal Serial Bus device. This can be both an input and output port. */ const AUDIO_SESSION_PORT_USBAUDIO: string; - /** - * Constant for output on a Bluetooth Low Energy device. This is an output port. This is available on iOS7 and later. - */ - const AUDIO_SESSION_PORT_BLUETOOTHLE: string; - - /** - * Constant for Input or output via Car Audio. This can be both an input and output port. This is available on iOS7 and later. - */ - const AUDIO_SESSION_PORT_CARAUDIO: string; - /** * Line-type constant for speaker output. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). */ - const AUDIO_SPEAKER: number; - - /** - * Line-type constant indicating that audio is unavailable. - */ - const AUDIO_UNAVAILABLE: number; - - /** - * Line-type constant indicating that line-type is unknown or not determined. - */ - const AUDIO_UNKNOWN: number; + const AUDIO_SPEAKER: never; /** * Audio data is being buffered from the network. @@ -50227,6 +14289,44 @@ declare namespace Titanium { */ const AUDIO_STATE_WAITING_FOR_QUEUE: number; + /** + * Line-type constant indicating that audio is unavailable. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). + */ + const AUDIO_UNAVAILABLE: never; + + /** + * Line-type constant indicating that line-type is unknown or not determined. + * @deprecated Deprecated in favor of the `AUDIO_SESSION_PORT` constants defined in [Titanium.Media](Titanium.Media). + */ + const AUDIO_UNKNOWN: never; + + /** + * Constant specifying that app is authorized to use camera. This is available on iOS7 and later. + */ + const CAMERA_AUTHORIZATION_AUTHORIZED: number; + + /** + * Constant specifying that app is denied usage of camera. This is available on iOS7 and later. + */ + const CAMERA_AUTHORIZATION_DENIED: number; + + /** + * Constant specifying that app is not yet authorized to use camera. This is available on iOS7 and later. + * @deprecated Use [Titanium.Media.CAMERA_AUTHORIZATION_UNKNOWN](Titanium.Media.CAMERA_AUTHORIZATION_UNKNOWN) instead. + */ + const CAMERA_AUTHORIZATION_NOT_DETERMINED: never; + + /** + * Constant specifying that app is restricted from using camera. This is available on iOS7 and later. + */ + const CAMERA_AUTHORIZATION_RESTRICTED: number; + + /** + * Constant specifying that app is not yet authorized to use camera. This is available on iOS7 and later. + */ + const CAMERA_AUTHORIZATION_UNKNOWN: number; + /** * Constant specifying to have the device determine to use the flash or not. */ @@ -50252,51 +14352,66 @@ declare namespace Titanium { */ const CAMERA_REAR: number; - /** - * Constant specifying that app is authorized to use camera. This is available on iOS7 and later. - */ - const CAMERA_AUTHORIZATION_AUTHORIZED: number; - - /** - * Constant specifying that app is denied usage of camera. This is available on iOS7 and later. - */ - const CAMERA_AUTHORIZATION_DENIED: number; - - /** - * Constant specifying that app is restricted from using camera. This is available on iOS7 and later. - */ - const CAMERA_AUTHORIZATION_RESTRICTED: number; - - /** - * Constant specifying that app is not yet authorized to use camera. This is available on iOS7 and later. - */ - const CAMERA_AUTHORIZATION_NOT_DETERMINED: number; - - /** - * Constant specifying that app is not yet authorized to use camera. This is available on iOS7 and later. - */ - const CAMERA_AUTHORIZATION_UNKNOWN: number; - /** * Constant for media device busy error. */ const DEVICE_BUSY: number; - /** - * Media type constant for photo media. - */ - const MEDIA_TYPE_PHOTO: string; - /** * Media type constant for live photo media. */ const MEDIA_TYPE_LIVEPHOTO: string; + /** + * Media type constant for photo media. + */ + const MEDIA_TYPE_PHOTO: string; + /** * Media type constant for video media. */ const MEDIA_TYPE_VIDEO: string; + /** + * Constant for grouping query results by album. + */ + const MUSIC_MEDIA_GROUP_ALBUM: number; + + /** + * Constant for grouping query results by album and artist. + */ + const MUSIC_MEDIA_GROUP_ALBUM_ARTIST: number; + + /** + * Constant for grouping query results by artist. + */ + const MUSIC_MEDIA_GROUP_ARTIST: number; + + /** + * Constant for grouping query results by composer. + */ + const MUSIC_MEDIA_GROUP_COMPOSER: number; + + /** + * Constant for grouping query results by genre. + */ + const MUSIC_MEDIA_GROUP_GENRE: number; + + /** + * Constant for grouping query results by playlist. + */ + const MUSIC_MEDIA_GROUP_PLAYLIST: number; + + /** + * Constant for grouping query results by podcast title. + */ + const MUSIC_MEDIA_GROUP_PODCAST_TITLE: number; + + /** + * Constant for grouping query results by title. + */ + const MUSIC_MEDIA_GROUP_TITLE: number; + /** * Music library media containing any type of content. */ @@ -50322,46 +14437,6 @@ declare namespace Titanium { */ const MUSIC_MEDIA_TYPE_PODCAST: number; - /** - * Constant for grouping query results by title. - */ - const MUSIC_MEDIA_GROUP_TITLE: number; - - /** - * Constant for grouping query results by album. - */ - const MUSIC_MEDIA_GROUP_ALBUM: number; - - /** - * Constant for grouping query results by artist. - */ - const MUSIC_MEDIA_GROUP_ARTIST: number; - - /** - * Constant for grouping query results by album and artist. - */ - const MUSIC_MEDIA_GROUP_ALBUM_ARTIST: number; - - /** - * Constant for grouping query results by composer. - */ - const MUSIC_MEDIA_GROUP_COMPOSER: number; - - /** - * Constant for grouping query results by genre. - */ - const MUSIC_MEDIA_GROUP_GENRE: number; - - /** - * Constant for grouping query results by playlist. - */ - const MUSIC_MEDIA_GROUP_PLAYLIST: number; - - /** - * Constant for grouping query results by podcast title. - */ - const MUSIC_MEDIA_GROUP_PODCAST_TITLE: number; - /** * Constant for "Repeat All" setting. */ @@ -50457,21 +14532,6 @@ declare namespace Titanium { */ const QUALITY_MEDIUM: number; - /** - * Media type constant for medium-quality video recording. - */ - const QUALITY_640x480: number; - - /** - * Media type constant for medium-quality video recording. - */ - const QUALITY_IFRAME_1280x720: number; - - /** - * Media type constant for medium-quality video recording. - */ - const QUALITY_IFRAME_960x540: number; - /** * Constant for unknown media error. */ @@ -50479,18 +14539,21 @@ declare namespace Titanium { /** * Constant for default video controls. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_CONTROL_DEFAULT: number; + const VIDEO_CONTROL_DEFAULT: never; /** * Constant for video controls for an embedded view. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_CONTROL_EMBEDDED: number; + const VIDEO_CONTROL_EMBEDDED: never; /** * Constant for fullscreen video controls. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_CONTROL_FULLSCREEN: number; + const VIDEO_CONTROL_FULLSCREEN: never; /** * Constant for video controls hidden. @@ -50504,8 +14567,9 @@ declare namespace Titanium { /** * Constant for video controls volume only. + * @deprecated Use [Titanium.Media.VIDEO_CONTROL_EMBEDDED](Titanium.Media.VIDEO_CONTROL_EMBEDDED) instead. */ - const VIDEO_CONTROL_VOLUME_ONLY: number; + const VIDEO_CONTROL_VOLUME_ONLY: never; /** * Video playback ended normally. @@ -50534,13 +14598,15 @@ declare namespace Titanium { /** * Playback will be automatically started in this state when `autoplay` is true. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_LOAD_STATE_PLAYTHROUGH_OK: number; + const VIDEO_LOAD_STATE_PLAYTHROUGH_OK: never; /** * Playback will be automatically paused in this state, if started. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_LOAD_STATE_STALLED: number; + const VIDEO_LOAD_STATE_STALLED: never; /** * Current load state is not known. @@ -50548,19 +14614,22 @@ declare namespace Titanium { const VIDEO_LOAD_STATE_UNKNOWN: number; /** - * A audio type of media in the movie returned by `mediaTypes` property. + * A audio type of media in the movie returned by [Titanium.Media.VideoPlayer](Titanium.Media.VideoPlayer) `mediaTypes` property. + * @deprecated This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_MEDIA_TYPE_AUDIO: number; + const VIDEO_MEDIA_TYPE_AUDIO: never; /** - * An unknown type of media in the movie returned by `mediaTypes` property. + * An unknown type of media in the movie returned by [Titanium.Media.VideoPlayer](Titanium.Media.VideoPlayer) `mediaTypes` property. + * @deprecated This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_MEDIA_TYPE_NONE: number; + const VIDEO_MEDIA_TYPE_NONE: never; /** - * A video type of media in the movie returned by `mediaTypes` property. + * A video type of media in the movie returned by [Titanium.Media.VideoPlayer](Titanium.Media.VideoPlayer) `mediaTypes` property. + * @deprecated This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_MEDIA_TYPE_VIDEO: number; + const VIDEO_MEDIA_TYPE_VIDEO: never; /** * Video playback has been interrupted. @@ -50579,13 +14648,15 @@ declare namespace Titanium { /** * Video playback is rewinding. + * @deprecated This constant has been removed on iOS by using the official Apple AVPlayer that does not expose this functionality so far. */ - const VIDEO_PLAYBACK_STATE_SEEKING_BACKWARD: number; + const VIDEO_PLAYBACK_STATE_SEEKING_BACKWARD: never; /** * Video playback is seeking forward. + * @deprecated This constant has been removed on iOS by using the official Apple AVPlayer that does not expose this functionality so far. */ - const VIDEO_PLAYBACK_STATE_SEEKING_FORWARD: number; + const VIDEO_PLAYBACK_STATE_SEEKING_FORWARD: never; /** * Video playback is stopped. @@ -50604,23 +14675,27 @@ declare namespace Titanium { /** * Scale video to fill the screen, clipping edges if necessary. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_SCALING_ASPECT_FILL: number; + const VIDEO_SCALING_ASPECT_FILL: never; /** * Scale video to fit the screen, letterboxing if necessary. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_SCALING_ASPECT_FIT: number; + const VIDEO_SCALING_ASPECT_FIT: never; /** * Video is scaled until both dimensions fit the screen exactly, stretching if necessary. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_SCALING_MODE_FILL: number; + const VIDEO_SCALING_MODE_FILL: never; /** * Video scaling is disabled. + * @deprecated This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_SCALING_NONE: number; + const VIDEO_SCALING_NONE: never; /** * Specifies that the video should be stretched to fill the bounds of layer. @@ -50639,18 +14714,26 @@ declare namespace Titanium { /** * Video source type is a file. + * @deprecated This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_SOURCE_TYPE_FILE: number; + const VIDEO_SOURCE_TYPE_FILE: never; /** * Video source type is a remote stream. + * @deprecated This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_SOURCE_TYPE_STREAMING: number; + const VIDEO_SOURCE_TYPE_STREAMING: never; /** * Video source type is unknown. + * @deprecated This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - const VIDEO_SOURCE_TYPE_UNKNOWN: number; + const VIDEO_SOURCE_TYPE_UNKNOWN: never; + + /** + * Use the closest sync (or key) frame at given the time. + */ + const VIDEO_TIME_OPTION_CLOSEST_SYNC: number; /** * Use the exact time. @@ -50662,11 +14745,6 @@ declare namespace Titanium { */ const VIDEO_TIME_OPTION_NEAREST_KEYFRAME: number; - /** - * Use the closest sync (or key) frame at given the time. - */ - const VIDEO_TIME_OPTION_CLOSEST_SYNC: number; - /** * Use the sync (or key) frame located right after or at given the time. */ @@ -50678,540 +14756,207 @@ declare namespace Titanium { const VIDEO_TIME_OPTION_PREVIOUS_SYNC: number; /** - * An instance of representing the app-specific music player. - */ - const appMusicPlayer: Titanium.Media.MusicPlayer; - - /** - * Returns the line type constant for the current line type. - */ - const audioLineType: number; - - /** - * Returns `true` if the device is playing audio. - */ - const audioPlaying: boolean; - - /** - * A constant for the audio session category to be used. - */ - let audioSessionCategory: number; - - /** - * A constant for the audio session mode to be used. - */ - let audioSessionMode: number; - - /** - * Array indicating which cameras are available, `CAMERA_FRONT`, `CAMERA_REAR` or both. - */ - const availableCameras: number[]; - - /** - * Array of media type constants supported for the camera. - */ - let availableCameraMediaTypes: any[]; - - /** - * Array of media type constants supported for saving to the device's camera roll or saved images album. - */ - let availablePhotoGalleryMediaTypes: any[]; - - /** - * Array of media type constants supported for the photo library. - */ - let availablePhotoMediaTypes: any[]; - - /** - * Current average microphone level in dB or -1 if microphone monitoring is disabled. - */ - let averageMicrophonePower: number; - - /** - * Determines how the flash is fired when using the device's camera. - */ - let cameraFlashMode: number; - - /** - * `true` if the device has a recording input device available. - */ - const canRecord: boolean; - - /** - * Returns a description of the current route, consisting of zero or more input ports and zero or more output ports. - */ - const currentRoute: RouteDescription; - - /** - * `true` if the device has camera support. - */ - const isCameraSupported: boolean; - - /** - * Returns the authorization status for the camera. - */ - const cameraAuthorizationStatus: number; - - /** - * Returns the authorization status for the camera. - */ - const cameraAuthorization: number; - - /** - * Current microphone level peak power in dB or -1 if microphone monitoring is disabled. - */ - const peakMicrophonePower: number; - - /** - * An instance of representing the system-wide music player. - */ - const systemMusicPlayer: Titanium.Media.MusicPlayer; - - /** - * Current volume of the playback device. - */ - const volume: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Plays a device beep notification. - */ - function beep(): void; - - /** - * Hides the device camera UI. - */ - function hideCamera(): void; - - /** - * Hides the music library. - */ - function hideMusicLibrary(): void; - - /** - * Returns `true` if the source supports the specified media type. - */ - function isMediaTypeSupported(source: string, type: string): boolean; - - /** - * Shows the music library and allows the user to select one or more tracks. - */ - function openMusicLibrary(options: MusicLibraryOptionsType): void; - - /** - * Opens the photo gallery image picker. - */ - function openPhotoGallery(options: PhotoGalleryOptionsType): void; - - /** - * Displays the given image. - */ - function previewImage(options: any): void; - - /** - * Saves media to the device's photo gallery / camera roll. - */ - function saveToPhotoGallery(media: Titanium.Blob, callbacks: any): void; - - /** - * Saves media to the device's photo gallery / camera roll. - */ - function saveToPhotoGallery(media: Titanium.Filesystem.File, callbacks: any): void; - - /** - * Overrides the default audio route when using the session mode. - */ - function setOverrideAudioRoute(route: number): void; - - /** - * Shows the camera. - */ - function showCamera(options: CameraOptionsType): void; + * Android-specific media-related functionality. + */ + class Android extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Scans newly created or downloaded media files to make them available to other + * Android media providers, such as the Gallery. + */ + static scanMediaFiles(paths: ReadonlyArray, mimeTypes: ReadonlyArray, callback: (param0: MediaScannerResponse) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Set the system homescreen wallpaper. + */ + static setSystemWallpaper(image: Titanium.Blob, scale: boolean): void; + + } + /** + * Base event for class Titanium.Media.AudioPlayer + */ + interface AudioPlayerBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Media.AudioPlayer; + + } + /** + * Fired when the state of the playback changes. + */ + interface AudioPlayer_change_Event extends AudioPlayerBaseEvent { + /** + * Text description of the state of playback. + */ + description: number; + + /** + * Current state of playback. + */ + state: number; + + } + /** + * Fired when the audio has finished playing. + */ + interface AudioPlayer_complete_Event extends AudioPlayerBaseEvent { + /** + * Error code. + * Error code will be 0 if `success` is `true`, nonzero otherwise. If the error + * was generated by the operating system, that system's error value is used. + * Otherwise, this value will be -1. + */ + code: number; + + /** + * Error message, if any returned. Will be undefined if `success` is `true`. + */ + error: string; - /** - * Returns `true` if the app has music library access. - */ - function hasMusicLibraryPermissions(): boolean; + /** + * Indicates if the sound was played successfully. + * Returns `true` if request succeeded, `false` otherwise. + */ + success: boolean; + } /** - * Request permissions for the native music-library. + * Fired when the timed metadata was encountered most recently within the media as it plays. */ - function requestMusicLibraryPermissions(callback: (param0: RequestMusicLibraryAccessResult) => any): void; + interface AudioPlayer_metadata_Event extends AudioPlayerBaseEvent { + /** + * An array of metadata items containing relevant information about the current media item. + */ + items: TiMetadataItemType[]; + } /** - * Searches the music library for items matching the specified search predicates. + * Fired when there's an error. */ - function queryMusicLibrary(query: MediaQueryType): Titanium.Media.Item[]; + interface AudioPlayer_error_Event extends AudioPlayerBaseEvent { + /** + * Error code. Different between android and iOS. + */ + code: number; - /** - * Starts monitoring the microphone sound level. - */ - function startMicrophoneMonitor(): void; + /** + * Error message. + */ + error: string; + } /** - * Stops monitoring the microphone sound level. + * Fired once per second with the current progress during playback. */ - function stopMicrophoneMonitor(): void; + interface AudioPlayer_progress_Event extends AudioPlayerBaseEvent { + /** + * Current progress, in milliseconds. + */ + progress: number; + } /** - * Uses the device camera to capture a photo. + * Fired once the [seekToTime](Titanium.Media.AudioPlayer.seek) method completes. */ - function takePicture(): void; + interface AudioPlayer_seek_Event extends AudioPlayerBaseEvent { + /** + * The event for any prior seek request that is still in process will be invoked + * immediately with the `finished` parameter set to `false`. + * If the new request completes without being interrupted by another seek + * request or by any other operation this event will be invoked with + * the `finished` parameter set to `true`. + */ + finished: boolean; - /** - * Starts video capture using the camera specified. - */ - function startVideoCapture(): void; + } + interface AudioPlayerEventMap extends ProxyEventMap { + change: AudioPlayer_change_Event; - /** - * Stops video capture using the camera specified. - */ - function stopVideoCapture(): void; + complete: AudioPlayer_complete_Event; - /** - * Switches between front and rear-facing cameras. Make sure to set one of the below constants to determine - * the camera you want to switch to. - */ - function switchCamera(camera: number): void; - - /** - * Returns `true` if the app has camera access. - */ - function hasCameraPermissions(): boolean; + error: AudioPlayer_error_Event; - /** - * Requests for camera access. - */ - function requestCameraPermissions(callback: (param0: RequestCameraAccessResult) => any): void; + metadata: AudioPlayer_metadata_Event; - /** - * Returns `true` if the app has photo gallery permissions. - */ - function hasPhotoGalleryPermissions(): boolean; - - /** - * Requests for photo gallery permissions. - */ - function requestPhotoGalleryPermissions(callback: (param0: RequestPhotoGalleryAccessResult) => any): void; - - /** - * Requests for camera access. - */ - function requestCameraAccess(callback: (param0: RequestCameraAccessResult) => any): void; - - /** - * Takes a screen shot of the visible UI on the device. - */ - function takeScreenshot(callback: (param0: ScreenshotResult) => any): void; - - /** - * Makes the device vibrate. - */ - function vibrate(pattern?: ReadonlyArray): void; - - /** - * Request the user's permission for audio recording. - */ - function requestAuthorization(callback: (param0: MediaAuthorizationResponse) => any): void; + progress: AudioPlayer_progress_Event; - /** - * Returns `true` if the app has audio permissions. - */ - function hasAudioPermissions(): boolean; - - /** - * Returns `true` if the app has audio permissions. - */ - function hasAudioRecorderPermissions(): boolean; - - /** - * Request the user's permission for audio recording. - */ - function requestAudioPermissions(callback: (param0: MediaAuthorizationResponse) => any): void; - - /** - * Request the user's permission for audio recording. - */ - function requestAudioRecorderPermissions(callback: (param0: MediaAuthorizationResponse) => any): void; - - /** - * Creates and returns an instance of . - */ - function createAudioPlayer(parameters?: any): Titanium.Media.AudioPlayer; - - /** - * Creates and returns an instance of . - */ - function createAudioRecorder(parameters?: any): Titanium.Media.AudioRecorder; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getQUALITY_640x480(): number; - - /** - * Gets the value of the property. - */ - function getQUALITY_IFRAME_1280x720(): number; - - /** - * Gets the value of the property. - */ - function getQUALITY_IFRAME_960x540(): number; - - /** - * Gets the value of the property. - */ - function getAppMusicPlayer(): Titanium.Media.MusicPlayer; - - /** - * Gets the value of the property. - */ - function getAudioLineType(): number; - - /** - * Gets the value of the property. - */ - function getAudioPlaying(): boolean; - - /** - * Gets the value of the property. - */ - function getAudioSessionCategory(): number; - - /** - * Sets the value of the property. - */ - function setAudioSessionCategory(audioSessionCategory: number): void; - - /** - * Gets the value of the property. - */ - function getAudioSessionMode(): number; - - /** - * Sets the value of the property. - */ - function setAudioSessionMode(audioSessionMode: number): void; - - /** - * Gets the value of the property. - */ - function getAvailableCameras(): number[]; - - /** - * Gets the value of the property. - */ - function getAvailableCameraMediaTypes(): any[]; - - /** - * Sets the value of the property. - */ - function setAvailableCameraMediaTypes(availableCameraMediaTypes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - function getAvailablePhotoGalleryMediaTypes(): any[]; - - /** - * Sets the value of the property. - */ - function setAvailablePhotoGalleryMediaTypes(availablePhotoGalleryMediaTypes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - function getAvailablePhotoMediaTypes(): any[]; - - /** - * Sets the value of the property. - */ - function setAvailablePhotoMediaTypes(availablePhotoMediaTypes: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - function getAverageMicrophonePower(): number; - - /** - * Sets the value of the property. - */ - function setAverageMicrophonePower(averageMicrophonePower: number): void; - - /** - * Gets the value of the property. - */ - function getCameraFlashMode(): number; - - /** - * Sets the value of the property. - */ - function setCameraFlashMode(cameraFlashMode: number): void; - - /** - * Gets the value of the property. - */ - function getCanRecord(): boolean; - - /** - * Gets the value of the property. - */ - function getCurrentRoute(): RouteDescription; - - /** - * Gets the value of the property. - */ - function getIsCameraSupported(): boolean; - - /** - * Gets the value of the property. - */ - function getCameraAuthorizationStatus(): number; - - /** - * Gets the value of the property. - */ - function getCameraAuthorization(): number; - - /** - * Gets the value of the property. - */ - function getPeakMicrophonePower(): number; - - /** - * Gets the value of the property. - */ - function getSystemMusicPlayer(): Titanium.Media.MusicPlayer; - - /** - * Gets the value of the property. - */ - function getVolume(): number; - - /** - * Creates and returns an instance of . - */ - function createSound(parameters?: any): Titanium.Media.Sound; - - /** - * Creates and returns an instance of . - */ - function createSystemAlert(parameters?: any): Titanium.Media.SystemAlert; - - /** - * Creates and returns an instance of . - */ - function createVideoPlayer(parameters?: any): Titanium.Media.VideoPlayer; + seek: AudioPlayer_seek_Event; + } /** * An audio player object used for streaming audio to the device, and low-level control of the audio playback. */ - interface AudioPlayer extends Titanium.Proxy { - /** - * Audio data is being buffered from the network. - */ - readonly STATE_BUFFERING: number; - - /** - * Audio playback is being initialized. - */ - readonly STATE_INITIALIZED: number; - - /** - * Playback is paused. - */ - readonly STATE_PAUSED: number; - - /** - * Audio playback is active. - */ - readonly STATE_PLAYING: number; - - /** - * Audio playback is starting. - */ - readonly STATE_STARTING: number; - - /** - * Audio playback is stopped. - */ - readonly STATE_STOPPED: number; - - /** - * Audio playback is stopping. - */ - readonly STATE_STOPPING: number; - - /** - * Player is waiting for audio data from the network. - */ - readonly STATE_WAITING_FOR_DATA: number; - - /** - * Player is waiting for audio data to fill the queue. - */ - readonly STATE_WAITING_FOR_QUEUE: number; - + class AudioPlayer extends Titanium.Proxy { /** * Used to identify the volume of audio streams for alarms. */ readonly AUDIO_TYPE_ALARM: number; - /** - * Used to identify the volume of audio streams for DTMF tones or beeps. - */ - readonly AUDIO_TYPE_SIGNALLING: number; - /** * Used to identify the volume of audio streams for media playback. */ @@ -51227,17 +14972,81 @@ declare namespace Titanium { */ readonly AUDIO_TYPE_RING: number; + /** + * Used to identify the volume of audio streams for DTMF tones or beeps. + */ + readonly AUDIO_TYPE_SIGNALLING: number; + /** * Used to identify the volume of audio streams for voice calls. */ readonly AUDIO_TYPE_VOICE: number; + /** + * Audio data is being buffered from the network. + * @deprecated Use [Titanium.Media.AUDIO_STATE_BUFFERING](Titanium.Media.AUDIO_STATE_BUFFERING) instead. + */ + readonly STATE_BUFFERING: number; + + /** + * Audio playback is being initialized. + * @deprecated Use [Titanium.Media.AUDIO_STATE_INITIALIZED](Titanium.Media.AUDIO_STATE_INITIALIZED) instead. + */ + readonly STATE_INITIALIZED: number; + + /** + * Playback is paused. + * @deprecated Use [Titanium.Media.AUDIO_STATE_PAUSED](Titanium.Media.AUDIO_STATE_PAUSED) instead. + */ + readonly STATE_PAUSED: number; + + /** + * Audio playback is active. + * @deprecated Use [Titanium.Media.AUDIO_STATE_PLAYING](Titanium.Media.AUDIO_STATE_PLAYING) instead. + */ + readonly STATE_PLAYING: number; + + /** + * Audio playback is starting. + * @deprecated Use [Titanium.Media.AUDIO_STATE_STARTING](Titanium.Media.AUDIO_STATE_STARTING) instead. + */ + readonly STATE_STARTING: number; + + /** + * Audio playback is stopped. + * @deprecated Use [Titanium.Media.AUDIO_STATE_STOPPED](Titanium.Media.AUDIO_STATE_STOPPED) instead. + */ + readonly STATE_STOPPED: number; + + /** + * Audio playback is stopping. + * @deprecated Use [Titanium.Media.AUDIO_STATE_STOPPING](Titanium.Media.AUDIO_STATE_STOPPING) instead. + */ + readonly STATE_STOPPING: number; + + /** + * Player is waiting for audio data from the network. + * @deprecated Use [Titanium.Media.AUDIO_STATE_WAITING_FOR_DATA](Titanium.Media.AUDIO_STATE_WAITING_FOR_DATA) instead. + */ + readonly STATE_WAITING_FOR_DATA: number; + + /** + * Player is waiting for audio data to fill the queue. + * @deprecated Use [Titanium.Media.AUDIO_STATE_WAITING_FOR_QUEUE](Titanium.Media.AUDIO_STATE_WAITING_FOR_QUEUE) instead. + */ + readonly STATE_WAITING_FOR_QUEUE: number; + /** * Boolean to indicate if audio should continue playing even if the associated * Android [Activity](Titanium.Android.Activity) is paused. */ allowBackground: boolean; + /** + * Indicates whether the player allows switching to "external playback" mode. + */ + allowsExternalPlayback: boolean; + /** * Focuses on the current audio player and stops other audio playing. */ @@ -51253,11 +15062,21 @@ declare namespace Titanium { */ bitRate: number; + /** + * Size of the buffer used for streaming, in milliseconds. + */ + bufferSize: number; + /** * Estimated duration in milliseconds of the file being played. */ readonly duration: number; + /** + * Indicates whether the player is currently playing video in "external playback" mode. + */ + readonly externalPlaybackActive: boolean; + /** * Boolean indicating if the player is idle. */ @@ -51268,23 +15087,6 @@ declare namespace Titanium { */ muted: boolean; - /** - * Indicates whether the player is currently playing video in "external playback" mode. - */ - readonly externalPlaybackActive: boolean; - - /** - * Indicates whether the player allows switching to "external playback" mode. - */ - allowsExternalPlayback: boolean; - - /** - * Indicates the desired rate of playback; 0.0 means "paused", 1.0 indicates a - * desire to play at the natural rate of the current item. In addition, 2.0 - * would mean that the audio plays twice as fast. - */ - rate: number; - /** * Boolean indicating if audio playback is paused. */ @@ -51300,11 +15102,23 @@ declare namespace Titanium { */ readonly progress: number; + /** + * Indicates the desired rate of playback; 0.0 means "paused", 1.0 indicates a + * desire to play at the natural rate of the current item. In addition, 2.0 + * would mean that the audio plays twice as fast. + */ + rate: number; + /** * Current state of playback, specified using one of the `STATE` constants defined on this object. */ readonly state: number; + /** + * Current playback position of the audio. + */ + time: number; + /** * URL for the audio stream. */ @@ -51321,30 +15135,147 @@ declare namespace Titanium { readonly waiting: boolean; /** - * Size of the buffer used for streaming, in milliseconds. + * Adds the specified callback as an event listener for the named event. */ - bufferSize: number; + addEventListener(name: K, callback: (this: Titanium.Media.AudioPlayer, event: AudioPlayerEventMap[K]) => void): void; /** - * Current playback position of the audio. + * Adds the specified callback as an event listener for the named event. */ - time: number; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: AudioPlayerEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowBackground(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsExternalPlayback(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAudioFocus(): boolean; + + /** + * Returns the audio session id. + */ + getAudioSessionId(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAudioType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBitRate(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBufferSize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getExternalPlaybackActive(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIdle(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMuted(): boolean; /** * Returns the value of the [paused](Titanium.Media.AudioPlayer.paused) property. */ getPaused(): boolean; - /** - * Returns the value of the [paused](Titanium.Media.AudioPlayer.paused) property. - */ - isPaused(): boolean; - /** * Returns the value of the [playing](Titanium.Media.AudioPlayer.playing) property. */ getPlaying(): boolean; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getProgress(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRate(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getState(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTime(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVolume(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWaiting(): boolean; + + /** + * Returns the value of the [paused](Titanium.Media.AudioPlayer.paused) property. + */ + isPaused(): boolean; + /** * Returns the value of the [playing](Titanium.Media.AudioPlayer.playing) property. */ @@ -51357,13 +15288,29 @@ declare namespace Titanium { /** * Starts or resumes audio playback. + * @deprecated Use the cross-platform API [Titanium.Media.AudioPlayer.start](Titanium.Media.AudioPlayer.start) instead. */ play(): void; /** - * Sets the value of the [paused](Titanium.Media.AudioPlayer.paused) property. + * Stops buffering audio data and releases audio resources. */ - setPaused(paused: boolean): void; + release(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Media.AudioPlayer, event: AudioPlayerEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Restarts (stops and stars) audio playback. + */ + restart(): void; /** * Moves the playback cursor and invokes the specified block when the seek @@ -51372,25 +15319,82 @@ declare namespace Titanium { seekToTime(time: number): void; /** - * Stops buffering audio data and releases audio resources. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - release(): void; + setAllowBackground(allowBackground: boolean): void; /** - * Returns the audio session id. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - getAudioSessionId(): number; + setAllowsExternalPlayback(allowsExternalPlayback: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioFocus(audioFocus: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioType(audioType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBitRate(bitRate: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBufferSize(bufferSize: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMuted(muted: boolean): void; + + /** + * Sets the value of the [paused](Titanium.Media.AudioPlayer.paused) property. + * @deprecated Use the cross-platform API [Titanium.Media.AudioPlayer.pause](Titanium.Media.AudioPlayer.pause) instead. + */ + setPaused(paused: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRate(rate: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTime(time: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUrl(url: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVolume(volume: number): void; /** * Starts or resumes audio playback. */ start(): void; - /** - * Restarts (stops and stars) audio playback. - */ - restart(): void; - /** * Converts a [state](Titanium.Media.AudioPlayer.state) value into a text description * suitable for display. @@ -51402,151 +15406,11 @@ declare namespace Titanium { */ stop(): void; - /** - * Gets the value of the property. - */ - getAllowBackground(): boolean; - - /** - * Sets the value of the property. - */ - setAllowBackground(allowBackground: boolean): void; - - /** - * Gets the value of the property. - */ - getAudioFocus(): boolean; - - /** - * Sets the value of the property. - */ - setAudioFocus(audioFocus: boolean): void; - - /** - * Gets the value of the property. - */ - getAudioType(): number; - - /** - * Sets the value of the property. - */ - setAudioType(audioType: number): void; - - /** - * Gets the value of the property. - */ - getBitRate(): number; - - /** - * Sets the value of the property. - */ - setBitRate(bitRate: number): void; - - /** - * Gets the value of the property. - */ - getDuration(): number; - - /** - * Gets the value of the property. - */ - getIdle(): boolean; - - /** - * Gets the value of the property. - */ - getMuted(): boolean; - - /** - * Sets the value of the property. - */ - setMuted(muted: boolean): void; - - /** - * Gets the value of the property. - */ - getExternalPlaybackActive(): boolean; - - /** - * Gets the value of the property. - */ - getAllowsExternalPlayback(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsExternalPlayback(allowsExternalPlayback: boolean): void; - - /** - * Gets the value of the property. - */ - getRate(): number; - - /** - * Sets the value of the property. - */ - setRate(rate: number): void; - - /** - * Gets the value of the property. - */ - getProgress(): number; - - /** - * Gets the value of the property. - */ - getState(): number; - - /** - * Gets the value of the property. - */ - getUrl(): string; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - /** - * Gets the value of the property. - */ - getVolume(): number; - - /** - * Sets the value of the property. - */ - setVolume(volume: number): void; - - /** - * Gets the value of the property. - */ - getWaiting(): boolean; - - /** - * Gets the value of the property. - */ - getBufferSize(): number; - - /** - * Sets the value of the property. - */ - setBufferSize(bufferSize: number): void; - - /** - * Gets the value of the property. - */ - getTime(): number; - - /** - * Sets the value of the property. - */ - setTime(time: number): void; - } /** * An audio recorder object used for recording audio from the device microphone. */ - interface AudioRecorder extends Titanium.Proxy { + class AudioRecorder extends Titanium.Proxy { /** * Audio compression to be used for the recording. */ @@ -51572,16 +15436,73 @@ declare namespace Titanium { */ readonly stopped: boolean; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCompression(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFormat(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPaused(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRecording(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStopped(): boolean; + /** * Pauses the current audio recording. */ pause(): void; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Resumes a paused recording. */ resume(): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCompression(compression: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFormat(format: number): void; + /** * Starts an audio recording. */ @@ -51592,46 +15513,11 @@ declare namespace Titanium { */ stop(): Titanium.Filesystem.File; - /** - * Gets the value of the property. - */ - getCompression(): number; - - /** - * Sets the value of the property. - */ - setCompression(compression: number): void; - - /** - * Gets the value of the property. - */ - getFormat(): number; - - /** - * Sets the value of the property. - */ - setFormat(format: number): void; - - /** - * Gets the value of the property. - */ - getPaused(): boolean; - - /** - * Gets the value of the property. - */ - getRecording(): boolean; - - /** - * Gets the value of the property. - */ - getStopped(): boolean; - } /** * A representation of a media item returned by [openMusicLibrary](Titanium.Media.openMusicLibrary) or [queryMusicLibrary](Titanium.Media.queryMusicLibrary). */ - interface Item extends Titanium.Proxy { + class Item extends Titanium.Proxy { /** * Artist credited for the album containing this item. */ @@ -51780,16 +15666,16 @@ declare namespace Titanium { */ readonly playbackStoreID: number; - /** - * Title of a podcast item. - */ - readonly podcastTitle: string; - /** * The persistent identifier for an audio podcast. */ readonly podcastPersistentID: number; + /** + * Title of a podcast item. + */ + readonly podcastTitle: string; + /** * Rating for this item. */ @@ -51816,191 +15702,268 @@ declare namespace Titanium { */ readonly userGrouping: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getAlbumArtist(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getAlbumArtistPersistentID(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getAlbumPersistentID(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getAlbumTitle(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getAlbumTrackCount(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getAlbumTrackNumber(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getArtist(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getArtwork(): Titanium.Blob; /** * Gets the value of the property. + * @deprecated Access instead. */ getAssetURL(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getBeatsPerMinute(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getBookmarkTime(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getComments(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getComposer(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getDateAdded(): Date; /** * Gets the value of the property. + * @deprecated Access instead. */ getDiscCount(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getDiscNumber(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getGenre(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getGenrePersistentID(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getHasProtectedAsset(): boolean; /** * Gets the value of the property. + * @deprecated Access instead. */ getIsCloudItem(): boolean; /** * Gets the value of the property. + * @deprecated Access instead. */ getIsCompilation(): boolean; /** * Gets the value of the property. + * @deprecated Access instead. */ getIsExplicit(): boolean; /** * Gets the value of the property. + * @deprecated Access instead. */ getLastPlayedDate(): Date; /** * Gets the value of the property. + * @deprecated Access instead. */ getLyrics(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getMediaType(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getPersistentID(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getPlayCount(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getPlaybackDuration(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getPlaybackStoreID(): number; - /** - * Gets the value of the property. - */ - getPodcastTitle(): string; - /** * Gets the value of the property. + * @deprecated Access instead. */ getPodcastPersistentID(): number; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPodcastTitle(): string; + /** * Gets the value of the property. + * @deprecated Access instead. */ getRating(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getReleaseDate(): Date; /** * Gets the value of the property. + * @deprecated Access instead. */ getSkipCount(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getTitle(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getUserGrouping(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * Base event for class Titanium.Media.MusicPlayer + */ + interface MusicPlayerBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Media.MusicPlayer; + + } + /** + * Fired when the currently playing media item changes. + */ + interface MusicPlayer_playingchange_Event extends MusicPlayerBaseEvent { + } + /** + * Fired when the music player's playback state changes. + */ + interface MusicPlayer_statechange_Event extends MusicPlayerBaseEvent { + } + interface MusicPlayerEventMap extends ProxyEventMap { + playingchange: MusicPlayer_playingchange_Event; + + statechange: MusicPlayer_statechange_Event; + } /** * This object represents a music controller. */ - interface MusicPlayer extends Titanium.Proxy { + class MusicPlayer extends Titanium.Proxy { /** * Current point in song playback, in seconds. */ @@ -52026,6 +15989,56 @@ declare namespace Titanium { */ shuffleMode: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.Media.MusicPlayer, event: MusicPlayerEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: MusicPlayerEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCurrentPlaybackTime(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNowPlaying(): Titanium.Media.Item; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPlaybackState(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRepeatMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShuffleMode(): number; + /** * Pauses playback of the current media item. */ @@ -52036,6 +16049,16 @@ declare namespace Titanium { */ play(): void; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Media.MusicPlayer, event: MusicPlayerEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Begins seeking backward in the currently playing media. */ @@ -52047,19 +16070,27 @@ declare namespace Titanium { seekForward(): void; /** - * Sets the media queue. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - setQueue(queue: Titanium.Media.Item): void; + setCurrentPlaybackTime(currentPlaybackTime: number): void; /** * Sets the media queue. */ - setQueue(queue: ReadonlyArray): void; + setQueue(queue: Titanium.Media.Item | Titanium.Media.Item[] | string): void; /** - * Sets the media queue. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - setQueue(queue: string): void; + setRepeatMode(repeatMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShuffleMode(shuffleMode: number): void; /** * Skips to the beginning of the currently playing media item. @@ -52088,51 +16119,145 @@ declare namespace Titanium { */ stopSeeking(): void; + } + /** + * Base event for class Titanium.Media.Sound + */ + interface SoundBaseEvent extends Ti.Event { /** - * Gets the value of the property. + * Source object that fired the event. */ - getCurrentPlaybackTime(): number; + source: Titanium.Media.Sound; + + } + /** + * Fired when the state of the playback changes. + */ + interface Sound_change_Event extends SoundBaseEvent { + /** + * Text description of the state of playback. + */ + description: string; /** - * Sets the value of the property. + * Current state of playback. */ - setCurrentPlaybackTime(currentPlaybackTime: number): void; + state: number; + + } + /** + * Fired when the audio has finished playing. + */ + interface Sound_complete_Event extends SoundBaseEvent { + /** + * Error code. + * Error code will be 0 if `success` is `true`, nonzero otherwise. If the error + * was generated by the operating system, that system's error value is used. + * Otherwise, this value will be -1. + */ + code: number; /** - * Gets the value of the property. + * Error message, if any returned. Will be undefined if `success` is `true`. */ - getNowPlaying(): Titanium.Media.Item; + error: string; /** - * Gets the value of the property. + * Indicates if the sound was played successfully. + * Returns `true` if request succeeded, `false` otherwise. */ - getPlaybackState(): number; + success: boolean; + + } + /** + * Fired when an error occurs while playing the audio. + */ + interface Sound_error_Event extends SoundBaseEvent { + /** + * Error code. + * If the error was generated by the operating system, that system's error value + * is used. Otherwise, this value will be -1. + */ + code: number; /** - * Gets the value of the property. + * Error message, if any returned. May be undefined. */ - getRepeatMode(): number; + error: string; /** - * Sets the value of the property. + * Error message. Use the error property instead. + * @deprecated */ - setRepeatMode(repeatMode: number): void; + message: string; /** - * Gets the value of the property. + * Indicates a successful operation. Returns `false`. */ - getShuffleMode(): number; + success: boolean; + } + /** + * Fired when audio playback is interrupted by the device. + */ + interface Sound_interrupted_Event extends SoundBaseEvent { + } + /** + * Fired when audio playback is resumed after an interruption. + */ + interface Sound_resume_Event extends SoundBaseEvent { /** - * Sets the value of the property. + * Indicates if the resume was from an interruption. */ - setShuffleMode(shuffleMode: number): void; + interruption: boolean; + + } + interface SoundEventMap extends ProxyEventMap { + change: Sound_change_Event; + + complete: Sound_complete_Event; + + error: Sound_error_Event; + + interrupted: Sound_interrupted_Event; + + resume: Sound_resume_Event; } /** * An object for playing basic audio resources. */ - interface Sound extends Titanium.Proxy { + class Sound extends Titanium.Proxy { + /** + * Used to identify the volume of audio streams for alarms. + */ + readonly AUDIO_TYPE_ALARM: number; + + /** + * Used to identify the volume of audio streams for media playback. + */ + readonly AUDIO_TYPE_MEDIA: number; + + /** + * Used to identify the volume of audio streams for notifications. + */ + readonly AUDIO_TYPE_NOTIFICATION: number; + + /** + * Used to identify the volume of audio streams for the phone ring. + */ + readonly AUDIO_TYPE_RING: number; + + /** + * Used to identify the volume of audio streams for DTMF tones or beeps. + */ + readonly AUDIO_TYPE_SIGNALLING: number; + + /** + * Used to identify the volume of audio streams for voice calls. + */ + readonly AUDIO_TYPE_VOICE: number; + /** * Audio data is being buffered from the network. */ @@ -52178,36 +16303,6 @@ declare namespace Titanium { */ readonly STATE_WAITING_FOR_QUEUE: number; - /** - * Used to identify the volume of audio streams for alarms. - */ - readonly AUDIO_TYPE_ALARM: number; - - /** - * Used to identify the volume of audio streams for DTMF tones or beeps. - */ - readonly AUDIO_TYPE_SIGNALLING: number; - - /** - * Used to identify the volume of audio streams for media playback. - */ - readonly AUDIO_TYPE_MEDIA: number; - - /** - * Used to identify the volume of audio streams for notifications. - */ - readonly AUDIO_TYPE_NOTIFICATION: number; - - /** - * Used to identify the volume of audio streams for the phone ring. - */ - readonly AUDIO_TYPE_RING: number; - - /** - * Used to identify the volume of audio streams for voice calls. - */ - readonly AUDIO_TYPE_VOICE: number; - /** * Determines whether the audio should continue playing even when its activity is paused. */ @@ -52253,6 +16348,56 @@ declare namespace Titanium { */ volume: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.Media.Sound, event: SoundEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: SoundEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAudioType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTime(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVolume(): number; + /** * Returns the value of the [looping](Titanium.Media.Sound.looping) property. */ @@ -52283,11 +16428,27 @@ declare namespace Titanium { */ release(): void; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Media.Sound, event: SoundEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Resets the audio playback position to the beginning. */ reset(): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAudioType(audioType: number): void; + /** * Sets the value of the [looping](Titanium.Media.Sound.looping) property. */ @@ -52298,86 +16459,579 @@ declare namespace Titanium { */ setPaused(paused: boolean): void; - /** - * Stops playing the audio and resets the playback position to the beginning of the clip. - */ - stop(): void; - - /** - * Gets the value of the property. - */ - getAudioType(): number; - - /** - * Sets the value of the property. - */ - setAudioType(audioType: number): void; - - /** - * Gets the value of the property. - */ - getDuration(): number; - - /** - * Gets the value of the property. - */ - getTime(): number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setTime(time: number): void; - /** - * Gets the value of the property. - */ - getUrl(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setUrl(url: string): void; - /** - * Gets the value of the property. - */ - getVolume(): number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setVolume(volume: number): void; + /** + * Stops playing the audio and resets the playback position to the beginning of the clip. + */ + stop(): void; + } /** * An object for playing system sounds. + * @deprecated This iOS-only API has been deprecated and moved to the [Ti.SystemAlert](https://github.com/appcelerator-modules/ti.systemalert) module in 8.0.0. */ - interface SystemAlert extends Titanium.Proxy { + class SystemAlert extends Titanium.Proxy { /** * URL identifying the audio resource. */ url: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string; + /** * Start playing the system alert. */ play(): void; /** - * Gets the value of the property. + * Removes the specified callback as an event listener for the named event. */ - getUrl(): string; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setUrl(url: string): void; + } + /** + * Base event for class Titanium.Media.VideoPlayer + */ + interface VideoPlayerBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Media.VideoPlayer; + + } + /** + * Fired when the device detects a click against the view. + */ + interface VideoPlayer_click_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface VideoPlayer_dblclick_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface VideoPlayer_doubletap_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface VideoPlayer_focus_Event extends VideoPlayerBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface VideoPlayer_keypressed_Event extends VideoPlayerBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface VideoPlayer_longclick_Event extends VideoPlayerBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface VideoPlayer_longpress_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface VideoPlayer_pinch_Event extends VideoPlayerBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface VideoPlayer_postlayout_Event extends VideoPlayerBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface VideoPlayer_singletap_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface VideoPlayer_swipe_Event extends VideoPlayerBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface VideoPlayer_touchcancel_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface VideoPlayer_touchend_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface VideoPlayer_touchmove_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface VideoPlayer_touchstart_Event extends VideoPlayerBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface VideoPlayer_twofingertap_Event extends VideoPlayerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when movie playback ends or a user exits playback. + */ + interface VideoPlayer_complete_Event extends VideoPlayerBaseEvent { + /** + * Error code. + * Error code will be 0 if `success` is `true`, nonzero otherwise. If the error + * was generated by the operating system, that system's error value is used. + * Otherwise, this value will be -1. + */ + code: number; + + /** + * Error message, if any returned. Will be undefined if `success` is `true`. + */ + error: string; + + /** + * Reason that playback ended. + */ + reason: number; + + /** + * Indicates if the video was played successfully. User exit counts as a success. + * Returns `true` if `reason` is not + * [VIDEO_FINISH_REASON_PLAYBACK_ERROR](Titanium.Media.VIDEO_FINISH_REASON_PLAYBACK_ERROR), + * `false` otherwise. + */ + success: boolean; + + } + /** + * Fired when the video duration is available. + */ + interface VideoPlayer_durationavailable_Event extends VideoPlayerBaseEvent { + /** + * Video duration, in milliseconds. + */ + duration: number; + + } + /** + * Fired when movie playback encounters an error. + */ + interface VideoPlayer_error_Event extends VideoPlayerBaseEvent { + /** + * Error code. + * If the error was generated by the operating system, that system's error value + * is used. Otherwise, this value will be -1. + */ + code: number; + + /** + * Error message, if any returned. May be undefined. + */ + error: string; + + /** + * Reason for error as a string. + * @deprecated + */ + message: string; + + /** + * Indicates a successful operation. Returns `false`. + */ + success: boolean; + + } + /** + * Fired when the movie play loads. + */ + interface VideoPlayer_load_Event extends VideoPlayerBaseEvent { + } + /** + * Fired when the network [loadState](Titanium.Media.VideoPlayer.loadState) changes. + */ + interface VideoPlayer_loadstate_Event extends VideoPlayerBaseEvent { + /** + * Current value of the [loadState](Titanium.Media.VideoPlayer.loadState) property. + */ + loadState: number; + + } + /** + * Fired when the natural size of the current movie is determined. + */ + interface VideoPlayer_naturalsizeavailable_Event extends VideoPlayerBaseEvent { + /** + * Current value of the [naturalSize](Titanium.Media.VideoPlayer.naturalSize) property. + */ + naturalSize: number; + + } + /** + * Fired when the [playbackState](Titanium.Media.VideoPlayer.playbackState) changes. + */ + interface VideoPlayer_playbackstate_Event extends VideoPlayerBaseEvent { + /** + * Current value of the [playbackState](Titanium.Media.VideoPlayer.playbackState) property. + */ + playbackState: number; + + } + /** + * Fired when the currently playing movie changes. + */ + interface VideoPlayer_playing_Event extends VideoPlayerBaseEvent { + /** + * URL of the media. + */ + url: string; + + } + /** + * Fired when the movie has preloaded and is ready to play. + */ + interface VideoPlayer_preload_Event extends VideoPlayerBaseEvent { + } + /** + * Fired when the movie player is resized. + */ + interface VideoPlayer_resize_Event extends VideoPlayerBaseEvent { + } + interface VideoPlayerEventMap extends ProxyEventMap { + click: VideoPlayer_click_Event; + + complete: VideoPlayer_complete_Event; + + dblclick: VideoPlayer_dblclick_Event; + + doubletap: VideoPlayer_doubletap_Event; + + durationavailable: VideoPlayer_durationavailable_Event; + + error: VideoPlayer_error_Event; + + focus: VideoPlayer_focus_Event; + + keypressed: VideoPlayer_keypressed_Event; + + load: VideoPlayer_load_Event; + + loadstate: VideoPlayer_loadstate_Event; + + longclick: VideoPlayer_longclick_Event; + + longpress: VideoPlayer_longpress_Event; + + naturalsizeavailable: VideoPlayer_naturalsizeavailable_Event; + + pinch: VideoPlayer_pinch_Event; + + playbackstate: VideoPlayer_playbackstate_Event; + + playing: VideoPlayer_playing_Event; + + postlayout: VideoPlayer_postlayout_Event; + + preload: VideoPlayer_preload_Event; + + resize: VideoPlayer_resize_Event; + + singletap: VideoPlayer_singletap_Event; + + swipe: VideoPlayer_swipe_Event; + + touchcancel: VideoPlayer_touchcancel_Event; + + touchend: VideoPlayer_touchend_Event; + + touchmove: VideoPlayer_touchmove_Event; + + touchstart: VideoPlayer_touchstart_Event; + + twofingertap: VideoPlayer_twofingertap_Event; + } /** * A native control for playing videos. */ - interface VideoPlayer extends Titanium.UI.View { + class VideoPlayer extends Titanium.UI.View { /** * Whether or not the current movie can be played on a remote device. */ @@ -52390,13 +17044,15 @@ declare namespace Titanium { /** * Sets the background view for customization which is always displayed behind movie content. + * @deprecated Use [Titanium.Media.VideoPlayer.overlayView](Titanium.Media.VideoPlayer.overlayView) instead. */ backgroundView: Titanium.UI.View; /** * URL of the media to play. + * @deprecated Use [Titanium.Media.VideoPlayer.url](Titanium.Media.VideoPlayer.url) instead. */ - contentURL: string; + contentURL: never; /** * Current playback time of the current movie in milliseconds. @@ -52415,8 +17071,9 @@ declare namespace Titanium { /** * Determines if the movie is presented in the entire screen (obscuring all other application content). + * @deprecated This method has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - fullscreen: boolean; + fullscreen: never; /** * The start time of movie playback, in milliseconds. @@ -52425,6 +17082,7 @@ declare namespace Titanium { /** * Returns the network load state of the movie player. + * @deprecated On iOS, use [Titanium.Media.VideoPlayer.moviePlayerStatus](Titanium.Media.VideoPlayer.moviePlayerStatus) instead. */ readonly loadState: number; @@ -52435,8 +17093,9 @@ declare namespace Titanium { /** * The style of the playback controls. + * @deprecated On iOS, use [Titanium.Media.VideoPlayer.showsControls](Titanium.Media.VideoPlayer.showsControls) instead. */ - mediaControlStyle: number; + mediaControlStyle: never; /** * The types of media in the movie, or if not known. @@ -52496,8 +17155,9 @@ declare namespace Titanium { /** * The playback type of the movie. + * @deprecated This method has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. */ - sourceType: number; + sourceType: never; /** * URL of the media to play. @@ -52509,11 +17169,181 @@ declare namespace Titanium { */ volume: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.Media.VideoPlayer, event: VideoPlayerEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Cancels all pending asynchronous thumbnail requests. */ cancelAllThumbnailImageRequests(): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: VideoPlayerEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsAirPlay(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutoplay(): boolean; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.Media.VideoPlayer.overlayView](Titanium.Media.VideoPlayer.overlayView) instead. + */ + getBackgroundView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.Media.VideoPlayer.url](Titanium.Media.VideoPlayer.url) instead. + */ + getContentURL: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCurrentPlaybackTime(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEndPlaybackTime(): number; + + /** + * Gets the value of the property. + * @deprecated This method has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. + */ + getFullscreen: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getInitialPlaybackTime(): number; + + /** + * Gets the value of the property. + * @deprecated On iOS, use [Titanium.Media.VideoPlayer.moviePlayerStatus](Titanium.Media.VideoPlayer.moviePlayerStatus) instead. + */ + getLoadState(): number; + + /** + * Gets the value of the property. + * @deprecated On iOS, use [Titanium.Media.VideoPlayer.showsControls](Titanium.Media.VideoPlayer.showsControls) instead. + */ + getMediaControlStyle: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMediaTypes(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMoviePlayerStatus(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNaturalSize(): MovieSize; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverlayView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPictureInPictureEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPlayableDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPlaybackState(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPlaying(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRepeatMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScalingMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowsControls(): boolean; + + /** + * Gets the value of the property. + * @deprecated This method has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. + */ + getSourceType: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string | string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVolume(): number; + /** * Pauses playing the video. */ @@ -52529,10 +17359,146 @@ declare namespace Titanium { */ release(): void; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Media.VideoPlayer, event: VideoPlayerEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Asynchronously request thumbnail images for one or more points in time in the video. */ - requestThumbnailImagesAtTimes(times: ReadonlyArray, option: number, callback: (param0: ThumbnailResponse) => any): void; + requestThumbnailImagesAtTimes(times: ReadonlyArray, option: number, callback: (param0: ThumbnailResponse) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsAirPlay(allowsAirPlay: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutoplay(autoplay: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.Media.VideoPlayer.overlayView](Titanium.Media.VideoPlayer.overlayView) instead. + */ + setBackgroundView(backgroundView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.Media.VideoPlayer.url](Titanium.Media.VideoPlayer.url) instead. + */ + setContentURL: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCurrentPlaybackTime(currentPlaybackTime: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDuration(duration: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEndPlaybackTime(endPlaybackTime: number): void; + + /** + * Sets the value of the property. + * @deprecated This method has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple. + */ + setFullscreen: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setInitialPlaybackTime(initialPlaybackTime: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMedia(media: Titanium.Blob | Titanium.Filesystem.File | string): void; + + /** + * Sets the value of the property. + * @deprecated On iOS, use [Titanium.Media.VideoPlayer.showsControls](Titanium.Media.VideoPlayer.showsControls) instead. + */ + setMediaControlStyle: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMediaTypes(mediaTypes: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNaturalSize(naturalSize: MovieSize): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverlayView(overlayView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPictureInPictureEnabled(pictureInPictureEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRepeatMode(repeatMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScalingMode(scalingMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowsControls(showsControls: boolean): void; + + /** + * Sets the value of the property. + * @deprecated This method has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple. + */ + setSourceType: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUrl(url: string | string[]): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVolume(volume: number): void; /** * Stops playing the video. @@ -52541,363 +17507,22 @@ declare namespace Titanium { /** * Returns a thumbnail image for the video at the specified time. + * @deprecated Use [Titanium.Media.VideoPlayer.requestThumbnailImagesAtTimes](Titanium.Media.VideoPlayer.requestThumbnailImagesAtTimes) instead. */ - thumbnailImageAtTime(time: number, option: number): Titanium.Blob; - - /** - * Gets the value of the property. - */ - getAllowsAirPlay(): boolean; - - /** - * Sets the value of the property. - */ - setAllowsAirPlay(allowsAirPlay: boolean): void; - - /** - * Gets the value of the property. - */ - getAutoplay(): boolean; - - /** - * Sets the value of the property. - */ - setAutoplay(autoplay: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setBackgroundView(backgroundView: any): void; - - /** - * Gets the value of the property. - */ - getContentURL(): string; - - /** - * Sets the value of the property. - */ - setContentURL(contentURL: string): void; - - /** - * Gets the value of the property. - */ - getCurrentPlaybackTime(): number; - - /** - * Sets the value of the property. - */ - setCurrentPlaybackTime(currentPlaybackTime: number): void; - - /** - * Gets the value of the property. - */ - getDuration(): number; - - /** - * Sets the value of the property. - */ - setDuration(duration: number): void; - - /** - * Gets the value of the property. - */ - getEndPlaybackTime(): number; - - /** - * Sets the value of the property. - */ - setEndPlaybackTime(endPlaybackTime: number): void; - - /** - * Gets the value of the property. - */ - getFullscreen(): boolean; - - /** - * Sets the value of the property. - */ - setFullscreen(fullscreen: boolean): void; - - /** - * Gets the value of the property. - */ - getInitialPlaybackTime(): number; - - /** - * Sets the value of the property. - */ - setInitialPlaybackTime(initialPlaybackTime: number): void; - - /** - * Gets the value of the property. - */ - getLoadState(): number; - - /** - * Sets the value of the property. - */ - setMedia(media: Titanium.Blob): void; - - /** - * Sets the value of the property. - */ - setMedia(media: Titanium.Filesystem.File): void; - - /** - * Sets the value of the property. - */ - setMedia(media: string): void; - - /** - * Gets the value of the property. - */ - getMediaControlStyle(): number; - - /** - * Sets the value of the property. - */ - setMediaControlStyle(mediaControlStyle: number): void; - - /** - * Gets the value of the property. - */ - getMediaTypes(): number; - - /** - * Sets the value of the property. - */ - setMediaTypes(mediaTypes: number): void; - - /** - * Gets the value of the property. - */ - getMoviePlayerStatus(): number; - - /** - * Gets the value of the property. - */ - getNaturalSize(): MovieSize; - - /** - * Sets the value of the property. - */ - setNaturalSize(naturalSize: MovieSize): void; - - /** - * Gets the value of the property. - */ - getOverlayView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setOverlayView(overlayView: any): void; - - /** - * Gets the value of the property. - */ - getPictureInPictureEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setPictureInPictureEnabled(pictureInPictureEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getPlayableDuration(): number; - - /** - * Gets the value of the property. - */ - getPlaybackState(): number; - - /** - * Gets the value of the property. - */ - getPlaying(): boolean; - - /** - * Gets the value of the property. - */ - getRepeatMode(): number; - - /** - * Sets the value of the property. - */ - setRepeatMode(repeatMode: number): void; - - /** - * Gets the value of the property. - */ - getScalingMode(): number; - - /** - * Sets the value of the property. - */ - setScalingMode(scalingMode: number): void; - - /** - * Gets the value of the property. - */ - getShowsControls(): boolean; - - /** - * Sets the value of the property. - */ - setShowsControls(showsControls: boolean): void; - - /** - * Gets the value of the property. - */ - getSourceType(): number; - - /** - * Sets the value of the property. - */ - setSourceType(sourceType: number): void; - - /** - * Gets the value of the property. - */ - getUrl(): string | string[]; - - /** - * Sets the value of the property. - */ - setUrl(url: string): void; - - /** - * Sets the value of the property. - */ - setUrl(url: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getVolume(): number; - - /** - * Sets the value of the property. - */ - setVolume(volume: number): void; - - } - - /** - * Android-specific media-related functionality. - */ - namespace Android { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Scans newly created or downloaded media files to make them available to other - * Android media providers, such as the Gallery. - */ - function scanMediaFiles(paths: ReadonlyArray, mimeTypes: ReadonlyArray, callback: (param0: MediaScannerResponse) => any): void; - - /** - * Set the system homescreen wallpaper. - */ - function setSystemWallpaper(image: Titanium.Blob, scale: boolean): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; + thumbnailImageAtTime: never; } } - /** * The top level network module. */ namespace Network { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - /** * Special hostname value for listening sockets, representing all * locally available network interfaces. + * @deprecated */ - const INADDR_ANY: string; + const INADDR_ANY: never; /** * A [networkType](Titanium.Network.networkType) value indicating that the device is @@ -52939,55 +17564,83 @@ declare namespace Titanium { */ const NOTIFICATION_TYPE_BADGE: number; - /** - * Constant value for a Sound style push notification. - */ - const NOTIFICATION_TYPE_SOUND: number; - /** * Constant value for a Newsstand style push notification. Only available on iOS5 and later */ const NOTIFICATION_TYPE_NEWSSTAND: number; /** - * Constant value specifying read-only mode for sockets. + * Constant value for a Sound style push notification. */ - const READ_MODE: number; + const NOTIFICATION_TYPE_SOUND: number; + + /** + * Constant value specifying that the progress of a download can not be calculated. + */ + const PROGRESS_UNKNOWN: number; + + /** + * Constant value specifying read-only mode for sockets. + * @deprecated Used with the deprecated [Titanium.Network.TCPSocket](Titanium.Network.TCPSocket) only. + * See [Socket](Titanium.Network.Socket) for constants used with + * [TCP](Titanium.Network.Socket.TCP) sockets. + * + */ + const READ_MODE: never; /** * Constant value specifying read-write mode for sockets. + * @deprecated Used with the deprecated [Titanium.Network.TCPSocket](Titanium.Network.TCPSocket) only. + * See [Socket](Titanium.Network.Socket) for constants used with + * [TCP](Titanium.Network.Socket.TCP) sockets. + * */ - const READ_WRITE_MODE: number; + const READ_WRITE_MODE: never; /** * Constant value representing a socket in the CLOSED state. + * @deprecated Used with the deprecated [Titanium.Network.TCPSocket](Titanium.Network.TCPSocket) only. + * See [Socket](Titanium.Network.Socket) for constants used with + * [TCP](Titanium.Network.Socket.TCP) sockets. + * */ - const SOCKET_CLOSED: number; + const SOCKET_CLOSED: never; /** * Constant value representing a socket in the CONNECTED state. + * @deprecated Used with the deprecated [Titanium.Network.TCPSocket](Titanium.Network.TCPSocket) only. + * See [Socket](Titanium.Network.Socket) for constants used with + * [TCP](Titanium.Network.Socket.TCP) sockets. + * */ - const SOCKET_CONNECTED: number; + const SOCKET_CONNECTED: never; /** * Constant value representing a socket in the ERROR state. + * @deprecated Used with the deprecated [Titanium.Network.TCPSocket](Titanium.Network.TCPSocket) only. + * See [Socket](Titanium.Network.Socket) for constants used with + * [TCP](Titanium.Network.Socket.TCP) sockets. + * */ - const SOCKET_ERROR: number; + const SOCKET_ERROR: never; /** * Constant value representing a socket in the INITIALIZED state. + * @deprecated Used with the deprecated [Titanium.Network.TCPSocket](Titanium.Network.TCPSocket) only. + * See [Socket](Titanium.Network.Socket) for constants used with + * [TCP](Titanium.Network.Socket.TCP) sockets. + * */ - const SOCKET_INITIALIZED: number; + const SOCKET_INITIALIZED: never; /** * Constant value representing a socket in the LISTENING state. + * @deprecated Used with the deprecated [Titanium.Network.TCPSocket](Titanium.Network.TCPSocket) only. + * See [Socket](Titanium.Network.Socket) for constants used with + * [TCP](Titanium.Network.Socket.TCP) sockets. + * */ - const SOCKET_LISTENING: number; - - /** - * Constant value specifying write-only mode for sockets. - */ - const WRITE_MODE: number; + const SOCKET_LISTENING: never; /** * Constant value specifying TLS version 1.0 for SSL. @@ -53005,236 +17658,247 @@ declare namespace Titanium { const TLS_VERSION_1_2: number; /** - * Constant value specifying that the progress of a download can not be calculated. + * Constant value specifying TLS version 1.3 for SSL. */ - const PROGRESS_UNKNOWN: number; + const TLS_VERSION_1_3: number; /** - * A list of all cookies in the cookie storage. + * Constant value specifying write-only mode for sockets. + * @deprecated Used with the deprecated [Titanium.Network.TCPSocket](Titanium.Network.TCPSocket) only. + * See [Socket](Titanium.Network.Socket) for constants used with + * [TCP](Titanium.Network.Socket.TCP) sockets. + * */ - const allHTTPCookies: Titanium.Network.Cookie[]; + const WRITE_MODE: never; /** - * Network type value as a constant. + * Socket module, used for creating sockets. */ - const networkType: number; + namespace Socket { + /** + * State value representing a closed socket. + */ + const CLOSED: number; + /** + * State value representing a connected socket. + */ + const CONNECTED: number; + + /** + * State value indicating an error has occurred on the socket. + */ + const ERROR: number; + + /** + * State value representing an initialized socket. + */ + const INITIALIZED: number; + + /** + * State value representing a socket that is listening for connections. + */ + const LISTENING: number; + + /** + * TCP socket that implements the `Titanium.IOStream` interface. + */ + class TCP extends Titanium.IOStream { + /** + * Callback to be fired when a listener accepts a connection. + */ + accepted: (param0: AcceptedCallbackArgs) => void; + + /** + * Callback to be fired when the socket enters the "connected" state. + */ + connected: (param0: ConnectedCallbackArgs) => void; + + /** + * Callback to be fired when the socket enters the [ERROR](Titanium.Network.Socket.ERROR) state. + */ + error: (param0: ErrorCallbackArgs) => void; + + /** + * The host to connect to or listen on. + */ + host: string; + + /** + * Max number of pending incoming connections to be allowed when the socket is in the [LISTENING](Titanium.Network.Socket.LISTENING) state. + */ + listenQueueSize: number; + + /** + * The port to connect to or listen on. + */ + port: number; + + /** + * Current state of the socket. + */ + readonly state: number; + + /** + * Timeout, in milliseconds, for `connect` and all `write` operations. + */ + timeout: number; + + /** + * Tells a [LISTENING](Titanium.Network.Socket.LISTENING) socket to accept a connection request at the top of a listener's request queue when one becomes available. + */ + accept(options: AcceptDict): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Closes a socket. + */ + close(): void; + + /** + * Attempts to connect the socket to its host/port. + */ + connect(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccepted(): (param0: AcceptedCallbackArgs) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getConnected(): (param0: ConnectedCallbackArgs) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getError(): (param0: ErrorCallbackArgs) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHost(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getListenQueueSize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPort(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getState(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTimeout(): number; + + /** + * Attempts to start listening on the socket's host/port. + */ + listen(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccepted(accepted: (param0: AcceptedCallbackArgs) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setConnected(connected: (param0: ConnectedCallbackArgs) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setError(error: (param0: ErrorCallbackArgs) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHost(host: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setListenQueueSize(listenQueueSize: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPort(port: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTimeout(timeout: number): void; + + } + } /** - * Network type as a String. Returns one of `NONE`, `WIFI`, `LAN`, `MOBILE`, or `UNKNOWN`. + * Base event for class Titanium.Network.BonjourBrowser */ - const networkTypeName: string; + interface BonjourBrowserBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Network.BonjourBrowser; + } /** - * Boolean value indicating if the device is connected to the network. + * Fired when the discovered services list is updated */ - const online: boolean; + interface BonjourBrowser_updatedservices_Event extends BonjourBrowserBaseEvent { + /** + * An array of BonjourService objects corresponding to currently available services. If you cache this value, including using it as table data, be aware that it could become out of date at any time due to the asynchronous nature of Bonjour service discovery. + */ + services: Titanium.Network.BonjourService[]; - /** - * Remote device UUID if the device is registered with the Apple Push Notification - * Service, or null if it is not registered. - */ - const remoteDeviceUUID: string; - - /** - * Array of push notification type constants enabled for the application. - */ - const remoteNotificationTypes: number[]; - - /** - * Indicates whether push notifications have been enabled using - * [registerForPushNotifications](Titanium.Network.registerForPushNotifications). - */ - const remoteNotificationsEnabled: boolean; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Legacy method to add a connectivity listener to listen for network changes. - */ - function addConnectivityListener(callback: (param0: any) => any): void; - - /** - * Adds a cookie to the HTTP client cookie store. - */ - function addHTTPCookie(cookie: Titanium.Network.Cookie): void; - - /** - * Adds a cookie to the system cookie store. - */ - function addSystemCookie(cookie: Titanium.Network.Cookie): void; - - /** - * Creates and returns a `BonjourBrowser` object. - */ - function createBonjourBrowser(serviceType: string, domain: string, parameters?: any): Titanium.Network.BonjourBrowser; - - /** - * Creates and returns a `BonjourService` object. - */ - function createBonjourService(name: string, type: string, domain: string, parameters?: any): Titanium.Network.BonjourService; - - /** - * Legacy method to create and return an instance of . - */ - function createTCPSocket(hostName: string, port: number, mode: number, parameters: any): Titanium.Network.TCPSocket; - - /** - * Returns a decoded version of a URI encoded value. - */ - function decodeURIComponent(value: string): string; - - /** - * Returns a URI encoded version of the specified URI component. - */ - function encodeURIComponent(value: string): string; - - /** - * Gets all the cookies with the domain, path and name matched with the given values from the HTTP client cookie store. - */ - function getHTTPCookies(domain: string, path: string, name: string): Titanium.Network.Cookie[]; - - /** - * Gets all the cookies with the domain matched with the given values from the HTTP client cookie store. - */ - function getHTTPCookiesForDomain(domain: string): Titanium.Network.Cookie[]; - - /** - * Gets all the cookies with the domain, path and name matched with the given values from the system cookie store. - */ - function getSystemCookies(domain: string, path: string, name: string): Titanium.Network.Cookie[]; - - /** - * Removes all the cookies from the HTTP client cookie store. - */ - function removeAllHTTPCookies(): void; - - /** - * Removes all the cookie from the system client cookie store. - */ - function removeAllSystemCookies(): void; - - /** - * Removes the cookie with the domain, path and name exactly the same as the given values from the HTTP client cookie store. - */ - function removeHTTPCookie(domain: string, path: string, name: string): void; - - /** - * Removes the cookies with the domain matched with the given values from the HTTP client cookie store. - */ - function removeHTTPCookiesForDomain(domain: string): void; - - /** - * Removes the cookie with the domain, path and name exactly the same as the given values from the system cookie store. - */ - function removeSystemCookie(domain: string, path: string, name: string): void; - - /** - * Registers for push notifications with the Apple Push Notification Service. - */ - function registerForPushNotifications(config: PushNotificationConfig): void; - - /** - * Unregisters the application for push notifications. - */ - function unregisterForPushNotifications(): void; - - /** - * Creates and returns an instance of . - */ - function createCookie(parameters?: any): Titanium.Network.Cookie; - - /** - * Creates and returns an instance of . - */ - function createHTTPClient(parameters?: any): Titanium.Network.HTTPClient; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getAllHTTPCookies(): Titanium.Network.Cookie[]; - - /** - * Gets the value of the property. - */ - function getNetworkType(): number; - - /** - * Gets the value of the property. - */ - function getNetworkTypeName(): string; - - /** - * Gets the value of the property. - */ - function getOnline(): boolean; - - /** - * Gets the value of the property. - */ - function getRemoteDeviceUUID(): string; - - /** - * Gets the value of the property. - */ - function getRemoteNotificationTypes(): number[]; - - /** - * Gets the value of the property. - */ - function getRemoteNotificationsEnabled(): boolean; + } + interface BonjourBrowserEventMap extends ProxyEventMap { + updatedservices: BonjourBrowser_updatedservices_Event; + } /** * A browser for the discovery and retrieval of Bonjour services available on the network. */ - interface BonjourBrowser extends Titanium.Proxy { + class BonjourBrowser extends Titanium.Proxy { /** * The domain the browser is searching in */ @@ -53250,51 +17914,165 @@ declare namespace Titanium { */ serviceType: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.Network.BonjourBrowser, event: BonjourBrowserEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: BonjourBrowserEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDomain(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIsSearching(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getServiceType(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Network.BonjourBrowser, event: BonjourBrowserEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Conduct a search for Bonjour services matching the type and domain specified during creation */ search(): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDomain(domain: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIsSearching(isSearching: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setServiceType(serviceType: string): void; + /** * Halt an ongoing search */ stopSearch(): void; + } + /** + * Base event for class Titanium.Network.BonjourService + */ + interface BonjourServiceBaseEvent extends Ti.Event { /** - * Gets the value of the property. + * Source object that fired the event. */ - getDomain(): string; + source: Titanium.Network.BonjourService; + + } + /** + * Fired when the service has been published (or errored). + */ + interface BonjourService_publish_Event extends BonjourServiceBaseEvent { + /** + * Error code + */ + code: number; /** - * Sets the value of the property. + * Error message */ - setDomain(domain: string): void; + error: string; /** - * Gets the value of the property. + * Reports if the publish operation was successful */ - getIsSearching(): boolean; + success: boolean; + + } + /** + * Fired when the service has been resolved (or errored). If successful, the [socket](Titanium.Network.BonjourService.socket) property should now be available. + */ + interface BonjourService_resolve_Event extends BonjourServiceBaseEvent { + /** + * Error code + */ + code: number; /** - * Sets the value of the property. + * Error message */ - setIsSearching(isSearching: boolean): void; + error: string; /** - * Gets the value of the property. + * Reports if the resolve operation was successful */ - getServiceType(): string; + success: boolean; + + } + /** + * Fired when a service's publish or resolution was stopped via + */ + interface BonjourService_stop_Event extends BonjourServiceBaseEvent { + /** + * Error code + */ + code: number; /** - * Sets the value of the property. + * Error message */ - setServiceType(serviceType: string): void; + error: string; + + /** + * Reports if the stop operation was successful + */ + success: boolean; + + } + interface BonjourServiceEventMap extends ProxyEventMap { + publish: BonjourService_publish_Event; + + resolve: BonjourService_resolve_Event; + + stop: BonjourService_stop_Event; } /** * Describes a service on the network which is published by Bonjour. */ - interface BonjourService extends Titanium.Proxy { + class BonjourService extends Titanium.Proxy { /** * the domain of the service */ @@ -53313,7 +18091,7 @@ declare namespace Titanium { /** * the TCPSocket object that is used to connect to the service */ - socket: any; + socket: Titanium.Network.Socket.TCP; /** * the type of the service @@ -53321,75 +18099,115 @@ declare namespace Titanium { type: string; /** - * Publish a Bonjour service to the network. Only works if isLocal is TRUE + * Adds the specified callback as an event listener for the named event. */ - publish(socket: any): void; + addEventListener(name: K, callback: (this: Titanium.Network.BonjourService, event: BonjourServiceEventMap[K]) => void): void; /** - * Resolve a Bonjour service from the network. Must be done before attempting to access the service's socket information, if a remote service. You cannot resolve a locally published service. + * Adds the specified callback as an event listener for the named event. */ - resolve(timeout: number): void; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Halts publication of a service. + * Fires a synthesized event to any registered listeners. */ - stop(): void; + fireEvent(name: K, event?: BonjourServiceEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getDomain(): string; - /** - * Sets the value of the property. - */ - setDomain(domain: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getIsLocal(): boolean; - /** - * Sets the value of the property. - */ - setIsLocal(isLocal: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getName(): string; - /** - * Sets the value of the property. - */ - setName(name: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ - getSocket(): any; - - /** - * Sets the value of the property. - */ - setSocket(socket: any): void; + getSocket(): Titanium.Network.Socket.TCP; /** * Gets the value of the property. + * @deprecated Access instead. */ getType(): string; + /** + * Asynchronously publish a Bonjour service to the network. Only works if isLocal is TRUE + */ + publish(socket: Titanium.Network.Socket.TCP, callback?: (param0: Error, param1: boolean) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.Network.BonjourService, event: BonjourServiceEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Asynchronously resolve a Bonjour service from the network. Must be done before attempting to access the service's socket information, if a remote service. You cannot resolve a locally published service. + */ + resolve(timeout?: number, callback?: (param0: Error, param1: boolean) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDomain(domain: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIsLocal(isLocal: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setName(name: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSocket(socket: Titanium.Network.Socket.TCP): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setType(type: string): void; + /** + * Asynchronously halts a currently running attempt to publish or resolve a service. + */ + stop(callback?: (param0: Error, param1: boolean) => void): void; + } /** * Cookie object used to manage the system cookie store and HTTP client cookie store. */ - interface Cookie extends Titanium.Proxy { + class Cookie extends Titanium.Proxy { /** * The comment describing the purpose of this cookie */ @@ -53405,16 +18223,16 @@ declare namespace Titanium { */ expiryDate: string; - /** - * Sets the Max-Age attribute of a Cookie, in delta-seconds. - */ - maxAge: number; - /** * The httponly attribute of the cookie. */ httponly: boolean; + /** + * Sets the Max-Age attribute of a Cookie, in delta-seconds. + */ + maxAge: number; + /** * The name of the cookie. */ @@ -53446,112 +18264,148 @@ declare namespace Titanium { version: number; /** - * Returns true if the cookie is valid. + * Adds the specified callback as an event listener for the named event. */ - isValid(): boolean; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getComment(): string; - /** - * Sets the value of the property. - */ - setComment(comment: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getDomain(): string; - /** - * Sets the value of the property. - */ - setDomain(domain: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getExpiryDate(): string; - /** - * Sets the value of the property. - */ - setExpiryDate(expiryDate: string): void; - - /** - * Gets the value of the property. - */ - getMaxAge(): number; - - /** - * Sets the value of the property. - */ - setMaxAge(maxAge: number): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getHttponly(): boolean; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - setHttponly(httponly: boolean): void; + getMaxAge(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getName(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getOriginalUrl(): string; - /** - * Sets the value of the property. - */ - setOriginalUrl(originalUrl: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getPath(): string; - /** - * Sets the value of the property. - */ - setPath(path: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getSecure(): boolean; - /** - * Sets the value of the property. - */ - setSecure(secure: boolean): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getValue(): string; - /** - * Sets the value of the property. - */ - setValue(value: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getVersion(): number; + /** + * Returns true if the cookie is valid. + */ + isValid(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setComment(comment: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDomain(domain: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setExpiryDate(expiryDate: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHttponly(httponly: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxAge(maxAge: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOriginalUrl(originalUrl: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPath(path: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSecure(secure: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: string): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setVersion(version: number): void; @@ -53559,7 +18413,7 @@ declare namespace Titanium { /** * HTTP client object that (mostly) implements the XMLHttpRequest specification. */ - interface HTTPClient extends Titanium.Proxy { + class HTTPClient extends Titanium.Proxy { /** * Ready state constant indicating that the request is complete. */ @@ -53591,11 +18445,6 @@ declare namespace Titanium { */ readonly allResponseHeaders: string; - /** - * Returns all the response headers returned with the request. - */ - readonly responseHeaders: any; - /** * Determines whether automatic encoding is enabled for the specified URL. */ @@ -53606,6 +18455,11 @@ declare namespace Titanium { */ autoRedirect: boolean; + /** + * Determines whether HTTP responses are cached. + */ + cache: boolean; + /** * Indicates whether the response was successful. */ @@ -53627,9 +18481,9 @@ declare namespace Titanium { enableKeepAlive: boolean; /** - * Target local file to receive data. + * Target local file or file path to receive data. */ - file: string; + file: string | Titanium.Filesystem.File; /** * Absolute URL of the request. @@ -53639,27 +18493,27 @@ declare namespace Titanium { /** * Function to be called at regular intervals as the request data is being received. */ - ondatastream: (param0: any) => any; + ondatastream: (param0: any) => void; /** * Function to be called upon a error response. */ - onerror: (param0: FailureResponse) => any; + onerror: (param0: FailureResponse) => void; /** * Function to be called upon a successful response. */ - onload: (param0: SuccessResponse) => any; + onload: (param0: SuccessResponse) => void; /** * Function to be called for each [readyState](Titanium.Network.HTTPClient.readyState) change. */ - onreadystatechange: (param0: any) => any; + onreadystatechange: (param0: any) => void; /** * Function to be called at regular intervals as the request data is being transmitted. */ - onsendstream: (param0: any) => any; + onsendstream: (param0: any) => void; /** * Sets the password parameter for authentication credentials. @@ -53676,6 +18530,11 @@ declare namespace Titanium { */ readonly responseData: Titanium.Blob; + /** + * Returns all the response headers returned with the request. + */ + readonly responseHeaders: any; + /** * Response as text. */ @@ -53706,6 +18565,11 @@ declare namespace Titanium { */ timeout: number; + /** + * Sets the TLS version to use for handshakes. + */ + tlsVersion: number; + /** * Sets the username parameter for authentication credentials. */ @@ -53716,16 +18580,6 @@ declare namespace Titanium { */ validatesSecureCertificate: boolean; - /** - * Sets the TLS version to use for handshakes. - */ - tlsVersion: number; - - /** - * Determines whether HTTP responses are cached. - */ - cache: boolean; - /** * Cancels a pending request. */ @@ -53733,675 +18587,421 @@ declare namespace Titanium { /** * Registers a new AuthSchemeFactory for a given scheme. + * @deprecated */ - addAuthFactory(scheme: string, factory: any): void; + addAuthFactory: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Adds a custom key manager. + * @deprecated */ - addKeyManager(X509KeyManager: any): void; + addKeyManager: never; /** * Adds a custom trust manager. + * @deprecated */ - addTrustManager(X509TrustManager: any): void; + addTrustManager: never; /** * Clears any cookies stored for the host. */ clearCookies(host: string): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllResponseHeaders(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutoEncodeUrl(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutoRedirect(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCache(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getConnected(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getConnectionType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDomain(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnableKeepAlive(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFile(): string | Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLocation(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOndatastream(): (param0: any) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnerror(): (param0: FailureResponse) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnload(): (param0: SuccessResponse) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnreadystatechange(): (param0: any) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnsendstream(): (param0: any) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPassword(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getReadyState(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResponseData(): Titanium.Blob; + /** * Returns the value of the specified response header. */ getResponseHeader(name: string): string; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResponseHeaders(): any; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResponseText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResponseXML(): Titanium.XML.Document; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSecurityManager(): SecurityManagerProtocol; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStatus(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStatusText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTimeout(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTlsVersion(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUsername(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValidatesSecureCertificate(): boolean; + /** * Opens the request and prepares the connection. */ open(method: string, url: string, async?: boolean): void; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Sends the request. */ send(data?: any): void; /** - * Sends the request. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - send(data?: string): void; + setAutoEncodeUrl(autoEncodeUrl: boolean): void; /** - * Sends the request. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - send(data?: Titanium.Filesystem.File): void; + setAutoRedirect(autoRedirect: boolean): void; /** - * Sends the request. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - send(data?: Titanium.Blob): void; + setCache(cache: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDomain(domain: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnableKeepAlive(enableKeepAlive: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFile(file: string | Titanium.Filesystem.File): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOndatastream(ondatastream: (param0: any) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnerror(onerror: (param0: FailureResponse) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnload(onload: (param0: SuccessResponse) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnreadystatechange(onreadystatechange: (param0: any) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnsendstream(onsendstream: (param0: any) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPassword(password: string): void; /** * Sets the value for the specified request header. Must be called after `open` but before `send`. */ setRequestHeader(name: string, value: string): void; + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSecurityManager(securityManager: SecurityManagerProtocol): void; + /** * Sets the request timeout. */ setTimeout(timeout: number): void; - /** - * Gets the value of the property. - */ - getAllResponseHeaders(): string; - - /** - * Gets the value of the property. - */ - getResponseHeaders(): any; - - /** - * Gets the value of the property. - */ - getAutoEncodeUrl(): boolean; - - /** - * Sets the value of the property. - */ - setAutoEncodeUrl(autoEncodeUrl: boolean): void; - - /** - * Gets the value of the property. - */ - getAutoRedirect(): boolean; - - /** - * Sets the value of the property. - */ - setAutoRedirect(autoRedirect: boolean): void; - - /** - * Gets the value of the property. - */ - getConnected(): boolean; - - /** - * Gets the value of the property. - */ - getConnectionType(): string; - - /** - * Gets the value of the property. - */ - getDomain(): string; - - /** - * Sets the value of the property. - */ - setDomain(domain: string): void; - - /** - * Gets the value of the property. - */ - getEnableKeepAlive(): boolean; - - /** - * Sets the value of the property. - */ - setEnableKeepAlive(enableKeepAlive: boolean): void; - - /** - * Gets the value of the property. - */ - getFile(): string; - - /** - * Sets the value of the property. - */ - setFile(file: string): void; - - /** - * Gets the value of the property. - */ - getLocation(): string; - - /** - * Gets the value of the property. - */ - getOndatastream(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOndatastream(ondatastream: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnerror(): (param0: FailureResponse) => any; - - /** - * Sets the value of the property. - */ - setOnerror(onerror: (param0: FailureResponse) => any): void; - - /** - * Gets the value of the property. - */ - getOnload(): (param0: SuccessResponse) => any; - - /** - * Sets the value of the property. - */ - setOnload(onload: (param0: SuccessResponse) => any): void; - - /** - * Gets the value of the property. - */ - getOnreadystatechange(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnreadystatechange(onreadystatechange: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getOnsendstream(): (param0: any) => any; - - /** - * Sets the value of the property. - */ - setOnsendstream(onsendstream: (param0: any) => any): void; - - /** - * Gets the value of the property. - */ - getPassword(): string; - - /** - * Sets the value of the property. - */ - setPassword(password: string): void; - - /** - * Gets the value of the property. - */ - getReadyState(): number; - - /** - * Gets the value of the property. - */ - getResponseData(): Titanium.Blob; - - /** - * Gets the value of the property. - */ - getResponseText(): string; - - /** - * Gets the value of the property. - */ - getResponseXML(): Titanium.XML.Document; - - /** - * Gets the value of the property. - */ - getSecurityManager(): SecurityManagerProtocol; - - /** - * Sets the value of the property. - */ - setSecurityManager(securityManager: SecurityManagerProtocol): void; - - /** - * Gets the value of the property. - */ - getStatus(): number; - - /** - * Gets the value of the property. - */ - getStatusText(): string; - - /** - * Gets the value of the property. - */ - getTimeout(): number; - - /** - * Gets the value of the property. - */ - getUsername(): string; - - /** - * Sets the value of the property. - */ - setUsername(username: string): void; - - /** - * Gets the value of the property. - */ - getValidatesSecureCertificate(): boolean; - - /** - * Sets the value of the property. - */ - setValidatesSecureCertificate(validatesSecureCertificate: boolean): void; - - /** - * Gets the value of the property. - */ - getTlsVersion(): number; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setTlsVersion(tlsVersion: number): void; /** - * Gets the value of the property. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - getCache(): boolean; + setUsername(username: string): void; /** - * Sets the value of the property. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - setCache(cache: boolean): void; + setValidatesSecureCertificate(validatesSecureCertificate: boolean): void; + + } + /** + * Socket module, used for creating sockets. + */ + class Socket extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Returns a new TCP socket object. + */ + static createTCP(params?: Dictionary): Titanium.Network.Socket.TCP; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; } /** * The TCPSocket instance returned from . This object * represents a socket which either listens locally on the device for connections, * or connects to a remote machine. + * @deprecated Use [Titanium.Network.Socket.TCP](Titanium.Network.Socket.TCP) where possible. + * */ - interface TCPSocket extends Titanium.Proxy { - /** - * the host name to connect to. Must be or an identifier for the local device in order to listen - */ - hostName: string; - - /** - * whether or not the socket is valid - */ - isValid: boolean; - - /** - * the socket's mode - */ - mode: number; - - /** - * the port to connect/listen on - */ - port: number; - - /** - * strip terminating null character when sending string data; default is false - */ - stripTerminator: boolean; - - /** - * close the socket - */ - close(): void; - - /** - * connect the scocket to a TCP server - */ - connect(): void; - - /** - * set up the socket to receive connections - */ - listen(): void; - - /** - * write data to the socket, if the mode is WRITE_MODE or READ_WRITE_MODE - */ - write(data: any, sendTo: number): void; - - /** - * write data to the socket, if the mode is WRITE_MODE or READ_WRITE_MODE - */ - write(data: string, sendTo: number): void; - - /** - * Gets the value of the property. - */ - getHostName(): string; - - /** - * Sets the value of the property. - */ - setHostName(hostName: string): void; - - /** - * Gets the value of the property. - */ - getIsValid(): boolean; - - /** - * Sets the value of the property. - */ - setIsValid(isValid: boolean): void; - - /** - * Gets the value of the property. - */ - getMode(): number; - - /** - * Sets the value of the property. - */ - setMode(mode: number): void; - - /** - * Gets the value of the property. - */ - getPort(): number; - - /** - * Sets the value of the property. - */ - setPort(port: number): void; - - /** - * Gets the value of the property. - */ - getStripTerminator(): boolean; - - /** - * Sets the value of the property. - */ - setStripTerminator(stripTerminator: boolean): void; - - } - - /** - * Socket module, used for creating sockets. - */ - namespace Socket { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * State value representing an initialized socket. - */ - const INITIALIZED: number; - - /** - * State value representing a connected socket. - */ - const CONNECTED: number; - - /** - * State value representing a socket that is listening for connections. - */ - const LISTENING: number; - - /** - * State value representing a closed socket. - */ - const CLOSED: number; - - /** - * State value indicating an error has occurred on the socket. - */ - const ERROR: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Returns a new TCP socket object. - */ - function createTCP(params?: any): Titanium.Network.Socket.TCP; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * TCP socket that implements the `Titanium.IOStream` interface. - */ - interface TCP extends Titanium.Proxy { - /** - * The host to connect to or listen on. - */ - host: string; - - /** - * The port to connect to or listen on. - */ - port: number; - - /** - * Max number of pending incoming connections to be allowed when the socket is in the [LISTENING](Titanium.Network.Socket.LISTENING) state. - */ - listenQueueSize: number; - - /** - * Timeout, in milliseconds, for `connect` and all `write` operations. - */ - timeout: number; - - /** - * Callback to be fired when the socket enters the "connected" state. - */ - connected: (param0: ConnectedCallbackArgs) => any; - - /** - * Callback to be fired when the socket enters the [ERROR](Titanium.Network.Socket.ERROR) state. - */ - error: (param0: ErrorCallbackArgs) => any; - - /** - * Callback to be fired when a listener accepts a connection. - */ - accepted: (param0: AcceptedCallbackArgs) => any; - - /** - * Current state of the socket. - */ - readonly state: number; - - /** - * Reads data from this stream into a buffer. - */ - read(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: ReadCallbackArgs) => any): number; - - /** - * Writes data from a buffer to this stream. - */ - write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; - - /** - * Indicates whether this stream is writable. - */ - isWritable(): boolean; - - /** - * Indicates whether this stream is readable. - */ - isReadable(): boolean; - - /** - * Closes a socket. - */ - close(): void; - - /** - * Attempts to connect the socket to its host/port. - */ - connect(): void; - - /** - * Attempts to start listening on the socket's host/port. - */ - listen(): void; - - /** - * Tells a [LISTENING](Titanium.Network.Socket.LISTENING) socket to accept a connection request at the top of a listener's request queue when one becomes available. - */ - accept(options: AcceptDict): void; - - /** - * Gets the value of the property. - */ - getHost(): string; - - /** - * Sets the value of the property. - */ - setHost(host: string): void; - - /** - * Gets the value of the property. - */ - getPort(): number; - - /** - * Sets the value of the property. - */ - setPort(port: number): void; - - /** - * Gets the value of the property. - */ - getListenQueueSize(): number; - - /** - * Sets the value of the property. - */ - setListenQueueSize(listenQueueSize: number): void; - - /** - * Gets the value of the property. - */ - getTimeout(): number; - - /** - * Sets the value of the property. - */ - setTimeout(timeout: number): void; - - /** - * Gets the value of the property. - */ - getConnected(): (param0: ConnectedCallbackArgs) => any; - - /** - * Sets the value of the property. - */ - setConnected(connected: (param0: ConnectedCallbackArgs) => any): void; - - /** - * Gets the value of the property. - */ - getError(): (param0: ErrorCallbackArgs) => any; - - /** - * Sets the value of the property. - */ - setError(error: (param0: ErrorCallbackArgs) => any): void; - - /** - * Gets the value of the property. - */ - getAccepted(): (param0: AcceptedCallbackArgs) => any; - - /** - * Sets the value of the property. - */ - setAccepted(accepted: (param0: AcceptedCallbackArgs) => any): void; - - /** - * Gets the value of the property. - */ - getState(): number; - - } - } + const TCPSocket: never; } - /** * The top-level Platform module. The Platform module is used to access the device's platform-related * functionality. */ namespace Platform { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - /** * Constant to indicate that the system is plugged in and currently being charged. */ @@ -54423,349 +19023,120 @@ declare namespace Titanium { const BATTERY_STATE_UNPLUGGED: number; /** - * System's WIFI IP address. No other network types are supported. - */ - const address: string; - - /** - * System's processor architecture. - */ - const architecture: string; - - /** - * System's unused memory, measured in bytes. - */ - const availableMemory: number; - - /** - * Battery level in percent, accessible only when `batteryMonitoring` is enabled. Measured - * in 5% increments on iPhone/iPad. - */ - const batteryLevel: number; - - /** - * Determines whether battery monitoring is enabled. - */ - let batteryMonitoring: boolean; - - /** - * Indicates the state of the battery. Accessible only when `batteryMonitoring` is enabled. - */ - const batteryState: number; - - /** - * Returns the DisplayCaps object. - */ - const displayCaps: Titanium.Platform.DisplayCaps; - - /** - * Applications's globally-unique ID (UUID). - */ - const id: string; - - /** - * An alphanumeric string that uniquely identifies a device to the app's vendor. - */ - const identifierForVendor: string; - - /** - * An alphanumeric string unique to each device, used only for serving advertisements. - */ - let identifierForAdvertising: string; - - /** - * A Boolean value that indicates whether the user has limited ad tracking. - */ - const isAdvertisingTrackingEnabled: boolean; - - /** - * System's default language. - */ - const locale: string; - - /** - * System's network interface mac address, or app UUID. - */ - const macaddress: string; - - /** - * Manufacturer of the device. - */ - const manufacturer: string; - - /** - * Model of the device. - */ - const model: string; - - /** - * Name of the platform. Returns `android` for the Android platform, `iPhone OS` for the iOS - * platform (iPhone, iPad, or iPod Touch), and `windows` for the Windows platform. - * Since iOS 10 this property returns `iOS` for for the iOS platform (iPhone, iPad, or iPod Touch). - */ - const name: string; - - /** - * System's WIFI network mask. No other network types are supported. - */ - const netmask: string; - - /** - * Short name of the system's Operating System. Returns `android` for the Android platfrom, - * `iphone` for the iPhone or iPod Touch, `ipad` for the iPad, `windowsphone` for Windows Phone, and `windowsstore` for Windows Store - * platform. - */ - const osname: string; - - /** - * Operating System architecture. On Android, this is `32bit`. - */ - const ostype: string; - - /** - * Number of logical processing cores. - */ - const processorCount: number; - - /** - * Short name of the JavaScript runtime in use. - */ - const runtime: string; - - /** - * System's total memory, measured in bytes. - */ - const totalMemory: number; - - /** - * System uptime since last boot in seconds. - */ - const uptime: number; - - /** - * System name, if set. On iOS, this can be found in Settings > General > About > Name. - */ - const username: string; - - /** - * System's OS version. - */ - const version: string; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Returns whether the system is configured with a default application to handle the URL's protocol. - */ - function canOpenURL(url: string): boolean; - - /** - * Returns an array of basic cpu information for all logical processors - */ - function cpus(): CPU[]; - - /** - * Creates a globally-unique identifier. - */ - function createUUID(): string; - - /** - * Opens this URL using the system's default application for its protocol. - */ - function openURL(url: string, options: any, callback: () => any): boolean; - - /** - * Returns whether the system settings are configured to show times in 24-hour format. - */ - function is24HourTimeFormat(): boolean; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Gets the value of the property. - */ - function getAddress(): string; - - /** - * Gets the value of the property. - */ - function getArchitecture(): string; - - /** - * Gets the value of the property. - */ - function getAvailableMemory(): number; - - /** - * Gets the value of the property. - */ - function getBatteryLevel(): number; - - /** - * Gets the value of the property. - */ - function getBatteryMonitoring(): boolean; - - /** - * Sets the value of the property. - */ - function setBatteryMonitoring(batteryMonitoring: boolean): void; - - /** - * Gets the value of the property. - */ - function getBatteryState(): number; - - /** - * Gets the value of the property. - */ - function getDisplayCaps(): Titanium.Platform.DisplayCaps; - - /** - * Gets the value of the property. - */ - function getId(): string; - - /** - * Gets the value of the property. - */ - function getIdentifierForVendor(): string; - - /** - * Gets the value of the property. - */ - function getIdentifierForAdvertising(): string; - - /** - * Sets the value of the property. - */ - function setIdentifierForAdvertising(identifierForAdvertising: string): void; - - /** - * Gets the value of the property. - */ - function getIsAdvertisingTrackingEnabled(): boolean; - - /** - * Gets the value of the property. - */ - function getLocale(): string; - - /** - * Gets the value of the property. - */ - function getMacaddress(): string; - - /** - * Gets the value of the property. - */ - function getManufacturer(): string; - - /** - * Gets the value of the property. - */ - function getModel(): string; - - /** - * Gets the value of the property. - */ - function getName(): string; - - /** - * Gets the value of the property. - */ - function getNetmask(): string; - - /** - * Gets the value of the property. - */ - function getOsname(): string; - - /** - * Gets the value of the property. - */ - function getOstype(): string; - - /** - * Gets the value of the property. - */ - function getProcessorCount(): number; - - /** - * Gets the value of the property. - */ - function getRuntime(): string; - - /** - * Gets the value of the property. - */ - function getTotalMemory(): number; - - /** - * Gets the value of the property. - */ - function getUptime(): number; - - /** - * Gets the value of the property. - */ - function getUsername(): string; - - /** - * Gets the value of the property. - */ - function getVersion(): string; - + * The Android-specific Platform module, used to access the device's platform-related functionality. + */ + class Android extends Titanium.Module { + /** + * Android API level identifier of the Operating System. + */ + static readonly API_LEVEL: number; + + /** + * Constant to indicate that the physical size category of the current device/emulator is large + */ + static readonly PHYSICAL_SIZE_CATEGORY_LARGE: number; + + /** + * Constant to indicate that the physical size category of the current device/emulator is normal + */ + static readonly PHYSICAL_SIZE_CATEGORY_NORMAL: number; + + /** + * Constant to indicate that the physical size category of the current device/emulator is small + */ + static readonly PHYSICAL_SIZE_CATEGORY_SMALL: number; + + /** + * Constant to indicate that the physical size category of the current device/emulator is undefined + */ + static readonly PHYSICAL_SIZE_CATEGORY_UNDEFINED: number; + + /** + * Constant to indicate that the physical size category of the current device/emulator is extra large + */ + static readonly PHYSICAL_SIZE_CATEGORY_XLARGE: number; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * The physical size category of the Android device or emulator. + */ + static readonly physicalSizeCategory: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getPhysicalSizeCategory(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } /** * The Display Caps object returned by the property. */ - interface DisplayCaps extends Titanium.Proxy { + class DisplayCaps extends Titanium.Proxy { /** * Logical density of the display. */ @@ -54804,855 +19175,56853 @@ declare namespace Titanium { */ readonly ydpi: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getDensity(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getDpi(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getLogicalDensityFactor(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getPlatformHeight(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getPlatformWidth(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getXdpi(): number; /** * Gets the value of the property. + * @deprecated Access instead. */ getYdpi(): number; - } - - /** - * The Android-specific Platform module, used to access the device's platform-related functionality. - */ - namespace Android { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Android API level identifier of the Operating System. - */ - const API_LEVEL: number; - - /** - * Constant to indicate that the physical size category of the current device/emulator is large - */ - const PHYSICAL_SIZE_CATEGORY_LARGE: number; - - /** - * Constant to indicate that the physical size category of the current device/emulator is normal - */ - const PHYSICAL_SIZE_CATEGORY_NORMAL: number; - - /** - * Constant to indicate that the physical size category of the current device/emulator is small - */ - const PHYSICAL_SIZE_CATEGORY_SMALL: number; - - /** - * Constant to indicate that the physical size category of the current device/emulator is undefined - */ - const PHYSICAL_SIZE_CATEGORY_UNDEFINED: number; - - /** - * Constant to indicate that the physical size category of the current device/emulator is extra large - */ - const PHYSICAL_SIZE_CATEGORY_XLARGE: number; - - /** - * The physical size category of the Android device or emulator. - */ - const physicalSizeCategory: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - /** * Removes the specified callback as an event listener for the named event. */ - function removeEventListener(name: string, callback: (param0: any) => any): void; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + } + /** + * The main module. + */ + namespace UI { + /** + * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts + * slowly and speeds up. + */ + const ANIMATION_CURVE_EASE_IN: number; + + /** + * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts + * slowly, and speeds up, then slows down at the end of the animation. + */ + const ANIMATION_CURVE_EASE_IN_OUT: number; + + /** + * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts + * quickly, then slows down at the end of the animation. + */ + const ANIMATION_CURVE_EASE_OUT: number; + + /** + * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that proceeds + * at a constant rate. + */ + const ANIMATION_CURVE_LINEAR: number; + + /** + * Use with to specify a background color. + */ + const ATTRIBUTE_BACKGROUND_COLOR: number; + + /** + * Use with to apply a different baseline to the text. + */ + const ATTRIBUTE_BASELINE_OFFSET: number; + + /** + * Use with to stretch the text horizontally. + */ + const ATTRIBUTE_EXPANSION: number; + + /** + * Use with to specify a font. + */ + const ATTRIBUTE_FONT: number; + + /** + * Use with to specify a font color. + */ + const ATTRIBUTE_FOREGROUND_COLOR: number; + + /** + * Use with to specify kerning (space between characters). + */ + const ATTRIBUTE_KERN: number; + + /** + * Use with to use a letterpress text effect. + */ + const ATTRIBUTE_LETTERPRESS_STYLE: number; + + /** + * Use with to enable or disable ligatures. + */ + const ATTRIBUTE_LIGATURE: number; + + /** + * Use with to wrap and truncate the text. + * @deprecated Use [ParagraphAttribute.lineBreakMode](ParagraphAttribute.lineBreakMode) instead. + */ + const ATTRIBUTE_LINE_BREAK: number; + + /** + * Use with to wrap words at word boundaries. + */ + const ATTRIBUTE_LINE_BREAK_BY_CHAR_WRAPPING: number; + + /** + * Use with to set lines to not draw past the edge of the text container. + */ + const ATTRIBUTE_LINE_BREAK_BY_CLIPPING: number; + + /** + * Use with to use ellipsis glyph at the beginning of the line for missing text. + */ + const ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_HEAD: number; + + /** + * Use with to use ellipsis glyph at the middle of the line for missing text. + */ + const ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_MIDDLE: number; + + /** + * Use with to use ellipsis glyph at the end of the line for missing text. + */ + const ATTRIBUTE_LINE_BREAK_BY_TRUNCATING_TAIL: number; + + /** + * Use with to wrap words at word boundaries. + */ + const ATTRIBUTE_LINE_BREAK_BY_WORD_WRAPPING: number; + + /** + * Use with to create a link. + */ + const ATTRIBUTE_LINK: number; + + /** + * Use with to skew the text. + */ + const ATTRIBUTE_OBLIQUENESS: number; + + /** + * Use with to manages the behaviour of string set. + */ + const ATTRIBUTE_PARAGRAPH_STYLE: number; + + /** + * Use with to display a shadow behind the text. + */ + const ATTRIBUTE_SHADOW: number; + + /** + * Use with to change the color of the horizontal line. + */ + const ATTRIBUTE_STRIKETHROUGH_COLOR: number; + + /** + * Use with to place a horizontal line through the text. + */ + const ATTRIBUTE_STRIKETHROUGH_STYLE: number; + + /** + * Use with to specify a color for the stroke text. + */ + const ATTRIBUTE_STROKE_COLOR: number; + + /** + * Use with to specify the width of the stroke text. + */ + const ATTRIBUTE_STROKE_WIDTH: number; + + /** + * Use with to place the text in a lower position. + */ + const ATTRIBUTE_SUBSCRIPT_STYLE: number; + + /** + * Use with to place the text in an upper position. + */ + const ATTRIBUTE_SUPERSCRIPT_STYLE: number; + + /** + * Use with to apply a text effect. + */ + const ATTRIBUTE_TEXT_EFFECT: number; + + /** + * Use with to place a horizontal line under the text. + */ + const ATTRIBUTE_UNDERLINES_STYLE: number; + + /** + * Use with to draw a line only underneath or through words. + */ + const ATTRIBUTE_UNDERLINE_BY_WORD: number; + + /** + * Use with to change the color of the horizontal line. + */ + const ATTRIBUTE_UNDERLINE_COLOR: number; + + /** + * Use with to draw a dashed line. + */ + const ATTRIBUTE_UNDERLINE_PATTERN_DASH: number; + + /** + * Use with to draw an alternating line of dashes and dots. + */ + const ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT: number; + + /** + * Use with to draw an alternating line of dashes and two dots. + */ + const ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT_DOT: number; + + /** + * Use with to draw a dotted line. + */ + const ATTRIBUTE_UNDERLINE_PATTERN_DOT: number; + + /** + * Use with to draw a solid line. + */ + const ATTRIBUTE_UNDERLINE_PATTERN_SOLID: number; + + /** + * Use with to draw a double line. + */ + const ATTRIBUTE_UNDERLINE_STYLE_DOUBLE: number; + + /** + * Use with to not draw a line. + */ + const ATTRIBUTE_UNDERLINE_STYLE_NONE: number; + + /** + * Use with to draw a single line. + */ + const ATTRIBUTE_UNDERLINE_STYLE_SINGLE: number; + + /** + * Use with to draw a thick line. + */ + const ATTRIBUTE_UNDERLINE_STYLE_THICK: number; + + /** + * Use with to control the direction of the text. + */ + const ATTRIBUTE_WRITING_DIRECTION: number; + + /** + * Use with to use the embedded text direction. + */ + const ATTRIBUTE_WRITING_DIRECTION_EMBEDDING: number; + + /** + * Use with to write text left to right. + */ + const ATTRIBUTE_WRITING_DIRECTION_LEFT_TO_RIGHT: number; + + /** + * Use with to use the + * [Unicode Bidirection Algorithm rules P2 and P3](http://www.unicode.org/reports/tr9/#The_Paragraph_Level) + * to determine which direction to use. + */ + const ATTRIBUTE_WRITING_DIRECTION_NATURAL: number; + + /** + * Use with to override the text direction. + */ + const ATTRIBUTE_WRITING_DIRECTION_OVERRIDE: number; + + /** + * Use with to write text right to left. + */ + const ATTRIBUTE_WRITING_DIRECTION_RIGHT_TO_LEFT: number; + + /** + * Converts strings formatted as addresses into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_MAP_ADDRESSES](Titanium.UI.AUTOLINK_MAP_ADDRESSES) instead. + */ + const AUTODETECT_ADDRESS: never; + + /** + * Converts all detectable types of data into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_ALL](Titanium.UI.AUTOLINK_ALL) instead. + */ + const AUTODETECT_ALL: never; + + /** + * Converts strings formatted as calendar events into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_CALENDAR](Titanium.UI.AUTOLINK_CALENDAR) instead. + */ + const AUTODETECT_CALENDAR: never; + + /** + * Converts strings formatted as URLs into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_URLS](Titanium.UI.AUTOLINK_URLS) instead. + */ + const AUTODETECT_LINK: never; + + /** + * Disables converting strings into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_NONE](Titanium.UI.AUTOLINK_NONE) instead. + */ + const AUTODETECT_NONE: never; + + /** + * Converts strings formatted as phone numbers into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_PHONE_NUMBERS](Titanium.UI.AUTOLINK_PHONE_NUMBERS) instead. + */ + const AUTODETECT_PHONE: never; + + /** + * Specifies the expectation of an address. + */ + const AUTOFILL_TYPE_ADDRESS: string; + + /** + * Specifies the expectation of a city name. + */ + const AUTOFILL_TYPE_ADDRESS_CITY: string; + + /** + * Specifies the expectation of a city name combined with a state name. + */ + const AUTOFILL_TYPE_ADDRESS_CITY_STATE: string; + + /** + * Specifies the expectation of the first line of a street address. + */ + const AUTOFILL_TYPE_ADDRESS_LINE1: string; + + /** + * Specifies the expectation of the second line of a street address. + */ + const AUTOFILL_TYPE_ADDRESS_LINE2: string; + + /** + * Specifies the expectation of a state name. + */ + const AUTOFILL_TYPE_ADDRESS_STATE: string; + + /** + * Specifies the expectation of a card expiration date. + */ + const AUTOFILL_TYPE_CARD_EXPIRATION_DATE: string; + + /** + * Specifies the expectation of a card expiration day. + */ + const AUTOFILL_TYPE_CARD_EXPIRATION_DAY: string; + + /** + * Specifies the expectation of a card expiration month. + */ + const AUTOFILL_TYPE_CARD_EXPIRATION_MONTH: string; + + /** + * Specifies the expectation of a card expiration year. + */ + const AUTOFILL_TYPE_CARD_EXPIRATION_YEAR: string; + + /** + * Specifies the expectation of a card number. + */ + const AUTOFILL_TYPE_CARD_NUMBER: string; + + /** + * Specifies the expectation of a card security code. + */ + const AUTOFILL_TYPE_CARD_SECURITY_CODE: string; + + /** + * Specifies the expectation of a country name. + */ + const AUTOFILL_TYPE_COUNTRY_NAME: string; + + /** + * Specifies the expectation of an email address. + */ + const AUTOFILL_TYPE_EMAIL: string; + + /** + * Specifies the expectation of a family name. + */ + const AUTOFILL_TYPE_FAMILY_NAME: string; + + /** + * Specifies the expectation of a given name. + */ + const AUTOFILL_TYPE_GIVEN_NAME: string; + + /** + * Specifies the expectation of a job title. + */ + const AUTOFILL_TYPE_JOB_TITLE: string; + + /** + * Specifies the expectation of a location, such as a point of interest, an address, or another way to identify a location. + */ + const AUTOFILL_TYPE_LOCATION: string; + + /** + * Specifies the expectation of a middle name. + */ + const AUTOFILL_TYPE_MIDDLE_NAME: string; + + /** + * Specifies the expectation of a name. + */ + const AUTOFILL_TYPE_NAME: string; + + /** + * Specifies the expectation of a prefix or title, such as 'Dr.' + */ + const AUTOFILL_TYPE_NAME_PREFIX: string; + + /** + * Specifies the expectation of a suffix, such as 'Jr.' + */ + const AUTOFILL_TYPE_NAME_SUFFIX: string; + + /** + * Specifies the expectation of a new password. + */ + const AUTOFILL_TYPE_NEW_PASSWORD: string; + + /** + * Specifies the expectation of a nickname. + */ + const AUTOFILL_TYPE_NICKNAME: string; + + /** + * Specifies the expectation of a single-factor SMS login code. + */ + const AUTOFILL_TYPE_ONE_TIME_CODE: string; + + /** + * Specifies the expectation of an organization name. + */ + const AUTOFILL_TYPE_ORGANIZATION_NAME: string; + + /** + * Specifies the expectation of a password. + */ + const AUTOFILL_TYPE_PASSWORD: string; + + /** + * Specifies the expectation of a telephone number. + */ + const AUTOFILL_TYPE_PHONE: string; + + /** + * Specifies the expectation of a postal code. + */ + const AUTOFILL_TYPE_POSTAL_CODE: string; + + /** + * Specifies the expectation of a sublocality. + */ + const AUTOFILL_TYPE_SUBLOCALITY: string; + + /** + * Specifies the expectation of a URL. + */ + const AUTOFILL_TYPE_URL: string; + + /** + * Specifies the expectation of an account or login name. + */ + const AUTOFILL_TYPE_USERNAME: string; + + /** + * Converts all detectable types of data into clickable links. + */ + const AUTOLINK_ALL: number; + + /** + * Converts strings formatted as calendar events into clickable links. + */ + const AUTOLINK_CALENDAR: number; + + /** + * Converts strings formatted as email addresses into clickable links. + */ + const AUTOLINK_EMAIL_ADDRESSES: number; + + /** + * Converts strings formatted as addresses into clickable links. + */ + const AUTOLINK_MAP_ADDRESSES: number; + + /** + * Disables converting strings into clickable links. + */ + const AUTOLINK_NONE: number; + + /** + * Converts strings formatted as phone numbers into clickable links. + */ + const AUTOLINK_PHONE_NUMBERS: number; + + /** + * Converts strings formatted as URLs into clickable links. + */ + const AUTOLINK_URLS: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_CLEAR: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_COLOR: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_COLOR_BURN: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_COLOR_DODGE: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_COPY: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_DARKEN: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_DESTINATION_ATOP: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_DESTINATION_IN: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_DESTINATION_OUT: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_DESTINATION_OVER: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_DIFFERENCE: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_EXCLUSION: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_HARD_LIGHT: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_HUE: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_LIGHTEN: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_LUMINOSITY: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_MULTIPLY: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_NORMAL: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_OVERLAY: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_PLUS_DARKER: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_PLUS_LIGHTER: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_SATURATION: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_SCREEN: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_SOFT_LIGHT: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_SOURCE_ATOP: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_SOURCE_IN: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_SOURCE_OUT: number; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + */ + const BLEND_MODE_XOR: number; + + /** + * Specifies the time and date that you want the system to remove the clipboard items from the clipboard. + */ + const CLIPBOARD_OPTION_EXPIRATION_DATE: string; + + /** + * Specifies that the clipboard items should not be available to other devices through Handoff. + */ + const CLIPBOARD_OPTION_LOCAL_ONLY: string; + + /** + * Specifies that all the edges of the window can extend. + */ + const EXTEND_EDGE_ALL: number; + + /** + * Specifies that the bottom edge of the window can extend. + */ + const EXTEND_EDGE_BOTTOM: number; + + /** + * Specifies that the left edge of the window can extend. + */ + const EXTEND_EDGE_LEFT: number; + + /** + * Specifies that none of the edges of the window can extend. + */ + const EXTEND_EDGE_NONE: number; + + /** + * Specifies that the right edge of the window can extend. + */ + const EXTEND_EDGE_RIGHT: number; + + /** + * Specifies that the top edge of the window can extend. + */ + const EXTEND_EDGE_TOP: number; + + /** + * Constant value for face-down orientation. + */ + const FACE_DOWN: number; + + /** + * Constant value for face-up orientation. + */ + const FACE_UP: number; + + /** + * FILL behavior for UI layout. + */ + const FILL: string; + + /** + * Release free space when hiding an object. + */ + const HIDDEN_BEHAVIOR_GONE: number; + + /** + * Keeps free space when hiding an object. + */ + const HIDDEN_BEHAVIOR_INVISIBLE: number; + + /** + * Use when creating a TextField to specify the hintType as animated. + */ + const HINT_TYPE_ANIMATED: number; + + /** + * Use when creating a TextField to specify the hintType as static. + */ + const HINT_TYPE_STATIC: number; + + /** + * Use a bezel-style border on the input field. + */ + const INPUT_BORDERSTYLE_BEZEL: number; + + /** + * Use a simple line border on the input field. + */ + const INPUT_BORDERSTYLE_LINE: number; + + /** + * Use no border on the input field. + */ + const INPUT_BORDERSTYLE_NONE: number; + + /** + * Use a rounded-rectangle border on the input field. + */ + const INPUT_BORDERSTYLE_ROUNDED: number; + + /** + * Always show buttons on the input field. + */ + const INPUT_BUTTONMODE_ALWAYS: number; + + /** + * Never show buttons on the input field. + */ + const INPUT_BUTTONMODE_NEVER: number; + + /** + * Show buttons on the input field when it loses focus. + */ + const INPUT_BUTTONMODE_ONBLUR: number; + + /** + * Show buttons on the input field when it gains focus. + */ + const INPUT_BUTTONMODE_ONFOCUS: number; + + /** + * Use a keyboard with a number pad only, with the pad keyboard layout. Accepts only numbers. + */ + const INPUT_TYPE_CLASS_NUMBER: number; + + /** + * Use an ASCII keyboard, with the standard keyboard layout. + */ + const INPUT_TYPE_CLASS_TEXT: number; + + /** + * Use a keyboard appearance suitable for entering text on an alert. + * @deprecated + */ + const KEYBOARD_APPEARANCE_ALERT: never; + + /** + * Use the platform-specific dark keyboard appearance. + */ + const KEYBOARD_APPEARANCE_DARK: number; + + /** + * Use the platform-specific default keyboard appearance. + */ + const KEYBOARD_APPEARANCE_DEFAULT: number; + + /** + * Use the platform-specific light keyboard appearance. + */ + const KEYBOARD_APPEARANCE_LIGHT: number; + + /** + * Use an ASCII keyboard, with the standard keyboard layout. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_ASCII](Titanium.UI.KEYBOARD_TYPE_ASCII) instead. + */ + const KEYBOARD_ASCII: never; + + /** + * Use a keyboard with decimal numbers only, with the pad keyboard layout. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_DECIMAL_PAD](Titanium.UI.KEYBOARD_TYPE_DECIMAL_PAD) instead. + */ + const KEYBOARD_DECIMAL_PAD: never; + + /** + * Use the default keyboard, depending on the platform. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_DEFAULT](Titanium.UI.KEYBOARD_TYPE_DEFAULT) instead. + */ + const KEYBOARD_DEFAULT: never; + + /** + * Use a keyboard suitable for composing email, with the standard keyboard layout. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_EMAIL](Titanium.UI.KEYBOARD_TYPE_EMAIL) instead. + */ + const KEYBOARD_EMAIL: never; + + /** + * Use a keyboard suitable for entering names and phone numbers, with the pad keyboard layout. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_NAMEPHONE_PAD](Titanium.UI.KEYBOARD_TYPE_NAMEPHONE_PAD) instead. + */ + const KEYBOARD_NAMEPHONE_PAD: never; + + /** + * Use a keyboard with numbers and punctuation only, with the standard keyboard layout. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_NUMBERS_PUNCTUATION](Titanium.UI.KEYBOARD_TYPE_NUMBERS_PUNCTUATION) instead. + */ + const KEYBOARD_NUMBERS_PUNCTUATION: never; + + /** + * Use a keyboard with a number pad only, with the pad keyboard layout. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_NUMBER_PAD](Titanium.UI.KEYBOARD_TYPE_NUMBER_PAD) instead. + */ + const KEYBOARD_NUMBER_PAD: never; + + /** + * Use a keyboard with a phone-style number pad, with the pad keyboard layout. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_PHONE_PAD](Titanium.UI.KEYBOARD_TYPE_PHONE_PAD) instead. + */ + const KEYBOARD_PHONE_PAD: never; + + /** + * Use an ASCII keyboard, with the standard keyboard layout. + */ + const KEYBOARD_TYPE_ASCII: number; + + /** + * Use a keyboard with decimal numbers only, with the pad keyboard layout. + */ + const KEYBOARD_TYPE_DECIMAL_PAD: number; + + /** + * Use the default keyboard, depending on the platform. + */ + const KEYBOARD_TYPE_DEFAULT: number; + + /** + * Use a keyboard suitable for composing email, with the standard keyboard layout. + */ + const KEYBOARD_TYPE_EMAIL: number; + + /** + * Use a keyboard suitable for entering names and phone numbers, with the pad keyboard layout. + */ + const KEYBOARD_TYPE_NAMEPHONE_PAD: number; + + /** + * Use a keyboard with numbers and punctuation only, with the standard keyboard layout. + */ + const KEYBOARD_TYPE_NUMBERS_PUNCTUATION: number; + + /** + * Use a keyboard with a number pad only, with the pad keyboard layout. + */ + const KEYBOARD_TYPE_NUMBER_PAD: number; + + /** + * Use a keyboard with a phone-style number pad, with the pad keyboard layout. + */ + const KEYBOARD_TYPE_PHONE_PAD: number; + + /** + * Use a keyboard optimized for twitter text entry, with easy access to the @ and + */ + const KEYBOARD_TYPE_TWITTER: number; + + /** + * Use a keyboard optimized for entering URLs, with the standard keyboard layout. + */ + const KEYBOARD_TYPE_URL: number; + + /** + * Use a keyboard optimized for web search terms and URL entry. + */ + const KEYBOARD_TYPE_WEBSEARCH: number; + + /** + * Use a keyboard optimized for entering URLs, with the standard keyboard layout. + * @deprecated Use [Titanium.UI.KEYBOARD_TYPE_URL](Titanium.UI.KEYBOARD_TYPE_URL) instead. + */ + const KEYBOARD_URL: never; + + /** + * Standard landscape orientation (home button on left). + */ + const LANDSCAPE_LEFT: number; + + /** + * Reverse landscape orientation (home button on right). + */ + const LANDSCAPE_RIGHT: number; + + /** + * Displays a checkmark on the right side of an item in a list view. + */ + const LIST_ACCESSORY_TYPE_CHECKMARK: number; + + /** + * Displays a detail disclosure button on the right side of an item in a list view. + */ + const LIST_ACCESSORY_TYPE_DETAIL: number; + + /** + * Displays a disclosure indicator on the right side of an item in a list view. + */ + const LIST_ACCESSORY_TYPE_DISCLOSURE: number; + + /** + * Do not display anything on the right side of an item in a list view. + */ + const LIST_ACCESSORY_TYPE_NONE: number; + + /** + * 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. + */ + const LIST_ITEM_TEMPLATE_CONTACTS: number; + + /** + * A built-in style for an item with an image view and left-aligned title label. + */ + const LIST_ITEM_TEMPLATE_DEFAULT: number; + + /** + * A built-in style for a item with an image view; a left-aligned title label; and a + * right-aligned subtitle label. + */ + const LIST_ITEM_TEMPLATE_SETTINGS: number; + + /** + * 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. + */ + const LIST_ITEM_TEMPLATE_SUBTITLE: number; + + /** + * Specifies a long duration for an Android Toast notification (). + */ + const NOTIFICATION_DURATION_LONG: number; + + /** + * Specifies a short duration for an Android Toast notification (). + */ + const NOTIFICATION_DURATION_SHORT: number; + + /** + * Use a picker with a countdown timer appearance, showing hours and minutes. + */ + const PICKER_TYPE_COUNT_DOWN_TIMER: number; + + /** + * Use a date picker. + */ + const PICKER_TYPE_DATE: number; + + /** + * Use a date and time picker. + */ + const PICKER_TYPE_DATE_AND_TIME: number; + + /** + * Use a plain picker (for values other than date or time). + */ + const PICKER_TYPE_PLAIN: number; + + /** + * Use a time picker. + */ + const PICKER_TYPE_TIME: number; + + /** + * Orientation constant for portrait mode orientation. + */ + const PORTRAIT: number; + + /** + * Set the return key text to "Continue". + */ + const RETURNKEY_CONTINUE: number; + + /** + * Use the default return key on the virtual keyboard. + */ + const RETURNKEY_DEFAULT: number; + + /** + * Set the return key text to "Done". + */ + const RETURNKEY_DONE: number; + + /** + * Set the return key text to "Emergency Call". + */ + const RETURNKEY_EMERGENCY_CALL: number; + + /** + * Set the return key text to "Go". + */ + const RETURNKEY_GO: number; + + /** + * Set the return key text to "Google". + */ + const RETURNKEY_GOOGLE: number; + + /** + * Set the return key text to "Join". + */ + const RETURNKEY_JOIN: number; + + /** + * Set the return key text to "Next". + */ + const RETURNKEY_NEXT: number; + + /** + * Set the return key text to "Route". + */ + const RETURNKEY_ROUTE: number; + + /** + * Set the return key text to "Search". + */ + const RETURNKEY_SEARCH: number; + + /** + * Set the return key text to "Send". + */ + const RETURNKEY_SEND: number; + + /** + * Set the return key text to "Yahoo". + */ + const RETURNKEY_YAHOO: number; + + /** + * Return the dark value from the applications colorset + */ + const SEMANTIC_COLOR_TYPE_DARK: string; + + /** + * Return the light value from the applications colorset. + */ + const SEMANTIC_COLOR_TYPE_LIGHT: string; + + /** + * SIZE behavior for UI layout. + */ + const SIZE: string; + + /** + * The row divider is hidden. + */ + const TABLE_VIEW_SEPARATOR_STYLE_NONE: number; + + /** + * The row divider is shown as a single line. + */ + const TABLE_VIEW_SEPARATOR_STYLE_SINGLE_LINE: number; + + /** + * Center align text. + */ + const TEXT_ALIGNMENT_CENTER: number | string; + + /** + * Justify align text. + */ + const TEXT_ALIGNMENT_JUSTIFY: number | string; + + /** + * Left align text. + */ + const TEXT_ALIGNMENT_LEFT: number | string; + + /** + * Right align text. + */ + const TEXT_ALIGNMENT_RIGHT: number | string; + + /** + * Auto-capitalize all text in the input field. + */ + const TEXT_AUTOCAPITALIZATION_ALL: number; + + /** + * Do not auto-capitalize. + */ + const TEXT_AUTOCAPITALIZATION_NONE: number; + + /** + * Use sentence-style auto-capitalization in the input field. + */ + const TEXT_AUTOCAPITALIZATION_SENTENCES: number; + + /** + * Auto-capitalize the first letter of each word in the input field. + */ + const TEXT_AUTOCAPITALIZATION_WORDS: number; + + /** + * Add ellipses before the first character that doesnt fit. + */ + const TEXT_ELLIPSIZE_TRUNCATE_CHAR_WRAP: number; + + /** + * Lines are simply not drawn past the edge of the text container. + */ + const TEXT_ELLIPSIZE_TRUNCATE_CLIP: number; + + /** + * Add ellipses at the end of the label if the text is too large to fit. + */ + const TEXT_ELLIPSIZE_TRUNCATE_END: number; + + /** + * Turns on a marquee effect of the label if the text is too large to fit. (This requires to be true) + */ + const TEXT_ELLIPSIZE_TRUNCATE_MARQUEE: number; + + /** + * Add ellipses in the middle of the label if the text is too large to fit. + */ + const TEXT_ELLIPSIZE_TRUNCATE_MIDDLE: number; + + /** + * Disables ellipsizing of the label. The text will be cut off if it is too long. + */ + const TEXT_ELLIPSIZE_TRUNCATE_NONE: number; + + /** + * Add ellipses at the beginning of the label if the text is too large to fit. + */ + const TEXT_ELLIPSIZE_TRUNCATE_START: number; + + /** + * Add ellipses at word boundaries, unless the word itself doesn't fit on a single line. + */ + const TEXT_ELLIPSIZE_TRUNCATE_WORD_WRAP: number; + + /** + * The font used for body texts. + */ + const TEXT_STYLE_BODY: string; + + /** + * The font used for callouts. + */ + const TEXT_STYLE_CALLOUT: string; + + /** + * The font used for standard captions. + */ + const TEXT_STYLE_CAPTION1: string; + + /** + * The font used for alternate captions. + */ + const TEXT_STYLE_CAPTION2: string; + + /** + * The font used in footnotes. + */ + const TEXT_STYLE_FOOTNOTE: string; + + /** + * The font used for headings. + */ + const TEXT_STYLE_HEADLINE: string; + + /** + * Specifies the text style for the Object. + */ + const TEXT_STYLE_LARGE_TITLE: string; + + /** + * The font used for subheadings. + */ + const TEXT_STYLE_SUBHEADLINE: string; + + /** + * The font used for first level hierarchical headings. + */ + const TEXT_STYLE_TITLE1: string; + + /** + * The font used for second level hierarchical headings. + */ + const TEXT_STYLE_TITLE2: string; + + /** + * The font used for third level hierarchical headings. + */ + const TEXT_STYLE_TITLE3: string; + + /** + * Align text to the bottom of the view. + */ + const TEXT_VERTICAL_ALIGNMENT_BOTTOM: number | string; + + /** + * Vertically align text to the center of the view. + */ + const TEXT_VERTICAL_ALIGNMENT_CENTER: number | string; + + /** + * Align text to the top of the view. + */ + const TEXT_VERTICAL_ALIGNMENT_TOP: number | string; + + /** + * Unit constant representing units in centimeters. + */ + const UNIT_CM: string; + + /** + * Unit constant representing units in density-independent pixels. + */ + const UNIT_DIP: string; + + /** + * Unit constant representing units in inches. + */ + const UNIT_IN: string; + + /** + * Unit constant representing units in millimeters. + */ + const UNIT_MM: string; + + /** + * Unit constant representing units in pixels. + */ + const UNIT_PX: string; + + /** + * Orientation constant representing an unknown orientation. + */ + const UNKNOWN: number; + + /** + * Orientation constant for inverted portait orientation. + */ + const UPSIDE_PORTRAIT: number; + + /** + * Authentication error code reported via . + */ + const URL_ERROR_AUTHENTICATION: number; + + /** + * Bad url error code reported via . + */ + const URL_ERROR_BAD_URL: number; + + /** + * Error code reported via for a failure to connect to host. + */ + const URL_ERROR_CONNECT: number; + + /** + * Error code reported via for a failure to access a file resource on a host, except "file not found", which has its own constant. + */ + const URL_ERROR_FILE: number; + + /** + * Error code reported via when a requested file does not exist on the host. + */ + const URL_ERROR_FILE_NOT_FOUND: number; + + /** + * Error code reported via when a host name cannot be resolved, such as via a DNS lookup error. + */ + const URL_ERROR_HOST_LOOKUP: number; + + /** + * Error code reported via when a redirect loop is detected. + */ + const URL_ERROR_REDIRECT_LOOP: number; + + /** + * Error code reported via for an SSL failure. + */ + const URL_ERROR_SSL_FAILED: number; + + /** + * Error code reported via when a timeout occurs. + */ + const URL_ERROR_TIMEOUT: number; + + /** + * Error code reported via when an unknown error occurs. + */ + const URL_ERROR_UNKNOWN: number; + + /** + * Error code reported via when a url contains an unsupported scheme. + */ + const URL_ERROR_UNSUPPORTED_SCHEME: number; + + /** + * The Android-specific UI capabilities. All properties, methods and events in this namespace will + * only work on Android systems. + */ + namespace Android { + /** + * Window flag which makes the Android system's navigation bar semi-transparent. + */ + const FLAG_TRANSLUCENT_NAVIGATION: number; + + /** + * Window flag which makes the Android system's top status bar semi-transparent. + */ + const FLAG_TRANSLUCENT_STATUS: number; + + /** + * Raw bit controlling whether the right/bottom edge is clipped to its container, based on the gravity direction being applied. + */ + const GRAVITY_AXIS_CLIP: number; + + /** + * Raw bit controlling how the right/bottom edge is placed. + */ + const GRAVITY_AXIS_PULL_AFTER: number; + + /** + * Raw bit controlling how the left/top edge is placed. + */ + const GRAVITY_AXIS_PULL_BEFORE: number; + + /** + * Raw bit indicating the gravity for an axis has been specified. + */ + const GRAVITY_AXIS_SPECIFIED: number; + + /** + * Bits defining the horizontal axis. + */ + const GRAVITY_AXIS_X_SHIFT: number; + + /** + * Bits defining the vertical axis. + */ + const GRAVITY_AXIS_Y_SHIFT: number; + + /** + * Push object to the bottom of its container, not changing its size. + */ + const GRAVITY_BOTTOM: number; + + /** + * Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. + */ + const GRAVITY_CENTER: number; + + /** + * Place object in the horizontal center of its container, not changing its size. + */ + const GRAVITY_CENTER_HORIZONTAL: number; + + /** + * Place object in the vertical center of its container, not changing its size. + */ + const GRAVITY_CENTER_VERTICAL: number; + + /** + * Flag to clip the edges of the object to its container along the horizontal axis. + */ + const GRAVITY_CLIP_HORIZONTAL: number; + + /** + * Flag to clip the edges of the object to its container along the vertical axis. + */ + const GRAVITY_CLIP_VERTICAL: number; + + /** + * Special constant to enable clipping to an overall display along the horizontal dimension. + */ + const GRAVITY_DISPLAY_CLIP_HORIZONTAL: number; + + /** + * Special constant to enable clipping to an overall display along the vertical dimension. + */ + const GRAVITY_DISPLAY_CLIP_VERTICAL: number; + + /** + * Push object to x-axis position at the end of its container, not changing its size. + */ + const GRAVITY_END: number; + + /** + * Grow the horizontal and vertical size of the object if needed so it completely fills its container. + */ + const GRAVITY_FILL: number; + + /** + * Grow the horizontal size of the object if needed so it completely fills its container. + */ + const GRAVITY_FILL_HORIZONTAL: number; + + /** + * Grow the vertical size of the object if needed so it completely fills its container. + */ + const GRAVITY_FILL_VERTICAL: number; + + /** + * Binary mask to get the absolute horizontal gravity of a gravity. + */ + const GRAVITY_HORIZONTAL_GRAVITY_MASK: number; + + /** + * Push object to the left of its container, not changing its size. + */ + const GRAVITY_LEFT: number; + + /** + * Constant indicating that no gravity has been set + */ + const GRAVITY_NO_GRAVITY: number; + + /** + * Binary mask for the horizontal gravity and script specific direction bit. + */ + const GRAVITY_RELATIVE_HORIZONTAL_GRAVITY_MASK: number; + + /** + * Raw bit controlling whether the layout direction is relative or not (GRAVITY_START/GRAVITY_END instead of absolute GRAVITY_LEFT/GRAVITY_RIGHT). + */ + const GRAVITY_RELATIVE_LAYOUT_DIRECTION: number; + + /** + * Push object to the right of its container, not changing its size. + */ + const GRAVITY_RIGHT: number; + + /** + * Push object to x-axis position at the start of its container, not changing its size. + */ + const GRAVITY_START: number; + + /** + * Push object to the top of its container, not changing its size. + */ + const GRAVITY_TOP: number; + + /** + * Binary mask to get the vertical gravity of a gravity. + */ + const GRAVITY_VERTICAL_GRAVITY_MASK: number; + + /** + * Converts all detectable types of data into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_ALL](Titanium.UI.AUTOLINK_ALL) instead. + */ + const LINKIFY_ALL: never; + + /** + * Converts strings formatted as email addresses into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_EMAIL_ADDRESSES](Titanium.UI.AUTOLINK_EMAIL_ADDRESSES) instead. + */ + const LINKIFY_EMAIL_ADDRESSES: never; + + /** + * Converts strings formatted as addresses into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_MAP_ADDRESSES](Titanium.UI.AUTOLINK_MAP_ADDRESSES) instead. + */ + const LINKIFY_MAP_ADDRESSES: never; + + /** + * Converts strings formatted as phone numbers into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_PHONE_NUMBERS](Titanium.UI.AUTOLINK_PHONE_NUMBERS) instead. + */ + const LINKIFY_PHONE_NUMBERS: never; + + /** + * Converts strings formatted as URLs into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_URLS](Titanium.UI.AUTOLINK_URLS) instead. + */ + const LINKIFY_WEB_URLS: never; + + /** + * Always allow a user to over-scroll this view, provided it is a view that can scroll. + */ + const OVER_SCROLL_ALWAYS: number; + + /** + * Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll. + */ + const OVER_SCROLL_IF_CONTENT_SCROLLS: number; + + /** + * Never allow a user to over-scroll this view. + */ + const OVER_SCROLL_NEVER: number; + + /** + * Android A_8 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_A_8: number; + + /** + * Android LA_88 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_LA_88: number; + + /** + * Android L_8 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_L_8: number; + + /** + * Android OPAQUE pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_OPAQUE: number; + + /** + * Android RGBA_4444 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_RGBA_4444: number; + + /** + * Android RGBA_5551 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_RGBA_5551: number; + + /** + * Android RGBA_8888 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_RGBA_8888: number; + + /** + * Android RGBX_8888 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_RGBX_8888: number; + + /** + * Android RGB_332 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_RGB_332: number; + + /** + * Android RGB_565 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_RGB_565: number; + + /** + * Android RGB_888 pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_RGB_888: number; + + /** + * Android TRANSLUCENT pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_TRANSLUCENT: number; + + /** + * Android A_8 pixel format for . Selecting the correct pixel format can + * improve image clarity and performance. + */ + const PIXEL_FORMAT_TRANSPARENT: number; + + /** + * Android UNKNOWN pixel format for . Selecting the correct pixel format + * can improve image clarity and performance. + */ + const PIXEL_FORMAT_UNKNOWN: number; + + /** + * Used with the property to indicate an ongoing + * activity of determinate length. + */ + const PROGRESS_INDICATOR_DETERMINANT: number; + + /** + * Display as a modal dialog. (default) + */ + const PROGRESS_INDICATOR_DIALOG: number; + + /** + * Used with the property to indicate an ongoing + * activity of indeterminate length. (default) + */ + const PROGRESS_INDICATOR_INDETERMINANT: number; + + /** + * Display as a horizontal progress bar in the title of + * the window. + */ + const PROGRESS_INDICATOR_STATUS_BAR: number; + + /** + * Pan the current heavyweight window when the input method (ie software keyboard) is shown, to + * ensure that its contents are not obscured. + */ + const SOFT_INPUT_ADJUST_PAN: number; + + /** + * Resize the current heavyweight window when the input method (ie software keyboard) is shown, + * to ensure that its contents are not obscured. + */ + const SOFT_INPUT_ADJUST_RESIZE: number; + + /** + * Use the system-default behavior to determine how the soft input area (ie software keyboard) + * is accomodated by the current heavyweight window when it receives focus (default.) + */ + const SOFT_INPUT_ADJUST_UNSPECIFIED: number; + + /** + * Always hide the soft input area (ie software keyboard) when the current heavyweight window + * receives focus. + */ + const SOFT_INPUT_STATE_ALWAYS_HIDDEN: number; + + /** + * Always show the soft input area (ie software keyboard) when the current heavyweight window + * receives focus. + */ + const SOFT_INPUT_STATE_ALWAYS_VISIBLE: number; + + /** + * Attempt to hide the soft input area (ie software keyboard) when the current heavyweight + * window receives focus. + */ + const SOFT_INPUT_STATE_HIDDEN: number; + + /** + * Use the system-default behavior to determine whether to show the soft input area + * (ie software keyboard) when the current heavyweight window receives focus. + */ + const SOFT_INPUT_STATE_UNSPECIFIED: number; + + /** + * Attempt to show the soft input area (ie software keyboard) when the current heavyweight + * window receives focus. + */ + const SOFT_INPUT_STATE_VISIBLE: number; + + /** + * Use Android default behavior to handle keyboard visibility when a view receives focus. + * (default) + */ + const SOFT_KEYBOARD_DEFAULT_ON_FOCUS: number; + + /** + * Attempt to hide the soft keyboard when a view receives focus. Note: system can override + * request. + */ + const SOFT_KEYBOARD_HIDE_ON_FOCUS: number; + + /** + * Attempt to show the soft keyboard when a view receives focus. Note: system can override + * request. + */ + const SOFT_KEYBOARD_SHOW_ON_FOCUS: number; + + /** + * Display a checkbox. + */ + const SWITCH_STYLE_CHECKBOX: number; + + /** + * Display a switch. + */ + const SWITCH_STYLE_SWITCH: number; + + /** + * Display a toggle button. + */ + const SWITCH_STYLE_TOGGLEBUTTON: number; + + /** + * TabGroup style taking advantage of a bottom navigation controller for switching between tabs. + */ + const TABS_STYLE_BOTTOM_NAVIGATION: number; + + /** + * The default TabGroup style that places the Tabs bellow the ActionBar and above the Window content. + */ + const TABS_STYLE_DEFAULT: number; + + /** + * Captures layout bounds of target views before and after the scene change and animates those changes during the transition. + */ + const TRANSITION_CHANGE_BOUNDS: number; + + /** + * Captures the clip bounds before and after the scene change and animates those changes during the transition. + */ + const TRANSITION_CHANGE_CLIP_BOUNDS: number; + + /** + * Captures an ImageView's matrix before and after the scene change and animates it during the transition. + */ + const TRANSITION_CHANGE_IMAGE_TRANSFORM: number; + + /** + * Captures scale and rotation for Views before and after the scene change and animates those changes during the transition. + */ + const TRANSITION_CHANGE_TRANSFORM: number; + + /** + * Moves views in or out from the edges of the scene. + */ + const TRANSITION_EXPLODE: number; + + /** + * Fades in the views. + */ + const TRANSITION_FADE_IN: number; + + /** + * Fades out the views. + */ + const TRANSITION_FADE_OUT: number; + + /** + * Resets transition to platform default. + */ + const TRANSITION_NONE: number; + + /** + * Moves views to bottom. + */ + const TRANSITION_SLIDE_BOTTOM: number; + + /** + * Moves views to left. + */ + const TRANSITION_SLIDE_LEFT: number; + + /** + * Moves views to right. + */ + const TRANSITION_SLIDE_RIGHT: number; + + /** + * Moves views to top. + */ + const TRANSITION_SLIDE_TOP: number; + + /** + * Use with [WebView.cacheMode](Titanium.UI.WebView.cacheMode) to override how the cache is used in a web view. + */ + const WEBVIEW_LOAD_CACHE_ELSE_NETWORK: number; + + /** + * Use with [WebView.cacheMode](Titanium.UI.WebView.cacheMode) to override how the cache is used in a web view. + */ + const WEBVIEW_LOAD_CACHE_ONLY: number; + + /** + * Use with [WebView.cacheMode](Titanium.UI.WebView.cacheMode) to override how the cache is used in a web view. + */ + const WEBVIEW_LOAD_DEFAULT: number; + + /** + * Use with [WebView.cacheMode](Titanium.UI.WebView.cacheMode) to override how the cache is used in a web view. + */ + const WEBVIEW_LOAD_NO_CACHE: number; + + /** + * Use with [WebView.pluginState](Titanium.UI.WebView.pluginState) to disable plugins in a web view. + */ + const WEBVIEW_PLUGINS_OFF: number; + + /** + * Use with [WebView.pluginState](Titanium.UI.WebView.pluginState) to enable plugins in a web view. + */ + const WEBVIEW_PLUGINS_ON: number; + + /** + * Display a placeholder and only load plugins when user selects it. + */ + const WEBVIEW_PLUGINS_ON_DEMAND: number; + + /** + * Base event for class Titanium.UI.Android.CardView + */ + interface CardViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Android.CardView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface CardView_click_Event extends CardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface CardView_dblclick_Event extends CardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface CardView_doubletap_Event extends CardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface CardView_focus_Event extends CardViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface CardView_keypressed_Event extends CardViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface CardView_longclick_Event extends CardViewBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface CardView_longpress_Event extends CardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface CardView_pinch_Event extends CardViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface CardView_postlayout_Event extends CardViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface CardView_singletap_Event extends CardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface CardView_swipe_Event extends CardViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface CardView_touchcancel_Event extends CardViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface CardView_touchend_Event extends CardViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface CardView_touchmove_Event extends CardViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface CardView_touchstart_Event extends CardViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface CardView_twofingertap_Event extends CardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface CardViewEventMap extends ProxyEventMap { + click: CardView_click_Event; + + dblclick: CardView_dblclick_Event; + + doubletap: CardView_doubletap_Event; + + focus: CardView_focus_Event; + + keypressed: CardView_keypressed_Event; + + longclick: CardView_longclick_Event; + + longpress: CardView_longpress_Event; + + pinch: CardView_pinch_Event; + + postlayout: CardView_postlayout_Event; + + singletap: CardView_singletap_Event; + + swipe: CardView_swipe_Event; + + touchcancel: CardView_touchcancel_Event; + + touchend: CardView_touchend_Event; + + touchmove: CardView_touchmove_Event; + + touchstart: CardView_touchstart_Event; + + twofingertap: CardView_twofingertap_Event; + + } + /** + * CardView provides a layout container with rounded corners and a shadow indicating the view is elevated. + */ + class CardView extends Titanium.UI.View { + /** + * Background color for CardView as a color name or hex triplet. + */ + backgroundColor: string; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Corner radius for CardView. + */ + borderRadius: number; + + /** + * Background color for CardView as a color name or hex triplet. + * @deprecated Use [Titanium.UI.Android.CardView.backgroundColor](Titanium.UI.Android.CardView.backgroundColor) instead. + */ + cardBackgroundColor: never; + + /** + * Corner radius for CardView. + * @deprecated Use [Titanium.UI.Android.CardView.borderRadius](Titanium.UI.Android.CardView.borderRadius) instead. + */ + cardCornerRadius: never; + + /** + * Elevation for CardView. + * @deprecated Use [Titanium.UI.Android.CardView.elevation](Titanium.UI.Android.CardView.elevation) instead. + */ + cardElevation: never; + + /** + * Maximum Elevation for CardView. + * @deprecated Use [Titanium.UI.Android.CardView.maxElevation](Titanium.UI.Android.CardView.maxElevation) instead. + */ + cardMaxElevation: never; + + /** + * Add padding to CardView on API level 20 and before to prevent intersections between + * the Card content and rounded corners. + * @deprecated Use [Titanium.UI.Android.CardView.preventCornerOverlap](Titanium.UI.Android.CardView.preventCornerOverlap) instead. + */ + cardPreventCornerOverlap: never; + + /** + * Add padding on API level 21 and above to have the same measurements with previous versions. + * @deprecated Use [Titanium.UI.Android.CardView.useCompatPadding](Titanium.UI.Android.CardView.useCompatPadding) instead. + */ + cardUseCompatPadding: never; + + /** + * Inner padding between the edges of the Card and children of the CardView. + * @deprecated Use [Titanium.UI.Android.CardView.padding](Titanium.UI.Android.CardView.padding) instead. + */ + contentPadding: never; + + /** + * Inner padding between the bottom edge of the Card and children of the CardView. + * @deprecated Use [Titanium.UI.Android.CardView.paddingBottom](Titanium.UI.Android.CardView.paddingBottom) instead. + */ + contentPaddingBottom: never; + + /** + * Inner padding between the left edge of the Card and children of the CardView. + * @deprecated Use [Titanium.UI.Android.CardView.paddingLeft](Titanium.UI.Android.CardView.paddingLeft) instead. + */ + contentPaddingLeft: never; + + /** + * Inner padding between the right edge of the Card and children of the CardView. + * @deprecated Use [Titanium.UI.Android.CardView.paddingRight](Titanium.UI.Android.CardView.paddingRight) instead. + */ + contentPaddingRight: never; + + /** + * Inner padding between the top edge of the Card and children of the CardView. + * @deprecated Use [Titanium.UI.Android.CardView.paddingTop](Titanium.UI.Android.CardView.paddingTop) instead. + */ + contentPaddingTop: never; + + /** + * Elevation for CardView. + */ + elevation: number; + + /** + * Maximum Elevation for CardView. + */ + maxElevation: number; + + /** + * Inner padding between the edges of the Card and children of the CardView. + */ + padding: number; + + /** + * Inner padding between the bottom edge of the Card and children of the CardView. + */ + paddingBottom: number; + + /** + * Inner padding between the left edge of the Card and children of the CardView. + */ + paddingLeft: number; + + /** + * Inner padding between the right edge of the Card and children of the CardView. + */ + paddingRight: number; + + /** + * Inner padding between the top edge of the Card and children of the CardView. + */ + paddingTop: number; + + /** + * Add padding to CardView on API level 20 and before to prevent intersections between + * the Card content and rounded corners. + */ + preventCornerOverlap: boolean; + + /** + * Add padding on API level 21 and above to have the same measurements with previous versions. + */ + useCompatPadding: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Android.CardView, event: CardViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: CardViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius(): number; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.backgroundColor](Titanium.UI.Android.CardView.backgroundColor) instead. + */ + getCardBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.borderRadius](Titanium.UI.Android.CardView.borderRadius) instead. + */ + getCardCornerRadius: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.elevation](Titanium.UI.Android.CardView.elevation) instead. + */ + getCardElevation: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.maxElevation](Titanium.UI.Android.CardView.maxElevation) instead. + */ + getCardMaxElevation: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.preventCornerOverlap](Titanium.UI.Android.CardView.preventCornerOverlap) instead. + */ + getCardPreventCornerOverlap: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.useCompatPadding](Titanium.UI.Android.CardView.useCompatPadding) instead. + */ + getCardUseCompatPadding: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.padding](Titanium.UI.Android.CardView.padding) instead. + */ + getContentPadding: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.paddingBottom](Titanium.UI.Android.CardView.paddingBottom) instead. + */ + getContentPaddingBottom: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.paddingLeft](Titanium.UI.Android.CardView.paddingLeft) instead. + */ + getContentPaddingLeft: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.paddingRight](Titanium.UI.Android.CardView.paddingRight) instead. + */ + getContentPaddingRight: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.paddingTop](Titanium.UI.Android.CardView.paddingTop) instead. + */ + getContentPaddingTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getElevation(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxElevation(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPadding(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPaddingBottom(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPaddingLeft(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPaddingRight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPaddingTop(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPreventCornerOverlap(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUseCompatPadding(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Android.CardView, event: CardViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius(borderRadius: number): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.backgroundColor](Titanium.UI.Android.CardView.backgroundColor) instead. + */ + setCardBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.borderRadius](Titanium.UI.Android.CardView.borderRadius) instead. + */ + setCardCornerRadius: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.elevation](Titanium.UI.Android.CardView.elevation) instead. + */ + setCardElevation: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.maxElevation](Titanium.UI.Android.CardView.maxElevation) instead. + */ + setCardMaxElevation: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.preventCornerOverlap](Titanium.UI.Android.CardView.preventCornerOverlap) instead. + */ + setCardPreventCornerOverlap: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.useCompatPadding](Titanium.UI.Android.CardView.useCompatPadding) instead. + */ + setCardUseCompatPadding: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.padding](Titanium.UI.Android.CardView.padding) instead. + */ + setContentPadding: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.paddingBottom](Titanium.UI.Android.CardView.paddingBottom) instead. + */ + setContentPaddingBottom: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.paddingLeft](Titanium.UI.Android.CardView.paddingLeft) instead. + */ + setContentPaddingLeft: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.paddingRight](Titanium.UI.Android.CardView.paddingRight) instead. + */ + setContentPaddingRight: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Android.CardView.paddingTop](Titanium.UI.Android.CardView.paddingTop) instead. + */ + setContentPaddingTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setElevation(elevation: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxElevation(maxElevation: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPadding(padding: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPaddingBottom(paddingBottom: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPaddingLeft(paddingLeft: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPaddingRight(paddingRight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPaddingTop(paddingTop: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPreventCornerOverlap(preventCornerOverlap: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUseCompatPadding(useCompatPadding: boolean): void; + + } + /** + * Base event for class Titanium.UI.Android.DrawerLayout + */ + interface DrawerLayoutBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Android.DrawerLayout; + + } + /** + * Fired when the device detects a click against the view. + */ + interface DrawerLayout_click_Event extends DrawerLayoutBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface DrawerLayout_dblclick_Event extends DrawerLayoutBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface DrawerLayout_doubletap_Event extends DrawerLayoutBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface DrawerLayout_focus_Event extends DrawerLayoutBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface DrawerLayout_keypressed_Event extends DrawerLayoutBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface DrawerLayout_longclick_Event extends DrawerLayoutBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface DrawerLayout_longpress_Event extends DrawerLayoutBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface DrawerLayout_pinch_Event extends DrawerLayoutBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface DrawerLayout_postlayout_Event extends DrawerLayoutBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface DrawerLayout_singletap_Event extends DrawerLayoutBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface DrawerLayout_swipe_Event extends DrawerLayoutBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface DrawerLayout_touchcancel_Event extends DrawerLayoutBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface DrawerLayout_touchend_Event extends DrawerLayoutBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface DrawerLayout_touchmove_Event extends DrawerLayoutBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface DrawerLayout_touchstart_Event extends DrawerLayoutBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface DrawerLayout_twofingertap_Event extends DrawerLayoutBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the drawer view is opened. + */ + interface DrawerLayout_open_Event extends DrawerLayoutBaseEvent { + /** + * Contains the drawer frame type. Either `left` or `right`. + */ + drawer: string; + + } + /** + * Fired when the drawer view is closed. + */ + interface DrawerLayout_close_Event extends DrawerLayoutBaseEvent { + /** + * Contains the drawer frame type. Either `left` or `right`. + */ + drawer: string; + + } + /** + * Fired when the motion state of the drawer view changes. + */ + interface DrawerLayout_change_Event extends DrawerLayoutBaseEvent { + /** + * Whether or not the drawer is currently dragging. + */ + dragging: boolean; + + /** + * Contains the drawer frame type. Either `left` or `right`. + */ + drawer: string; + + /** + * Whether or not the drawer is currently idle. + */ + idle: boolean; + + /** + * Whether or not the drawer is currently settling. + */ + settling: boolean; + + /** + * The current drawer state. + */ + state: number; + + } + /** + * Fired when the drawer view changes it's position. + */ + interface DrawerLayout_slide_Event extends DrawerLayoutBaseEvent { + /** + * Contains the drawer frame type. Either `left` or `right`. + */ + drawer: string; + + /** + * The current drawer offset. + */ + offset: number; + + } + interface DrawerLayoutEventMap extends ProxyEventMap { + change: DrawerLayout_change_Event; + + click: DrawerLayout_click_Event; + + close: DrawerLayout_close_Event; + + dblclick: DrawerLayout_dblclick_Event; + + doubletap: DrawerLayout_doubletap_Event; + + focus: DrawerLayout_focus_Event; + + keypressed: DrawerLayout_keypressed_Event; + + longclick: DrawerLayout_longclick_Event; + + longpress: DrawerLayout_longpress_Event; + + open: DrawerLayout_open_Event; + + pinch: DrawerLayout_pinch_Event; + + postlayout: DrawerLayout_postlayout_Event; + + singletap: DrawerLayout_singletap_Event; + + slide: DrawerLayout_slide_Event; + + swipe: DrawerLayout_swipe_Event; + + touchcancel: DrawerLayout_touchcancel_Event; + + touchend: DrawerLayout_touchend_Event; + + touchmove: DrawerLayout_touchmove_Event; + + touchstart: DrawerLayout_touchstart_Event; + + twofingertap: DrawerLayout_twofingertap_Event; + + } + /** + * A panel that displays the app's main navigation options on the left edge of the screen. + */ + class DrawerLayout extends Titanium.UI.View { + /** + * Use with [DrawerLayout.drawerLockMode](Titanium.UI.Android.DrawerLayout.drawerLockMode) to specify the drawer is locked closed. + */ + readonly LOCK_MODE_LOCKED_CLOSED: number; + + /** + * Use with [DrawerLayout.drawerLockMode](Titanium.UI.Android.DrawerLayout.drawerLockMode) to specify the drawer is locked opened. + */ + readonly LOCK_MODE_LOCKED_OPEN: number; + + /** + * Use with [DrawerLayout.drawerLockMode](Titanium.UI.Android.DrawerLayout.drawerLockMode) to specify the drawer is reset to default lock state. + */ + readonly LOCK_MODE_UNDEFINED: number; + + /** + * Use with [DrawerLayout.drawerLockMode](Titanium.UI.Android.DrawerLayout.drawerLockMode) to specify the drawer is unlocked. + */ + readonly LOCK_MODE_UNLOCKED: number; + + /** + * Get or set the center view + */ + centerView: Titanium.UI.View; + + /** + * Determine the drawer indicator status + */ + drawerIndicatorEnabled: boolean; + + /** + * Get or set the drawerLockMode + */ + drawerLockMode: number; + + /** + * Determine whether the left drawer is open + */ + isLeftOpen: boolean; + + /** + * Determine whether the left drawer is visible + */ + isLeftVisible: boolean; + + /** + * Determine whether the right drawer is open + */ + isRightOpen: boolean; + + /** + * Determine whether the right drawer is visible + */ + isRightVisible: boolean; + + /** + * Get or set the view of the left drawer + */ + leftView: Titanium.UI.View; + + /** + * Get or set the width of the left drawer + */ + leftWidth: number; + + /** + * Get or set the view of the right drawer + */ + rightView: Titanium.UI.View; + + /** + * Get or set the width of the right drawer + */ + rightWidth: number; + + /** + * A Toolbar instance to use as a toolbar. + */ + toolbar: Titanium.UI.Toolbar; + + /** + * Determine whether to enable the toolbar. + */ + toolbarEnabled: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Android.DrawerLayout, event: DrawerLayoutEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Close the left view. + */ + closeLeft(): void; + + /** + * Close the right view. + */ + closeRight(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: DrawerLayoutEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenterView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDrawerIndicatorEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDrawerLockMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIsLeftOpen(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIsLeftVisible(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIsRightOpen(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIsRightVisible(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftWidth(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightWidth(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getToolbar(): Titanium.UI.Toolbar; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getToolbarEnabled(): boolean; + + /** + * Disallow touch events on a specific view. + */ + interceptTouchEvent(view: Titanium.UI.View, disallowIntercept: boolean): void; + + /** + * Open the left view. + */ + openLeft(): void; + + /** + * Open the right view. + */ + openRight(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Android.DrawerLayout, event: DrawerLayoutEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenterView(centerView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDrawerIndicatorEnabled(drawerIndicatorEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDrawerLockMode(drawerLockMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIsLeftOpen(isLeftOpen: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIsLeftVisible(isLeftVisible: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIsRightOpen(isRightOpen: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIsRightVisible(isRightVisible: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftView(leftView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftWidth(leftWidth: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightView(rightView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightWidth(rightWidth: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setToolbar(toolbar: Titanium.UI.Toolbar): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setToolbarEnabled(toolbarEnabled: boolean): void; + + /** + * Toggle the visibility of the left view. + */ + toggleLeft(): void; + + /** + * Toggle the visibility of the right view. + */ + toggleRight(): void; + + } + /** + * Base event for class Titanium.UI.Android.ProgressIndicator + */ + interface ProgressIndicatorBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Android.ProgressIndicator; + + } + /** + * Fired when the device detects a click against the view. + */ + interface ProgressIndicator_click_Event extends ProgressIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface ProgressIndicator_dblclick_Event extends ProgressIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface ProgressIndicator_doubletap_Event extends ProgressIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface ProgressIndicator_focus_Event extends ProgressIndicatorBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface ProgressIndicator_keypressed_Event extends ProgressIndicatorBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface ProgressIndicator_longclick_Event extends ProgressIndicatorBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface ProgressIndicator_longpress_Event extends ProgressIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface ProgressIndicator_pinch_Event extends ProgressIndicatorBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface ProgressIndicator_postlayout_Event extends ProgressIndicatorBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface ProgressIndicator_singletap_Event extends ProgressIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface ProgressIndicator_swipe_Event extends ProgressIndicatorBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface ProgressIndicator_touchcancel_Event extends ProgressIndicatorBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface ProgressIndicator_touchend_Event extends ProgressIndicatorBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface ProgressIndicator_touchmove_Event extends ProgressIndicatorBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface ProgressIndicator_touchstart_Event extends ProgressIndicatorBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface ProgressIndicator_twofingertap_Event extends ProgressIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the user has canceled the progress indicator dialog. + */ + interface ProgressIndicator_cancel_Event extends ProgressIndicatorBaseEvent { + } + interface ProgressIndicatorEventMap extends ProxyEventMap { + cancel: ProgressIndicator_cancel_Event; + + click: ProgressIndicator_click_Event; + + dblclick: ProgressIndicator_dblclick_Event; + + doubletap: ProgressIndicator_doubletap_Event; + + focus: ProgressIndicator_focus_Event; + + keypressed: ProgressIndicator_keypressed_Event; + + longclick: ProgressIndicator_longclick_Event; + + longpress: ProgressIndicator_longpress_Event; + + pinch: ProgressIndicator_pinch_Event; + + postlayout: ProgressIndicator_postlayout_Event; + + singletap: ProgressIndicator_singletap_Event; + + swipe: ProgressIndicator_swipe_Event; + + touchcancel: ProgressIndicator_touchcancel_Event; + + touchend: ProgressIndicator_touchend_Event; + + touchmove: ProgressIndicator_touchmove_Event; + + touchstart: ProgressIndicator_touchstart_Event; + + twofingertap: ProgressIndicator_twofingertap_Event; + + } + /** + * A progress dialog or a horizontal progress bar in the title of the window. + */ + class ProgressIndicator extends Titanium.UI.View { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: never; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * View's bottom position, in platform-specific units. + */ + bottom: never; + + /** + * When `true` allows the user to cancel the progress dialog by pressing the BACK button. + */ + cancelable: boolean; + + /** + * When `cancelable` is set to `true` and this is set to `true`, the dialog is canceled when touched outside the window's bounds. + */ + canceledOnTouchOutside: boolean; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: never; + + /** + * View height, in platform-specific units. + */ + height: never; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Determines whether to keep the device screen on. + */ + keepScreenOn: never; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * View's left position, in platform-specific units. + */ + left: never; + + /** + * Location for the progress indicator. + */ + location: number; + + /** + * Maximum value of the progress bar. + */ + max: number; + + /** + * Message text. + */ + message: string; + + /** + * Key identifying a string in the locale file to use for the message text. + */ + messageid: string; + + /** + * Minimum value of the progress bar. + */ + min: number; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: never; + + /** + * When on, animate call overrides current animation if applicable. + */ + overrideCurrentAnimation: never; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: never; + + /** + * View's right position, in platform-specific units. + */ + right: never; + + /** + * The size of the view in system units. + */ + readonly size: never; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * The view's top position. + */ + top: never; + + /** + * Determines whether view should receive touch events. + */ + touchEnabled: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * Type for the progress indicator. + */ + type: number; + + /** + * Determines whether the view is visible. + */ + visible: never; + + /** + * View's width, in platform-specific units. + */ + width: never; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Android.ProgressIndicator, event: ProgressIndicatorEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Translates a point from this view's coordinate system to another view's coordinate system. + */ + convertPointToView: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ProgressIndicatorEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCancelable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCanceledOnTouchOutside(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepScreenOn: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLocation(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMax(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessageid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMin(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverrideCurrentAnimation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchEnabled: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Hides the progress indicator and stops the animation. + */ + hide(options?: AnimatedOptions): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Android.ProgressIndicator, event: ProgressIndicatorEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCancelable(cancelable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCanceledOnTouchOutside(canceledOnTouchOutside: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepScreenOn: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLocation(location: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMax(max: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessage(message: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessageid(messageid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMin(min: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverrideCurrentAnimation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchEnabled: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setType(type: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Shows the progress indicator and starts the animation. + */ + show(options?: AnimatedOptions): void; + + /** + * Returns an image of the rendered view, as a Blob. + */ + toImage: never; + + } + /** + * Base event for class Titanium.UI.Android.SearchView + */ + interface SearchViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Android.SearchView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface SearchView_click_Event extends SearchViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface SearchView_dblclick_Event extends SearchViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface SearchView_doubletap_Event extends SearchViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the search view gains focus. + */ + interface SearchView_focus_Event extends SearchViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface SearchView_keypressed_Event extends SearchViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface SearchView_longclick_Event extends SearchViewBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface SearchView_longpress_Event extends SearchViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface SearchView_pinch_Event extends SearchViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface SearchView_postlayout_Event extends SearchViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface SearchView_singletap_Event extends SearchViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface SearchView_swipe_Event extends SearchViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface SearchView_touchcancel_Event extends SearchViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface SearchView_touchend_Event extends SearchViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface SearchView_touchmove_Event extends SearchViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface SearchView_touchstart_Event extends SearchViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface SearchView_twofingertap_Event extends SearchViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the search view loses focus. + */ + interface SearchView_blur_Event extends SearchViewBaseEvent { + } + /** + * Fired when the cancel button is pressed. + */ + interface SearchView_cancel_Event extends SearchViewBaseEvent { + } + /** + * Fired when the value of the search view changes. + */ + interface SearchView_change_Event extends SearchViewBaseEvent { + } + /** + * If the search query is not empty, fired when the search button is clicked on soft keyboard + */ + interface SearchView_submit_Event extends SearchViewBaseEvent { + } + interface SearchViewEventMap extends ProxyEventMap { + blur: SearchView_blur_Event; + + cancel: SearchView_cancel_Event; + + change: SearchView_change_Event; + + click: SearchView_click_Event; + + dblclick: SearchView_dblclick_Event; + + doubletap: SearchView_doubletap_Event; + + focus: SearchView_focus_Event; + + keypressed: SearchView_keypressed_Event; + + longclick: SearchView_longclick_Event; + + longpress: SearchView_longpress_Event; + + pinch: SearchView_pinch_Event; + + postlayout: SearchView_postlayout_Event; + + singletap: SearchView_singletap_Event; + + submit: SearchView_submit_Event; + + swipe: SearchView_swipe_Event; + + touchcancel: SearchView_touchcancel_Event; + + touchend: SearchView_touchend_Event; + + touchmove: SearchView_touchmove_Event; + + touchstart: SearchView_touchstart_Event; + + twofingertap: SearchView_twofingertap_Event; + + } + /** + * A specialized text field for entering search text. + */ + class SearchView extends Titanium.UI.View { + /** + * Color of the text in this SearchView, as a color name or hex triplet. + */ + color: string; + + /** + * Text to show when the search view field is not focused. + */ + hintText: string; + + /** + * Color of hint text that displays when field is empty. + */ + hintTextColor: string; + + /** + * Iconifies or expands the search view + */ + iconified: boolean; + + /** + * Sets the default or resting state of the search view + */ + iconifiedByDefault: boolean; + + /** + * Whether to display the submit button when necessary or never display. + */ + submitEnabled: boolean; + + /** + * Value of the search view. + */ + value: string; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Android.SearchView, event: SearchViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Causes the search view to lose focus. + */ + blur(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: SearchViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Causes the search view to gain focus. + */ + focus(): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintTextColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIconified(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIconifiedByDefault(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSubmitEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Android.SearchView, event: SearchViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintText(hintText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintTextColor(hintTextColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIconified(iconified: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIconifiedByDefault(iconifiedByDefault: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSubmitEnabled(submitEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: string): void; + + } + } + /** + * Apple iOS specific UI capabilities. All properties, methods and events in this namespace will + * only work on Apple iOS devices. + */ + namespace iOS { + /** + * Allow the navigation to continue. + */ + const ACTION_POLICY_ALLOW: number; + + /** + * Cancel the navigation. + */ + const ACTION_POLICY_CANCEL: number; + + /** + * Use with [AdView.adSize](Titanium.UI.iOS.AdView.adSize) to specify a banner ad size + * appropriate for landscape orientations. + */ + const AD_SIZE_LANDSCAPE: string; + + /** + * Use with [AdView.adSize](Titanium.UI.iOS.AdView.adSize) to specify a banner ad size + * appropriate for portrait orientations. + */ + const AD_SIZE_PORTRAIT: string; + + /** + * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts + * slowly and speeds up. + * @deprecated Use [Titanium.UI.ANIMATION_CURVE_EASE_IN](Titanium.UI.ANIMATION_CURVE_EASE_IN) instead. + */ + const ANIMATION_CURVE_EASE_IN: never; + + /** + * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts + * slowly, and speeds up, then slows down at the end of the animation. + * @deprecated Use [Titanium.UI.ANIMATION_CURVE_EASE_IN_OUT](Titanium.UI.ANIMATION_CURVE_EASE_IN_OUT) instead. + */ + const ANIMATION_CURVE_EASE_IN_OUT: never; + + /** + * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that starts + * quickly, then slows down at the end of the animation. + * @deprecated Use [Titanium.UI.ANIMATION_CURVE_EASE_OUT](Titanium.UI.ANIMATION_CURVE_EASE_OUT) instead. + */ + const ANIMATION_CURVE_EASE_OUT: never; + + /** + * Use with [Animation.curve](Titanium.UI.Animation.curve) to specify an animation that proceeds + * at a constant rate. + * @deprecated Use [Titanium.UI.ANIMATION_CURVE_LINEAR](Titanium.UI.ANIMATION_CURVE_LINEAR) instead. + */ + const ANIMATION_CURVE_LINEAR: never; + + /** + * Use with to specify a background color. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_BACKGROUND_COLOR](Titanium.UI.ATTRIBUTE_BACKGROUND_COLOR) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_BACKGROUND_COLOR: never; + + /** + * Use with to apply a different baseline to the text. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_BASELINE_OFFSET](Titanium.UI.ATTRIBUTE_BASELINE_OFFSET) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_BASELINE_OFFSET: never; + + /** + * Use with to stretch the text horizontally. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_EXPANSION](Titanium.UI.ATTRIBUTE_EXPANSION) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_EXPANSION: never; + + /** + * Use with to specify a font. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_FONT](Titanium.UI.ATTRIBUTE_FONT) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_FONT: never; + + /** + * Use with to specify a font color. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_FOREGROUND_COLOR](Titanium.UI.ATTRIBUTE_FOREGROUND_COLOR) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_FOREGROUND_COLOR: never; + + /** + * Use with to specify kerning (space between characters). + * @deprecated Use the [Titanium.UI.ATTRIBUTE_KERN](Titanium.UI.ATTRIBUTE_KERN) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_KERN: never; + + /** + * Use with to use a letterpress text effect. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_LETTERPRESS_STYLE](Titanium.UI.ATTRIBUTE_LETTERPRESS_STYLE) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_LETTERPRESS_STYLE: never; + + /** + * Use with to enable or disable ligatures. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_LIGATURE](Titanium.UI.ATTRIBUTE_LIGATURE) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_LIGATURE: never; + + /** + * Use with to create a link. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_LINK](Titanium.UI.ATTRIBUTE_LINK) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_LINK: never; + + /** + * Use with to skew the text. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_OBLIQUENESS](Titanium.UI.ATTRIBUTE_OBLIQUENESS) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_OBLIQUENESS: never; + + /** + * Use with to display a shadow behind the text. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_SHADOW](Titanium.UI.ATTRIBUTE_SHADOW) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_SHADOW: never; + + /** + * Use with to change the color of the horizontal line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_STRIKETHROUGH_COLOR](Titanium.UI.ATTRIBUTE_STRIKETHROUGH_COLOR) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_STRIKETHROUGH_COLOR: never; + + /** + * Use with to place a horizontal line through the text. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_STRIKETHROUGH_STYLE](Titanium.UI.ATTRIBUTE_STRIKETHROUGH_STYLE) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_STRIKETHROUGH_STYLE: never; + + /** + * Use with to specify a color for the stroke text. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_STROKE_COLOR](Titanium.UI.ATTRIBUTE_STROKE_COLOR) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_STROKE_COLOR: never; + + /** + * Use with to specify the width of the stroke text. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_STROKE_WIDTH](Titanium.UI.ATTRIBUTE_STROKE_WIDTH) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_STROKE_WIDTH: never; + + /** + * Use with to apply a text effect. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_TEXT_EFFECT](Titanium.UI.ATTRIBUTE_TEXT_EFFECT) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_TEXT_EFFECT: never; + + /** + * Use with to place a horizontal line under the text. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINES_STYLE](Titanium.UI.ATTRIBUTE_UNDERLINES_STYLE) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINES_STYLE: never; + + /** + * Use with to draw a line only underneath or through words. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_BY_WORD](Titanium.UI.ATTRIBUTE_UNDERLINE_BY_WORD) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_BY_WORD: never; + + /** + * Use with to change the color of the horizontal line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_COLOR](Titanium.UI.ATTRIBUTE_UNDERLINE_COLOR) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_COLOR: never; + + /** + * Use with to draw a dashed line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_DASH](Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_DASH) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_PATTERN_DASH: never; + + /** + * Use with to draw an alternating line of dashes and dots. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT](Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT: never; + + /** + * Use with to draw an alternating line of dashes and two dots. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT_DOT](Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT_DOT) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_PATTERN_DASH_DOT_DOT: never; + + /** + * Use with to draw a dotted line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_DOT](Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_DOT) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_PATTERN_DOT: never; + + /** + * Use with to draw a solid line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_SOLID](Titanium.UI.ATTRIBUTE_UNDERLINE_PATTERN_SOLID) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_PATTERN_SOLID: never; + + /** + * Use with to draw a double line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_DOUBLE](Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_DOUBLE) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_STYLE_DOUBLE: never; + + /** + * Use with to not draw a line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_NONE](Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_NONE) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_STYLE_NONE: never; + + /** + * Use with to draw a single line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_SINGLE](Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_SINGLE) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_STYLE_SINGLE: never; + + /** + * Use with to draw a thick line. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_THICK](Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_THICK) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_UNDERLINE_STYLE_THICK: never; + + /** + * Use with to control the direction of the text. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_WRITING_DIRECTION](Titanium.UI.ATTRIBUTE_WRITING_DIRECTION) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_WRITING_DIRECTION: never; + + /** + * Use with to use the embedded text direction. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_EMBEDDING](Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_EMBEDDING) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_WRITING_DIRECTION_EMBEDDING: never; + + /** + * Use with to write text left to right. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_LEFT_TO_RIGHT](Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_LEFT_TO_RIGHT) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_WRITING_DIRECTION_LEFT_TO_RIGHT: never; + + /** + * Use with to use the + * [Unicode Bidirection Algorithm rules P2 and P3](http://www.unicode.org/reports/tr9/#The_Paragraph_Level) + * to determine which direction to use. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_NATURAL](Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_NATURAL) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_WRITING_DIRECTION_NATURAL: never; + + /** + * Use with to override the text direction. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_OVERRIDE](Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_OVERRIDE) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_WRITING_DIRECTION_OVERRIDE: never; + + /** + * Use with to write text right to left. + * @deprecated Use the [Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_RIGHT_TO_LEFT](Titanium.UI.ATTRIBUTE_WRITING_DIRECTION_RIGHT_TO_LEFT) constant instead (without the iOS namespace). + */ + const ATTRIBUTE_WRITING_DIRECTION_RIGHT_TO_LEFT: never; + + /** + * All media types require a user gesture to begin playing. + */ + const AUDIOVISUAL_MEDIA_TYPE_ALL: number; + + /** + * Media types containing audio require a user gesture to begin playing. + */ + const AUDIOVISUAL_MEDIA_TYPE_AUDIO: number; + + /** + * No media types require a user gesture to begin playing. + */ + const AUDIOVISUAL_MEDIA_TYPE_NONE: number; + + /** + * Media types containing video require a user gesture to begin playing. + */ + const AUDIOVISUAL_MEDIA_TYPE_VIDEO: number; + + /** + * Converts strings formatted as addresses into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_MAP_ADDRESSES](Titanium.UI.AUTOLINK_MAP_ADDRESSES) instead. + */ + const AUTODETECT_ADDRESS: never; + + /** + * Converts all detectable types of data into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_ALL](Titanium.UI.AUTOLINK_ALL) instead. + */ + const AUTODETECT_ALL: never; + + /** + * Converts strings formatted as calendar events into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_CALENDAR](Titanium.UI.AUTOLINK_CALENDAR) instead. + */ + const AUTODETECT_CALENDAR: never; + + /** + * Converts strings formatted as URLs into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_URLS](Titanium.UI.AUTOLINK_URLS) instead. + */ + const AUTODETECT_LINK: never; + + /** + * Disables converting strings into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_NONE](Titanium.UI.AUTOLINK_NONE) instead. + */ + const AUTODETECT_NONE: never; + + /** + * Converts strings formatted as phone numbers into clickable links. + * @deprecated Use [Titanium.UI.AUTOLINK_PHONE_NUMBERS](Titanium.UI.AUTOLINK_PHONE_NUMBERS) instead. + */ + const AUTODETECT_PHONE: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_CLEAR](Titanium.UI.BLEND_MODE_CLEAR) instead. + */ + const BLEND_MODE_CLEAR: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_COLOR](Titanium.UI.BLEND_MODE_COLOR) instead. + */ + const BLEND_MODE_COLOR: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_COLOR_BURN](Titanium.UI.BLEND_MODE_COLOR_BURN) instead. + */ + const BLEND_MODE_COLOR_BURN: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_COLOR_DODGE](Titanium.UI.BLEND_MODE_COLOR_DODGE) instead. + */ + const BLEND_MODE_COLOR_DODGE: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_COPY](Titanium.UI.BLEND_MODE_COPY) instead. + */ + const BLEND_MODE_COPY: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_DARKEN](Titanium.UI.BLEND_MODE_DARKEN) instead. + */ + const BLEND_MODE_DARKEN: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_DESTINATION_ATOP](Titanium.UI.BLEND_MODE_DESTINATION_ATOP) instead. + */ + const BLEND_MODE_DESTINATION_ATOP: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_DESTINATION_IN](Titanium.UI.BLEND_MODE_DESTINATION_IN) instead. + */ + const BLEND_MODE_DESTINATION_IN: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_DESTINATION_OUT](Titanium.UI.BLEND_MODE_DESTINATION_OUT) instead. + */ + const BLEND_MODE_DESTINATION_OUT: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_DESTINATION_OVER](Titanium.UI.BLEND_MODE_DESTINATION_OVER) instead. + */ + const BLEND_MODE_DESTINATION_OVER: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_DIFFERENCE](Titanium.UI.BLEND_MODE_DIFFERENCE) instead. + */ + const BLEND_MODE_DIFFERENCE: never; + + /** + * Image mode constant. Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_EXCLUSION](Titanium.UI.BLEND_MODE_EXCLUSION) instead. + */ + const BLEND_MODE_EXCLUSION: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_HARD_LIGHT](Titanium.UI.BLEND_MODE_HARD_LIGHT) instead. + */ + const BLEND_MODE_HARD_LIGHT: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_HUE](Titanium.UI.BLEND_MODE_HUE) instead. + */ + const BLEND_MODE_HUE: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_LIGHTEN](Titanium.UI.BLEND_MODE_LIGHTEN) instead. + */ + const BLEND_MODE_LIGHTEN: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_LUMINOSITY](Titanium.UI.BLEND_MODE_LUMINOSITY) instead. + */ + const BLEND_MODE_LUMINOSITY: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_MULTIPLY](Titanium.UI.BLEND_MODE_MULTIPLY) instead. + */ + const BLEND_MODE_MULTIPLY: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_NORMAL](Titanium.UI.BLEND_MODE_NORMAL) instead. + */ + const BLEND_MODE_NORMAL: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_OVERLAY](Titanium.UI.BLEND_MODE_OVERLAY) instead. + */ + const BLEND_MODE_OVERLAY: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_PLUS_DARKER](Titanium.UI.BLEND_MODE_PLUS_DARKER) instead. + */ + const BLEND_MODE_PLUS_DARKER: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_PLUS_LIGHTER](Titanium.UI.BLEND_MODE_PLUS_LIGHTER) instead. + */ + const BLEND_MODE_PLUS_LIGHTER: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_SATURATION](Titanium.UI.BLEND_MODE_SATURATION) instead. + */ + const BLEND_MODE_SATURATION: never; + + /** + * Image mode constant. Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_SCREEN](Titanium.UI.BLEND_MODE_SCREEN) instead. + */ + const BLEND_MODE_SCREEN: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_SOFT_LIGHT](Titanium.UI.BLEND_MODE_SOFT_LIGHT) instead. + */ + const BLEND_MODE_SOFT_LIGHT: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_SOURCE_ATOP](Titanium.UI.BLEND_MODE_SOURCE_ATOP) instead. + */ + const BLEND_MODE_SOURCE_ATOP: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_SOURCE_IN](Titanium.UI.BLEND_MODE_SOURCE_IN) instead. + */ + const BLEND_MODE_SOURCE_IN: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_SOURCE_OUT](Titanium.UI.BLEND_MODE_SOURCE_OUT) instead. + */ + const BLEND_MODE_SOURCE_OUT: never; + + /** + * Use with [MaskedImage.mode](Titanium.UI.MaskedImage.mode) to specify a blend mode. + * @deprecated Use [Titanium.UI.BLEND_MODE_XOR](Titanium.UI.BLEND_MODE_XOR) instead. + */ + const BLEND_MODE_XOR: never; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_DARK: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_EXTRA_LIGHT: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_LIGHT: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_PROMINENT: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_REGULAR: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_CHROME_MATERIAL: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_CHROME_MATERIAL_DARK: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_CHROME_MATERIAL_LIGHT: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_MATERIAL: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_MATERIAL_DARK: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_MATERIAL_LIGHT: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_THICK_MATERIAL: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_THICK_MATERIAL_DARK: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_THICK_MATERIAL_LIGHT: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_THIN_MATERIAL: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_THIN_MATERIAL_DARK: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_THIN_MATERIAL_LIGHT: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_ULTRA_THIN_MATERIAL: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_ULTRA_THIN_MATERIAL_DARK: number; + + /** + * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect. + */ + const BLUR_EFFECT_STYLE_SYSTEM_ULTRA_THIN_MATERIAL_LIGHT: number; + + /** + * Specifies that the data for the URL load should be loaded from the originating source. + * No existing cache data should be used to satisfy a URL load request. + */ + const CACHE_POLICY_RELOAD_IGNORING_LOCAL_CACHE_DATA: number; + + /** + * Specifies that the existing cache data should be used to satisfy a request, + * regardless of its age or expiration date. + */ + const CACHE_POLICY_RETURN_CACHE_DATA_DONT_LOAD: number; + + /** + * Specifies that the existing cached data should be used to satisfy the request, + * regardless of its age or expiration date. + */ + const CACHE_POLICY_RETURN_CACHE_DATA_ELSE_LOAD: number; + + /** + * Specifies that the caching logic defined in the protocol implementation, if any, + * is used for a particular URL load request. + */ + const CACHE_POLICY_USE_PROTOCOL_CACHE_POLICY: number; + + /** + * Use with to specify clipping behavior. + */ + const CLIP_MODE_DEFAULT: number; + + /** + * Use with to specify clipping behavior. + */ + const CLIP_MODE_DISABLED: number; + + /** + * Use with to specify clipping behavior. + */ + const CLIP_MODE_ENABLED: number; + + /** + * Use with to specify collisions with both items and + * boundaries. + */ + const COLLISION_MODE_ALL: number; + + /** + * Use with to specify collisions with + * boundaries only. + */ + const COLLISION_MODE_BOUNDARY: number; + + /** + * Use with to specify collisions with items only. + */ + const COLLISION_MODE_ITEM: number; + + /** + * Credential should be stored only for this session. + */ + const CREDENTIAL_PERSISTENCE_FOR_SESSION: number; + + /** + * Credential should not be stored. + */ + const CREDENTIAL_PERSISTENCE_NONE: number; + + /** + * Credential should be stored in the keychain. + */ + const CREDENTIAL_PERSISTENCE_PERMANENT: number; + + /** + * Credential should be stored permanently in the keychain, and in addition should be + * distributed to other devices based on the owning AppleID. + */ + const CREDENTIAL_PERSISTENCE_SYNCHRONIZABLE: number; + + /** + * The heavy impact style used as the `style` argument when creating a with the + * type . + */ + const FEEDBACK_GENERATOR_IMPACT_STYLE_HEAVY: number; + + /** + * The light impact style used as the `style` argument when creating a with the + * type . + */ + const FEEDBACK_GENERATOR_IMPACT_STYLE_LIGHT: number; + + /** + * The medium impact style used as the `style` argument when creating a with the + * type . + */ + const FEEDBACK_GENERATOR_IMPACT_STYLE_MEDIUM: number; + + /** + * The error notification type used as the argument in . + */ + const FEEDBACK_GENERATOR_NOTIFICATION_TYPE_ERROR: number; + + /** + * The success notification type used as the argument in . + */ + const FEEDBACK_GENERATOR_NOTIFICATION_TYPE_SUCCESS: number; + + /** + * The warning notification type used as the argument in . + */ + const FEEDBACK_GENERATOR_NOTIFICATION_TYPE_WARNING: number; + + /** + * The feedback type to be used when specifying an impact in . + */ + const FEEDBACK_GENERATOR_TYPE_IMPACT: number; + + /** + * The feedback type to be used when specifying a received notification in . + */ + const FEEDBACK_GENERATOR_TYPE_NOTIFICATION: number; + + /** + * The feedback type to be used when specifying a selection in . + */ + const FEEDBACK_GENERATOR_TYPE_SELECTION: number; + + /** + * Inject the script after the document finishes loading, but before other subresources finish loading. + */ + const INJECTION_TIME_DOCUMENT_END: number; + + /** + * Inject the script after the document element is created, but before any other content is loaded. + */ + const INJECTION_TIME_DOCUMENT_START: number; + + /** + * Use with to control keyboard dismiss mode. + */ + const KEYBOARD_DISMISS_MODE_INTERACTIVE: number; + + /** + * Use with to control keyboard dismiss mode. + */ + const KEYBOARD_DISMISS_MODE_NONE: number; + + /** + * Use with to control keyboard dismiss mode. + */ + const KEYBOARD_DISMISS_MODE_ON_DRAG: number; + + /** + * Always use a larger title when this item is top most. + */ + const LARGE_TITLE_DISPLAY_MODE_ALWAYS: number; + + /** + * Automatically use the large out-of-line title based on the state of the p + * revious item in the navigation bar. + */ + const LARGE_TITLE_DISPLAY_MODE_AUTOMATIC: number; + + /** + * Never use a larger title when this item is top most. + */ + const LARGE_TITLE_DISPLAY_MODE_NEVER: number; + + /** + * To indicate that the Live Photo aspect is turned off and it will + * be treated as a still (e.g. for sharing). + */ + const LIVEPHOTO_BADGE_OPTIONS_LIVE_OFF: number; + + /** + * Include treatments so this image can be shown directly over the content + * of the Live Photo. + */ + const LIVEPHOTO_BADGE_OPTIONS_OVER_CONTENT: number; + + /** + * Plays back the entire motion and sound content of the Live Photo, including transition + * effects at the start and end. + */ + const LIVEPHOTO_PLAYBACK_STYLE_FULL: number; + + /** + * Plays back only a brief section of the motion content of the Live Photo, without sound. + */ + const LIVEPHOTO_PLAYBACK_STYLE_HINT: number; + + /** + * An arrow that is automatically aligned. + */ + const MENU_POPUP_ARROW_DIRECTION_DEFAULT: number; + + /** + * An arrow that points downward. + */ + const MENU_POPUP_ARROW_DIRECTION_DOWN: number; + + /** + * An arrow that points toward the left. + */ + const MENU_POPUP_ARROW_DIRECTION_LEFT: number; + + /** + * An arrow that points toward the right. + */ + const MENU_POPUP_ARROW_DIRECTION_RIGHT: number; + + /** + * An arrow that points upward. + */ + const MENU_POPUP_ARROW_DIRECTION_UP: number; + + /** + * View presented with the same style as its parent window. + */ + let MODAL_PRESENTATION_CURRENT_CONTEXT: number; + + /** + * Window width and height are smaller than those of the screen and the view is centered on + * the screen. + */ + const MODAL_PRESENTATION_FORMSHEET: number; + + /** + * Window covers the screen. + */ + const MODAL_PRESENTATION_FULLSCREEN: number; + + /** + * View presented over its parent window. + */ + let MODAL_PRESENTATION_OVER_CURRENT_CONTEXT: number; + + /** + * Presented view covers the screen. + */ + let MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN: number; + + /** + * Window height is the height of the screen and width is equal to screen width in a portrait + * orientation. + */ + const MODAL_PRESENTATION_PAGESHEET: number; + + /** + * When the window is presented, its view slides up from the bottom of the screen. On dismissal, + * the view slides back down (default.) + */ + const MODAL_TRANSITION_STYLE_COVER_VERTICAL: number; + + /** + * When the window is presented, the current view fades out while the new view fades in at the + * same time. On dismissal, a similar type of cross-fade is used to return to the original view. + */ + const MODAL_TRANSITION_STYLE_CROSS_DISSOLVE: number; + + /** + * When the window is presented, the current view initiates a horizontal 3D flip from + * right-to-left, resulting in the revealing of the new view as if it were on the back of the + * previous view. On dismissal, the flip occurs from left-to-right, returning to the original + * view. + */ + const MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL: number; + + /** + * When the window is presented, one corner of the current view curls up to reveal the modal + * view underneath. On dismissal, the curled up page unfurls itself back on top of the modal + * view. + */ + const MODAL_TRANSITION_STYLE_PARTIAL_CURL: number; + + /** + * The normal style for preview actions. + */ + const PREVIEW_ACTION_STYLE_DEFAULT: number; + + /** + * The destructive style for preview actions. + */ + const PREVIEW_ACTION_STYLE_DESTRUCTIVE: number; + + /** + * The selected style for preview actions. + */ + const PREVIEW_ACTION_STYLE_SELECTED: number; + + /** + * Use with to specifiy a continuous force. + */ + const PUSH_MODE_CONTINUOUS: number; + + /** + * Use with to specifiy an instantaneous force. + */ + const PUSH_MODE_INSTANTANEOUS: number; + + /** + * The default style for . + */ + const ROW_ACTION_STYLE_DEFAULT: number; + + /** + * The destructive style for . + */ + const ROW_ACTION_STYLE_DESTRUCTIVE: number; + + /** + * The normal style for . + */ + const ROW_ACTION_STYLE_NORMAL: number; + + /** + * Use with to control deceleration rate. + */ + const SCROLL_DECELERATION_RATE_FAST: number; + + /** + * Use with to control deceleration rate. + */ + const SCROLL_DECELERATION_RATE_NORMAL: number; + + /** + * Use with to change the search bar style. + */ + const SEARCH_BAR_STYLE_MINIMAL: number; + + /** + * Use with to change the search bar style. + */ + const SEARCH_BAR_STYLE_PROMINENT: number; + + /** + * Selection endpoints can be placed at any character boundary. + */ + const SELECTION_GRANULARITY_CHARACTER: number; + + /** + * Selection granularity varies automatically depending on the selection. + */ + const SELECTION_GRANULARITY_DYNAMIC: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_ADD: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_ALARM: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_AUDIO: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_BOOKMARK: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_CAPTURE_PHOTO: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_CAPTURE_VIDEO: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_CLOUD: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_COMPOSE: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_CONFIRMATION: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_CONTACT: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_DATE: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_FAVORITE: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_HOME: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_INVITATION: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_LOCATION: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_LOVE: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_MAIL: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_MARK_LOCATION: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_MESSAGE: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_PAUSE: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_PLAY: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_PROHIBIT: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_SEARCH: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_SHARE: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_SHUFFLE: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_TASK: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_TASK_COMPLETED: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_TIME: number; + + /** + * Number that represents the icon used for the application shortcut + */ + const SHORTCUT_ICON_TYPE_UPDATE: number; + + /** + * String that represents the magnifying glass on the table view index bar + */ + const TABLEVIEW_INDEX_SEARCH: string; + + /** + * User tapped the back or forward button. + * @deprecated Not used with Titanium SDK 8.0.0 and later by replacing UIWebView with WKWebView. + */ + const WEBVIEW_NAVIGATIONTYPE_BACK_FORWARD: never; + + /** + * User resubmitted a form. + * @deprecated Not used with Titanium SDK 8.0.0 and later by replacing UIWebView with WKWebView. + */ + const WEBVIEW_NAVIGATIONTYPE_FORM_RESUBMITTED: never; + + /** + * User submitted a form. + * @deprecated Not used with Titanium SDK 8.0.0 and later by replacing UIWebView with WKWebView. + */ + const WEBVIEW_NAVIGATIONTYPE_FORM_SUBMITTED: never; + + /** + * User tapped a link. + * @deprecated Not used with Titanium SDK 8.0.0 and later by replacing UIWebView with WKWebView. + */ + const WEBVIEW_NAVIGATIONTYPE_LINK_CLICKED: never; + + /** + * Some other action occurred. + * @deprecated Not used with Titanium SDK 8.0.0 and later by replacing UIWebView with WKWebView. + */ + const WEBVIEW_NAVIGATIONTYPE_OTHER: never; + + /** + * User tapped the reload button. + * @deprecated Not used with Titanium SDK 8.0.0 and later by replacing UIWebView with WKWebView. + */ + const WEBVIEW_NAVIGATIONTYPE_RELOAD: never; + + /** + * A set of constants for the style that can be used for the `style` property of + * . + */ + namespace AlertDialogStyle { + /** + * A standard alert dialog. This is the default value. + */ + const DEFAULT: number; + + /** + * An alert dialog that allows the user to enter login identifier and password. + */ + const LOGIN_AND_PASSWORD_INPUT: number; + + /** + * An alert dialog that allows the user to enter text. + */ + const PLAIN_TEXT_INPUT: number; + + /** + * An alert dialog that allows the user to enter text. The text field is obscured. + */ + const SECURE_TEXT_INPUT: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the animation styles used for view transitions. + * One of the group of animation style constants + * * [CURL_DOWN](Titanium.UI.iOS.AnimationStyle.CURL_DOWN) + * * [CURL_UP](Titanium.UI.iOS.AnimationStyle.CURL_UP) + * * [FLIP_FROM_LEFT](Titanium.UI.iOS.AnimationStyle.FLIP_FROM_LEFT) + * * [FLIP_FROM_RIGHT](Titanium.UI.iOS.AnimationStyle.FLIP_FROM_RIGHT) + * * [FLIP_FROM_TOP](Titanium.UI.iOS.AnimationStyle.FLIP_FROM_TOP) + * * [FLIP_FROM_BOTTOM](Titanium.UI.iOS.AnimationStyle.FLIP_FROM_BOTTOM) + * * [CROSS_DISSOLVE](Titanium.UI.iOS.AnimationStyle.CROSS_DISSOLVE) + * * [NONE](Titanium.UI.iOS.AnimationStyle.NONE) + */ + namespace AnimationStyle { + /** + * A transition that dissolves from one view to the next. + */ + const CROSS_DISSOLVE: number; + + /** + * Curl downwards during a transition animation. + */ + const CURL_DOWN: number; + + /** + * Curl upwards during a transition animation. + */ + const CURL_UP: number; + + /** + * Flip from bottom to top during a transition animation. + */ + const FLIP_FROM_BOTTOM: number; + + /** + * Flip from left to right during a transition animation. + */ + const FLIP_FROM_LEFT: number; + + /** + * Flip from right to left during a transition animation. + */ + const FLIP_FROM_RIGHT: number; + + /** + * Flip from top to bottom during a transition animation. + */ + const FLIP_FROM_TOP: number; + + /** + * No animation. + */ + const NONE: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the style that can be used for the `selectionStyle` property of a + * ListItem, which is set in the `properties` dictionary of either the or + * . + */ + namespace ListViewCellSelectionStyle { + /** + * The cell when selected has a blue background. This is the default value. + */ + const BLUE: number; + + /** + * The cell when selected has a gray background. + */ + const GRAY: number; + + /** + * The cell has no distinct style for when it is selected. + */ + const NONE: number; + + } + /** + * A set of constants for the position value that can be used for the `position` property of + * when invoking the ListView's `scrollToItem`, `appendSection`, + * `deleteSectionAt`, `insertSectionAt` and `replaceSectionAt` methods. + */ + namespace ListViewScrollPosition { + /** + * The list view scrolls the row of interest to the bottom of the visible list view. + */ + const BOTTOM: number; + + /** + * The list view scrolls the row of interest to the middle of the list table view. + */ + const MIDDLE: number; + + /** + * The table view scrolls the row of interest to be fully visible with a minimal movement. + * If the row is already fully visible, no scrolling occurs. For example, if the row is above the + * visible area, the behavior is identical to that specified by `TOP`. This is the default. + */ + const NONE: number; + + /** + * The list view scrolls the row of interest to the top of the visible list view. + */ + const TOP: number; + + } + /** + * A set of constants for the style that can be used for the `style` property of + * . + */ + namespace ListViewStyle { + /** + * A list view whose sections present distinct groups of rows. The section headers and footers + * do not float. + */ + const GROUPED: number; + + /** + * A plain list view. Any section headers or footers are displayed as inline separators and + * float when the list view is scrolled. + */ + const PLAIN: number; + + } + /** + * A set of constants for the bar styles used on the `style` property of . + */ + namespace ProgressBarStyle { + /** + * The style of progress view that is used in a toolbar. + */ + const BAR: number; + + /** + * he standard progress-view style. This is the default. + */ + const DEFAULT: number; + + /** + * The standard progress-view style. Same as `DEFAULT`. + */ + const PLAIN: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the Animation Styles used for transition on table view rows. + */ + namespace RowAnimationStyle { + /** + * The inserted row or rows slides in from the bottom; the deleted row or rows slides out + * toward the bottom. + */ + const BOTTOM: number; + + /** + * The inserted or deleted row or rows fades into or out of the table view. + */ + const FADE: number; + + /** + * The inserted row or rows slides in from the left; the deleted row or rows slides out to the + * left. + */ + const LEFT: number; + + /** + * No animation is performed. The new cell value appears as if the cell had just been reloaded. + */ + const NONE: number; + + /** + * The inserted row or rows slides in from the right; the deleted row or rows slides out to + * the right. + */ + const RIGHT: number; + + /** + * The inserted row or rows slides in from the top; the deleted row or rows slides out toward + * the top. + */ + const TOP: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the styles available for scrollbars used with and properties. + */ + namespace ScrollIndicatorStyle { + /** + * A style of indicator which is black smaller than the default style. This style is good + * against a white content background. + */ + const BLACK: number; + + /** + * The default style of scroll indicator, which is black with a white border. This style is + * good against any content background. + */ + const DEFAULT: number; + + /** + * A style of indicator is white and smaller than the default style. This style is good against + * a black content background. + */ + const WHITE: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the status bar style. + */ + namespace StatusBar { + /** + * Fade animation style, when the status bar is hidden or shown. + */ + const ANIMATION_STYLE_FADE: number; + + /** + * No animation style, when the status bar is hidden or shown. + */ + const ANIMATION_STYLE_NONE: number; + + /** + * Slide animation style, when the status bar is hidden or shown. + */ + const ANIMATION_STYLE_SLIDE: number; + + /** + * Default status bar style. + */ + const DEFAULT: number; + + /** + * Gray-colored status bar style. + */ + const GRAY: number; + + /** + * Gray-colored status bar style. + */ + const GREY: number; + + /** + * Status bar style to use with dark backgrounds. + */ + const LIGHT_CONTENT: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for creating standard iOS system buttons. + */ + namespace SystemButton { + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Action** button. + */ + const ACTION: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create an activity indicator that + * can be used in navigation bars and toolbars. + */ + const ACTIVITY: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Add** button. + */ + const ADD: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Bookmarks** button. + */ + const BOOKMARKS: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Camera** button. + */ + const CAMERA: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Cancel** button. + */ + const CANCEL: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Compose** button. + */ + const COMPOSE: number; + + /** + * Use with [Button.style](Titanium.UI.Button.style) to specify a **ContactAdd** button. + */ + const CONTACT_ADD: number; + + /** + * Use with [Button.style](Titanium.UI.Button.style) to specify a **Disclosure** button. + */ + const DISCLOSURE: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Done** button. + */ + const DONE: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Edit** button. + */ + const EDIT: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Fast Forward** button. + */ + const FAST_FORWARD: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create a fixed-width blank space + * for spacing items in toolbars. + */ + const FIXED_SPACE: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to create a flexible blank space + * for spacing items in toolbars. + */ + const FLEXIBLE_SPACE: number; + + /** + * Use with [Button.style](Titanium.UI.Button.style) to specify a dark-colored **Info** button. + */ + const INFO_DARK: number; + + /** + * Use with [Button.style](Titanium.UI.Button.style) to specify a light-colored **Info** button. + */ + const INFO_LIGHT: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify an **Organize** button. + */ + const ORGANIZE: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Pause** button. + */ + const PAUSE: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Play** button. + */ + const PLAY: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Refresh** button. + */ + const REFRESH: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Reply** button. + */ + const REPLY: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Rewind** button. + */ + const REWIND: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Save** button. + */ + const SAVE: number; + + /** + * Identical to [ACTIVITY](Titanium.UI.iOS.SystemButton.ACTIVITY). + */ + const SPINNER: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Stop** button. + */ + const STOP: number; + + /** + * Use with [Button.systemButton](Titanium.UI.Button.systemButton) to specify a **Trash** button. + */ + const TRASH: number; + + } + /** + * A set of constants for the system button styles that can be used for the button `style` property. + */ + namespace SystemButtonStyle { + /** + * A simple button style with a border. + */ + const BORDERED: number; + + /** + * The style for a **Done** button--for example, a button that completes some task and returns + * to the previous view. + */ + const DONE: number; + + /** + * Specifies a borderless button, the default style for toolbars, button bars, and tabbed bars. + */ + const PLAIN: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the system icon styles that can be used on a tab group tab. + */ + namespace SystemIcon { + /** + * Bookmark style icon + */ + const BOOKMARKS: number; + + /** + * Contacts style icon + */ + const CONTACTS: number; + + /** + * Downloads style icon + */ + const DOWNLOADS: number; + + /** + * Favorites style icon + */ + const FAVORITES: number; + + /** + * Featured style icon + */ + const FEATURED: number; + + /** + * History style icon + */ + const HISTORY: number; + + /** + * More style icon + */ + const MORE: number; + + /** + * Most recent style icon + */ + const MOST_RECENT: number; + + /** + * Most viewed style icon + */ + const MOST_VIEWED: number; + + /** + * Recents style icon + */ + const RECENTS: number; + + /** + * Search style icon + */ + const SEARCH: number; + + /** + * Top rated style icon + */ + const TOP_RATED: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the style that can be used for the `selectionStyle` property of + * . + */ + namespace TableViewCellSelectionStyle { + /** + * The cell when selected has a blue background. This is the default value. + */ + const BLUE: number; + + /** + * Then cell when selected has a gray background. + */ + const GRAY: number; + + /** + * The cell has no distinct style for when it is selected. + */ + const NONE: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the position value that can be used for the `position` property of + * when invoking `scrollToIndex`. + */ + namespace TableViewScrollPosition { + /** + * The table view scrolls the row of interest to the bottom of the visible table view. + */ + const BOTTOM: number; + + /** + * The table view scrolls the row of interest to the middle of the visible table view. + */ + const MIDDLE: number; + + /** + * The table view scrolls the row of interest to be fully visible with a minimum of movement. If the row is already fully visible, no scrolling occurs. For example, if the row is above the visible area, the behavior is identical to that specified by `TOP`. This is the default. + */ + const NONE: number; + + /** + * The table view scrolls the row of interest to the top of the visible table view. + */ + const TOP: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * A set of constants for the style that can be used for the `style` property of + * and . + */ + namespace TableViewStyle { + /** + * A table view whose sections present distinct groups of rows. The section headers and footers + * do not float. + */ + const GROUPED: number; + + /** + * A table view whose sections present distinct groups of rows and grouped sections are inset with rounded corners. + * The section headers and footers do not float. + */ + const INSET_GROUPED: number; + + /** + * A plain table view. Any section headers or footers are displayed as inline separators and + * float when the table view is scrolled. + */ + const PLAIN: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + function fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * The AdView is a view for display Apple iAds. + * @deprecated iAd has been deprecated in iOS 10 and SDK 5.5.0. It was removed as part of the SDK 7.0.0. + */ + const AdView: never; + /** + * Dynamic behavior to support connections between an anchor point and an item. + */ + class AnchorAttachmentBehavior extends Titanium.Proxy { + /** + * Anchor point for the attachment behavior relative to the animator's coordinate system. + */ + anchor: Point; + + /** + * Amount of damping to apply to the attachment behavior. + */ + damping: number; + + /** + * Distance, in points, between the two attachment points. + */ + distance: number; + + /** + * Frequency of oscillation for the behavior. + */ + frequency: number; + + /** + * Item to connect to use the attachment behavior. + */ + item: Titanium.UI.View; + + /** + * Offset from the center point of the item for the attachment. + */ + offset: Point; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchor(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDamping(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDistance(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFrequency(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItem(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOffset(): Point; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchor(anchor: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDamping(damping: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDistance(distance: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFrequency(frequency: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setItem(item: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOffset(offset: Point): void; + + } + /** + * Base event for class Titanium.UI.iOS.Animator + */ + interface AnimatorBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.Animator; + + } + /** + * Fired when the animator paused its animations. + */ + interface Animator_pause_Event extends AnimatorBaseEvent { + } + /** + * Fired when the animator resumes its animations. + */ + interface Animator_resume_Event extends AnimatorBaseEvent { + } + interface AnimatorEventMap extends ProxyEventMap { + pause: Animator_pause_Event; + + resume: Animator_resume_Event; + + } + /** + * Provides support for the built-in iOS dynamic animations + */ + class Animator extends Titanium.Proxy { + /** + * Behaviors associated with this animator. + */ + behaviors: Titanium.Proxy[]; + + /** + * Titanium View object to initialize as the reference view for the animator. + */ + referenceView: Titanium.UI.View; + + /** + * Returns `true` if the animator is running else `false`. + */ + readonly running: boolean; + + /** + * Adds a dynamic behavior to the animator. + */ + addBehavior(behavior: Titanium.Proxy): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.Animator, event: AnimatorEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: AnimatorEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBehaviors(): Titanium.Proxy[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getReferenceView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRunning(): boolean; + + /** + * Removes all behaviors from this animator. + */ + removeAllBehaviors(): void; + + /** + * Removes the specified behavior from the animator. + */ + removeBehavior(behavior: Titanium.Proxy): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.Animator, event: AnimatorEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBehaviors(behaviors: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setReferenceView(referenceView: Titanium.UI.View): void; + + /** + * Starts the animation behaviors. + */ + startAnimator(): void; + + /** + * Stops the animation behaviors. + */ + stopAnimator(): void; + + /** + * Updates the animator's state information with the current state of the specified item. + */ + updateItemUsingCurrentState(item: Titanium.UI.View): void; + + } + /** + * The Home screen quick actions API is for adding shortcuts to your app icon that anticipate and accelerate a + * user's interaction with your app. + */ + class ApplicationShortcuts extends Titanium.Proxy { + /** + * Creates a new dynamic application shortcut item. + */ + addDynamicShortcut(params: ShortcutParams): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Returns true or false depending if the provided shortcut object already exists. + */ + dynamicShortcutExists(identifier: string): boolean; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the dynamic application shortcut item identified by the `identifier`. + */ + getDynamicShortcut(identifier: string): ShortcutParams; + + /** + * Returns an array of the application shortcuts created dynamically. + */ + listDynamicShortcuts(): ShortcutParams[]; + + /** + * Returns an array of the application shortcuts listed in your tiapp.xml file. + */ + listStaticShortcuts(): ShortcutParams[]; + + /** + * Removes all dynamically created application shortcuts. + */ + removeAllDynamicShortcuts(): void; + + /** + * Removes the dynamic application shortcut item identified by the `identifier`. + */ + removeDynamicShortcut(identifier: string): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * An abstract datatype for specifying an attributed string attribute. + * @deprecated Use [Attribute](Attribute) instead. + */ + const Attribute: never; + /** + * An attributed string proxy manages character strings and associated sets of attributes (for example, + * font and kerning) that apply to individual characters or ranges of characters in the string. + * @deprecated Use [Titanium.UI.AttributedString](Titanium.UI.AttributedString) instead. + */ + const AttributedString: never; + /** + * Base event for class Titanium.UI.iOS.BlurView + */ + interface BlurViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.BlurView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface BlurView_click_Event extends BlurViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface BlurView_dblclick_Event extends BlurViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface BlurView_doubletap_Event extends BlurViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface BlurView_keypressed_Event extends BlurViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface BlurView_longpress_Event extends BlurViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface BlurView_pinch_Event extends BlurViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface BlurView_postlayout_Event extends BlurViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface BlurView_singletap_Event extends BlurViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface BlurView_swipe_Event extends BlurViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface BlurView_touchcancel_Event extends BlurViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface BlurView_touchend_Event extends BlurViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface BlurView_touchmove_Event extends BlurViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface BlurView_touchstart_Event extends BlurViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface BlurView_twofingertap_Event extends BlurViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface BlurViewEventMap extends ProxyEventMap { + click: BlurView_click_Event; + + dblclick: BlurView_dblclick_Event; + + doubletap: BlurView_doubletap_Event; + + keypressed: BlurView_keypressed_Event; + + longpress: BlurView_longpress_Event; + + pinch: BlurView_pinch_Event; + + postlayout: BlurView_postlayout_Event; + + singletap: BlurView_singletap_Event; + + swipe: BlurView_swipe_Event; + + touchcancel: BlurView_touchcancel_Event; + + touchend: BlurView_touchend_Event; + + touchmove: BlurView_touchmove_Event; + + touchstart: BlurView_touchstart_Event; + + twofingertap: BlurView_twofingertap_Event; + + } + /** + * A object gives you an easy way implement some complex visual effects. + * The blur effect is applied to every view the blur view is added to by default. You can also place the + * blur view above other views and all visible views layered under the blur view are blurred as well. + * For more information on BlurView, please refer to the official [Apple documentation](https://developer.apple.com/documentation/uikit/uivisualeffectview). + * Note: Apple introduced two new constants and in + * iOS 10. These are internally mapped to and . + */ + class BlurView extends Titanium.UI.View { + /** + * The effect you provide for the view. + */ + effect: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.BlurView, event: BlurViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: BlurViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEffect(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.BlurView, event: BlurViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEffect(effect: number): void; + + } + /** + * Base event for class Titanium.UI.iOS.CollisionBehavior + */ + interface CollisionBehaviorBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.CollisionBehavior; + + } + /** + * Fired when an item collides with a boundary. + */ + interface CollisionBehavior_boundarycollision_Event extends CollisionBehaviorBaseEvent { + /** + * Identifier of the boundary the item collided with. + */ + identifier: string; + + /** + * Item that collided with the boundary. + */ + item: Titanium.UI.View; + + /** + * Point of the collision when it started. Only returned when `start` is `true`. + */ + point: Point; + + /** + * Returns `true` if the collision started else `false`. + */ + start: boolean; + + } + /** + * Fired when two items collide. + */ + interface CollisionBehavior_itemcollision_Event extends CollisionBehaviorBaseEvent { + /** + * Item that collided with `item2`. + */ + item1: Titanium.UI.View; + + /** + * Item that collided with `item1`. + */ + item2: Titanium.UI.View; + + /** + * Point of the collision when it started. Only returned when `start` is `true`. + */ + point: Point; + + /** + * Returns `true` if the collision started else `false`. + */ + start: boolean; + + } + interface CollisionBehaviorEventMap extends ProxyEventMap { + boundarycollision: CollisionBehavior_boundarycollision_Event; + + itemcollision: CollisionBehavior_itemcollision_Event; + + } + /** + * Dynamic behavior to support collisions between items and boundaries. + */ + class CollisionBehavior extends Titanium.Proxy { + /** + * Boundary identfiers added to this behavior. + */ + readonly boundaryIdentifiers: BoundaryIdentifier[]; + + /** + * Specifies the collision behavior. + */ + collisionMode: number; + + /** + * Items added to this behavior. + */ + readonly items: Titanium.UI.View[]; + + /** + * Insets to apply when using the animator's reference view as the boundary. + */ + referenceInsets: Padding; + + /** + * Use the animator's reference view as the boundary. + */ + treatReferenceAsBoundary: boolean; + + /** + * Adds a boundary to this behavior. + */ + addBoundary(boundary: BoundaryIdentifier): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.CollisionBehavior, event: CollisionBehaviorEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds an item to this behavior. + */ + addItem(item: Titanium.UI.View): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: CollisionBehaviorEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBoundaryIdentifiers(): BoundaryIdentifier[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCollisionMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getReferenceInsets(): Padding; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTreatReferenceAsBoundary(): boolean; + + /** + * Removes all boundaries from this behavior. + */ + removeAllBoundaries(): void; + + /** + * Removes the specified boundary from this behavior. + */ + removeBoundary(boundary: BoundaryIdentifier): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.CollisionBehavior, event: CollisionBehaviorEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes the specified item from this behavior. + */ + removeItem(item: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCollisionMode(collisionMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setReferenceInsets(referenceInsets: Padding): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTreatReferenceAsBoundary(treatReferenceAsBoundary: boolean): void; + + } + /** + * Base event for class Titanium.UI.iOS.CoverFlowView + */ + interface CoverFlowViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.CoverFlowView; + + } + /** + * Fired when the user clicks on the view. + */ + interface CoverFlowView_click_Event extends CoverFlowViewBaseEvent { + /** + * Index of the image that is now visible. + */ + index: number; + + /** + * Index of the previously-visible image. + */ + previous: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface CoverFlowView_dblclick_Event extends CoverFlowViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface CoverFlowView_doubletap_Event extends CoverFlowViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface CoverFlowView_keypressed_Event extends CoverFlowViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface CoverFlowView_longpress_Event extends CoverFlowViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface CoverFlowView_pinch_Event extends CoverFlowViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface CoverFlowView_postlayout_Event extends CoverFlowViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface CoverFlowView_singletap_Event extends CoverFlowViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface CoverFlowView_swipe_Event extends CoverFlowViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface CoverFlowView_touchcancel_Event extends CoverFlowViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface CoverFlowView_touchend_Event extends CoverFlowViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface CoverFlowView_touchmove_Event extends CoverFlowViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface CoverFlowView_touchstart_Event extends CoverFlowViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface CoverFlowView_twofingertap_Event extends CoverFlowViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the user changes the image using a gesture. + */ + interface CoverFlowView_change_Event extends CoverFlowViewBaseEvent { + /** + * Index of the image that is now visible. + */ + index: number; + + /** + * Index of the previously-visible image. + */ + previous: number; + + } + interface CoverFlowViewEventMap extends ProxyEventMap { + change: CoverFlowView_change_Event; + + click: CoverFlowView_click_Event; + + dblclick: CoverFlowView_dblclick_Event; + + doubletap: CoverFlowView_doubletap_Event; + + keypressed: CoverFlowView_keypressed_Event; + + longpress: CoverFlowView_longpress_Event; + + pinch: CoverFlowView_pinch_Event; + + postlayout: CoverFlowView_postlayout_Event; + + singletap: CoverFlowView_singletap_Event; + + swipe: CoverFlowView_swipe_Event; + + touchcancel: CoverFlowView_touchcancel_Event; + + touchend: CoverFlowView_touchend_Event; + + touchmove: CoverFlowView_touchmove_Event; + + touchstart: CoverFlowView_touchstart_Event; + + twofingertap: CoverFlowView_twofingertap_Event; + + } + /** + * The cover flow view is a container showing animated three-dimensional images in a style + * consistent with the cover flow presentation style used for iPod, iTunes, and file browsing. + */ + class CoverFlowView extends Titanium.UI.View { + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Images to display in the view. + */ + images: string[] | Titanium.Blob[] | Titanium.Filesystem.File[] | CoverFlowImageType[]; + + /** + * Index to make selected. + */ + selected: number; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.CoverFlowView, event: CoverFlowViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: CoverFlowViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getImages(): string[] | Titanium.Blob[] | Titanium.Filesystem.File[] | CoverFlowImageType[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelected(): number; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.CoverFlowView, event: CoverFlowViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Changes the image for a specified index. + */ + setImage(index: number, image: string | Titanium.Blob | Titanium.Filesystem.File | CoverFlowImageType): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setImages(images: string[] | Titanium.Blob[] | Titanium.Filesystem.File[] | CoverFlowImageType[]): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelected(selected: number): void; + + } + /** + * Base event for class Titanium.UI.iOS.DocumentViewer + */ + interface DocumentViewerBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.DocumentViewer; + + } + /** + * Fires when the document is previewed. + */ + interface DocumentViewer_load_Event extends DocumentViewerBaseEvent { + } + /** + * Fires when the options menu appears before the document is previewed. + */ + interface DocumentViewer_menu_Event extends DocumentViewerBaseEvent { + } + /** + * Fires when the document is dismissed. + */ + interface DocumentViewer_unload_Event extends DocumentViewerBaseEvent { + } + interface DocumentViewerEventMap extends ProxyEventMap { + load: DocumentViewer_load_Event; + + menu: DocumentViewer_menu_Event; + + unload: DocumentViewer_unload_Event; + + } + /** + * A DocumentViewer provides in-app support for managing user interactions with files on the + * local system. + */ + class DocumentViewer extends Titanium.Proxy { + /** + * Name of the file (without the path). + */ + readonly name: string; + + /** + * URL of the document being previewed. + */ + url: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.DocumentViewer, event: DocumentViewerEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: DocumentViewerEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string; + + /** + * Dismisses the document viewer. + */ + hide(options?: DocumentViewerOptions): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.DocumentViewer, event: DocumentViewerEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUrl(url: string): void; + + /** + * Displays the document viewer over the current view. + */ + show(options?: DocumentViewerOptions): void; + + } + /** + * Base dynamic configuration for an item. + */ + class DynamicItemBehavior extends Titanium.Proxy { + /** + * Specifies if this item can rotate. + */ + allowsRotation: boolean; + + /** + * Specifies the angular resistance of this item. + */ + angularResistance: number; + + /** + * Specifies the relative mass density of this item. + */ + density: number; + + /** + * Specifies the elasticity applied to collisions for this item. + */ + elasticity: number; + + /** + * Specifies the linear resistance of the item when it slides against another item. + */ + friction: number; + + /** + * Items added to this behavior. + */ + readonly items: Titanium.UI.View[]; + + /** + * Specifies the linear resistance of this item which reduces linear velocity over time. + */ + resistance: number; + + /** + * Adds a specified angular velocity for the item. + */ + addAngularVelocityForItem(item: Titanium.UI.View, velocity: number): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds an item to this behavior. + */ + addItem(item: Titanium.UI.View): void; + + /** + * Adds a specified linear velocity for the item. + */ + addLinearVelocityForItem(item: Titanium.UI.View, velocity: Point): void; + + /** + * Returns the angular velocity of the item. + */ + angularVelocityForItem(item: Titanium.UI.View): number; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsRotation(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAngularResistance(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDensity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getElasticity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFriction(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResistance(): number; + + /** + * Returns the linear velocity of the item. + */ + linearVelocityForItem(item: Titanium.UI.View): Point; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes the specified item from this behavior. + */ + removeItem(item: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsRotation(allowsRotation: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAngularResistance(angularResistance: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDensity(density: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setElasticity(elasticity: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFriction(friction: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResistance(resistance: number): void; + + } + /** + * The feedback generator API is introduced in iOS 10 to handle the haptic feedback when using an iPhone 7 or + * later devices. + */ + class FeedbackGenerator extends Titanium.Proxy { + /** + * The style of the feedback generator you want to create. This property is only required when using . + */ + style?: number; + + /** + * The type of feedback generator you want to create. + */ + type: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getType(): number; + + /** + * Used to trigger a haptic feedback after an impact occurred. + */ + impactOccurred(): void; + + /** + * Used to trigger a haptic feedback after a notification has been received. + */ + notificationOccurred(notificationType: number): void; + + /** + * Used to prepare the haptic sensor for the upcoming interaction with it. + */ + prepare(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Used to trigger a haptic feedback after a selection has been made. + */ + selectionChanged(): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setType(type: number): void; + + } + /** + * Gravitational force to apply to an item. + */ + class GravityBehavior extends Titanium.Proxy { + /** + * Specifies the angle of the gravity vector in radians. + */ + angle: number; + + /** + * Specifies the direction of the gravity vector as an x, y pair. + */ + gravityDirection: Point; + + /** + * Items added to this behavior. + */ + readonly items: Titanium.UI.View[]; + + /** + * Specifies the magnitude of the gravity vector. + */ + magnitude: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds an item to this behavior. + */ + addItem(item: Titanium.UI.View): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAngle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getGravityDirection(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMagnitude(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes the specified item from this behavior. + */ + removeItem(item: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAngle(angle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setGravityDirection(gravityDirection: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMagnitude(magnitude: number): void; + + } + /** + * Abstract object representing a live photo used in . + */ + class LivePhoto extends Titanium.Proxy { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * Base event for class Titanium.UI.iOS.LivePhotoView + */ + interface LivePhotoViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.LivePhotoView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface LivePhotoView_click_Event extends LivePhotoViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface LivePhotoView_dblclick_Event extends LivePhotoViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface LivePhotoView_doubletap_Event extends LivePhotoViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface LivePhotoView_keypressed_Event extends LivePhotoViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface LivePhotoView_longpress_Event extends LivePhotoViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface LivePhotoView_pinch_Event extends LivePhotoViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface LivePhotoView_postlayout_Event extends LivePhotoViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface LivePhotoView_singletap_Event extends LivePhotoViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface LivePhotoView_swipe_Event extends LivePhotoViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface LivePhotoView_touchcancel_Event extends LivePhotoViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface LivePhotoView_touchend_Event extends LivePhotoViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface LivePhotoView_touchmove_Event extends LivePhotoViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface LivePhotoView_touchstart_Event extends LivePhotoViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface LivePhotoView_twofingertap_Event extends LivePhotoViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the Live Photo playback starts. + */ + interface LivePhotoView_start_Event extends LivePhotoViewBaseEvent { + /** + * Returns the `playbackStyle` that was provided to start the playback. + */ + playbackStyle: number; + + } + /** + * Fired when the Live Photo playback stops. + */ + interface LivePhotoView_stop_Event extends LivePhotoViewBaseEvent { + /** + * Returns the `playbackStyle` that was provided to start the playback. + */ + playbackStyle: number; + + } + interface LivePhotoViewEventMap extends ProxyEventMap { + click: LivePhotoView_click_Event; + + dblclick: LivePhotoView_dblclick_Event; + + doubletap: LivePhotoView_doubletap_Event; + + keypressed: LivePhotoView_keypressed_Event; + + longpress: LivePhotoView_longpress_Event; + + pinch: LivePhotoView_pinch_Event; + + postlayout: LivePhotoView_postlayout_Event; + + singletap: LivePhotoView_singletap_Event; + + start: LivePhotoView_start_Event; + + stop: LivePhotoView_stop_Event; + + swipe: LivePhotoView_swipe_Event; + + touchcancel: LivePhotoView_touchcancel_Event; + + touchend: LivePhotoView_touchend_Event; + + touchmove: LivePhotoView_touchmove_Event; + + touchstart: LivePhotoView_touchstart_Event; + + twofingertap: LivePhotoView_twofingertap_Event; + + } + /** + * A view to display a object introduced in iOS 9.1. + */ + class LivePhotoView extends Titanium.UI.View { + /** + * The Live Photo displayed in the view. + */ + livePhoto: Titanium.UI.iOS.LivePhoto; + + /** + * A Boolean value that determines whether the view plays the audio content of its Live Photo. + */ + muted: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.LivePhotoView, event: LivePhotoViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: LivePhotoViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLivePhoto(): Titanium.UI.iOS.LivePhoto; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMuted(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.LivePhotoView, event: LivePhotoViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLivePhoto(livePhoto: Titanium.UI.iOS.LivePhoto): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMuted(muted: boolean): void; + + /** + * Begins playback of Live Photo content in the view. + */ + startPlaybackWithStyle(playbackStyle: number): void; + + /** + * Ends playback of Live Photo content in the view. + */ + stopPlayback(): void; + + } + /** + * Base event for class Titanium.UI.iOS.MenuPopup + */ + interface MenuPopupBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.MenuPopup; + + } + /** + * Fired when the user clicks at one of the menu popup items. + */ + interface MenuPopup_click_Event extends MenuPopupBaseEvent { + /** + * The index of the clicked item. + */ + index: number; + + /** + * The title of the clicked item. + */ + title: string; + + } + interface MenuPopupEventMap extends ProxyEventMap { + click: MenuPopup_click_Event; + + } + /** + * A menu popup provides the ability to create custom tooltip options using the `items` property + * covering the native `UIMenuController` class. + * See also: + * * [iOS Developer Library: UIMenuController](https://developer.apple.com/documentation/uikit/uimenucontroller) + */ + class MenuPopup extends Titanium.Proxy { + /** + * The items of the menu popup. + */ + items: string[]; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.MenuPopup, event: MenuPopupEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: MenuPopupEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): string[]; + + /** + * Hides the menu popup. + */ + hide(options?: AnimatedOptions): void; + + /** + * Indicates whether the menu popup is currently visible. + */ + isVisible(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.MenuPopup, event: MenuPopupEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setItems(items: ReadonlyArray): void; + + /** + * Shows the menu popup. + */ + show(options: MenuPopupShowParams): void; + + } + /** + * Base event for class Titanium.UI.iOS.NavigationWindow + */ + interface NavigationWindowBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.NavigationWindow; + + } + /** + * Fired when the device detects a click against the view. + */ + interface NavigationWindow_click_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface NavigationWindow_dblclick_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface NavigationWindow_doubletap_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the window gains focus. + */ + interface NavigationWindow_focus_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface NavigationWindow_keypressed_Event extends NavigationWindowBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface NavigationWindow_longpress_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface NavigationWindow_pinch_Event extends NavigationWindowBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface NavigationWindow_postlayout_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface NavigationWindow_singletap_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface NavigationWindow_swipe_Event extends NavigationWindowBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface NavigationWindow_touchcancel_Event extends NavigationWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface NavigationWindow_touchend_Event extends NavigationWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface NavigationWindow_touchmove_Event extends NavigationWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface NavigationWindow_touchstart_Event extends NavigationWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface NavigationWindow_twofingertap_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the window loses focus. + */ + interface NavigationWindow_blur_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the window is closed. + */ + interface NavigationWindow_close_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the window is opened. + */ + interface NavigationWindow_open_Event extends NavigationWindowBaseEvent { + } + interface NavigationWindowEventMap extends ProxyEventMap { + blur: NavigationWindow_blur_Event; + + click: NavigationWindow_click_Event; + + close: NavigationWindow_close_Event; + + dblclick: NavigationWindow_dblclick_Event; + + doubletap: NavigationWindow_doubletap_Event; + + focus: NavigationWindow_focus_Event; + + keypressed: NavigationWindow_keypressed_Event; + + longpress: NavigationWindow_longpress_Event; + + open: NavigationWindow_open_Event; + + pinch: NavigationWindow_pinch_Event; + + postlayout: NavigationWindow_postlayout_Event; + + singletap: NavigationWindow_singletap_Event; + + swipe: NavigationWindow_swipe_Event; + + touchcancel: NavigationWindow_touchcancel_Event; + + touchend: NavigationWindow_touchend_Event; + + touchmove: NavigationWindow_touchmove_Event; + + touchstart: NavigationWindow_touchstart_Event; + + twofingertap: NavigationWindow_twofingertap_Event; + + } + /** + * A `NavigationWindow` implements a specialized view that manages the navigation of hierarchical + * content. + * @deprecated Use [Titanium.UI.NavigationWindow](Titanium.UI.NavigationWindow) instead. + */ + class NavigationWindow extends Titanium.UI.Window { + /** + * Title for the back button. This is only valid when the window is a child of a tab. + */ + backButtonTitle: never; + + /** + * The image to show as the back button. This is only valid when the window is a child of a tab. + */ + backButtonTitleImage: never; + + /** + * Background color for the nav bar, as a color name or hex triplet. + */ + barColor: never; + + /** + * Background image for the nav bar, specified as a URL to a local image. + */ + barImage: never; + + /** + * Set this to true to hide the shadow image of the navigation bar. + */ + hideShadow: never; + + /** + * View to show in the left nav bar area. + */ + leftNavButton: never; + + /** + * Hides the navigation bar (`true`) or shows the navigation bar (`false`). + */ + navBarHidden: never; + + /** + * The tintColor to apply to the navigation bar. + */ + navTintColor: never; + + /** + * View to show in the right nav bar area. + */ + rightNavButton: never; + + /** + * Shadow image for the navigation bar, specified as a URL to a local image.. + */ + shadowImage: never; + + /** + * Boolean value indicating if the user should be able to close a window using a swipe gesture. + */ + swipeToClose: never; + + /** + * Boolean value indicating if the tab bar should be hidden. + */ + tabBarHidden: never; + + /** + * Title of the window. + */ + title: never; + + /** + * View to show in the title area of the nav bar. + */ + titleControl: never; + + /** + * Image to show in the title area of the nav bar, specified as a local file path or URL. + */ + titleImage: never; + + /** + * Title prompt for the window. + */ + titlePrompt: never; + + /** + * Key identifying a string from the locale file to use for the window title. + */ + titleid: never; + + /** + * Key identifying a string from the locale file to use for the window title prompt. + */ + titlepromptid: never; + + /** + * Array of button objects to show in the window's toolbar. + */ + toolbar: never; + + /** + * Use a transition animation when opening or closing windows in a + * or . + */ + transitionAnimation: never; + + /** + * Boolean value indicating if the nav bar is translucent. + */ + translucent: never; + + /** + * Loads a JavaScript file from a local URL. + * @deprecated + */ + url: never; + + /** + * Window to add to this navigation window. + */ + window: Titanium.UI.Window; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.NavigationWindow, event: NavigationWindowEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Closes a window and removes it from the navigation window. + */ + closeWindow(window: Titanium.UI.Window, options: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: NavigationWindowEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackButtonTitle: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackButtonTitleImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHideShadow: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftNavButton: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavBarHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavTintColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightNavButton: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSwipeToClose: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTabBarHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleControl: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitlePrompt: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleid: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitlepromptid: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getToolbar: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransitionAnimation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslucent: never; + + /** + * Gets the value of the property. + * @deprecated + */ + getUrl: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWindow(): Titanium.UI.Window; + + /** + * Hides the tab bar. Must be called before opening the window. + */ + hideTabBar: never; + + /** + * Opens a window within the navigation window. + */ + openWindow(window: Titanium.UI.Window, options: any): void; + + /** + * Closes all windows that are currently opened inside the navigation window. + */ + popToRootWindow(options: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.NavigationWindow, event: NavigationWindowEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackButtonTitle: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackButtonTitleImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHideShadow: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftNavButton: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNavBarHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNavTintColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightNavButton: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSwipeToClose: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabBarHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleControl: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitlePrompt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleid: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitlepromptid: never; + + /** + * Sets the array of items to show in the window's toolbar. + */ + setToolbar: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransitionAnimation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslucent: never; + + /** + * Sets the value of the property. + * @deprecated + */ + setUrl: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWindow(window: Titanium.UI.Window): void; + + } + /** + * Base event for class Titanium.UI.iOS.PreviewAction + */ + interface PreviewActionBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.PreviewAction; + + } + /** + * Fired when the device detects a click against a preview action. + */ + interface PreviewAction_click_Event extends PreviewActionBaseEvent { + /** + * The index of the clicked action. + */ + index: number; + + /** + * The item ID of cell, if the `previewContext` property of the + * is a . + */ + itemId: string; + + /** + * The index of the clicked row, if the `previewContext` property of the + * is a . + */ + itemIndex: number; + + /** + * The index of the clicked section, if the `previewContext` property of the + * is a . + */ + sectionIndex: number; + + } + interface PreviewActionEventMap extends ProxyEventMap { + click: PreviewAction_click_Event; + + } + /** + * A PreviewAction provides options to configure actions used by the iOS 9 3D-Touch "Peek and Pop" + * feature. + */ + class PreviewAction extends Titanium.Proxy { + /** + * The style of the action. + */ + style: number; + + /** + * The title of the action. + */ + title: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.PreviewAction, event: PreviewActionEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: PreviewActionEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.PreviewAction, event: PreviewActionEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + } + /** + * A PreviewActionGroup provides options to configure a group of actions used by the iOS9 3D-Touch + * feature "Peek and Pop". + */ + class PreviewActionGroup extends Titanium.Proxy { + /** + * The preview actions assigned to this preview action group. + */ + actions: Titanium.UI.iOS.PreviewAction[]; + + /** + * The style of the action group. + */ + style: number; + + /** + * The title of the action group. + */ + title: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActions(): Titanium.UI.iOS.PreviewAction[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActions(actions: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + } + /** + * Base event for class Titanium.UI.iOS.PreviewContext + */ + interface PreviewContextBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.PreviewContext; + + } + /** + * Fired when the user peeks the preview. You can configure the preview + */ + interface PreviewContext_peek_Event extends PreviewContextBaseEvent { + /** + * The item ID bound to the list item that generated the event. + */ + itemId: string; + + /** + * The item index of the ListView to identify the selected item. + * Note: This property is only available if the preview context is assigned to a . + */ + itemIndex: number; + + /** + * The view to be previewed. + */ + preview: Titanium.UI.View; + + /** + * The section index of the ListView to identify the selected section. + * Note: This property is only available if the preview context is assigned to a . + */ + sectionIndex: number; + + } + /** + * Fired when the user pop the preview. You will most likely open a fullscreen window here. + */ + interface PreviewContext_pop_Event extends PreviewContextBaseEvent { + /** + * The item ID bound to the list item that generated the event. + */ + itemId: string; + + /** + * The item index of the ListView to identify the selected item. + * Note: This property is only available if the preview context is assigned to a . + */ + itemIndex: number; + + /** + * The view to be previewed. + */ + preview: Titanium.UI.View; + + /** + * The section index of the ListView to identify the selected section. + * Note: This property is only available if the preview context is assigned to a . + */ + sectionIndex: number; + + } + interface PreviewContextEventMap extends ProxyEventMap { + peek: PreviewContext_peek_Event; + + pop: PreviewContext_pop_Event; + + } + /** + * A PreviewContext provides options to configure the iOS 9 3D-Touch "Peek and Pop" feature. + */ + class PreviewContext extends Titanium.Proxy { + /** + * The preview actions and preview action groups. + */ + actions: Titanium.UI.iOS.PreviewAction[]; + + /** + * The height of the preview. + */ + contentHeight: number; + + /** + * The preview view. + */ + preview: Titanium.UI.View; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.PreviewContext, event: PreviewContextEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: PreviewContextEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActions(): Titanium.UI.iOS.PreviewAction[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPreview(): Titanium.UI.View; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.PreviewContext, event: PreviewContextEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActions(actions: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentHeight(contentHeight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPreview(preview: Titanium.UI.View): void; + + } + /** + * Continuous or instantaneous force to apply to an item. + */ + class PushBehavior extends Titanium.Proxy { + /** + * State of the push behavior's force. + */ + active: boolean; + + /** + * Specifies the angle of the force vector in radians. + */ + angle: number; + + /** + * Items added to this behavior. + */ + readonly items: Titanium.UI.View[]; + + /** + * Specifies the magnitude of the force vector. + */ + magnitude: number; + + /** + * Specifies the direction of the force vector as an x, y pair. + */ + pushDirection: Point; + + /** + * Specifies the push mode. + */ + pushMode: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds an item to this behavior. + */ + addItem(item: Titanium.UI.View): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActive(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAngle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMagnitude(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPushDirection(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPushMode(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes the specified item from this behavior. + */ + removeItem(item: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActive(active: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAngle(angle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMagnitude(magnitude: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPushDirection(pushDirection: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPushMode(pushMode: number): void; + + } + /** + * Dynamic behavior defining an item's movement to a specific point. + */ + class SnapBehavior extends Titanium.Proxy { + /** + * Specifies the amount of oscillation during the conclusion of the snap. + */ + damping: number; + + /** + * Item to add to this behavior. + */ + item: Titanium.UI.View; + + /** + * Specifies the point to snap to. + */ + snapPoint: Point; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDamping(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItem(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSnapPoint(): Point; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDamping(damping: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setItem(item: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSnapPoint(snapPoint: Point): void; + + } + /** + * Base event for class Titanium.UI.iOS.SplitWindow + */ + interface SplitWindowBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.SplitWindow; + + } + /** + * Fired when the device detects a click against the view. + */ + interface SplitWindow_click_Event extends SplitWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface SplitWindow_dblclick_Event extends SplitWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface SplitWindow_doubletap_Event extends SplitWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the window gains focus. + */ + interface SplitWindow_focus_Event extends SplitWindowBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface SplitWindow_keypressed_Event extends SplitWindowBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface SplitWindow_longpress_Event extends SplitWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface SplitWindow_pinch_Event extends SplitWindowBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface SplitWindow_postlayout_Event extends SplitWindowBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface SplitWindow_singletap_Event extends SplitWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface SplitWindow_swipe_Event extends SplitWindowBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface SplitWindow_touchcancel_Event extends SplitWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface SplitWindow_touchend_Event extends SplitWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface SplitWindow_touchmove_Event extends SplitWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface SplitWindow_touchstart_Event extends SplitWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface SplitWindow_twofingertap_Event extends SplitWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the window loses focus. + */ + interface SplitWindow_blur_Event extends SplitWindowBaseEvent { + } + /** + * Fired when the window is closed. + */ + interface SplitWindow_close_Event extends SplitWindowBaseEvent { + } + /** + * Fired when the window is opened. + */ + interface SplitWindow_open_Event extends SplitWindowBaseEvent { + } + interface SplitWindowEventMap extends ProxyEventMap { + blur: SplitWindow_blur_Event; + + click: SplitWindow_click_Event; + + close: SplitWindow_close_Event; + + dblclick: SplitWindow_dblclick_Event; + + doubletap: SplitWindow_doubletap_Event; + + focus: SplitWindow_focus_Event; + + keypressed: SplitWindow_keypressed_Event; + + longpress: SplitWindow_longpress_Event; + + open: SplitWindow_open_Event; + + pinch: SplitWindow_pinch_Event; + + postlayout: SplitWindow_postlayout_Event; + + singletap: SplitWindow_singletap_Event; + + swipe: SplitWindow_swipe_Event; + + touchcancel: SplitWindow_touchcancel_Event; + + touchend: SplitWindow_touchend_Event; + + touchmove: SplitWindow_touchmove_Event; + + touchstart: SplitWindow_touchstart_Event; + + twofingertap: SplitWindow_twofingertap_Event; + + } + /** + * A SplitWindow is a window that manages the presentation of two side-by-side view + * controllers. + */ + class SplitWindow extends Titanium.UI.Window { + /** + * Window for the detail view section of the SplitWindow. + */ + detailView: Titanium.UI.Window; + + /** + * Determines the width of the `masterView` in landscape mode. + */ + landscapeSplit: number; + + /** + * Determines whether to show the master view is overlayed in portrait orientation. + */ + masterIsOverlayed: boolean; + + /** + * Window for the master view section of the SplitWindow. + */ + masterView: Titanium.UI.Window; + + /** + * Determines whether to show the master view or hide. + */ + masterViewVisible: boolean; + + /** + * Determines the width of the `masterView` in portrait mode. + */ + portraitSplit: number; + + /** + * Determines whether to show the master view in portrait orientation. + */ + showMasterInPortrait: boolean; + + /** + * Boolean value indicating if the user should be able to close a window using a swipe gesture. + */ + swipeToClose: never; + + /** + * Use a transition animation when opening or closing windows in a + * or . + */ + transitionAnimation: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.SplitWindow, event: SplitWindowEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: SplitWindowEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDetailView(): Titanium.UI.Window; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLandscapeSplit(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMasterIsOverlayed(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMasterView(): Titanium.UI.Window; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMasterViewVisible(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPortraitSplit(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowMasterInPortrait(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSwipeToClose: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransitionAnimation: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.SplitWindow, event: SplitWindowEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDetailView(detailView: Titanium.UI.Window): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLandscapeSplit(landscapeSplit: number): void; + + /** + * Sets the value of the [masterIsOverlayed](Titanium.UI.iOS.SplitWindow.masterIsOverlayed) property. + */ + setMasterIsOverlayed(masterIsOverlayed: boolean, options?: AnimatedOptions): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMasterView(masterView: Titanium.UI.Window): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMasterViewVisible(masterViewVisible: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPortraitSplit(portraitSplit: number): void; + + /** + * Sets the value of the [showMasterInPortrait](Titanium.UI.iOS.SplitWindow.showMasterInPortrait) property. + */ + setShowMasterInPortrait(showMasterInPortrait: boolean, options?: AnimatedOptions): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSwipeToClose: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransitionAnimation: never; + + } + /** + * Base event for class Titanium.UI.iOS.Stepper + */ + interface StepperBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.Stepper; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Stepper_click_Event extends StepperBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Stepper_dblclick_Event extends StepperBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Stepper_doubletap_Event extends StepperBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Stepper_keypressed_Event extends StepperBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface Stepper_longpress_Event extends StepperBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Stepper_pinch_Event extends StepperBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Stepper_postlayout_Event extends StepperBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Stepper_singletap_Event extends StepperBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Stepper_swipe_Event extends StepperBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Stepper_touchcancel_Event extends StepperBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Stepper_touchend_Event extends StepperBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Stepper_touchmove_Event extends StepperBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Stepper_touchstart_Event extends StepperBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Stepper_twofingertap_Event extends StepperBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired every time the stepper value changes. + */ + interface Stepper_change_Event extends StepperBaseEvent { + /** + * The maximum value of the stepper. + */ + maximum: number; + + /** + * The minimum value of the stepper. + */ + minimum: number; + + /** + * The current value of the stepper. + */ + value: number; + + } + interface StepperEventMap extends ProxyEventMap { + change: Stepper_change_Event; + + click: Stepper_click_Event; + + dblclick: Stepper_dblclick_Event; + + doubletap: Stepper_doubletap_Event; + + keypressed: Stepper_keypressed_Event; + + longpress: Stepper_longpress_Event; + + pinch: Stepper_pinch_Event; + + postlayout: Stepper_postlayout_Event; + + singletap: Stepper_singletap_Event; + + swipe: Stepper_swipe_Event; + + touchcancel: Stepper_touchcancel_Event; + + touchend: Stepper_touchend_Event; + + touchmove: Stepper_touchmove_Event; + + touchstart: Stepper_touchstart_Event; + + twofingertap: Stepper_twofingertap_Event; + + } + /** + * A widget used to increment and decrement a value. + */ + class Stepper extends Titanium.UI.View { + /** + * If YES, the user pressing and holding on the stepper repeatedly alters value. + * The default value is YES. + */ + autorepeat: boolean; + + /** + * Background image for the stepper in its normal state, specified as a local file path or URL. + */ + backgroundImage: string; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * If YES, value change events are sent immediately when the value changes during user interaction. + * If NO, a value change event is sent when user interaction ends. + * The default value is YES. + */ + continuous: boolean; + + /** + * Background image for the stepper decrement button in its disabled state, specified as a local + * file path or URL. The decrement button enters a disabled state ones the value is equal to the + * minimumValue , setting the enabled property to false will have no effect to decrement button state. + */ + decrementDisabledImage: string; + + /** + * Background image for the stepper decrement button in its normal state, specified as a local + * file path or URL. + */ + decrementImage: string; + + /** + * Determines if the stepper is enabled or disabled. + */ + enabled: boolean; + + /** + * Background image for the stepper increment button in its disabled state, specified as a local + * file path or URL.The increment button enters a disabled state ones the value is equal to the + * maximumValue , setting the enabled property to false will have no effect to increment button state. + */ + incrementDisabledImage: string; + + /** + * Background image for the stepper increment button in its normal state, specified as a local + * file path or URL. + */ + incrementImage: string; + + /** + * The maximum value the stepper will be set to, the value must be greater than the minimum value. + * If you attempt to set a value equal to or lower than minimum, the system will default the + * value to 100. + */ + maximum: number; + + /** + * The minimum value the stepper will be set to, the value must be smaller than the maximum value. + * If you attempt to set a value equal to or greater than maximum, the system will default the + * value to 0. + */ + minimum: number; + + /** + * The value the stepper will increment and decrement by, default value for this property is 1. When setting + * a new value, it must be greater than 1. + */ + steps: number; + + /** + * Sets the color for the widget, any backgroundImages added will be set to the same color. + */ + tintColor: string; + + /** + * The current value of the stepper. + */ + value: number; + + /** + * If YES, incrementing beyond sets value to . likewise, decrementing below + * sets value to . If NO, the stepper does not increment beyond nor + * does it decrement below but rather holds at those values. + * The default value is NO. + */ + wraps: boolean; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.Stepper, event: StepperEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: StepperEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutorepeat(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContinuous(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDecrementDisabledImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDecrementImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIncrementDisabledImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIncrementImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaximum(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinimum(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSteps(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWraps(): boolean; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.Stepper, event: StepperEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutorepeat(autorepeat: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage(backgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContinuous(continuous: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDecrementDisabledImage(decrementDisabledImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDecrementImage(decrementImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnabled(enabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIncrementDisabledImage(incrementDisabledImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIncrementImage(incrementImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaximum(maximum: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinimum(minimum: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSteps(steps: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWraps(wraps: boolean): void; + + } + /** + * A set of constants for creating standard iOS system buttons. + */ + class SystemButton extends Titanium.Proxy { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * Base event for class Titanium.UI.iOS.TabbedBar + */ + interface TabbedBarBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.TabbedBar; + + } + /** + * Fired when a button is clicked. + */ + interface TabbedBar_click_Event extends TabbedBarBaseEvent { + /** + * Index of the clicked button. + */ + index: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface TabbedBar_dblclick_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface TabbedBar_doubletap_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface TabbedBar_keypressed_Event extends TabbedBarBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface TabbedBar_longpress_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface TabbedBar_pinch_Event extends TabbedBarBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface TabbedBar_postlayout_Event extends TabbedBarBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface TabbedBar_singletap_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface TabbedBar_swipe_Event extends TabbedBarBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface TabbedBar_touchcancel_Event extends TabbedBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface TabbedBar_touchend_Event extends TabbedBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface TabbedBar_touchmove_Event extends TabbedBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface TabbedBar_touchstart_Event extends TabbedBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface TabbedBar_twofingertap_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface TabbedBarEventMap extends ProxyEventMap { + click: TabbedBar_click_Event; + + dblclick: TabbedBar_dblclick_Event; + + doubletap: TabbedBar_doubletap_Event; + + keypressed: TabbedBar_keypressed_Event; + + longpress: TabbedBar_longpress_Event; + + pinch: TabbedBar_pinch_Event; + + postlayout: TabbedBar_postlayout_Event; + + singletap: TabbedBar_singletap_Event; + + swipe: TabbedBar_swipe_Event; + + touchcancel: TabbedBar_touchcancel_Event; + + touchend: TabbedBar_touchend_Event; + + touchmove: TabbedBar_touchmove_Event; + + touchstart: TabbedBar_touchstart_Event; + + twofingertap: TabbedBar_twofingertap_Event; + + } + /** + * A button bar that maintains a selected state. + * @deprecated Use [Titanium.UI.TabbedBar](Titanium.UI.TabbedBar) instead. + */ + class TabbedBar extends Titanium.UI.View { + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Index of the currently selected button. + */ + index: number; + + /** + * Array of labels for the tabbed bar. + */ + labels: string[] | BarItemType[]; + + /** + * Style of the tabbed bar. + */ + style: number; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.TabbedBar, event: TabbedBarEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: TabbedBarEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIndex(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLabels(): string[] | BarItemType[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.TabbedBar, event: TabbedBarEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIndex(index: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLabels(labels: string[] | BarItemType[]): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + } + /** + * Base event for class Titanium.UI.iOS.Toolbar + */ + interface ToolbarBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iOS.Toolbar; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Toolbar_click_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Toolbar_dblclick_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Toolbar_doubletap_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Toolbar_keypressed_Event extends ToolbarBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface Toolbar_longpress_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Toolbar_pinch_Event extends ToolbarBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Toolbar_postlayout_Event extends ToolbarBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Toolbar_singletap_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Toolbar_swipe_Event extends ToolbarBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Toolbar_touchcancel_Event extends ToolbarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Toolbar_touchend_Event extends ToolbarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Toolbar_touchmove_Event extends ToolbarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Toolbar_touchstart_Event extends ToolbarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Toolbar_twofingertap_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface ToolbarEventMap extends ProxyEventMap { + click: Toolbar_click_Event; + + dblclick: Toolbar_dblclick_Event; + + doubletap: Toolbar_doubletap_Event; + + keypressed: Toolbar_keypressed_Event; + + longpress: Toolbar_longpress_Event; + + pinch: Toolbar_pinch_Event; + + postlayout: Toolbar_postlayout_Event; + + singletap: Toolbar_singletap_Event; + + swipe: Toolbar_swipe_Event; + + touchcancel: Toolbar_touchcancel_Event; + + touchend: Toolbar_touchend_Event; + + touchmove: Toolbar_touchmove_Event; + + touchstart: Toolbar_touchstart_Event; + + twofingertap: Toolbar_twofingertap_Event; + + } + /** + * An iOS toolbar, which can contain buttons and certain other controls. + * @deprecated Use the cross-platform [Titanium.UI.Toolbar](Titanium.UI.Toolbar) instead. + */ + class Toolbar extends Titanium.UI.View { + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Background color for the toolbar, as a color name or hex triplet. + */ + barColor: string; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * If `true`, the background of the toolbar extends upwards. + */ + extendBackground: boolean; + + /** + * An array of buttons (or other widgets) contained in the toolbar. + */ + items: Titanium.UI.View[]; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * If `true`, a translucent background color is used for the toolbar. + */ + translucent: boolean; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iOS.Toolbar, event: ToolbarEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ToolbarEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getExtendBackground(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslucent(): boolean; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iOS.Toolbar, event: ToolbarEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarColor(barColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setExtendBackground(extendBackground: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setItems(items: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslucent(translucent: boolean): void; + + } + /** + * A transition animation when opening or closing windows in a + * or . + * Use this proxy with the Window's + * [transitionAnimation](Titanium.UI.Window.transitionAnimation) property. + */ + class TransitionAnimation extends Titanium.Proxy { + /** + * Length of the transition in milliseconds. + */ + duration: number; + + /** + * Animation to hide the current window. + */ + transitionFrom: Titanium.UI.Animation; + + /** + * Animation to show the new window. + */ + transitionTo: Titanium.UI.Animation; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransitionFrom(): Titanium.UI.Animation; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransitionTo(): Titanium.UI.Animation; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDuration(duration: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransitionFrom(transitionFrom: Titanium.UI.Animation): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransitionTo(transitionTo: Titanium.UI.Animation): void; + + } + /** + * Dynamic behavior to support connections between two items. + */ + class ViewAttachmentBehavior extends Titanium.Proxy { + /** + * Item to use as the anchor in this behavior. + */ + anchorItem: Titanium.UI.View; + + /** + * Offset from the center point of the anchor item for the attachment. + */ + anchorOffset: Point; + + /** + * Amount of damping to apply to the attachment behavior. + */ + damping: number; + + /** + * Distance, in points, between the two attachment points. + */ + distance: number; + + /** + * Frequency of oscillation for the behavior. + */ + frequency: number; + + /** + * Item to connect to use the attachment behavior. + */ + item: Titanium.UI.View; + + /** + * Offset from the center point of the item for the attachment. + */ + itemOffset: Point; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorItem(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorOffset(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDamping(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDistance(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFrequency(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItem(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItemOffset(): Point; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorItem(anchorItem: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorOffset(anchorOffset: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDamping(damping: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDistance(distance: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFrequency(frequency: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setItem(item: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setItemOffset(itemOffset: Point): void; + + } + /** + * A collection of properties used to initialize a web view. + */ + class WebViewConfiguration extends Titanium.Proxy { + /** + * A Boolean value indicating whether AirPlay is allowed. + */ + allowsAirPlayMediaPlayback: boolean; + + /** + * A Boolean value indicating whether HTML5 videos play inline or use the native full-screen controller. + */ + allowsInlineMediaPlayback: boolean; + + /** + * A Boolean value indicating whether HTML5 videos can play picture-in-picture. + */ + allowsPictureInPictureMediaPlayback: boolean; + + /** + * Determines which media types require a user gesture to begin playing. + */ + mediaTypesRequiringUserActionForPlayback: number; + + /** + * The preference settings to be used by the web view. + */ + preferences: WebViewPreferencesObject; + + /** + * The process pool from which to obtain the Web Content process of view. + */ + processPool: Titanium.UI.iOS.WebViewProcessPool; + + /** + * The level of granularity with which the user can interactively select content in the web view. + */ + selectionGranularity: number; + + /** + * A Boolean value indicating whether the web view suppresses content rendering until it is fully + * loaded into memory. + */ + suppressesIncrementalRendering: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsAirPlayMediaPlayback(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsInlineMediaPlayback(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsPictureInPictureMediaPlayback(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMediaTypesRequiringUserActionForPlayback(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPreferences(): WebViewPreferencesObject; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getProcessPool(): Titanium.UI.iOS.WebViewProcessPool; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectionGranularity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSuppressesIncrementalRendering(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsAirPlayMediaPlayback(allowsAirPlayMediaPlayback: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsInlineMediaPlayback(allowsInlineMediaPlayback: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsPictureInPictureMediaPlayback(allowsPictureInPictureMediaPlayback: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMediaTypesRequiringUserActionForPlayback(mediaTypesRequiringUserActionForPlayback: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPreferences(preferences: WebViewPreferencesObject): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setProcessPool(processPool: Titanium.UI.iOS.WebViewProcessPool): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectionGranularity(selectionGranularity: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSuppressesIncrementalRendering(suppressesIncrementalRendering: boolean): void; + + } + /** + * It represents the decision handler to tell to webview, whether allow or cancel the navigation. + */ + class WebViewDecisionHandler extends Titanium.Proxy { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * It calls the decision handler with given action policy. + */ + invoke(value: number): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * It represents a pool of Web Content processes. + */ + class WebViewProcessPool extends Titanium.Proxy { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + } + /** + * iPad specific UI capabilities. + */ + namespace iPad { + /** + * An arrow that points in any direction. + */ + const POPOVER_ARROW_DIRECTION_ANY: number; + + /** + * An arrow that points downward. + */ + const POPOVER_ARROW_DIRECTION_DOWN: number; + + /** + * An arrow that points toward the left. + */ + const POPOVER_ARROW_DIRECTION_LEFT: number; + + /** + * An arrow that points toward the right. + */ + const POPOVER_ARROW_DIRECTION_RIGHT: number; + + /** + * The status of the arrow is currently unknown. + */ + const POPOVER_ARROW_DIRECTION_UNKNOWN: number; + + /** + * An arrow that points upward. + */ + const POPOVER_ARROW_DIRECTION_UP: number; + + /** + * A DocumentViewer provides in-app support for managing user interactions with files on the + * local system. + * @deprecated Use [Titanium.UI.iOS.DocumentViewer](Titanium.UI.iOS.DocumentViewer) instead. + */ + const DocumentViewer: never; + /** + * Base event for class Titanium.UI.iPad.Popover + */ + interface PopoverBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.iPad.Popover; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Popover_click_Event extends PopoverBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Popover_dblclick_Event extends PopoverBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Popover_doubletap_Event extends PopoverBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Popover_keypressed_Event extends PopoverBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface Popover_longpress_Event extends PopoverBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Popover_pinch_Event extends PopoverBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Popover_postlayout_Event extends PopoverBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Popover_singletap_Event extends PopoverBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Popover_swipe_Event extends PopoverBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Popover_touchcancel_Event extends PopoverBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Popover_touchend_Event extends PopoverBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Popover_touchmove_Event extends PopoverBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Popover_touchstart_Event extends PopoverBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Popover_twofingertap_Event extends PopoverBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the popover is hidden. + */ + interface Popover_hide_Event extends PopoverBaseEvent { + } + interface PopoverEventMap extends ProxyEventMap { + click: Popover_click_Event; + + dblclick: Popover_dblclick_Event; + + doubletap: Popover_doubletap_Event; + + hide: Popover_hide_Event; + + keypressed: Popover_keypressed_Event; + + longpress: Popover_longpress_Event; + + pinch: Popover_pinch_Event; + + postlayout: Popover_postlayout_Event; + + singletap: Popover_singletap_Event; + + swipe: Popover_swipe_Event; + + touchcancel: Popover_touchcancel_Event; + + touchend: Popover_touchend_Event; + + touchmove: Popover_touchmove_Event; + + touchstart: Popover_touchstart_Event; + + twofingertap: Popover_twofingertap_Event; + + } + /** + * A Popover is used to manage the presentation of content in a popover. + */ + class Popover extends Titanium.UI.View { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: never; + + /** + * Indicates the arrow direction of the popover. + */ + arrowDirection: number; + + /** + * Sets the background color of the popover. + */ + backgroundColor: string; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * View's bottom position, in platform-specific units. + */ + bottom: never; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * View's clipping behavior. + */ + clipMode: never; + + /** + * View to use for the popover content. Must be set before calling the `show()` method. + */ + contentView: Titanium.UI.View; + + /** + * Height of the popover. + * @deprecated This property is deprecated. Set the height on the [Titanium.UI.iPad.Popover.contentView](Titanium.UI.iPad.Popover.contentView) property instead. + */ + height: never; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * View's left position, in platform-specific units. + */ + left: never; + + /** + * Left button in the navigation area of the popover. + * @deprecated This property is no longer supported. + */ + leftNavButton: never; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: never; + + /** + * Passthrough views to use when the popover is shown. + */ + passthroughViews: Titanium.UI.View[]; + + /** + * Background color of the wrapper view when this view is used as either or . + * Defaults to `undefined`. Results in a light grey background color on the wrapper view. + */ + pullBackgroundColor: never; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: never; + + /** + * View's right position, in platform-specific units. + */ + right: never; + + /** + * Right button in the navigation area of the popover. + * @deprecated This property is no longer supported. + */ + rightNavButton: never; + + /** + * The size of the view in system units. + */ + readonly size: never; + + /** + * The view's tintColor + */ + tintColor: never; + + /** + * Title of the navigation area of the popover. + * @deprecated This property is no longer supported. + */ + title: never; + + /** + * The view's top position. + */ + top: never; + + /** + * Determines whether view should receive touch events. + */ + touchEnabled: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * Determines the color of the shadow. + */ + viewShadowColor: never; + + /** + * Determines the offset for the shadow of the view. + */ + viewShadowOffset: never; + + /** + * Determines the blur radius used to create the shadow. + */ + viewShadowRadius: never; + + /** + * Determines whether the view is visible. + */ + visible: never; + + /** + * Width of the popover. + * @deprecated This property is deprecated. Set the width on the [Titanium.UI.iPad.Popover.contentView](Titanium.UI.iPad.Popover.contentView) property instead. + */ + width: never; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.iPad.Popover, event: PopoverEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Translates a point from this view's coordinate system to another view's coordinate system. + */ + convertPointToView: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: PopoverEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getArrowDirection(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClipMode: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated This property is deprecated. Set the height on the [Titanium.UI.iPad.Popover.contentView](Titanium.UI.iPad.Popover.contentView) property instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft: never; + + /** + * Gets the value of the property. + * @deprecated This property is no longer supported. + */ + getLeftNavButton: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPassthroughViews(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPullBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight: never; + + /** + * Gets the value of the property. + * @deprecated This property is no longer supported. + */ + getRightNavButton: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor: never; + + /** + * Gets the value of the property. + * @deprecated This property is no longer supported. + */ + getTitle: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchEnabled: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowOffset: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible: never; + + /** + * Gets the value of the property. + * @deprecated This property is deprecated. Set the width on the [Titanium.UI.iPad.Popover.contentView](Titanium.UI.iPad.Popover.contentView) property instead. + */ + getWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Hides the popover. + */ + hide(options?: AnimatedOptions): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.iPad.Popover, event: PopoverEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setArrowDirection(arrowDirection: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClipMode: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentView(contentView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated This property is deprecated. Set the height on the [Titanium.UI.iPad.Popover.contentView](Titanium.UI.iPad.Popover.contentView) property instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft: never; + + /** + * Sets the value of the property. + * @deprecated This property is no longer supported. + */ + setLeftNavButton: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPassthroughViews(passthroughViews: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPullBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight: never; + + /** + * Sets the value of the property. + * @deprecated This property is no longer supported. + */ + setRightNavButton: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor: never; + + /** + * Sets the value of the property. + * @deprecated This property is no longer supported. + */ + setTitle: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchEnabled: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowOffset: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible: never; + + /** + * Sets the value of the property. + * @deprecated This property is deprecated. Set the width on the [Titanium.UI.iPad.Popover.contentView](Titanium.UI.iPad.Popover.contentView) property instead. + */ + setWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Displays the popover. + */ + show(options: ShowPopoverParams): void; + + /** + * Returns an image of the rendered view, as a Blob. + */ + toImage: never; + + } + /** + * A SplitWindow is a window that manages the presentation of two side-by-side view + * controllers. + * @deprecated Use [Titanium.UI.iOS.SplitWindow](Titanium.UI.iOS.SplitWindow) instead. + */ + const SplitWindow: never; + } + /** + * Base event for class Titanium.UI.ActivityIndicator + */ + interface ActivityIndicatorBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.ActivityIndicator; + + } + /** + * Fired when the device detects a click against the view. + */ + interface ActivityIndicator_click_Event extends ActivityIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface ActivityIndicator_dblclick_Event extends ActivityIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface ActivityIndicator_doubletap_Event extends ActivityIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface ActivityIndicator_focus_Event extends ActivityIndicatorBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface ActivityIndicator_keypressed_Event extends ActivityIndicatorBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface ActivityIndicator_longclick_Event extends ActivityIndicatorBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface ActivityIndicator_longpress_Event extends ActivityIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface ActivityIndicator_pinch_Event extends ActivityIndicatorBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface ActivityIndicator_postlayout_Event extends ActivityIndicatorBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface ActivityIndicator_singletap_Event extends ActivityIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface ActivityIndicator_swipe_Event extends ActivityIndicatorBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface ActivityIndicator_touchcancel_Event extends ActivityIndicatorBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface ActivityIndicator_touchend_Event extends ActivityIndicatorBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface ActivityIndicator_touchmove_Event extends ActivityIndicatorBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface ActivityIndicator_touchstart_Event extends ActivityIndicatorBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface ActivityIndicator_twofingertap_Event extends ActivityIndicatorBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface ActivityIndicatorEventMap extends ProxyEventMap { + click: ActivityIndicator_click_Event; + + dblclick: ActivityIndicator_dblclick_Event; + + doubletap: ActivityIndicator_doubletap_Event; + + focus: ActivityIndicator_focus_Event; + + keypressed: ActivityIndicator_keypressed_Event; + + longclick: ActivityIndicator_longclick_Event; + + longpress: ActivityIndicator_longpress_Event; + + pinch: ActivityIndicator_pinch_Event; + + postlayout: ActivityIndicator_postlayout_Event; + + singletap: ActivityIndicator_singletap_Event; + + swipe: ActivityIndicator_swipe_Event; + + touchcancel: ActivityIndicator_touchcancel_Event; + + touchend: ActivityIndicator_touchend_Event; + + touchmove: ActivityIndicator_touchmove_Event; + + touchstart: ActivityIndicator_touchstart_Event; + + twofingertap: ActivityIndicator_twofingertap_Event; + + } + /** + * An activity indicator that lets the user know an action is taking place. + */ + class ActivityIndicator extends Titanium.UI.View { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: never; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: never; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * Bottom position of the view. + */ + bottom: number | string; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * View's clipping behavior. + */ + clipMode: never; + + /** + * Color of the message text, as a color name or hex triplet. + */ + color: string; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: never; + + /** + * Font used for the message text. + */ + font: Font; + + /** + * Width of the view. Only accepts value of , which must be explicitly set in order to + * display the message and to position the view correctly. + */ + height: string; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Color of the animated indicator. + */ + indicatorColor: string; + + /** + * Determines whether to keep the device screen on. + */ + keepScreenOn: never; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * Left position of the view. + */ + left: number | string; + + /** + * Message text. + */ + message: string; + + /** + * Key identifying a string in the locale file to use for the message text. + */ + messageid: string; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: never; + + /** + * When on, animate call overrides current animation if applicable. + */ + overrideCurrentAnimation: never; + + /** + * Background color of the wrapper view when this view is used as either or . + * Defaults to `undefined`. Results in a light grey background color on the wrapper view. + */ + pullBackgroundColor: never; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: never; + + /** + * Right position of the view. + */ + right: number | string; + + /** + * The size of the view in system units. + */ + readonly size: never; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * The style for the activity indicator. + */ + style: number; + + /** + * The view's tintColor + */ + tintColor: never; + + /** + * Top position of the view. + */ + top: number | string; + + /** + * Determines whether view should receive touch events. + */ + touchEnabled: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * Determines the color of the shadow. + */ + viewShadowColor: never; + + /** + * Determines the offset for the shadow of the view. + */ + viewShadowOffset: never; + + /** + * Determines the blur radius used to create the shadow. + */ + viewShadowRadius: never; + + /** + * Determines whether the view is visible. + */ + visible: never; + + /** + * Width of the view. Only accepts value of , which must be explicitly set in order to + * display the message and to position the view correctly. + */ + width: string; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.ActivityIndicator, event: ActivityIndicatorEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Translates a point from this view's coordinate system to another view's coordinate system. + */ + convertPointToView: never; /** * Fires a synthesized event to any registered listeners. */ - function fireEvent(name: string, event: any): void; + fireEvent(name: K, event?: ActivityIndicatorEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClipMode: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIndicatorColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepScreenOn: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessageid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverrideCurrentAnimation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPullBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchEnabled: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowOffset: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Hides the activity indicator and stops the animation. + */ + hide(options?: AnimatedOptions): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.ActivityIndicator, event: ActivityIndicatorEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom(bottom: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClipMode: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight(height: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIndicatorColor(indicatorColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepScreenOn: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft(left: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessage(message: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessageid(messageid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverrideCurrentAnimation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPullBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight(right: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop(top: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchEnabled: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowOffset: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth(width: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Shows the activity indicator and starts the animation. + */ + show(options?: AnimatedOptions): void; + + /** + * Returns an image of the rendered view, as a Blob. + */ + toImage: never; + + } + /** + * A set of constants for the styles available for objects. + */ + class ActivityIndicatorStyle extends Titanium.Module { + /** + * Large white spinning indicator. + */ + static readonly BIG: number; + + /** + * Large gray spinning indicator. + */ + static readonly BIG_DARK: number; + + /** + * Small gray spinning indicator. + */ + static readonly DARK: number; + + /** + * Small white spinning indicator (default). + */ + static readonly PLAIN: number; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Applies the properties to the proxy. */ - function applyProperties(props: any): void; + static applyProperties(props: any): void; /** - * Gets the value of the property. + * Fires a synthesized event to any registered listeners. */ - function getBubbleParent(): boolean; + static fireEvent(name: string, event?: any): void; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - function setBubbleParent(bubbleParent: boolean): void; + static getApiName(): string; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - function getApiName(): string; + static getBubbleParent(): boolean; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; /** - * Sets the value of the property. + * Removes the specified callback as an event listener for the named event. */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Sets the value of the property. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; + static setBubbleParent(bubbleParent: boolean): void; /** - * Gets the value of the property. + * Sets the value of the property. + * @deprecated Set the value using instead. */ - function getPhysicalSizeCategory(): number; + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; } + /** + * Base event for class Titanium.UI.AlertDialog + */ + interface AlertDialogBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.AlertDialog; + + } + /** + * Fired when a button in the dialog is clicked. + */ + interface AlertDialog_click_Event extends AlertDialogBaseEvent { + /** + * Boolean type on Android; Number on iOS. + * On Android, indicates whether the cancel button was clicked, in which + * case returns `true`. + * On iOS, the value of the [cancel](Titanium.UI.AlertDialog.cancel) property is + * returned, if defined, or `-1` otherwise. Also note that the cancel button may not be + * used on the iPad, because iOS will internally decide whether or not to show it in + * the current context (e.g. in a popover). + * See the `Three-button Alert Dialog` example for a cross-platform workaround for this + * parity issue. + */ + cancel: boolean | number; + + /** + * Index of the button that was clicked. + */ + index: number; + + /** + * Value of login field if dialog `style` property is defined as + * . + */ + login: string; + + /** + * Value of password field if dialog `style` property is defined as + * . + */ + password: string; + + /** + * Value of text field if dialog `style` property is defined as + * or + * . + */ + text: string; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface AlertDialog_dblclick_Event extends AlertDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface AlertDialog_doubletap_Event extends AlertDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface AlertDialog_focus_Event extends AlertDialogBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface AlertDialog_keypressed_Event extends AlertDialogBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface AlertDialog_longclick_Event extends AlertDialogBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface AlertDialog_longpress_Event extends AlertDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface AlertDialog_pinch_Event extends AlertDialogBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface AlertDialog_postlayout_Event extends AlertDialogBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface AlertDialog_singletap_Event extends AlertDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface AlertDialog_swipe_Event extends AlertDialogBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface AlertDialog_touchcancel_Event extends AlertDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface AlertDialog_touchend_Event extends AlertDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface AlertDialog_touchmove_Event extends AlertDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface AlertDialog_touchstart_Event extends AlertDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface AlertDialog_twofingertap_Event extends AlertDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface AlertDialogEventMap extends ProxyEventMap { + click: AlertDialog_click_Event; + + dblclick: AlertDialog_dblclick_Event; + + doubletap: AlertDialog_doubletap_Event; + + focus: AlertDialog_focus_Event; + + keypressed: AlertDialog_keypressed_Event; + + longclick: AlertDialog_longclick_Event; + + longpress: AlertDialog_longpress_Event; + + pinch: AlertDialog_pinch_Event; + + postlayout: AlertDialog_postlayout_Event; + + singletap: AlertDialog_singletap_Event; + + swipe: AlertDialog_swipe_Event; + + touchcancel: AlertDialog_touchcancel_Event; + + touchend: AlertDialog_touchend_Event; + + touchmove: AlertDialog_touchmove_Event; + + touchstart: AlertDialog_touchstart_Event; + + twofingertap: AlertDialog_twofingertap_Event; + + } + /** + * An alert dialog is a modal view that includes an optional title, a message and buttons, + * positioned in the middle of the display. + */ + class AlertDialog extends Titanium.UI.View { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * View to load inside the message area, to create a custom layout. + */ + androidView: Titanium.UI.View; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: never; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: never; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * View's bottom position, in platform-specific units. + */ + bottom: never; + + /** + * Setting this to true requires the end-user to click a dialog button to close the dialog. + */ + buttonClickRequired: boolean; + + /** + * Name of each button to create. + */ + buttonNames: string[]; + + /** + * Index to define the cancel button. + */ + cancel: number; + + /** + * When this is set to `true`, the dialog is canceled when touched outside the window's bounds. + */ + canceledOnTouchOutside: boolean; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * View's clipping behavior. + */ + clipMode: never; + + /** + * Index to define the destructive button. + */ + destructive: number; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: never; + + /** + * View height, in platform-specific units. + */ + height: never; + + /** + * Hint text of the text field inside the dialog. + */ + hintText: string; + + /** + * Key identifying a string from the locale file to use for the + * [hintText](Titanium.UI.AlertDialog.hintText) property. + */ + hinttextid: string; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Determines whether to keep the device screen on. + */ + keepScreenOn: never; + + /** + * Keyboard appearance to be displayed when the text field inside the dialog is focused. + */ + keyboardAppearance: number; + + /** + * Keyboard type to display when this text field inside the dialog is focused. + */ + keyboardType: number; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * View's left position, in platform-specific units. + */ + left: never; + + /** + * Hint text of the login text field inside the dialog. + */ + loginHintText: string; + + /** + * Keyboard type to display when this text field inside the dialog is focused. + */ + loginKeyboardType: number; + + /** + * Placeholder of the login text field inside the dialog. + * @deprecated Use [Titanium.UI.AlertDialog.loginHintText](Titanium.UI.AlertDialog.loginHintText) instead. + */ + loginPlaceholder: string; + + /** + * Specifies the text to display on the keyboard `Return` key when this field is focused. + */ + loginReturnKeyType: number; + + /** + * Value of the login text field inside the dialog. + */ + loginValue: string; + + /** + * Key identifying a string from the locale file to use for the + * [loginHintText](Titanium.UI.AlertDialog.loginHintText) property. + */ + loginhinttextid: string; + + /** + * Dialog message. + */ + message: string; + + /** + * Key identifying a string in the locale file to use for the message text. + */ + messageid: string; + + /** + * Text for the `OK` button. + */ + ok: string; + + /** + * Key identifying a string in the locale file to use for the `ok` text. + */ + okid: string; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: never; + + /** + * When on, animate call overrides current animation if applicable. + */ + overrideCurrentAnimation: never; + + /** + * Hint text of the password text field inside the dialog. + */ + passwordHintText: string; + + /** + * Keyboard type to display when this text field inside the dialog is focused. + */ + passwordKeyboardType: number; + + /** + * Placeholder of the password text field inside the dialog. + * @deprecated Use [Titanium.UI.AlertDialog.passwordHintText](Titanium.UI.AlertDialog.passwordHintText) instead. + */ + passwordPlaceholder: string; + + /** + * Specifies the text to display on the keyboard `Return` key when this field is focused. + */ + passwordReturnKeyType: number; + + /** + * Value of the password text field inside the dialog. + */ + passwordValue: string; + + /** + * Key identifying a string from the locale file to use for the + * [passwordHintText](Titanium.UI.AlertDialog.passwordHintText) property. + */ + passwordhinttextid: string; + + /** + * Boolean value indicating if the alert dialog should only be cancelled by user gesture or by hide method. + */ + persistent: boolean; + + /** + * Placeholder of the text field inside the dialog. + * @deprecated Use [Titanium.UI.AlertDialog.hintText](Titanium.UI.AlertDialog.hintText) instead. + */ + placeholder: string; + + /** + * Index to define the preferred button. + */ + preferred: number; + + /** + * Background color of the wrapper view when this view is used as either or . + * Defaults to `undefined`. Results in a light grey background color on the wrapper view. + */ + pullBackgroundColor: never; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: never; + + /** + * Specifies the text to display on the keyboard `Return` key when this field is focused. + */ + returnKeyType: number; + + /** + * View's right position, in platform-specific units. + */ + right: never; + + /** + * The size of the view in system units. + */ + readonly size: never; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * The style for the alert dialog. + */ + style: number; + + /** + * The tint-color of the dialog. + */ + tintColor: string; + + /** + * Title of the dialog. + */ + title: string; + + /** + * Key identifying a string in the locale file to use for the title text. + */ + titleid: string; + + /** + * The view's top position. + */ + top: never; + + /** + * Determines whether view should receive touch events. + */ + touchEnabled: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * Value of the text field inside the dialog. + */ + value: string; + + /** + * Determines the color of the shadow. + */ + viewShadowColor: never; + + /** + * Determines the offset for the shadow of the view. + */ + viewShadowOffset: never; + + /** + * Determines the blur radius used to create the shadow. + */ + viewShadowRadius: never; + + /** + * Determines whether the view is visible. + */ + visible: never; + + /** + * View's width, in platform-specific units. + */ + width: never; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.AlertDialog, event: AlertDialogEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Translates a point from this view's coordinate system to another view's coordinate system. + */ + convertPointToView: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: AlertDialogEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getButtonClickRequired(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getButtonNames(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCancel(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCanceledOnTouchOutside(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClipMode: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDestructive(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHinttextid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepScreenOn: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardAppearance(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLoginHintText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLoginKeyboardType(): number; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.AlertDialog.loginHintText](Titanium.UI.AlertDialog.loginHintText) instead. + */ + getLoginPlaceholder(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLoginReturnKeyType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLoginValue(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLoginhinttextid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessageid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOk(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOkid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverrideCurrentAnimation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPasswordHintText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPasswordKeyboardType(): number; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.AlertDialog.passwordHintText](Titanium.UI.AlertDialog.passwordHintText) instead. + */ + getPasswordPlaceholder(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPasswordReturnKeyType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPasswordValue(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPasswordhinttextid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPersistent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.AlertDialog.hintText](Titanium.UI.AlertDialog.hintText) instead. + */ + getPlaceholder(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPreferred(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPullBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getReturnKeyType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchEnabled: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowOffset: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Hides this dialog. + */ + hide(options?: AnimatedOptions): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.AlertDialog, event: AlertDialogEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setButtonClickRequired(buttonClickRequired: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setButtonNames(buttonNames: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCancel(cancel: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCanceledOnTouchOutside(canceledOnTouchOutside: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClipMode: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDestructive(destructive: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintText(hintText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHinttextid(hinttextid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepScreenOn: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardAppearance(keyboardAppearance: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardType(keyboardType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLoginHintText(loginHintText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLoginKeyboardType(loginKeyboardType: number): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.AlertDialog.loginHintText](Titanium.UI.AlertDialog.loginHintText) instead. + */ + setLoginPlaceholder(loginPlaceholder: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLoginReturnKeyType(loginReturnKeyType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLoginValue(loginValue: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLoginhinttextid(loginhinttextid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessage(message: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessageid(messageid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOk(ok: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOkid(okid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverrideCurrentAnimation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPasswordHintText(passwordHintText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPasswordKeyboardType(passwordKeyboardType: number): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.AlertDialog.passwordHintText](Titanium.UI.AlertDialog.passwordHintText) instead. + */ + setPasswordPlaceholder(passwordPlaceholder: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPasswordReturnKeyType(passwordReturnKeyType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPasswordValue(passwordValue: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPasswordhinttextid(passwordhinttextid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPersistent(persistent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.AlertDialog.hintText](Titanium.UI.AlertDialog.hintText) instead. + */ + setPlaceholder(placeholder: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPreferred(preferred: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPullBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setReturnKeyType(returnKeyType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleid(titleid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchEnabled: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowOffset: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Shows this dialog. + */ + show(options?: AnimatedOptions): void; + + /** + * Returns an image of the rendered view, as a Blob. + */ + toImage: never; + + } + /** + * The Android-specific UI capabilities. All properties, methods and events in this namespace will + * only work on Android systems. + */ + class Android extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates and returns an instance of . + */ + static createCardView(parameters?: Dictionary): Titanium.UI.Android.CardView; + + /** + * Creates and returns an instance of . + */ + static createDrawerLayout(parameters?: Dictionary): Titanium.UI.Android.DrawerLayout; + + /** + * Creates and returns an instance of . + */ + static createProgressIndicator(parameters?: Dictionary): Titanium.UI.Android.ProgressIndicator; + + /** + * Creates and returns an instance of . + */ + static createSearchView(parameters?: Dictionary): Titanium.UI.Android.SearchView; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Hides the soft keyboard. + */ + static hideSoftKeyboard(): void; + + /** + * Opens an application preferences dialog, using the native Android system settings interface, + * defined by the platform-specific `preferences.xml` and `array.xml` files. + */ + static openPreferences(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * Base event for class Titanium.UI.Animation + */ + interface AnimationBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Animation; + + } + /** + * Fired when the animation completes. + */ + interface Animation_complete_Event extends AnimationBaseEvent { + } + /** + * Fired when the animation starts. + */ + interface Animation_start_Event extends AnimationBaseEvent { + } + interface AnimationEventMap extends ProxyEventMap { + complete: Animation_complete_Event; + + start: Animation_start_Event; + + } + /** + * The `Animation` object defines an animation that can be applied to a view. + */ + class Animation extends Titanium.Proxy { + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: Point; + + /** + * Specifies if the animation should be replayed in reverse upon completion. + */ + autoreverse: boolean; + + /** + * Value of the `backgroundColor` property at the end of the animation, as a color name + * or hex triplet. + */ + backgroundColor: string; + + /** + * Value of the `bottom` property at the end of the animation. + */ + bottom: number; + + /** + * Value of the `center` property at the end of the animation. + */ + center: Point; + + /** + * Value of the `color` property at the end of the animation, as a color name or hex triplet. + */ + color: string; + + /** + * Animation curve or easing function to apply to the animation. + */ + curve: number; + + /** + * The damping ratio for the spring animation as it approaches its quiescent state. + */ + dampingRatio: number; + + /** + * Delay, in milliseconds before starting the animation. + */ + delay: number; + + /** + * Duration of the animation, in milliseconds. + */ + duration: number; + + /** + * Value of the `height` property at the end of the animation. + */ + height: number; + + /** + * Value of the `left` property at the end of the animation. + */ + left: number; + + /** + * Value of the `opacity` property at the end of the animation. + */ + opacity: number; + + /** + * Value of the `opaque` property at the end of the animation. + */ + opaque: boolean; + + /** + * Number of times the animation should be performed. + */ + repeat: number; + + /** + * Value of the `right` property at the end of the animation. + */ + right: number; + + /** + * The initial spring velocity. + */ + springVelocity: number; + + /** + * Value of the `top` property at the end of the animation. + */ + top: number; + + /** + * Animate the view from its current tranform to the specified transform. + */ + transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; + + /** + * Transition type to use during a transition animation. + */ + transition: number; + + /** + * New view to transition to. + */ + view: Titanium.UI.View; + + /** + * Value of the `visible` property at the end of the animation. + */ + visible: boolean; + + /** + * Value of the `width` property at the end of the animation. + */ + width: number; + + /** + * Value of the `zIndex` property at the end of the animation. + */ + zIndex: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Animation, event: AnimationEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: AnimationEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutoreverse(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCurve(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDampingRatio(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDelay(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpaque(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRepeat(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSpringVelocity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Animation, event: AnimationEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint(anchorPoint: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutoreverse(autoreverse: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom(bottom: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter(center: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCurve(curve: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDampingRatio(dampingRatio: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDelay(delay: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDuration(duration: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight(height: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft(left: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity(opacity: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpaque(opaque: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRepeat(repeat: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight(right: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSpringVelocity(springVelocity: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop(top: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform(transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransition(transition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setView(view: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible(visible: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth(width: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex(zIndex: number): void; + + } + /** + * An attributed string proxy manages character strings and associated sets of attributes (for example, + * font and foregroundcolor) that apply to individual characters or ranges of characters in the string. + */ + class AttributedString extends Titanium.Proxy { + /** + * An array of attributes to add. + */ + attributes: Attribute[]; + + /** + * The text applied to the attributed string. + */ + text: string; + + /** + * Adds an [attribute](Attribute) with the given name and value to the characters in the specified range. + */ + addAttribute(attribute: Attribute): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAttributes(): Attribute[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getText(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAttributes(attributes: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setText(text: string): void; + + } + /** + * Base event for class Titanium.UI.Button + */ + interface ButtonBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Button; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Button_click_Event extends ButtonBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Button_dblclick_Event extends ButtonBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Button_doubletap_Event extends ButtonBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface Button_focus_Event extends ButtonBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Button_keypressed_Event extends ButtonBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface Button_longclick_Event extends ButtonBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface Button_longpress_Event extends ButtonBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Button_pinch_Event extends ButtonBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Button_postlayout_Event extends ButtonBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Button_singletap_Event extends ButtonBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Button_swipe_Event extends ButtonBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Button_touchcancel_Event extends ButtonBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Button_touchend_Event extends ButtonBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Button_touchmove_Event extends ButtonBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Button_touchstart_Event extends ButtonBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Button_twofingertap_Event extends ButtonBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface ButtonEventMap extends ProxyEventMap { + click: Button_click_Event; + + dblclick: Button_dblclick_Event; + + doubletap: Button_doubletap_Event; + + focus: Button_focus_Event; + + keypressed: Button_keypressed_Event; + + longclick: Button_longclick_Event; + + longpress: Button_longpress_Event; + + pinch: Button_pinch_Event; + + postlayout: Button_postlayout_Event; + + singletap: Button_singletap_Event; + + swipe: Button_swipe_Event; + + touchcancel: Button_touchcancel_Event; + + touchend: Button_touchend_Event; + + touchmove: Button_touchmove_Event; + + touchstart: Button_touchstart_Event; + + twofingertap: Button_twofingertap_Event; + + } + /** + * A button widget that has four states: normal, disabled, focused and selected. + */ + class Button extends Titanium.UI.View { + /** + * Specify an attributed string for the label. + */ + attributedString: Titanium.UI.AttributedString; + + /** + * Background image for the button in its disabled state, specified as a local file path + * or URL. + */ + backgroundDisabledImage: string; + + /** + * Background image for the button in its focused state, specified as a local file path + * or URL. + */ + backgroundFocusedImage: string; + + /** + * Background image for the button in its normal state, specified as a local file path or URL. + */ + backgroundImage: string; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: string; + + /** + * Background image for the button in its selected state, specified as a local file + * path or URL. + */ + backgroundSelectedImage: string; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Default button text color, as a color name or hex triplet. + */ + color: string; + + /** + * Text color of the button in its disabled state, as a color name or hex triplet. + */ + disabledColor: string; + + /** + * Set to `true` to enable the button, `false` to disable the button. + */ + enabled: boolean; + + /** + * Font to use for the button text. + */ + font: Font; + + /** + * Image to display on the button, specified as a local path, URL or a `Blob`. + */ + image: string | Titanium.Blob; + + /** + * Button text color used to indicate the selected state, as a color name or hex triplet. + */ + selectedColor: string; + + /** + * Shadow color of the [title](Titanium.UI.Button.title), as a color name or hex triplet. + */ + shadowColor: string; + + /** + * Shadow offset of the [title](Titanium.UI.Button.title), as a dictionary with the properties `x` and `y`. + */ + shadowOffset: Point; + + /** + * Shadow radius of the [title](Titanium.UI.Button.title). + */ + shadowRadius: number; + + /** + * Style constant for the button, as defined in . + */ + style: number; + + /** + * Specifies an iOS system button appearance, as defined in . + */ + systemButton: number; + + /** + * Text alignment, specified using one of the text alignment constants. + */ + textAlign: string | number; + + /** + * Button tint color. + */ + tintColor: string; + + /** + * Button title. + */ + title: string; + + /** + * Key identifying a string from the locale file to use for the button title. + */ + titleid: string; + + /** + * Vertical alignment for the text field, specified using one of the + * vertical alignment constants from . + */ + verticalAlign: number | string; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Button, event: ButtonEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ButtonEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAttributedString(): Titanium.UI.AttributedString; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisabledColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getImage(): string | Titanium.Blob; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowOffset(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowRadius(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSystemButton(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTextAlign(): string | number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalAlign(): number | string; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Button, event: ButtonEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAttributedString(attributedString: Titanium.UI.AttributedString): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage(backgroundDisabledImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage(backgroundFocusedImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage(backgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor(backgroundSelectedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage(backgroundSelectedImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisabledColor(disabledColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnabled(enabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setImage(image: string | Titanium.Blob): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedColor(selectedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowColor(shadowColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowOffset(shadowOffset: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowRadius(shadowRadius: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSystemButton(systemButton: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTextAlign(textAlign: string | number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleid(titleid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalAlign(verticalAlign: number | string): void; + + } + /** + * Base event for class Titanium.UI.ButtonBar + */ + interface ButtonBarBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.ButtonBar; + + } + /** + * Fired when a button is clicked. + */ + interface ButtonBar_click_Event extends ButtonBarBaseEvent { + /** + * Index of the clicked button. + */ + index: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface ButtonBar_dblclick_Event extends ButtonBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface ButtonBar_doubletap_Event extends ButtonBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface ButtonBar_keypressed_Event extends ButtonBarBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface ButtonBar_longpress_Event extends ButtonBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface ButtonBar_pinch_Event extends ButtonBarBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface ButtonBar_postlayout_Event extends ButtonBarBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface ButtonBar_singletap_Event extends ButtonBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface ButtonBar_swipe_Event extends ButtonBarBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface ButtonBar_touchcancel_Event extends ButtonBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface ButtonBar_touchend_Event extends ButtonBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface ButtonBar_touchmove_Event extends ButtonBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface ButtonBar_touchstart_Event extends ButtonBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface ButtonBar_twofingertap_Event extends ButtonBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface ButtonBarEventMap extends ProxyEventMap { + click: ButtonBar_click_Event; + + dblclick: ButtonBar_dblclick_Event; + + doubletap: ButtonBar_doubletap_Event; + + keypressed: ButtonBar_keypressed_Event; + + longpress: ButtonBar_longpress_Event; + + pinch: ButtonBar_pinch_Event; + + postlayout: ButtonBar_postlayout_Event; + + singletap: ButtonBar_singletap_Event; + + swipe: ButtonBar_swipe_Event; + + touchcancel: ButtonBar_touchcancel_Event; + + touchend: ButtonBar_touchend_Event; + + touchmove: ButtonBar_touchmove_Event; + + touchstart: ButtonBar_touchstart_Event; + + twofingertap: ButtonBar_twofingertap_Event; + + } + /** + * An iOS button bar component. + */ + class ButtonBar extends Titanium.UI.View { + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Index of the currently selected button. + * @deprecated This property has been deprecated in Titanium SDK 8.0.0 as this property has no effect + * and will be removed in SDK 9.0.0. + * + */ + index: number; + + /** + * Array of labels for the button bar. + */ + labels: string[] | BarItemType[]; + + /** + * Color of selected button, as a color name or hex triplet. + */ + selectedButtonColor: string; + + /** + * Color of title of button when it is selected, as a color name or hex triplet. + */ + selectedTextColor: string; + + /** + * Color of title of button, as a color name or hex triplet. + */ + textColor: string; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.ButtonBar, event: ButtonBarEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ButtonBarEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated This property has been deprecated in Titanium SDK 8.0.0 as this property has no effect + * and will be removed in SDK 9.0.0. + * + */ + getIndex(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLabels(): string[] | BarItemType[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedButtonColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedTextColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTextColor(): string; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.ButtonBar, event: ButtonBarEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated This property has been deprecated in Titanium SDK 8.0.0 as this property has no effect + * and will be removed in SDK 9.0.0. + * + */ + setIndex(index: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLabels(labels: string[] | BarItemType[]): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedButtonColor(selectedButtonColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedTextColor(selectedTextColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTextColor(textColor: string): void; + + } + /** + * A module used for accessing clipboard data. + */ + class Clipboard extends Titanium.Module { + /** + * Create a clipboard identified by name if it doesn't exist. + */ + static allowCreation: boolean; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Create a new named clipboard. + */ + static name: string; + + /** + * Create a new clipboard identified by a unique system-generated name. + */ + static unique: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Deletes data of the specified MIME type stored in the clipboard. If MIME type omitted, all + * data is deleted. + */ + static clearData(type?: string): void; + + /** + * Deletes all text data stored in the clipboard. + */ + static clearText(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAllowCreation(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets data of the specified MIME type stored in the clipboard. Returns null if non-text mimetype on Android. + */ + static getData(type: string): string | Titanium.Blob; + + /** + * Gets the items that have been specified earlier using . + */ + static getItems(): any[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getName(): string; + + /** + * Gets text data stored in the clipboard. + */ + static getText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getUnique(): boolean; + + /** + * Indicates whether any colors are stored in the clipboard. + */ + static hasColors(): boolean; + + /** + * Indicates whether any data of the specified MIME type is stored in the clipboard. + */ + static hasData(type?: string): boolean; + + /** + * Indicates whether any images are stored in the clipboard. + */ + static hasImages(): boolean; + + /** + * Indicates whether any text data is stored in the clipboard. + */ + static hasText(): boolean; + + /** + * Indicates whether any URLs are stored in the clipboard. + */ + static hasURLs(): boolean; + + /** + * Removes the clipboard. + */ + static remove(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAllowCreation(allowCreation: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Stores data of the specified MIME type in the clipboard. + */ + static setData(type: string, data: any): void; + + /** + * Adds an array of items to a clipboard, and sets privacy options for all included items. + */ + static setItems(items: ClipboardItemsType): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setName(name: string): void; + + /** + * Stores text data in the clipboard. + */ + static setText(text: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setUnique(unique: boolean): void; + + } + /** + * The cover flow view is a container showing animated three-dimensional images in a style + * consistent with the cover flow presentation used for iPod, iTunes, and file browsing. + * @deprecated Use [Titanium.UI.iOS.CoverFlowView](Titanium.UI.iOS.CoverFlowView) instead. + */ + const CoverFlowView: never; + /** + * Base event for class Titanium.UI.DashboardItem + */ + interface DashboardItemBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.DashboardItem; + + } + /** + * Fired when a click is detected against the view. + */ + interface DashboardItem_click_Event extends DashboardItemBaseEvent { + /** + * Item that was clicked. + */ + item: Titanium.UI.DashboardItem; + + /** + * Coordinates `x` and `y` of the event from the parent view's coordinate system. + */ + location: Point; + + } + /** + * Fired when an item is deleted during editing mode. + */ + interface DashboardItem_delete_Event extends DashboardItemBaseEvent { + /** + * Item that was deleted. + */ + item: Titanium.UI.DashboardItem; + + } + /** + * Fired when an item is moved during editing mode. + */ + interface DashboardItem_move_Event extends DashboardItemBaseEvent { + /** + * Item that was moved. + */ + item: Titanium.UI.DashboardItem; + + /** + * List of items to be committed, possibly in new order, when edit mode ends. + */ + items: Titanium.UI.DashboardItem[]; + + } + interface DashboardItemEventMap extends ProxyEventMap { + click: DashboardItem_click_Event; + + delete: DashboardItem_delete_Event; + + move: DashboardItem_move_Event; + + } + /** + * A dashboard item is a view that is displayed as an icon in a . + */ + class DashboardItem extends Titanium.Proxy { + /** + * Integer value displayed in a badge. + */ + badge: number; + + /** + * Determines whether this item can be deleted when it edit mode. + */ + canDelete: boolean; + + /** + * Image or path to image to display in the item by default. + */ + image: string | Titanium.Blob; + + /** + * Image or path to image to display in the item as it is selected. + */ + selectedImage: string | Titanium.Blob; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.DashboardItem, event: DashboardItemEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: DashboardItemEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBadge(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCanDelete(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getImage(): string | Titanium.Blob; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedImage(): string | Titanium.Blob; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.DashboardItem, event: DashboardItemEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBadge(badge: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCanDelete(canDelete: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setImage(image: string | Titanium.Blob): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedImage(selectedImage: string | Titanium.Blob): void; + + } + /** + * Base event for class Titanium.UI.DashboardView + */ + interface DashboardViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.DashboardView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface DashboardView_click_Event extends DashboardViewBaseEvent { + /** + * Item that was clicked. + */ + item: any; + + /** + * Coordinates x and y of the event from the parent view's coordinate system. + */ + location: Point; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface DashboardView_dblclick_Event extends DashboardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface DashboardView_doubletap_Event extends DashboardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface DashboardView_keypressed_Event extends DashboardViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long press. + */ + interface DashboardView_longpress_Event extends DashboardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface DashboardView_pinch_Event extends DashboardViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface DashboardView_postlayout_Event extends DashboardViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface DashboardView_singletap_Event extends DashboardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface DashboardView_swipe_Event extends DashboardViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface DashboardView_touchcancel_Event extends DashboardViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface DashboardView_touchend_Event extends DashboardViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface DashboardView_touchmove_Event extends DashboardViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface DashboardView_touchstart_Event extends DashboardViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface DashboardView_twofingertap_Event extends DashboardViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when edit mode ends. + */ + interface DashboardView_commit_Event extends DashboardViewBaseEvent { + } + /** + * Fired when an item is deleted in edit mode. + */ + interface DashboardView_delete_Event extends DashboardViewBaseEvent { + /** + * Item that was deleted. + */ + item: Titanium.UI.DashboardItem; + + } + /** + * Fired when an item finishes being dragged in edit mode. + */ + interface DashboardView_dragend_Event extends DashboardViewBaseEvent { + /** + * Item that was dragged. + */ + item: Titanium.UI.DashboardItem; + + } + /** + * Fired when an item starts being dragged in edit mode. + */ + interface DashboardView_dragstart_Event extends DashboardViewBaseEvent { + /** + * Item that was dragged. + */ + item: Titanium.UI.DashboardItem; + + } + /** + * Fired when edit mode starts. + */ + interface DashboardView_edit_Event extends DashboardViewBaseEvent { + } + /** + * Fired when an item is moved in edit mode. + */ + interface DashboardView_move_Event extends DashboardViewBaseEvent { + /** + * Item that was moved. + */ + item: Titanium.UI.DashboardItem; + + /** + * List of items to be committed, possibly in new order, when edit mode ends. + */ + items: Titanium.UI.DashboardItem[]; + + } + /** + * Fired when the current page of the dashboard view changes. + */ + interface DashboardView_pagechanged_Event extends DashboardViewBaseEvent { + /** + * The current page number. + */ + pageNo: number; + + } + interface DashboardViewEventMap extends ProxyEventMap { + click: DashboardView_click_Event; + + commit: DashboardView_commit_Event; + + dblclick: DashboardView_dblclick_Event; + + delete: DashboardView_delete_Event; + + doubletap: DashboardView_doubletap_Event; + + dragend: DashboardView_dragend_Event; + + dragstart: DashboardView_dragstart_Event; + + edit: DashboardView_edit_Event; + + keypressed: DashboardView_keypressed_Event; + + longpress: DashboardView_longpress_Event; + + move: DashboardView_move_Event; + + pagechanged: DashboardView_pagechanged_Event; + + pinch: DashboardView_pinch_Event; + + postlayout: DashboardView_postlayout_Event; + + singletap: DashboardView_singletap_Event; + + swipe: DashboardView_swipe_Event; + + touchcancel: DashboardView_touchcancel_Event; + + touchend: DashboardView_touchend_Event; + + touchmove: DashboardView_touchmove_Event; + + touchstart: DashboardView_touchstart_Event; + + twofingertap: DashboardView_twofingertap_Event; + + } + /** + * A dashboard view is an iOS Springboard-like view of items that may + * be deleted and reordered by the user using its built-in edit mode. + */ + class DashboardView extends Titanium.UI.View { + /** + * The number of columns of items in the view. + */ + columnCount: number; + + /** + * Items to display in this view. + */ + data: Titanium.UI.DashboardItem[]; + + /** + * Determines whether edit mode is activated by a longpress of an item. + */ + editable: boolean; + + /** + * The number of rows of items in the view. + */ + rowCount: number; + + /** + * Determines whether the wobble visual editing cue is enabled in edit mode. + */ + wobble: boolean; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.DashboardView, event: DashboardViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: DashboardViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColumnCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getData(): Titanium.UI.DashboardItem[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRowCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWobble(): boolean; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.DashboardView, event: DashboardViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColumnCount(columnCount: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setData(data: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditable(editable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRowCount(rowCount: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWobble(wobble: boolean): void; + + /** + * Enable edit mode. + */ + startEditing(): void; + + /** + * Disable edit mode. + */ + stopEditing(): void; + + } + /** + * Base event for class Titanium.UI.EmailDialog + */ + interface EmailDialogBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.EmailDialog; + + } + /** + * Fired when the device detects a click against the view. + */ + interface EmailDialog_click_Event extends EmailDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface EmailDialog_dblclick_Event extends EmailDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface EmailDialog_doubletap_Event extends EmailDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface EmailDialog_focus_Event extends EmailDialogBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface EmailDialog_keypressed_Event extends EmailDialogBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface EmailDialog_longclick_Event extends EmailDialogBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface EmailDialog_longpress_Event extends EmailDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface EmailDialog_pinch_Event extends EmailDialogBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface EmailDialog_postlayout_Event extends EmailDialogBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface EmailDialog_singletap_Event extends EmailDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface EmailDialog_swipe_Event extends EmailDialogBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface EmailDialog_touchcancel_Event extends EmailDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface EmailDialog_touchend_Event extends EmailDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface EmailDialog_touchmove_Event extends EmailDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface EmailDialog_touchstart_Event extends EmailDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface EmailDialog_twofingertap_Event extends EmailDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when this email dialog has completed sending an email. + */ + interface EmailDialog_complete_Event extends EmailDialogBaseEvent { + /** + * Error code. + * Error code will be 0 if `success` is `true`, nonzero otherwise. If the error + * was generated by the operating system, that system's error value is used. + * Otherwise, this value will be -1. + */ + code: number; + + /** + * Error message, if any returned. Will be undefined if `success` is `true`. + */ + error: string; + + /** + * Status of the email send process. + * The `SAVED` and `CANCELLED` constants are iOS only. + * On Android, this property will return `SENT` when the user discards or saves + * a message. + */ + result: number; + + /** + * Indicates if the email was handled successfully. + * Returns `true` if request succeeded, `false` otherwise. Note that emails being + * deleted or saved for later do count as success. + */ + success: boolean; + + } + interface EmailDialogEventMap extends ProxyEventMap { + click: EmailDialog_click_Event; + + complete: EmailDialog_complete_Event; + + dblclick: EmailDialog_dblclick_Event; + + doubletap: EmailDialog_doubletap_Event; + + focus: EmailDialog_focus_Event; + + keypressed: EmailDialog_keypressed_Event; + + longclick: EmailDialog_longclick_Event; + + longpress: EmailDialog_longpress_Event; + + pinch: EmailDialog_pinch_Event; + + postlayout: EmailDialog_postlayout_Event; + + singletap: EmailDialog_singletap_Event; + + swipe: EmailDialog_swipe_Event; + + touchcancel: EmailDialog_touchcancel_Event; + + touchend: EmailDialog_touchend_Event; + + touchmove: EmailDialog_touchmove_Event; + + touchstart: EmailDialog_touchstart_Event; + + twofingertap: EmailDialog_twofingertap_Event; + + } + /** + * An email dialog is a modal window that allows users to compose and send an email. + */ + class EmailDialog extends Titanium.UI.View { + /** + * Constant for the `CANCELLED` status result. On Android, this property exists but is not used. + */ + readonly CANCELLED: number; + + /** + * Constant for the `FAILED` status result. + */ + readonly FAILED: number; + + /** + * Constant for the `SAVED` status result. On Android, this property exists but is not used. + */ + readonly SAVED: number; + + /** + * Constant for the `SENT` status result. + */ + readonly SENT: number; + + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: never; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: never; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Bar color of the email dialog window, as a color name or hex triplet. + */ + barColor: string; + + /** + * Recipients of the email included via the `BCC` (Blind Carbon Copy) field. + */ + bccRecipients: string[]; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * View's bottom position, in platform-specific units. + */ + bottom: never; + + /** + * Recipients of the email included via the `CC` (Carbon Copy) field. + */ + ccRecipients: string[]; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * View's clipping behavior. + */ + clipMode: never; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: never; + + /** + * View height, in platform-specific units. + */ + height: never; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Determines whether the email message, specifically the contents of + * [messageBody](Titanium.UI.EmailDialog.messageBody), should be sent as HTML content type + * rather than plain text. + */ + html: boolean; + + /** + * Determines whether to keep the device screen on. + */ + keepScreenOn: never; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * View's left position, in platform-specific units. + */ + left: never; + + /** + * Email message body. + */ + messageBody: string; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: never; + + /** + * When on, animate call overrides current animation if applicable. + */ + overrideCurrentAnimation: never; + + /** + * Background color of the wrapper view when this view is used as either or . + * Defaults to `undefined`. Results in a light grey background color on the wrapper view. + */ + pullBackgroundColor: never; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: never; + + /** + * View's right position, in platform-specific units. + */ + right: never; + + /** + * The size of the view in system units. + */ + readonly size: never; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * Subject line for the email. + */ + subject: string; + + /** + * The view's tintColor + */ + tintColor: never; + + /** + * Recipients of the email included via the main `TO` field. + */ + toRecipients: string[]; + + /** + * The view's top position. + */ + top: never; + + /** + * Determines whether view should receive touch events. + */ + touchEnabled: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * Determines the color of the shadow. + */ + viewShadowColor: never; + + /** + * Determines the offset for the shadow of the view. + */ + viewShadowOffset: never; + + /** + * Determines the blur radius used to create the shadow. + */ + viewShadowRadius: never; + + /** + * Determines whether the view is visible. + */ + visible: never; + + /** + * View's width, in platform-specific units. + */ + width: never; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds an attachment. + */ + addAttachment(attachment: Titanium.Blob | Titanium.Filesystem.File): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.EmailDialog, event: EmailDialogEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Translates a point from this view's coordinate system to another view's coordinate system. + */ + convertPointToView: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: EmailDialogEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBccRecipients(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCcRecipients(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClipMode: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHtml(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepScreenOn: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessageBody(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverrideCurrentAnimation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPullBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSubject(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getToRecipients(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchEnabled: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowOffset: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Indicates whether sending email is supported by the system. + */ + isSupported(): boolean; + + /** + * Opens this email dialog. + */ + open(options?: AnimatedOptions): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.EmailDialog, event: EmailDialogEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarColor(barColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBccRecipients(bccRecipients: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCcRecipients(ccRecipients: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClipMode: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHtml(html: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepScreenOn: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessageBody(messageBody: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverrideCurrentAnimation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPullBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSubject(subject: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setToRecipients(toRecipients: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchEnabled: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowOffset: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Returns an image of the rendered view, as a Blob. + */ + toImage: never; + + } + /** + * Base event for class Titanium.UI.ImageView + */ + interface ImageViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.ImageView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface ImageView_click_Event extends ImageViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface ImageView_dblclick_Event extends ImageViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface ImageView_doubletap_Event extends ImageViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface ImageView_focus_Event extends ImageViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface ImageView_keypressed_Event extends ImageViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface ImageView_longclick_Event extends ImageViewBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface ImageView_longpress_Event extends ImageViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface ImageView_pinch_Event extends ImageViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface ImageView_postlayout_Event extends ImageViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface ImageView_singletap_Event extends ImageViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface ImageView_swipe_Event extends ImageViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface ImageView_touchcancel_Event extends ImageViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface ImageView_touchend_Event extends ImageViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface ImageView_touchmove_Event extends ImageViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface ImageView_touchstart_Event extends ImageViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface ImageView_twofingertap_Event extends ImageViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired for each frame change during an animation. + */ + interface ImageView_change_Event extends ImageViewBaseEvent { + /** + * Index of the image frame being displayed. + */ + index: number; + + } + /** + * Fired when either the initial image and/or all of the images in an animation are loaded. + */ + interface ImageView_load_Event extends ImageViewBaseEvent { + /** + * Set to `image` when the image defined in the [image](Titanium.UI.ImageView.image) + * property is loaded. Set to `images`, when the series of images defined in the + * [images](Titanium.UI.ImageView.images) property are loaded. + */ + state: string; + + } + /** + * Fired when the animation starts. + */ + interface ImageView_start_Event extends ImageViewBaseEvent { + } + /** + * Fired when the animation stops. + */ + interface ImageView_stop_Event extends ImageViewBaseEvent { + } + /** + * Fired when an image fails to load. + */ + interface ImageView_error_Event extends ImageViewBaseEvent { + /** + * Error code. + * If the error was generated by the operating system, that system's error value + * is used. Otherwise, this value will be -1. + */ + code: number; + + /** + * Error message, if any returned. May be undefined. + */ + error: string; + + /** + * URL of the image that failed to load. + */ + image: string; + + /** + * Indicates a successful operation. Returns `false`. + */ + success: boolean; + + } + /** + * Fired when the animation pauses. + */ + interface ImageView_pause_Event extends ImageViewBaseEvent { + } + interface ImageViewEventMap extends ProxyEventMap { + change: ImageView_change_Event; + + click: ImageView_click_Event; + + dblclick: ImageView_dblclick_Event; + + doubletap: ImageView_doubletap_Event; + + error: ImageView_error_Event; + + focus: ImageView_focus_Event; + + keypressed: ImageView_keypressed_Event; + + load: ImageView_load_Event; + + longclick: ImageView_longclick_Event; + + longpress: ImageView_longpress_Event; + + pause: ImageView_pause_Event; + + pinch: ImageView_pinch_Event; + + postlayout: ImageView_postlayout_Event; + + singletap: ImageView_singletap_Event; + + start: ImageView_start_Event; + + stop: ImageView_stop_Event; + + swipe: ImageView_swipe_Event; + + touchcancel: ImageView_touchcancel_Event; + + touchend: ImageView_touchend_Event; + + touchmove: ImageView_touchmove_Event; + + touchstart: ImageView_touchstart_Event; + + twofingertap: ImageView_twofingertap_Event; + + } + /** + * A view to display a single image or series of animated images. + */ + class ImageView extends Titanium.UI.View { + /** + * Indicates whether animation is running. + */ + readonly animating: boolean; + + /** + * Indicates whether the image should be rotated based on exif orientation data. + * By default, this is false on android and true on iOS. + */ + autorotate: boolean; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Number of times to retry decoding the bitmap at a URL. + */ + decodeRetries: number; + + /** + * Local path to the default image to display while loading a remote image. + */ + defaultImage: string; + + /** + * Amount of time in milliseconds to animate one cycle. + */ + duration: number; + + /** + * Show zoom controls when the user touches the image view. + */ + enableZoomControls: boolean; + + /** + * Set to `true` to prevent scaling of 2x/3x-resolution remote images for retina + * displays. + */ + hires: boolean; + + /** + * Image to display. + */ + image: string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Array of images to animate, defined using local filesystem paths, `File` objects, + * remote URLs (Android only), or `Blob` objects containing image data. + * When using this property, an initial `start()` needs to be called upon the ImageView before any image will show in this imageview. + * Related properties/methods to look at: `start`, `stop`, `pause`, `reverse`, `resume` and `repeatCount` + */ + images: string[] | Titanium.Blob[] | Titanium.Filesystem.File[]; + + /** + * Indicates whether the animation is paused. + */ + readonly paused: boolean; + + /** + * Prevent the default image from being displayed while loading a remote image. This property + * is ignored when the `defaultImage` property is set. + */ + preventDefaultImage: boolean; + + /** + * Number of times to repeat the image animation. + */ + repeatCount: number; + + /** + * Run the animation in reverse. + */ + reverse: boolean; + + /** + * The view's tintColor. + */ + tintColor: string; + + /** + * URL to the image to display. + * @deprecated Use [Titanium.UI.ImageView.image](Titanium.UI.ImageView.image) instead. + */ + url: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.ImageView, event: ImageViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ImageViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimating(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutorotate(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDecodeRetries(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDefaultImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnableZoomControls(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHires(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getImage(): string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getImages(): string[] | Titanium.Blob[] | Titanium.Filesystem.File[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPaused(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPreventDefaultImage(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRepeatCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getReverse(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.ImageView.image](Titanium.UI.ImageView.image) instead. + */ + getUrl: never; + + /** + * Pauses a running animation. Use `resume` method to continue. + */ + pause(): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.ImageView, event: ImageViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Resumes an animation from a `pause` state. + */ + resume(): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutorotate(autorotate: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDecodeRetries(decodeRetries: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDefaultImage(defaultImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDuration(duration: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnableZoomControls(enableZoomControls: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHires(hires: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setImage(image: string | Titanium.Blob | Titanium.Filesystem.File): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setImages(images: string[] | Titanium.Blob[] | Titanium.Filesystem.File[]): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPreventDefaultImage(preventDefaultImage: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRepeatCount(repeatCount: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setReverse(reverse: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.ImageView.image](Titanium.UI.ImageView.image) instead. + */ + setUrl: never; + + /** + * Starts the image animation. On Android, also resets `index` to the first image. + */ + start(): void; + + /** + * Stops a running animation. On iOS, also resets `index` to the first image. + */ + stop(): void; + + /** + * Returns the image as a Blob object. + */ + toBlob(): Titanium.Blob; + + } + /** + * Base event for class Titanium.UI.Label + */ + interface LabelBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Label; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Label_click_Event extends LabelBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Label_dblclick_Event extends LabelBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Label_doubletap_Event extends LabelBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface Label_focus_Event extends LabelBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Label_keypressed_Event extends LabelBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface Label_longclick_Event extends LabelBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface Label_longpress_Event extends LabelBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Label_pinch_Event extends LabelBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Label_postlayout_Event extends LabelBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Label_singletap_Event extends LabelBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Label_swipe_Event extends LabelBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Label_touchcancel_Event extends LabelBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Label_touchend_Event extends LabelBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Label_touchmove_Event extends LabelBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Label_touchstart_Event extends LabelBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Label_twofingertap_Event extends LabelBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when user interacts with a URL in the Label. + */ + interface Label_link_Event extends LabelBaseEvent { + /** + * This is false. This event does not bubble + */ + bubbles: boolean; + + /** + * An array of two numbers [location, length] describing the character range of the text associated with this URL. + */ + range: any[]; + + /** + * The URL that is associated with this event. + */ + url: string; + + } + interface LabelEventMap extends ProxyEventMap { + click: Label_click_Event; + + dblclick: Label_dblclick_Event; + + doubletap: Label_doubletap_Event; + + focus: Label_focus_Event; + + keypressed: Label_keypressed_Event; + + link: Label_link_Event; + + longclick: Label_longclick_Event; + + longpress: Label_longpress_Event; + + pinch: Label_pinch_Event; + + postlayout: Label_postlayout_Event; + + singletap: Label_singletap_Event; + + swipe: Label_swipe_Event; + + touchcancel: Label_touchcancel_Event; + + touchend: Label_touchend_Event; + + touchmove: Label_touchmove_Event; + + touchstart: Label_touchstart_Event; + + twofingertap: Label_twofingertap_Event; + + } + /** + * A text label, with an optional background image. + */ + class Label extends Titanium.UI.View { + /** + * Specify an attributed string for the label. + */ + attributedString: Titanium.UI.AttributedString; + + /** + * Automatically convert certain text items in the label to clickable links. + */ + autoLink: number; + + /** + * Number of pixels to extend the background image past the label on the bottom. + */ + backgroundPaddingBottom: number; + + /** + * Number of pixels to extend the background image past the label on the left. + */ + backgroundPaddingLeft: number; + + /** + * Number of pixels to extend the background image past the label on the right. + */ + backgroundPaddingRight: number; + + /** + * Number of pixels to extend the background image past the label on the top. + */ + backgroundPaddingTop: number; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Color of the label text, as a color name or hex triplet. + */ + color: string; + + /** + * Causes words in the text that are longer than the view is wide to be ellipsized instead of broken in the middle. + */ + ellipsize: number; + + /** + * Font to use for the label text. + */ + font: Font; + + /** + * Color of the label when in the highlighted state, as a color name or hex triplet. + */ + highlightedColor: string; + + /** + * Simple HTML formatting. + */ + html: string; + + /** + * Includes extra top and bottom padding to make room for accents that go above normal ascent and descent. + */ + includeFontPadding: boolean; + + /** + * Line spacing of the [text](Titanium.UI.Label.text), as a dictionary with the properties `add` and `multiply`. + */ + lineSpacing: LabelLineSpacing; + + /** + * Makes the label be exactly this many lines tall. + */ + lines: number; + + /** + * Makes the label at most this many lines tall. + */ + maxLines: number; + + /** + * Minimum font size when the font is sized based on the contents. + */ + minimumFontSize: number; + + /** + * Shadow color of the [text](Titanium.UI.Label.text), as a color name or hex triplet. + */ + shadowColor: string; + + /** + * Shadow offset of the [text](Titanium.UI.Label.text), as a dictionary with the properties `x` and `y`. + */ + shadowOffset: Point; + + /** + * Shadow radius of the [text](Titanium.UI.Label.text). + */ + shadowRadius: number; + + /** + * Label text. + */ + text: string; + + /** + * Text alignment. + */ + textAlign: string | number; + + /** + * Key identifying a string from the locale file to use for the label text. + */ + textid: string; + + /** + * Vertical text alignment, specified using one of the vertical alignment constants + * from . + */ + verticalAlign: number | string; + + /** + * Enable or disable word wrapping in the label. + * @deprecated If you want to disable wrapping, then set [Titanium.UI.Label.maxLines](Titanium.UI.Label.maxLines) to 1 instead. + */ + wordWrap: boolean; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Label, event: LabelEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: LabelEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAttributedString(): Titanium.UI.AttributedString; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutoLink(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundPaddingBottom(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundPaddingLeft(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundPaddingRight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundPaddingTop(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEllipsize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHighlightedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHtml(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIncludeFontPadding(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLineSpacing(): LabelLineSpacing; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLines(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxLines(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinimumFontSize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowOffset(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowRadius(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTextAlign(): string | number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTextid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalAlign(): number | string; + + /** + * Gets the value of the property. + * @deprecated If you want to disable wrapping, then set [Titanium.UI.Label.maxLines](Titanium.UI.Label.maxLines) to 1 instead. + */ + getWordWrap(): boolean; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Label, event: LabelEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAttributedString(attributedString: Titanium.UI.AttributedString): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutoLink(autoLink: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundPaddingBottom(backgroundPaddingBottom: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundPaddingLeft(backgroundPaddingLeft: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundPaddingRight(backgroundPaddingRight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundPaddingTop(backgroundPaddingTop: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEllipsize(ellipsize: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHighlightedColor(highlightedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHtml(html: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIncludeFontPadding(includeFontPadding: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLineSpacing(lineSpacing: LabelLineSpacing): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLines(lines: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxLines(maxLines: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinimumFontSize(minimumFontSize: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowColor(shadowColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowOffset(shadowOffset: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowRadius(shadowRadius: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setText(text: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTextAlign(textAlign: string | number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTextid(textid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalAlign(verticalAlign: number | string): void; + + /** + * Sets the value of the property. + * @deprecated If you want to disable wrapping, then set [Titanium.UI.Label.maxLines](Titanium.UI.Label.maxLines) to 1 instead. + */ + setWordWrap(wordWrap: boolean): void; + + } + /** + * A list item is an individual item in a list section. + */ + class ListItem extends Titanium.Proxy { + /** + * Sets an accessory on the right side of an item. + */ + accessoryType: number; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: string; + + /** + * Background gradient to render when the item is not selected. + */ + backgroundGradient: Gradient; + + /** + * Background image to render when the item is not selected. + */ + backgroundImage: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + bubbleParent: never; + + /** + * Specifies if the item can be deleted by a user initiated action. + */ + canEdit: boolean; + + /** + * Specifies if the item can be inserted by a user initiated action. + */ + canInsert: boolean; + + /** + * Specifies if the item can be reordered within the list view by a user initiated action. + */ + canMove: boolean; + + /** + * Default text color of the item when not selected, as a color name or hex triplet. + */ + color: string; + + /** + * Specifies custom action items to be shown when when a list item is edited. + */ + editActions: RowActionType[]; + + /** + * Font to use for the item title. + */ + font: Font; + + /** + * Row height in platform-specific units. + */ + height: number | string; + + /** + * Image to render in the image area of the item, specified as a local path or URL. + */ + image: string; + + /** + * A user defined string that gets passed to events. + */ + itemId: string; + + /** + * The text to match against when the [ListView](Titanium.UI.ListView) is performing a search. + */ + searchableText: string; + + /** + * Background color of the view, as a color name or hex triplet when item is selected. + */ + selectedBackgroundColor: string; + + /** + * Background gradient to render when the item is selected. + */ + selectedBackgroundGradient: Gradient; + + /** + * Background image to render when the item is selected. + */ + selectedBackgroundImage: string; + + /** + * Color to use for the item title when the item is selected, as a color name or hex triplet. + */ + selectedColor: string; + + /** + * Color to use for the item subtitle when the item is selected, as a color name or hex triplet. + */ + selectedSubtitleColor: string; + + /** + * Selection style constant to control the selection color. + */ + selectionStyle: number; + + /** + * Subtitle to set in the text area of the item. + */ + subtitle: string; + + /** + * Default text color of the subtitle, as a color name or hex triplet. + */ + subtitleColor: string; + + /** + * Title to set in the text area of the item. + */ + title: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener: never; + + /** + * Applies the properties to the proxy. + */ + applyProperties: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBubbleParent: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditActions(): RowActionType[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedSubtitleColor(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBubbleParent: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditActions(editActions: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedColor(selectedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedSubtitleColor(selectedSubtitleColor: string): void; + + } + /** + * A list section is a container within a list view used to organize list items. + */ + class ListSection extends Titanium.Proxy { + /** + * Indicates if the proxy will bubble an event to its parent. + */ + bubbleParent: never; + + /** + * Title of this section footer. + */ + footerTitle: string; + + /** + * View to use for this section footer. + */ + footerView: Titanium.UI.View; + + /** + * Title of this section header. + */ + headerTitle: string; + + /** + * View to use for this section header. + */ + headerView: Titanium.UI.View; + + /** + * Items of this list section. + */ + items: ListDataItem[]; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener: never; + + /** + * Appends the data entries to the end of the list section. + */ + appendItems(dataItems: ReadonlyArray, animation?: ListViewAnimationProperties): void; + + /** + * Removes count entries from the list section at the specified index. + */ + deleteItemsAt(itemIndex: number, count: number, animation?: ListViewAnimationProperties): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBubbleParent: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderView(): Titanium.UI.View; + + /** + * Returns the item entry from the list view at the specified index. + */ + getItemAt(itemIndex: number): ListDataItem; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): ListDataItem[]; + + /** + * Inserts data entries to the list section at the specified index. + */ + insertItemsAt(itemIndex: number, dataItems: ReadonlyArray, animation?: ListViewAnimationProperties): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener: never; + + /** + * Removes count entries from the list section at the specified index, + * then inserts data entries to the list section at the same index. + */ + replaceItemsAt(index: number, count: number, dataItems: ReadonlyArray, animation?: ListViewAnimationProperties): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBubbleParent: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterTitle(footerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterView(footerView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderTitle(headerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderView(headerView: Titanium.UI.View): void; + + /** + * Sets the data entries in the list section. + */ + setItems(dataItems: ReadonlyArray, animation?: ListViewAnimationProperties): void; + + /** + * Updates an item at the specified index. + */ + updateItemAt(index: number, dataItem: ListDataItem, animation?: ListViewAnimationProperties): void; + + } + /** + * Base event for class Titanium.UI.ListView + */ + interface ListViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.ListView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface ListView_click_Event extends ListViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface ListView_dblclick_Event extends ListViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface ListView_doubletap_Event extends ListViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface ListView_focus_Event extends ListViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface ListView_keypressed_Event extends ListViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface ListView_longclick_Event extends ListViewBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface ListView_longpress_Event extends ListViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface ListView_pinch_Event extends ListViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface ListView_postlayout_Event extends ListViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface ListView_singletap_Event extends ListViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface ListView_swipe_Event extends ListViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface ListView_touchcancel_Event extends ListViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface ListView_touchend_Event extends ListViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface ListView_touchmove_Event extends ListViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface ListView_touchstart_Event extends ListViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface ListView_twofingertap_Event extends ListViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the index bar is clicked by the user. + */ + interface ListView_indexclick_Event extends ListViewBaseEvent { + /** + * The index number clicked. + */ + index: number; + + /** + * The title of the index clicked. + */ + title: string; + + } + /** + * Fired when a list row is clicked by the user. + */ + interface ListView_itemclick_Event extends ListViewBaseEvent { + /** + * Returns `true` if the detail button is clicked else returns `false`. + * Only returns `true` if the `accessoryType` property is set to + * . All other accessories return `false` if + * clicked. + */ + accessoryClicked: boolean; + + /** + * The bind ID of the control that generated this event, if one exists. + */ + bindId: string; + + /** + * The item ID bound to the list item that generated the event. + */ + itemId: string; + + /** + * Item index. + */ + itemIndex: number; + + /** + * List section if the item is contained in a list section. + */ + section: Titanium.UI.ListSection; + + /** + * Section index. + */ + sectionIndex: number; + + } + /** + * Fired when user stops two-pan gesture interaction for selecting multiple items. + * It is used with . + */ + interface ListView_itemsselected_Event extends ListViewBaseEvent { + /** + * List of items selected by user. + */ + selectedItems: SelectedItem[]; + + /** + * First item selected when user started interaction. + */ + startingItem: SelectedItem; + + } + /** + * Fired when a list row is deleted by the user. + */ + interface ListView_delete_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + /** + * The item ID bound to the list item that generated the event. + */ + itemId: string; + + /** + * Item index. + */ + itemIndex: number; + + /** + * List section from which the item is deleted. + */ + section: Titanium.UI.ListSection; + + /** + * Section index. + */ + sectionIndex: number; + + } + /** + * Fired when a list row is inserted by the user. + */ + interface ListView_insert_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + /** + * The item ID bound to the list item that generated the event. + */ + itemId: string; + + /** + * Item index. + */ + itemIndex: number; + + /** + * List section from which the item is deleted. + */ + section: Titanium.UI.ListSection; + + /** + * Section index. + */ + sectionIndex: number; + + } + /** + * Fired when the user starts dragging the list view. + */ + interface ListView_dragstart_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + } + /** + * Fired when the user stops dragging the list view. + */ + interface ListView_dragend_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + } + /** + * Fired when the list view displays the reference item. + */ + interface ListView_marker_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + /** + * section item index of the reference item. + */ + itemIndex: number; + + /** + * section index of the reference item. + */ + sectionIndex: number; + + } + /** + * Fired when a list row is moved to a different location by the user. + */ + interface ListView_move_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + /** + * The item ID bound to the list item that generated the event. + */ + itemId: string; + + /** + * Item index. + */ + itemIndex: number; + + /** + * List section from which the item is moved. + */ + section: Titanium.UI.ListSection; + + /** + * Section index. + */ + sectionIndex: number; + + /** + * Position within the `targetSection`. + */ + targetItemIndex: number; + + /** + * List section to which the item is moved. Might be the same as `section` property. + */ + targetSection: Titanium.UI.ListSection; + + /** + * Section index. + */ + targetSectionIndex: number; + + } + /** + * Fired when the search using either [searchView](Titanium.UI.ListView.searchView) or [searchText](Titanium.UI.ListView.searchText) has no results. + */ + interface ListView_noresults_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + } + /** + * Fired when the user drags the list view past the top edge of the [pullView](Titanium.UI.ListView.pullView). + */ + interface ListView_pull_Event extends ListViewBaseEvent { + /** + * Determines if the `pullView` is completely visible (true) or partially hidden (false). + */ + active: boolean; + + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + } + /** + * Fired when new list items are prefetched. The items are ordered ascending by geometric distance + * from the list view. Note that this event is only available on iOS 10 and later. + */ + interface ListView_prefetch_Event extends ListViewBaseEvent { + /** + * An array of prefetched items. + */ + prefetchedItems: ListItemEventType[]; + + } + /** + * Fired when list items that previously were considered as candidates for pre-fetching were not + * actually used. Note that this event is only available on iOS 10 and later + */ + interface ListView_cancelprefetch_Event extends ListViewBaseEvent { + /** + * An array of prefetched items. + */ + prefetchedItems: ListItemEventType[]; + + } + /** + * Fired when the user stops dragging the list view and the [pullView](Titanium.UI.ListView.pullView) is completely visible. + */ + interface ListView_pullend_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + } + /** + * Fired when the user interacts with one of the custom edit actions defined by . + */ + interface ListView_editaction_Event extends ListViewBaseEvent { + /** + * The [title](RowActionType.title) as defined in the row action object. + */ + action: string; + + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + /** + * The [identifier](RowActionType. identifier) of the row action. Only included in the event + * if previously defined. Available in Titanium 6.0.0 and later. + */ + identifier: string; + + /** + * The item ID bound to the list item that generated the event. + */ + itemId: string; + + /** + * Item index. + */ + itemIndex: number; + + /** + * List section from which the event was generated. + */ + section: Titanium.UI.ListSection; + + /** + * Section index. + */ + sectionIndex: number; + + } + /** + * Fires when the list view starts scrolling by user interaction. Calling the `scrollTo` methods will not fire this event + */ + interface ListView_scrollstart_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + /** + * The first visible item in the list view when the event fires; this item might not be fully visible. May be -1 on iOS. + */ + firstVisibleItem: any; + + /** + * The index of the first visible item in the list view when the event fires; this item might not be fully visible. + * Note: The index is `-1` when there are no items in the . + */ + firstVisibleItemIndex: number; + + /** + * The first visible section in the list view when the event fires. + */ + firstVisibleSection: Titanium.UI.ListSection; + + /** + * The index of the first visible section in the list view when the event fires. + * Note: The index is `-1` when there are no items in the . + */ + firstVisibleSectionIndex: number; + + /** + * The number of visible items in the list view when the event fires. + */ + visibleItemCount: number; + + } + /** + * Fires when the list view ends scrolling. Calling the `scrollTo` methods will not fire this event + */ + interface ListView_scrollend_Event extends ListViewBaseEvent { + /** + * false. This event does not bubble. + */ + bubbles: boolean; + + /** + * The first visible item in the list view when the event fires; this item might not be fully visible. May be -1 on iOS. + */ + firstVisibleItem: any; + + /** + * The index of the first visible item in the list view when the event fires; this item might not be fully visible. + */ + firstVisibleItemIndex: number; + + /** + * The first visible section in the list view when the event fires. + */ + firstVisibleSection: Titanium.UI.ListSection; + + /** + * The index of the first visible section in the list view when the event fires. + */ + firstVisibleSectionIndex: number; + + /** + * The number of visible items in the list view when the event fires. + */ + visibleItemCount: number; + + } + /** + * Fires when the list view is scrolling. Calling the `scrollTo` methods will not fire this event + */ + interface ListView_scrolling_Event extends ListViewBaseEvent { + /** + * Direction of the scroll either 'up', or 'down'. + */ + direction: string; + + /** + * The expected y axis offset when the scrolling action decelerates to a stop. + */ + targetContentOffset: number; + + /** + * The velocity of the scroll in scale factor per second + */ + velocity: number; + + } + interface ListViewEventMap extends ProxyEventMap { + cancelprefetch: ListView_cancelprefetch_Event; + + click: ListView_click_Event; + + dblclick: ListView_dblclick_Event; + + delete: ListView_delete_Event; + + doubletap: ListView_doubletap_Event; + + dragend: ListView_dragend_Event; + + dragstart: ListView_dragstart_Event; + + editaction: ListView_editaction_Event; + + focus: ListView_focus_Event; + + indexclick: ListView_indexclick_Event; + + insert: ListView_insert_Event; + + itemclick: ListView_itemclick_Event; + + itemsselected: ListView_itemsselected_Event; + + keypressed: ListView_keypressed_Event; + + longclick: ListView_longclick_Event; + + longpress: ListView_longpress_Event; + + marker: ListView_marker_Event; + + move: ListView_move_Event; + + noresults: ListView_noresults_Event; + + pinch: ListView_pinch_Event; + + postlayout: ListView_postlayout_Event; + + prefetch: ListView_prefetch_Event; + + pull: ListView_pull_Event; + + pullend: ListView_pullend_Event; + + scrollend: ListView_scrollend_Event; + + scrolling: ListView_scrolling_Event; + + scrollstart: ListView_scrollstart_Event; + + singletap: ListView_singletap_Event; + + swipe: ListView_swipe_Event; + + touchcancel: ListView_touchcancel_Event; + + touchend: ListView_touchend_Event; + + touchmove: ListView_touchmove_Event; + + touchstart: ListView_touchstart_Event; + + twofingertap: ListView_twofingertap_Event; + + } + /** + * A list view is used to present information, organized in to sections and items, + * in a vertically-scrolling view. + */ + class ListView extends Titanium.UI.View { + /** + * Determines whether multiple items of this list view can be selected at the same time while editing the table. + */ + allowsMultipleSelectionDuringEditing: boolean; + + /** + * Allows a two-finger pan gesture to automatically transition the table view into editing mode and start selecting rows. + */ + allowsMultipleSelectionInteraction: boolean; + + /** + * Determines whether this item can be selected. + */ + allowsSelection: boolean; + + /** + * Determines whether this list view items can be selected while editing the table. + */ + allowsSelectionDuringEditing: boolean; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Determines if the list view can scroll in response to user actions. + */ + canScroll: boolean; + + /** + * Determines if the search performed is case insensitive. + */ + caseInsensitiveSearch: boolean; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Sets the default template for list data items that do not specify the `template` property. + */ + defaultItemTemplate: string | number; + + /** + * A Boolean indicating whether the underlying content is dimmed during a search. + */ + dimBackgroundForSearch: boolean; + + /** + * Determines whether the scroll-bounce of the list view should be disabled. + */ + disableBounce: boolean; + + /** + * Determines if the list view is currently in editing mode. + */ + editing: boolean; + + /** + * Sets the fastScroll mode on Android ListViews. + */ + fastScroll: boolean; + + /** + * When set to false, the ListView will not draw the divider before the footer view. + */ + footerDividersEnabled: boolean; + + /** + * List view footer title. + */ + footerTitle: string; + + /** + * List view footer as a view that will be rendered instead of a label. + */ + footerView: Titanium.UI.View; + + /** + * When set to false, the ListView will not draw the divider after the header view. + */ + headerDividersEnabled: boolean; + + /** + * List view header title. + */ + headerTitle: string; + + /** + * List view header as a view that will be rendered instead of a label. + */ + headerView: Titanium.UI.View; + + /** + * Determines if the section information is displayed in the search results when using the `searchText` property. + */ + keepSectionsInSearch: boolean; + + /** + * The manner in which the keyboard is dismissed when a drag begins in the list view. + */ + keyboardDismissMode: number; + + /** + * Determines if the list view should use lazy loading to load remote images. + */ + lazyLoadingEnabled: boolean; + + /** + * The insets for the list view header and footer. + */ + listSeparatorInsets: HorizontalInsets; + + /** + * Determines if empty sections are retained when the user completes editing the list view. + */ + pruneSectionsOnEdit: boolean; + + /** + * View positioned above the first row that is only revealed when the user drags the list view contents down. + */ + pullView: Titanium.UI.View; + + /** + * View positioned above the first row that is only revealed when the user drags the list view contents down. + */ + refreshControl: Titanium.UI.RefreshControl; + + /** + * The background color of the search results (iOS-only). + */ + resultsBackgroundColor: string; + + /** + * Separator line color between rows inside search results, + * as a color name or hex triplet (iOS-only). + */ + resultsSeparatorColor: string; + + /** + * The insets for search results separators (applies to all cells & iOS-only). + */ + resultsSeparatorInsets: HorizontalInsets; + + /** + * The separator style of the search results (iOS-only). + */ + resultsSeparatorStyle: number; + + /** + * The insets for list view cells (applies to all cells). + */ + rowSeparatorInsets: HorizontalInsets; + + /** + * Style of the scrollbar. + */ + scrollIndicatorStyle: number; + + /** + * The string to use as the search parameter. + */ + searchText: string; + + /** + * Search field to use for the list view. + */ + searchView: Titanium.UI.SearchBar | Titanium.UI.Android.SearchView; + + /** + * Number of sections in this list view. + */ + readonly sectionCount: number; + + /** + * Array of objects (with `title` and `index` properties) to control the list view index. + */ + sectionIndexTitles: ListViewIndexEntry[]; + + /** + * Sections of this list. + */ + sections: Titanium.UI.ListSection[]; + + /** + * Returns the selected list view items. + */ + selectedItems: ListItemEventType[]; + + /** + * Separator line color between items, as a color name or hex triplet. + */ + separatorColor: string; + + /** + * height of the ListView separator. + */ + separatorHeight: string | number; + + /** + * The insets for list view separators (applies to all cells). + * @deprecated Use [Titanium.UI.ListView.listSeparatorInsets](Titanium.UI.ListView.listSeparatorInsets) instead. + */ + separatorInsets: HorizontalInsets; + + /** + * Separator style constant. + */ + separatorStyle: number; + + /** + * A Boolean indicating whether search bar will be in navigation bar. + */ + showSearchBarInNavBar: boolean; + + /** + * Determines whether this list view displays a vertical scroll indicator. + */ + showVerticalScrollIndicator: boolean; + + /** + * Style of the list view. + */ + style: number; + + /** + * The insets for the table view header and footer. + * @deprecated Use [Titanium.UI.ListView.listSeparatorInsets](Titanium.UI.ListView.listSeparatorInsets) instead. + */ + tableSeparatorInsets: HorizontalInsets; + + /** + * Contain key-value pairs mapping a style name (key) to an (value). + */ + templates: any; + + /** + * Controls the scroll-to-top gesture. + */ + willScrollOnStatusTap: boolean; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.ListView, event: ListViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds a reference item in the list view. + */ + addMarker(markerProps: ListViewMarkerProps): void; + + /** + * Appends a single section or an array of sections to the end of the list. + */ + appendSection(section: Titanium.UI.ListSection | Titanium.UI.ListSection[], animation?: ListViewAnimationProperties): void; + + /** + * Deletes an existing section. + */ + deleteSectionAt(sectionIndex: number, animation?: ListViewAnimationProperties): void; + + /** + * Deselects a specific item. + */ + deselectItem(sectionIndex: number, itemIndex: number): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ListViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsMultipleSelectionDuringEditing(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsMultipleSelectionInteraction(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsSelection(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsSelectionDuringEditing(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCanScroll(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCaseInsensitiveSearch(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDefaultItemTemplate(): string | number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDimBackgroundForSearch(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisableBounce(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditing(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFastScroll(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterDividersEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderDividersEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepSectionsInSearch(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardDismissMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLazyLoadingEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getListSeparatorInsets(): HorizontalInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPruneSectionsOnEdit(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPullView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRefreshControl(): Titanium.UI.RefreshControl; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResultsBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResultsSeparatorColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResultsSeparatorInsets(): HorizontalInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResultsSeparatorStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRowSeparatorInsets(): HorizontalInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollIndicatorStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSearchText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSearchView(): Titanium.UI.SearchBar | Titanium.UI.Android.SearchView; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSectionCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSectionIndexTitles(): ListViewIndexEntry[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSections(): Titanium.UI.ListSection[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedItems(): ListItemEventType[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSeparatorColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSeparatorHeight(): string | number; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.ListView.listSeparatorInsets](Titanium.UI.ListView.listSeparatorInsets) instead. + */ + getSeparatorInsets(): HorizontalInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSeparatorStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowSearchBarInNavBar(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowVerticalScrollIndicator(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.ListView.listSeparatorInsets](Titanium.UI.ListView.listSeparatorInsets) instead. + */ + getTableSeparatorInsets(): HorizontalInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTemplates(): any; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWillScrollOnStatusTap(): boolean; + + /** + * Inserts a section or an array of sections at a specific index. + */ + insertSectionAt(sectionIndex: number, section: Titanium.UI.ListSection | Titanium.UI.ListSection[], animation?: ListViewAnimationProperties): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.ListView, event: ListViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Replaces an existing section. + */ + replaceSectionAt(sectionIndex: number, section: Titanium.UI.ListSection, animation?: ListViewAnimationProperties): void; + + /** + * Scrolls to a specific item. + */ + scrollToItem(sectionIndex: number, itemIndex: number, animation?: ListViewAnimationProperties): void; + + /** + * Selects an item in the list using the specified item and section indices. + */ + selectItem(sectionIndex: number, itemIndex: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsMultipleSelectionDuringEditing(allowsMultipleSelectionDuringEditing: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsMultipleSelectionInteraction(allowsMultipleSelectionInteraction: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsSelection(allowsSelection: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsSelectionDuringEditing(allowsSelectionDuringEditing: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCanScroll(canScroll: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCaseInsensitiveSearch(caseInsensitiveSearch: boolean): void; + + /** + * Sets this list view's content insets. + */ + setContentInsets(edgeInsets: Padding, options?: AnimatedWithDurationOptions): void; + + /** + * Sets the value of the content offset of the list view without animation by default. + */ + setContentOffset(contentOffset: Point, options?: AnimatedOptions): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDefaultItemTemplate(defaultItemTemplate: string | number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDimBackgroundForSearch(dimBackgroundForSearch: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisableBounce(disableBounce: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditing(editing: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFastScroll(fastScroll: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterDividersEnabled(footerDividersEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterTitle(footerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterView(footerView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderDividersEnabled(headerDividersEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderTitle(headerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderView(headerView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepSectionsInSearch(keepSectionsInSearch: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardDismissMode(keyboardDismissMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLazyLoadingEnabled(lazyLoadingEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setListSeparatorInsets(listSeparatorInsets: HorizontalInsets): void; + + /** + * Sets a reference item in the list view. + */ + setMarker(markerProps: ListViewMarkerProps): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPruneSectionsOnEdit(pruneSectionsOnEdit: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPullView(pullView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRefreshControl(refreshControl: Titanium.UI.RefreshControl): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResultsBackgroundColor(resultsBackgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResultsSeparatorColor(resultsSeparatorColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResultsSeparatorInsets(resultsSeparatorInsets: HorizontalInsets): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResultsSeparatorStyle(resultsSeparatorStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRowSeparatorInsets(rowSeparatorInsets: HorizontalInsets): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollIndicatorStyle(scrollIndicatorStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSearchText(searchText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSearchView(searchView: Titanium.UI.SearchBar | Titanium.UI.Android.SearchView): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSectionIndexTitles(sectionIndexTitles: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSections(sections: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedItems(selectedItems: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSeparatorColor(separatorColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSeparatorHeight(separatorHeight: string | number): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.ListView.listSeparatorInsets](Titanium.UI.ListView.listSeparatorInsets) instead. + */ + setSeparatorInsets(separatorInsets: HorizontalInsets): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSeparatorStyle(separatorStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowSearchBarInNavBar(showSearchBarInNavBar: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowVerticalScrollIndicator(showVerticalScrollIndicator: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.ListView.listSeparatorInsets](Titanium.UI.ListView.listSeparatorInsets) instead. + */ + setTableSeparatorInsets(tableSeparatorInsets: HorizontalInsets): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTemplates(templates: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWillScrollOnStatusTap(willScrollOnStatusTap: boolean): void; + + } + /** + * Base event for class Titanium.UI.MaskedImage + */ + interface MaskedImageBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.MaskedImage; + + } + /** + * Fired when the device detects a click against the view. + */ + interface MaskedImage_click_Event extends MaskedImageBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface MaskedImage_dblclick_Event extends MaskedImageBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface MaskedImage_doubletap_Event extends MaskedImageBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface MaskedImage_focus_Event extends MaskedImageBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface MaskedImage_keypressed_Event extends MaskedImageBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface MaskedImage_longclick_Event extends MaskedImageBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface MaskedImage_longpress_Event extends MaskedImageBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface MaskedImage_pinch_Event extends MaskedImageBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface MaskedImage_postlayout_Event extends MaskedImageBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface MaskedImage_singletap_Event extends MaskedImageBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface MaskedImage_swipe_Event extends MaskedImageBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface MaskedImage_touchcancel_Event extends MaskedImageBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface MaskedImage_touchend_Event extends MaskedImageBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface MaskedImage_touchmove_Event extends MaskedImageBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface MaskedImage_touchstart_Event extends MaskedImageBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface MaskedImage_twofingertap_Event extends MaskedImageBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface MaskedImageEventMap extends ProxyEventMap { + click: MaskedImage_click_Event; + + dblclick: MaskedImage_dblclick_Event; + + doubletap: MaskedImage_doubletap_Event; + + focus: MaskedImage_focus_Event; + + keypressed: MaskedImage_keypressed_Event; + + longclick: MaskedImage_longclick_Event; + + longpress: MaskedImage_longpress_Event; + + pinch: MaskedImage_pinch_Event; + + postlayout: MaskedImage_postlayout_Event; + + singletap: MaskedImage_singletap_Event; + + swipe: MaskedImage_swipe_Event; + + touchcancel: MaskedImage_touchcancel_Event; + + touchend: MaskedImage_touchend_Event; + + touchmove: MaskedImage_touchmove_Event; + + touchstart: MaskedImage_touchstart_Event; + + twofingertap: MaskedImage_twofingertap_Event; + + } + /** + * A control that displays an image composited with a background image or color. + */ + class MaskedImage extends Titanium.UI.View { + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Image drawn as the Foreground image. + */ + image: string; + + /** + * Image drawn as the background image. + */ + mask: string; + + /** + * Blend mode to use to combine layers. + */ + mode: number; + + /** + * Color to combine with the image, as a color name or hex triplet. + */ + tint: string; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.MaskedImage, event: MaskedImageEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: MaskedImageEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMask(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTint(): string; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.MaskedImage, event: MaskedImageEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setImage(image: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMask(mask: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMode(mode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTint(tint: string): void; + + } + /** + * The 2D Matrix is an object for holding values for an affine transformation matrix. + */ + class Matrix2D extends Titanium.Proxy { + /** + * The entry at position [1,1] in the matrix. + */ + a: number; + + /** + * The entry at position [1,2] in the matrix. + */ + b: number; + + /** + * The entry at position [2,1] in the matrix. + */ + c: number; + + /** + * The entry at position [2,2] in the matrix. + */ + d: number; + + /** + * The entry at position [3,1] in the matrix. + */ + tx: number; + + /** + * The entry at position [3,2] in the matrix. + */ + ty: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getA(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getB(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getC(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getD(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTx(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTy(): number; + + /** + * Returns a matrix constructed by inverting this matrix. + */ + invert(): Titanium.UI.Matrix2D; + + /** + * Returns a matrix constructed by combining two existing matrices. + */ + multiply(t2: Titanium.UI.Matrix2D): Titanium.UI.Matrix2D; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Returns a matrix constructed by rotating this matrix. + */ + rotate(angle: number, toAngle?: number): Titanium.UI.Matrix2D; + + /** + * Returns a `Matrix2D` object that specifies a scaling animation from one scale to another. + */ + scale(sx: number, sy: number, toSx?: number, toSy?: number): Titanium.UI.Matrix2D; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setA(a: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setB(b: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setC(c: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setD(d: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTx(tx: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTy(ty: number): void; + + /** + * Returns a matrix constructed by applying a translation transform to this matrix. + */ + translate(tx: number, ty: number): Titanium.UI.Matrix2D; + + } + /** + * The 3D Matrix is an object for holding values for a 3D affine transform. + */ + class Matrix3D extends Titanium.Proxy { + /** + * The entry at position [1,1] in the matrix. + */ + m11: number; + + /** + * The entry at position [1,2] in the matrix. + */ + m12: number; + + /** + * The entry at position [1,3] in the matrix. + */ + m13: number; + + /** + * The entry at position [1,4] in the matrix. + */ + m14: number; + + /** + * The entry at position [2,1] in the matrix. + */ + m21: number; + + /** + * The entry at position [2,2] in the matrix. + */ + m22: number; + + /** + * The entry at position [2,3] in the matrix. + */ + m23: number; + + /** + * The entry at position [2,4] in the matrix. + */ + m24: number; + + /** + * The entry at position [3,1] in the matrix. + */ + m31: number; + + /** + * The entry at position [3,2] in the matrix. + */ + m32: number; + + /** + * The entry at position [3,3] in the matrix. + */ + m33: number; + + /** + * The entry at position [3,4] in the matrix. + */ + m34: number; + + /** + * The entry at position [4,1] in the matrix. + */ + m41: number; + + /** + * The entry at position [4,2] in the matrix. + */ + m42: number; + + /** + * The entry at position [4,3] in the matrix. + */ + m43: number; + + /** + * The entry at position [4,4] in the matrix. + */ + m44: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM11(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM12(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM13(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM14(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM21(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM22(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM23(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM24(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM31(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM32(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM33(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM34(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM41(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM42(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM43(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getM44(): number; + + /** + * Returns a matrix constructed by inverting this matrix. + */ + invert(): Titanium.UI.Matrix3D; + + /** + * Returns a matrix constructed by combining two existing matrix. + */ + multiply(t2: Titanium.UI.Matrix3D): Titanium.UI.Matrix3D; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Returns a matrix constructed by rotating this matrix. + */ + rotate(angle: number, x: number, y: number, z: number): Titanium.UI.Matrix3D; + + /** + * Returns a matrix constructed by scaling this matrix. + */ + scale(sx: number, sy: number, sz: number): Titanium.UI.Matrix3D; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM11(m11: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM12(m12: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM13(m13: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM14(m14: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM21(m21: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM22(m22: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM23(m23: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM24(m24: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM31(m31: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM32(m32: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM33(m33: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM34(m34: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM41(m41: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM42(m42: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM43(m43: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setM44(m44: number): void; + + /** + * Returns a matrix constructed by translating an existing matrix. + */ + translate(tx: number, ty: number, tz: number): Titanium.UI.Matrix3D; + + } + /** + * Base event for class Titanium.UI.NavigationWindow + */ + interface NavigationWindowBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.NavigationWindow; + + } + /** + * Fired when the device detects a click against the view. + */ + interface NavigationWindow_click_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface NavigationWindow_dblclick_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface NavigationWindow_doubletap_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the window gains focus. + */ + interface NavigationWindow_focus_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface NavigationWindow_keypressed_Event extends NavigationWindowBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface NavigationWindow_longclick_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface NavigationWindow_longpress_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface NavigationWindow_pinch_Event extends NavigationWindowBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface NavigationWindow_postlayout_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface NavigationWindow_singletap_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface NavigationWindow_swipe_Event extends NavigationWindowBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface NavigationWindow_touchcancel_Event extends NavigationWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface NavigationWindow_touchend_Event extends NavigationWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface NavigationWindow_touchmove_Event extends NavigationWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface NavigationWindow_touchstart_Event extends NavigationWindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface NavigationWindow_twofingertap_Event extends NavigationWindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the back button is pressed by the user. + */ + interface NavigationWindow_androidback_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the Camera button is released. + */ + interface NavigationWindow_androidcamera_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the Camera button is half-pressed then released. + */ + interface NavigationWindow_androidfocus_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the Search button is released. + */ + interface NavigationWindow_androidsearch_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the volume down button is released. + */ + interface NavigationWindow_androidvoldown_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the volume up button is released. + */ + interface NavigationWindow_androidvolup_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the window loses focus. + */ + interface NavigationWindow_blur_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the window is closed. + */ + interface NavigationWindow_close_Event extends NavigationWindowBaseEvent { + } + /** + * Fired when the window is opened. + */ + interface NavigationWindow_open_Event extends NavigationWindowBaseEvent { + } + interface NavigationWindowEventMap extends ProxyEventMap { + androidback: NavigationWindow_androidback_Event; + + androidcamera: NavigationWindow_androidcamera_Event; + + androidfocus: NavigationWindow_androidfocus_Event; + + androidsearch: NavigationWindow_androidsearch_Event; + + androidvoldown: NavigationWindow_androidvoldown_Event; + + androidvolup: NavigationWindow_androidvolup_Event; + + blur: NavigationWindow_blur_Event; + + click: NavigationWindow_click_Event; + + close: NavigationWindow_close_Event; + + dblclick: NavigationWindow_dblclick_Event; + + doubletap: NavigationWindow_doubletap_Event; + + focus: NavigationWindow_focus_Event; + + keypressed: NavigationWindow_keypressed_Event; + + longclick: NavigationWindow_longclick_Event; + + longpress: NavigationWindow_longpress_Event; + + open: NavigationWindow_open_Event; + + pinch: NavigationWindow_pinch_Event; + + postlayout: NavigationWindow_postlayout_Event; + + singletap: NavigationWindow_singletap_Event; + + swipe: NavigationWindow_swipe_Event; + + touchcancel: NavigationWindow_touchcancel_Event; + + touchend: NavigationWindow_touchend_Event; + + touchmove: NavigationWindow_touchmove_Event; + + touchstart: NavigationWindow_touchstart_Event; + + twofingertap: NavigationWindow_twofingertap_Event; + + } + /** + * A `NavigationWindow` implements a specialized view that manages the navigation of hierarchical + * content. + */ + class NavigationWindow extends Titanium.UI.Window { + /** + * Title for the back button. This is only valid when the window is a child of a tab. + */ + backButtonTitle: never; + + /** + * The image to show as the back button. This is only valid when the window is a child of a tab. + */ + backButtonTitleImage: never; + + /** + * Background color for the nav bar, as a color name or hex triplet. + */ + barColor: never; + + /** + * Background image for the nav bar, specified as a URL to a local image. + */ + barImage: never; + + /** + * Set this to true to hide the shadow image of the navigation bar. + */ + hideShadow: never; + + /** + * View to show in the left nav bar area. + */ + leftNavButton: never; + + /** + * Hides the navigation bar (`true`) or shows the navigation bar (`false`). + */ + navBarHidden: never; + + /** + * The tintColor to apply to the navigation bar. + */ + navTintColor: never; + + /** + * View to show in the right nav bar area. + */ + rightNavButton: never; + + /** + * Shadow image for the navigation bar, specified as a URL to a local image.. + */ + shadowImage: never; + + /** + * Boolean value indicating if the user should be able to close a window using a swipe gesture. + */ + swipeToClose: never; + + /** + * Boolean value indicating if the tab bar should be hidden. + */ + tabBarHidden: never; + + /** + * Title of the window. + */ + title: never; + + /** + * View to show in the title area of the nav bar. + */ + titleControl: never; + + /** + * Image to show in the title area of the nav bar, specified as a local file path or URL. + */ + titleImage: never; + + /** + * Title prompt for the window. + */ + titlePrompt: never; + + /** + * Key identifying a string from the locale file to use for the window title. + */ + titleid: never; + + /** + * Key identifying a string from the locale file to use for the window title prompt. + */ + titlepromptid: never; + + /** + * Array of button objects to show in the window's toolbar. + */ + toolbar: never; + + /** + * Use a transition animation when opening or closing windows in a + * or . + */ + transitionAnimation: never; + + /** + * Boolean value indicating if the nav bar is translucent. + */ + translucent: never; + + /** + * Loads a JavaScript file from a local URL. + * @deprecated + */ + url: never; + + /** + * Window to add to this navigation window. + */ + window: Titanium.UI.Window; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.NavigationWindow, event: NavigationWindowEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Closes a window and removes it from the navigation window. + */ + closeWindow(window: Titanium.UI.Window, options: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: NavigationWindowEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackButtonTitle: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackButtonTitleImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHideShadow: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftNavButton: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavBarHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavTintColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightNavButton: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSwipeToClose: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTabBarHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleControl: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitlePrompt: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleid: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitlepromptid: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getToolbar: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransitionAnimation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslucent: never; + + /** + * Gets the value of the property. + * @deprecated + */ + getUrl: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWindow(): Titanium.UI.Window; + + /** + * Hides the tab bar. Must be called before opening the window. + */ + hideTabBar: never; + + /** + * Opens a window within the navigation window. + */ + openWindow(window: Titanium.UI.Window, options?: AnimatedOptions): void; + + /** + * Closes all windows that are currently opened inside the navigation window. + */ + popToRootWindow(options?: AnimatedOptions): void; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.NavigationWindow, event: NavigationWindowEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackButtonTitle: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackButtonTitleImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHideShadow: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftNavButton: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNavBarHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNavTintColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightNavButton: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSwipeToClose: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabBarHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleControl: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitlePrompt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleid: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitlepromptid: never; + + /** + * Sets the array of items to show in the window's toolbar. + */ + setToolbar: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransitionAnimation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslucent: never; + + /** + * Sets the value of the property. + * @deprecated + */ + setUrl: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWindow(window: Titanium.UI.Window): void; + + } + /** + * A toast notification. + */ + class Notification extends Titanium.Proxy { + /** + * Determines how long the notification stays on screen. + */ + duration: number; + + /** + * Determines the location at which the notification should appear on the screen. + */ + gravity: number; + + /** + * Horizontal placement of the notification, *as a fraction of the screen width*. + */ + horizontalMargin: number; + + /** + * Notification text to display. + */ + message: string; + + /** + * Vertical placement of the notifcation, *as a fraction of the screen height*. + */ + verticalMargin: number; + + /** + * X offset from the default position, in pixels. + */ + xOffset: number; + + /** + * Y offset from the default position, in pixels. + */ + yOffset: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getGravity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalMargin(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalMargin(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getXOffset(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getYOffset(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDuration(duration: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setGravity(gravity: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalMargin(horizontalMargin: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessage(message: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalMargin(verticalMargin: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setXOffset(xOffset: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setYOffset(yOffset: number): void; + + /** + * Show the notification. + */ + show(): void; + + } + /** + * Base event for class Titanium.UI.OptionDialog + */ + interface OptionDialogBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.OptionDialog; + + } + /** + * Fired when an option of this dialog is clicked or, under certain circumstances, when this + * dialog is dismissed. + */ + interface OptionDialog_click_Event extends OptionDialogBaseEvent { + /** + * Indicates whether the index returned by the `index` property relates to a button rather + * than an option item. + */ + button: boolean; + + /** + * Boolean type on Android; Number on iOS. + * On Android, indicates whether the cancel button was clicked, in which + * case returns `true`. + * On iOS, the value of the [cancel](Titanium.UI.OptionDialog.cancel) + * property is returned, if defined, or `-1` otherwise. + */ + cancel: boolean | number; + + /** + * Index of the destructive option if defined or `-1` otherwise. + */ + destructive: number; + + /** + * Index of the option that was pressed. See description for result of the dialog being + * dismissed in some other way. + */ + index: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface OptionDialog_dblclick_Event extends OptionDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface OptionDialog_doubletap_Event extends OptionDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface OptionDialog_focus_Event extends OptionDialogBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface OptionDialog_keypressed_Event extends OptionDialogBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface OptionDialog_longclick_Event extends OptionDialogBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface OptionDialog_longpress_Event extends OptionDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface OptionDialog_pinch_Event extends OptionDialogBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface OptionDialog_postlayout_Event extends OptionDialogBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface OptionDialog_singletap_Event extends OptionDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface OptionDialog_swipe_Event extends OptionDialogBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface OptionDialog_touchcancel_Event extends OptionDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface OptionDialog_touchend_Event extends OptionDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface OptionDialog_touchmove_Event extends OptionDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface OptionDialog_touchstart_Event extends OptionDialogBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface OptionDialog_twofingertap_Event extends OptionDialogBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface OptionDialogEventMap extends ProxyEventMap { + click: OptionDialog_click_Event; + + dblclick: OptionDialog_dblclick_Event; + + doubletap: OptionDialog_doubletap_Event; + + focus: OptionDialog_focus_Event; + + keypressed: OptionDialog_keypressed_Event; + + longclick: OptionDialog_longclick_Event; + + longpress: OptionDialog_longpress_Event; + + pinch: OptionDialog_pinch_Event; + + postlayout: OptionDialog_postlayout_Event; + + singletap: OptionDialog_singletap_Event; + + swipe: OptionDialog_swipe_Event; + + touchcancel: OptionDialog_touchcancel_Event; + + touchend: OptionDialog_touchend_Event; + + touchmove: OptionDialog_touchmove_Event; + + touchstart: OptionDialog_touchstart_Event; + + twofingertap: OptionDialog_twofingertap_Event; + + } + /** + * An option dialog is a modal view that includes a message and one or more option items positioned + * in the middle of the display on Android and at the bottom edge on iOS. On Android, buttons may + * be added below the options. + */ + class OptionDialog extends Titanium.UI.View { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * View to load inside the message area, to create a custom layout. + */ + androidView: Titanium.UI.View; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: never; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: never; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * View's bottom position, in platform-specific units. + */ + bottom: never; + + /** + * List of button names. + */ + buttonNames: string[]; + + /** + * Index to define the cancel option. + */ + cancel: number; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * View's clipping behavior. + */ + clipMode: never; + + /** + * Index to define the destructive option, indicated by a visual cue when rendered. + */ + destructive: number; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: never; + + /** + * View height, in platform-specific units. + */ + height: never; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Determines whether to keep the device screen on. + */ + keepScreenOn: never; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * View's left position, in platform-specific units. + */ + left: never; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: never; + + /** + * Boolean value indicating if the option dialog should have an opaque background. + */ + opaquebackground: boolean; + + /** + * List of option names to display in the dialog. + */ + options: string[]; + + /** + * When on, animate call overrides current animation if applicable. + */ + overrideCurrentAnimation: never; + + /** + * Boolean value indicating if the option dialog should only be cancelled by user gesture or by hide method. + */ + persistent: boolean; + + /** + * Background color of the wrapper view when this view is used as either or . + * Defaults to `undefined`. Results in a light grey background color on the wrapper view. + */ + pullBackgroundColor: never; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: never; + + /** + * View's right position, in platform-specific units. + */ + right: never; + + /** + * Defines the default selected option. Since `8.1.0`, if not defined or -1 it will show a normal list instead of radio buttons. + */ + selectedIndex: number; + + /** + * The size of the view in system units. + */ + readonly size: never; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * Title of the dialog. + */ + title: string; + + /** + * Key identifying a string in the locale file to use for the title text. + */ + titleid: string; + + /** + * The view's top position. + */ + top: never; + + /** + * Determines whether view should receive touch events. + */ + touchEnabled: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * Determines the color of the shadow. + */ + viewShadowColor: never; + + /** + * Determines the offset for the shadow of the view. + */ + viewShadowOffset: never; + + /** + * Determines the blur radius used to create the shadow. + */ + viewShadowRadius: never; + + /** + * Determines whether the view is visible. + */ + visible: never; + + /** + * View's width, in platform-specific units. + */ + width: never; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.OptionDialog, event: OptionDialogEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Translates a point from this view's coordinate system to another view's coordinate system. + */ + convertPointToView: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: OptionDialogEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAndroidView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getButtonNames(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCancel(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClipMode: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDestructive(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepScreenOn: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpaquebackground(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOptions(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverrideCurrentAnimation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPersistent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPullBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedIndex(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchEnabled: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowOffset: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Hides this dialog. + */ + hide(params?: hideParams): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.OptionDialog, event: OptionDialogEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAndroidView(androidView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setButtonNames(buttonNames: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCancel(cancel: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClipMode: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDestructive(destructive: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepScreenOn: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpaquebackground(opaquebackground: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOptions(options: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverrideCurrentAnimation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPersistent(persistent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPullBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedIndex(selectedIndex: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleid(titleid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchEnabled: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowOffset: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Shows this dialog. + */ + show(params?: showParams): void; + + /** + * Returns an image of the rendered view, as a Blob. + */ + toImage: never; + + } + /** + * Base event for class Titanium.UI.Picker + */ + interface PickerBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Picker; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Picker_click_Event extends PickerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Picker_dblclick_Event extends PickerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Picker_doubletap_Event extends PickerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface Picker_focus_Event extends PickerBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Picker_keypressed_Event extends PickerBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface Picker_longclick_Event extends PickerBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface Picker_longpress_Event extends PickerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Picker_pinch_Event extends PickerBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Picker_postlayout_Event extends PickerBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Picker_singletap_Event extends PickerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Picker_swipe_Event extends PickerBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Picker_touchcancel_Event extends PickerBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Picker_touchend_Event extends PickerBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Picker_touchmove_Event extends PickerBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Picker_touchstart_Event extends PickerBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Picker_twofingertap_Event extends PickerBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the value of any column's row is changed. + */ + interface Picker_change_Event extends PickerBaseEvent { + /** + * The column object. On iOS, only applicable to + * picker types. + */ + column: Titanium.UI.PickerColumn; + + /** + * Selected column index. On iOS, only applicable to + * picker types. + */ + columnIndex: number; + + /** + * The selected duration in milliseconds. Applicable to picker types. + */ + countDownDuration: number; + + /** + * The row object. On iOS, only applicable to picker types. + */ + row: Titanium.UI.PickerRow; + + /** + * Selected row index. On iOS, only applicable to + * picker types. + */ + rowIndex: number; + + /** + * Array of selected values, one element per column in the picker. Applicable to + * picker types. + */ + selectedValue: string[]; + + /** + * The selected value. Applicable to date/time pickers only. This property is read-only + * on Android. + */ + value: string; + + } + interface PickerEventMap extends ProxyEventMap { + change: Picker_change_Event; + + click: Picker_click_Event; + + dblclick: Picker_dblclick_Event; + + doubletap: Picker_doubletap_Event; + + focus: Picker_focus_Event; + + keypressed: Picker_keypressed_Event; + + longclick: Picker_longclick_Event; + + longpress: Picker_longpress_Event; + + pinch: Picker_pinch_Event; + + postlayout: Picker_postlayout_Event; + + singletap: Picker_singletap_Event; + + swipe: Picker_swipe_Event; + + touchcancel: Picker_touchcancel_Event; + + touchend: Picker_touchend_Event; + + touchmove: Picker_touchmove_Event; + + touchstart: Picker_touchstart_Event; + + twofingertap: Picker_twofingertap_Event; + + } + /** + * A control used to select one or more fixed values. + */ + class Picker extends Titanium.UI.View { + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * Background color of the picker, as a color name or hex triplet. + */ + backgroundColor: string; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Determines whether the calenderView is visible. + */ + calendarViewShown: boolean; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Columns used for this picker, as an array of objects. + */ + columns: Titanium.UI.PickerColumn[]; + + /** + * Duration in milliseconds used for a Countdown Timer picker. + */ + countDownDuration: number; + + /** + * Sets the text color of date- and time-pickers. + */ + dateTimeColor: string; + + /** + * Font to use for text. + */ + font: Font; + + /** + * Determines whether the Time pickers display in 24-hour or 12-hour clock format. + */ + format24: boolean; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * Locale used when displaying Date and Time picker values. + */ + locale: string; + + /** + * Maximum date displayed when a Date picker is in use. + */ + maxDate: Date; + + /** + * Minimum date displayed when a Date picker is in use. + */ + minDate: Date; + + /** + * Interval in minutes displayed when one of the Time types of pickers is in use. + */ + minuteInterval: number; + + /** + * Creates a native Android control for creating a Time Spinner with Type `Ti.UI.PICKER_TYPE_TIME`. + * This is invoked rather than the default native "dropdown" style. + */ + nativeSpinner: boolean; + + /** + * Determines whether the visual selection indicator is shown. + */ + selectionIndicator: boolean; + + /** + * Determines whether calling the method `setSelectedRow` opens when called + */ + selectionOpens: boolean; + + /** + * The view's tintColor + */ + tintColor: never; + + /** + * Determines the type of picker displayed + */ + type: number; + + /** + * Determines whether the non-native Android control, with a spinning wheel that looks and + * behaves like the iOS picker, is invoked rather than the default native "dropdown" style. + * @deprecated This property is deprecated. Please use the default native "dropdown" style. + */ + useSpinner: boolean; + + /** + * Date and time value for Date and Time pickers. + */ + value: Date; + + /** + * Number of visible rows to display. This is only applicable to a plain picker and when the + * `useSpinner` is `true`. + */ + visibleItems: number; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds rows or columns to the picker. + */ + add(data: Titanium.UI.PickerRow[] | Titanium.UI.PickerRow | Titanium.UI.PickerColumn[] | Titanium.UI.PickerColumn): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Picker, event: PickerEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: PickerEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCalendarViewShown(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColumns(): Titanium.UI.PickerColumn[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCountDownDuration(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDateTimeColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFormat24(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLocale(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxDate(): Date; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinDate(): Date; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinuteInterval(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNativeSpinner(): boolean; + + /** + * Gets the selected row for a column, or `null` if none exists. + */ + getSelectedRow(index: number): Titanium.UI.PickerRow; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectionIndicator(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectionOpens(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getType(): number; + + /** + * Gets the value of the property. + * @deprecated This property is deprecated. Please use the default native "dropdown" style. + */ + getUseSpinner(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): Date; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisibleItems(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Repopulates values for a column. + */ + reloadColumn(column: Titanium.UI.PickerColumn): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Picker, event: PickerEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCalendarViewShown(calendarViewShown: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColumns(columns: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCountDownDuration(countDownDuration: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDateTimeColor(dateTimeColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFormat24(format24: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLocale(locale: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxDate(maxDate: Date): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinDate(minDate: Date): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinuteInterval(minuteInterval: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNativeSpinner(nativeSpinner: boolean): void; + + /** + * Selects a column's row. + */ + setSelectedRow(column: number, row: number, animated?: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectionIndicator(selectionIndicator: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectionOpens(selectionOpens: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setType(type: number): void; + + /** + * Sets the value of the property. + * @deprecated This property is deprecated. Please use the default native "dropdown" style. + */ + setUseSpinner(useSpinner: boolean): void; + + /** + * Sets the date and time value property for Date pickers. + */ + setValue(date: any, suppressEvent: boolean): Titanium.UI.PickerRow; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisibleItems(visibleItems: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Shows Date picker as a modal dialog. + */ + showDatePickerDialog(dictObj: any): void; + + /** + * Shows Time picker as a modal dialog. + */ + showTimePickerDialog(dictObj: any): void; + + } + /** + * Base event for class Titanium.UI.PickerColumn + */ + interface PickerColumnBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.PickerColumn; + + } + /** + * Fired when the device detects a click against the view. + */ + interface PickerColumn_click_Event extends PickerColumnBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface PickerColumn_dblclick_Event extends PickerColumnBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface PickerColumn_doubletap_Event extends PickerColumnBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface PickerColumn_focus_Event extends PickerColumnBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface PickerColumn_keypressed_Event extends PickerColumnBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface PickerColumn_longclick_Event extends PickerColumnBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface PickerColumn_longpress_Event extends PickerColumnBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface PickerColumn_pinch_Event extends PickerColumnBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface PickerColumn_postlayout_Event extends PickerColumnBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface PickerColumn_singletap_Event extends PickerColumnBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface PickerColumn_swipe_Event extends PickerColumnBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface PickerColumn_touchcancel_Event extends PickerColumnBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface PickerColumn_touchend_Event extends PickerColumnBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface PickerColumn_touchmove_Event extends PickerColumnBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface PickerColumn_touchstart_Event extends PickerColumnBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface PickerColumn_twofingertap_Event extends PickerColumnBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface PickerColumnEventMap extends ProxyEventMap { + click: PickerColumn_click_Event; + + dblclick: PickerColumn_dblclick_Event; + + doubletap: PickerColumn_doubletap_Event; + + focus: PickerColumn_focus_Event; + + keypressed: PickerColumn_keypressed_Event; + + longclick: PickerColumn_longclick_Event; + + longpress: PickerColumn_longpress_Event; + + pinch: PickerColumn_pinch_Event; + + postlayout: PickerColumn_postlayout_Event; + + singletap: PickerColumn_singletap_Event; + + swipe: PickerColumn_swipe_Event; + + touchcancel: PickerColumn_touchcancel_Event; + + touchend: PickerColumn_touchend_Event; + + touchmove: PickerColumn_touchmove_Event; + + touchstart: PickerColumn_touchstart_Event; + + twofingertap: PickerColumn_twofingertap_Event; + + } + /** + * A picker column, representing a selectable group of items in a . + */ + class PickerColumn extends Titanium.UI.View { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: never; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: never; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * View's bottom position, in platform-specific units. + */ + bottom: never; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * View's clipping behavior. + */ + clipMode: never; + + /** + * Base elevation of the view relative to its parent in pixels. + */ + elevation: never; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: never; + + /** + * Font to use for text. + */ + font: Font; + + /** + * View height, in platform-specific units. + */ + height: never; + + /** + * Sets the behavior when hiding an object to release or keep the free space + */ + hiddenBehavior: never; + + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: never; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Determines whether to keep the device screen on. + */ + keepScreenOn: never; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * View's left position, in platform-specific units. + */ + left: never; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: never; + + /** + * When on, animate call overrides current animation if applicable. + */ + overrideCurrentAnimation: never; + + /** + * The preview context used in the 3D-Touch feature "Peek and Pop". + */ + previewContext: never; + + /** + * Background color of the wrapper view when this view is used as either or . + * Defaults to `undefined`. Results in a light grey background color on the wrapper view. + */ + pullBackgroundColor: never; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: never; + + /** + * View's right position, in platform-specific units. + */ + right: never; + + /** + * Clockwise 2D rotation of the view in degrees. + */ + rotation: never; + + /** + * Clockwise rotation of the view in degrees (x-axis). + */ + rotationX: never; + + /** + * Clockwise rotation of the view in degrees (y-axis). + */ + rotationY: never; + + /** + * Number of rows in this column. + */ + readonly rowCount: number; + + /** + * Rows of this column. + */ + readonly rows: Titanium.UI.PickerRow[]; + + /** + * Scaling of the view in x-axis in pixels. + */ + scaleX: never; + + /** + * Scaling of the view in y-axis in pixels. + */ + scaleY: never; + + /** + * The size of the view in system units. + */ + readonly size: never; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * The view's tintColor + */ + tintColor: never; + + /** + * The view's top position. + */ + top: never; + + /** + * Determines whether view should receive touch events. + */ + touchEnabled: never; + + /** + * A material design visual construct that provides an instantaneous visual confirmation of touch point. + */ + touchFeedback: never; + + /** + * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. + */ + touchFeedbackColor: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * A name to identify this view in activity transition. + */ + transitionName: never; + + /** + * Horizontal location of the view relative to its left position in pixels. + */ + translationX: never; + + /** + * Vertical location of the view relative to its top position in pixels. + */ + translationY: never; + + /** + * Depth of the view relative to its elevation in pixels. + */ + translationZ: never; + + /** + * Adds a vertical parallax effect to the view + */ + verticalMotionEffect: never; + + /** + * Determines the color of the shadow. + */ + viewShadowColor: never; + + /** + * Determines the offset for the shadow of the view. + */ + viewShadowOffset: never; + + /** + * Determines the blur radius used to create the shadow. + */ + viewShadowRadius: never; + + /** + * Determines whether the view is visible. + */ + visible: never; + + /** + * View's width, in platform-specific units. + */ + width: never; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.PickerColumn, event: PickerColumnEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds a row to this column. + */ + addRow(row: Titanium.UI.PickerRow): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Removes all previously added motion effects. + */ + clearMotionEffects: never; + + /** + * Translates a point from this view's coordinate system to another view's coordinate system. + */ + convertPointToView: never; + + /** + * Finishes a batch update of the View's layout properties and schedules a layout pass of the + * view tree. + * @deprecated Use the [applyProperties](Titanium.Proxy.applyProperties) method to batch-update layout properties. + */ + finishLayout: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: PickerColumnEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClipMode: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getElevation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHiddenBehavior: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalMotionEffect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepScreenOn: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverrideCurrentAnimation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPreviewContext: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPullBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRotation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRotationX: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRotationY: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRowCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRows(): Titanium.UI.PickerRow[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScaleX: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScaleY: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchEnabled: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchFeedback: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchFeedbackColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransitionName: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslationX: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslationY: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslationZ: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalMotionEffect: never; + + /** + * Returns the matching view of a given view ID. + */ + getViewById: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowOffset: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Hides this view. + */ + hide: never; + + /** + * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + insertAt: never; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.PickerColumn, event: PickerColumnEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes a row from this column. + */ + removeRow(row: Titanium.UI.PickerRow): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClipMode: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setElevation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHiddenBehavior: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalMotionEffect: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepScreenOn: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverrideCurrentAnimation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPreviewContext: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPullBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRotation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRotationX: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRotationY: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScaleX: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScaleY: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchEnabled: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchFeedback: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchFeedbackColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransitionName: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslationX: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslationY: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslationZ: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalMotionEffect: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowOffset: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Makes this view visible. + */ + show: never; + + /** + * Starts a batch update of this view's layout properties. + * @deprecated Use the [Titanium.Proxy.applyProperties](Titanium.Proxy.applyProperties) method to batch-update layout properties. + */ + startLayout: never; + + /** + * Returns an image of the rendered view, as a Blob. + */ + toImage: never; + + /** + * Performs a batch update of all supplied layout properties and schedules a layout pass after + * they have been updated. + * @deprecated Use the [Titanium.Proxy.applyProperties](Titanium.Proxy.applyProperties) method to batch-update layout properties. + */ + updateLayout: never; + + } + /** + * Base event for class Titanium.UI.PickerRow + */ + interface PickerRowBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.PickerRow; + + } + /** + * Fired when the device detects a click against the view. + */ + interface PickerRow_click_Event extends PickerRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface PickerRow_dblclick_Event extends PickerRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface PickerRow_doubletap_Event extends PickerRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface PickerRow_focus_Event extends PickerRowBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface PickerRow_keypressed_Event extends PickerRowBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface PickerRow_longclick_Event extends PickerRowBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface PickerRow_longpress_Event extends PickerRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface PickerRow_pinch_Event extends PickerRowBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface PickerRow_postlayout_Event extends PickerRowBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface PickerRow_singletap_Event extends PickerRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface PickerRow_swipe_Event extends PickerRowBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface PickerRow_touchcancel_Event extends PickerRowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface PickerRow_touchend_Event extends PickerRowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface PickerRow_touchmove_Event extends PickerRowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface PickerRow_touchstart_Event extends PickerRowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface PickerRow_twofingertap_Event extends PickerRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface PickerRowEventMap extends ProxyEventMap { + click: PickerRow_click_Event; + + dblclick: PickerRow_dblclick_Event; + + doubletap: PickerRow_doubletap_Event; + + focus: PickerRow_focus_Event; + + keypressed: PickerRow_keypressed_Event; + + longclick: PickerRow_longclick_Event; + + longpress: PickerRow_longpress_Event; + + pinch: PickerRow_pinch_Event; + + postlayout: PickerRow_postlayout_Event; + + singletap: PickerRow_singletap_Event; + + swipe: PickerRow_swipe_Event; + + touchcancel: PickerRow_touchcancel_Event; + + touchend: PickerRow_touchend_Event; + + touchmove: PickerRow_touchmove_Event; + + touchstart: PickerRow_touchstart_Event; + + twofingertap: PickerRow_twofingertap_Event; + + } + /** + * A picker row, representing a selectable item in a . + */ + class PickerRow extends Titanium.UI.View { + /** + * Color of the item text, as a color name or hex triplet. + */ + color: string; + + /** + * Font to use for the item text. + */ + font: Font; + + /** + * Item text. + */ + title: string; + + /** + * Adds a child view to this picker row, to provide a custom row. + */ + add(view: Titanium.UI.View): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.PickerRow, event: PickerRowEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: PickerRowEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.PickerRow, event: PickerRowEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + } + /** + * Base event for class Titanium.UI.ProgressBar + */ + interface ProgressBarBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.ProgressBar; + + } + /** + * Fired when the device detects a click against the view. + */ + interface ProgressBar_click_Event extends ProgressBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface ProgressBar_dblclick_Event extends ProgressBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface ProgressBar_doubletap_Event extends ProgressBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface ProgressBar_focus_Event extends ProgressBarBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface ProgressBar_keypressed_Event extends ProgressBarBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface ProgressBar_longclick_Event extends ProgressBarBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface ProgressBar_longpress_Event extends ProgressBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface ProgressBar_pinch_Event extends ProgressBarBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface ProgressBar_postlayout_Event extends ProgressBarBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface ProgressBar_singletap_Event extends ProgressBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface ProgressBar_swipe_Event extends ProgressBarBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface ProgressBar_touchcancel_Event extends ProgressBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface ProgressBar_touchend_Event extends ProgressBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface ProgressBar_touchmove_Event extends ProgressBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface ProgressBar_touchstart_Event extends ProgressBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface ProgressBar_twofingertap_Event extends ProgressBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface ProgressBarEventMap extends ProxyEventMap { + click: ProgressBar_click_Event; + + dblclick: ProgressBar_dblclick_Event; + + doubletap: ProgressBar_doubletap_Event; + + focus: ProgressBar_focus_Event; + + keypressed: ProgressBar_keypressed_Event; + + longclick: ProgressBar_longclick_Event; + + longpress: ProgressBar_longpress_Event; + + pinch: ProgressBar_pinch_Event; + + postlayout: ProgressBar_postlayout_Event; + + singletap: ProgressBar_singletap_Event; + + swipe: ProgressBar_swipe_Event; + + touchcancel: ProgressBar_touchcancel_Event; + + touchend: ProgressBar_touchend_Event; + + touchmove: ProgressBar_touchmove_Event; + + touchstart: ProgressBar_touchstart_Event; + + twofingertap: ProgressBar_twofingertap_Event; + + } + /** + * A progress bar. + */ + class ProgressBar extends Titanium.UI.View { + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Color of the progress bar message, as a color name or hex triplet. + */ + color: string; + + /** + * Font for the progress bar text. + */ + font: Font; + + /** + * Maximum value of the progress bar. + */ + max: number; + + /** + * Progress bar text. + */ + message: string; + + /** + * Minimum value of the progress bar. + */ + min: number; + + /** + * Style of the progress bar. + */ + style: number; + + /** + * The color shown for the portion of the progress bar that is filled. + */ + tintColor: string; + + /** + * The color shown for the portion of the progress bar that is not filled. + */ + trackTintColor: string; + + /** + * Current value of the progress bar. + */ + value: number; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.ProgressBar, event: ProgressBarEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ProgressBarEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMax(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMessage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMin(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTrackTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): number; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.ProgressBar, event: ProgressBarEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMax(max: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMessage(message: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMin(min: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTrackTintColor(trackTintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: number): void; + + } + /** + * Base event for class Titanium.UI.RefreshControl + */ + interface RefreshControlBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.RefreshControl; + + } + /** + * Fired in response to a user initiated an action to refresh the contents of the + * table view, list view or scroll view. + */ + interface RefreshControl_refreshstart_Event extends RefreshControlBaseEvent { + /** + * This is false. This event does not bubble + */ + bubbles: boolean; + + } + /** + * Fired in response to a user finished action to refresh the contents of the + * table view, list view or scroll view. + */ + interface RefreshControl_refreshend_Event extends RefreshControlBaseEvent { + /** + * This is false. This event does not bubble + */ + bubbles: boolean; + + } + interface RefreshControlEventMap extends ProxyEventMap { + refreshend: RefreshControl_refreshend_Event; + + refreshstart: RefreshControl_refreshstart_Event; + + } + /** + * The RefreshControl is a representation of the native iOS + * [UIRefreshControl](https://developer.apple.com/documentation/uikit/uirefreshcontrol) + * and Android [SwipeRefreshLayout](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html). + */ + class RefreshControl extends Titanium.Proxy { + /** + * The tint color for the refresh control, as a color name or hex triplet. + */ + tintColor: string; + + /** + * The attributed title of the control. + */ + title: Titanium.UI.AttributedString; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.RefreshControl, event: RefreshControlEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Tells the control that a refresh operation was started programmatically. + */ + beginRefreshing(): void; + + /** + * Tells the control that a refresh operation has ended. + */ + endRefreshing(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: RefreshControlEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): Titanium.UI.AttributedString; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.RefreshControl, event: RefreshControlEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: Titanium.UI.AttributedString): void; + + } + /** + * Base event for class Titanium.UI.ScrollView + */ + interface ScrollViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.ScrollView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface ScrollView_click_Event extends ScrollViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface ScrollView_dblclick_Event extends ScrollViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface ScrollView_doubletap_Event extends ScrollViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface ScrollView_focus_Event extends ScrollViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface ScrollView_keypressed_Event extends ScrollViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface ScrollView_longclick_Event extends ScrollViewBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface ScrollView_longpress_Event extends ScrollViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface ScrollView_pinch_Event extends ScrollViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface ScrollView_postlayout_Event extends ScrollViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface ScrollView_singletap_Event extends ScrollViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface ScrollView_swipe_Event extends ScrollViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface ScrollView_touchcancel_Event extends ScrollViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface ScrollView_touchend_Event extends ScrollViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface ScrollView_touchmove_Event extends ScrollViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface ScrollView_touchstart_Event extends ScrollViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface ScrollView_twofingertap_Event extends ScrollViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the zoom scale factor changes. + */ + interface ScrollView_scale_Event extends ScrollViewBaseEvent { + /** + * New scaling factor as a float. + */ + scale: number; + + } + /** + * Fired when the scrollable region is scrolled. + */ + interface ScrollView_scroll_Event extends ScrollViewBaseEvent { + /** + * The current content size of the scroll view defined by its `width` and `height` properties. + */ + contentSize: Size; + + /** + * The current scaling factor of the scroll view content. This might not be equal to + * the `zoomScale` property or be within the range specified by `minZoomScale` and `maxZoomScale`. + * This is only available from Release 3.2.3 of the Titanium Mobile SDK. + */ + curZoomScale: number; + + /** + * Indicates whether the scroll is decelerating. + */ + decelerating: boolean; + + /** + * Indicates whether the event was fired during a dragging gesture, where the touch + * remained in contact with the display to physically drag the view, as opposed to it being + * the result of scrolling momentum. + */ + dragging: boolean; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + /** + * Indicates whether the event was fired during a zooming operation. This is only available + * from Release 3.2.3 of the Titanium Mobile SDK. + */ + zooming: boolean; + + } + /** + * Fired when the scrollable region starts being dragged. + */ + interface ScrollView_dragStart_Event extends ScrollViewBaseEvent { + } + /** + * Fired when the scrollable region stops being dragged. + */ + interface ScrollView_dragEnd_Event extends ScrollViewBaseEvent { + /** + * Indicates whether scrolling will continue but decelerate, now that the drag gesture has + * been released by the touch. If `false`, scrolling will stop immediately. + */ + decelerate: boolean; + + } + /** + * Fired when the scrollable region starts being dragged. + */ + interface ScrollView_dragstart_Event extends ScrollViewBaseEvent { + } + /** + * Fired when the scrollable region stops being dragged. + */ + interface ScrollView_dragend_Event extends ScrollViewBaseEvent { + /** + * Indicates whether scrolling will continue but decelerate, now that the drag gesture has + * been released by the touch. If `false`, scrolling will stop immediately. + * Is always `true` on Android. + */ + decelerate: boolean; + + } + interface ScrollViewEventMap extends ProxyEventMap { + click: ScrollView_click_Event; + + dblclick: ScrollView_dblclick_Event; + + doubletap: ScrollView_doubletap_Event; + + dragEnd: ScrollView_dragEnd_Event; + + dragStart: ScrollView_dragStart_Event; + + dragend: ScrollView_dragend_Event; + + dragstart: ScrollView_dragstart_Event; + + focus: ScrollView_focus_Event; + + keypressed: ScrollView_keypressed_Event; + + longclick: ScrollView_longclick_Event; + + longpress: ScrollView_longpress_Event; + + pinch: ScrollView_pinch_Event; + + postlayout: ScrollView_postlayout_Event; + + scale: ScrollView_scale_Event; + + scroll: ScrollView_scroll_Event; + + singletap: ScrollView_singletap_Event; + + swipe: ScrollView_swipe_Event; + + touchcancel: ScrollView_touchcancel_Event; + + touchend: ScrollView_touchend_Event; + + touchmove: ScrollView_touchmove_Event; + + touchstart: ScrollView_touchstart_Event; + + twofingertap: ScrollView_twofingertap_Event; + + } + /** + * A view that contains a horizontally and/or vertically-scrollable region of content. + */ + class ScrollView extends Titanium.UI.View { + /** + * Determines whether this scroll view can cancel subview touches in order to scroll instead. + */ + canCancelEvents: boolean; + + /** + * Height of the scrollable region. + */ + contentHeight: number | string; + + /** + * X and Y coordinates to which to reposition the top-left point of the scrollable region. + */ + contentOffset: Point; + + /** + * Width of the scrollable region. + */ + contentWidth: number | string; + + /** + * The deceleration rate of the ScrollView. + */ + decelerationRate: number; + + /** + * Determines whether scroll bounce of the scrollable region is enabled. + */ + disableBounce: boolean; + + /** + * Determines whether horizontal scroll bounce of the scrollable region is enabled. + */ + horizontalBounce: boolean; + + /** + * The manner in which the keyboard is dismissed when a drag begins in the scroll view. + */ + keyboardDismissMode: number; + + /** + * Maximum scaling factor of the scrollable region and its content. + */ + maxZoomScale: number; + + /** + * Minimum scaling factor of the scrollable region and its content. + */ + minZoomScale: number; + + /** + * Determines the behavior when the user overscolls the view. + */ + overScrollMode: number; + + /** + * View positioned above the first row that is only revealed when the user drags the scroll view contents down. + */ + refreshControl: Titanium.UI.RefreshControl; + + /** + * Style of the scrollbar. + */ + scrollIndicatorStyle: number; + + /** + * Limits the direction of the scrollable region, overriding the deduced setting. Set to + * `horizontal` or `vertical`. + */ + scrollType: string; + + /** + * Determines whether scrolling is enabled for the view. + */ + scrollingEnabled: boolean; + + /** + * Controls whether the scroll-to-top gesture is effective. + */ + scrollsToTop: boolean; + + /** + * Determines whether the horizontal scroll indicator is visible. + */ + showHorizontalScrollIndicator: boolean; + + /** + * Determines whether the vertical scroll indicator is visible. + */ + showVerticalScrollIndicator: boolean; + + /** + * Determines whether vertical scroll bounce of the scrollable region is enabled. + */ + verticalBounce: boolean; + + /** + * Scaling factor of the scroll view's content. + */ + zoomScale: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.ScrollView, event: ScrollViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ScrollViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCanCancelEvents(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentHeight(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentOffset(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentWidth(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDecelerationRate(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisableBounce(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalBounce(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardDismissMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxZoomScale(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinZoomScale(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverScrollMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRefreshControl(): Titanium.UI.RefreshControl; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollIndicatorStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollingEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollsToTop(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowHorizontalScrollIndicator(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowVerticalScrollIndicator(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalBounce(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZoomScale(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.ScrollView, event: ScrollViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Moves the specified coordinate of the scrollable region into the viewable area. + */ + scrollTo(x: number, y: number, options?: AnimatedOptions): void; + + /** + * Moves the end of the scrollable region into the viewable area. + */ + scrollToBottom(): void; + + /** + * Moves the top of the scrollable region into the viewable area. + */ + scrollToTop(): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCanCancelEvents(canCancelEvents: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentHeight(contentHeight: number | string): void; + + /** + * Sets the value of the [contentOffset](Titanium.UI.ScrollView.contentOffset) property. + */ + setContentOffset(contentOffsetXY: Point, animated?: AnimatedOptions): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentWidth(contentWidth: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDecelerationRate(decelerationRate: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisableBounce(disableBounce: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalBounce(horizontalBounce: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardDismissMode(keyboardDismissMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxZoomScale(maxZoomScale: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinZoomScale(minZoomScale: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverScrollMode(overScrollMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRefreshControl(refreshControl: Titanium.UI.RefreshControl): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollIndicatorStyle(scrollIndicatorStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollType(scrollType: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollingEnabled(scrollingEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollsToTop(scrollsToTop: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowHorizontalScrollIndicator(showHorizontalScrollIndicator: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowVerticalScrollIndicator(showVerticalScrollIndicator: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalBounce(verticalBounce: boolean): void; + + /** + * Sets the value of the [zoomScale](Titanium.UI.ScrollView.zoomScale) property. + */ + setZoomScale(zoomScale: number, options?: AnimatedOptions): void; + + } + /** + * Base event for class Titanium.UI.ScrollableView + */ + interface ScrollableViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.ScrollableView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface ScrollableView_click_Event extends ScrollableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface ScrollableView_dblclick_Event extends ScrollableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against this page. + */ + interface ScrollableView_doubletap_Event extends ScrollableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface ScrollableView_focus_Event extends ScrollableViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface ScrollableView_keypressed_Event extends ScrollableViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface ScrollableView_longclick_Event extends ScrollableViewBaseEvent { + } + /** + * Fired when the device detects a long press against this view. + */ + interface ScrollableView_longpress_Event extends ScrollableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface ScrollableView_pinch_Event extends ScrollableViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface ScrollableView_postlayout_Event extends ScrollableViewBaseEvent { + } + /** + * Fired when the device detects a single tap against this view. + */ + interface ScrollableView_singletap_Event extends ScrollableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface ScrollableView_swipe_Event extends ScrollableViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch gesture is interrupted by the device. + */ + interface ScrollableView_touchcancel_Event extends ScrollableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface ScrollableView_touchend_Event extends ScrollableViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface ScrollableView_touchmove_Event extends ScrollableViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture against this view. + */ + interface ScrollableView_touchstart_Event extends ScrollableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface ScrollableView_twofingertap_Event extends ScrollableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired repeatedly as the view is being scrolled. + */ + interface ScrollableView_scroll_Event extends ScrollableViewBaseEvent { + /** + * Index of the currently visible view of . + */ + currentPage: number; + + /** + * Current page index that the view is scrolled to as a float. For + * example, if the user is holding the `ScrollableView` in between + * the first and second page, this will have a value of 0.5. + */ + currentPageAsFloat: number; + + /** + * The currently visible view. + */ + view: Titanium.UI.View; + + } + /** + * Fired when the view has stopped moving completely. + */ + interface ScrollableView_scrollend_Event extends ScrollableViewBaseEvent { + /** + * Index of the currently visible view of . + */ + currentPage: number; + + /** + * The currently visible view. + */ + view: Titanium.UI.View; + + } + /** + * Fired when the scrolling drag gesture on the view has been completed. + */ + interface ScrollableView_dragend_Event extends ScrollableViewBaseEvent { + /** + * Index of the currently visible view of . + */ + currentPage: number; + + /** + * The currently visible view. + */ + view: Titanium.UI.View; + + } + interface ScrollableViewEventMap extends ProxyEventMap { + click: ScrollableView_click_Event; + + dblclick: ScrollableView_dblclick_Event; + + doubletap: ScrollableView_doubletap_Event; + + dragend: ScrollableView_dragend_Event; + + focus: ScrollableView_focus_Event; + + keypressed: ScrollableView_keypressed_Event; + + longclick: ScrollableView_longclick_Event; + + longpress: ScrollableView_longpress_Event; + + pinch: ScrollableView_pinch_Event; + + postlayout: ScrollableView_postlayout_Event; + + scroll: ScrollableView_scroll_Event; + + scrollend: ScrollableView_scrollend_Event; + + singletap: ScrollableView_singletap_Event; + + swipe: ScrollableView_swipe_Event; + + touchcancel: ScrollableView_touchcancel_Event; + + touchend: ScrollableView_touchend_Event; + + touchmove: ScrollableView_touchmove_Event; + + touchstart: ScrollableView_touchstart_Event; + + twofingertap: ScrollableView_twofingertap_Event; + + } + /** + * A view that encapsulates a horizontally-scrolling set of child views, known as pages, navigable + * using its built-in horizontal swipe gestures. + */ + class ScrollableView extends Titanium.UI.View { + /** + * Number of pages to cache (pre-render). + */ + cacheSize: number; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Determines whether the previous and next pages are clipped, so that they are not visible + * adjacent to the current page. + */ + clipViews: boolean; + + /** + * Index of the active page. + */ + currentPage: number; + + /** + * Color for the current page of the paging control, as a color name or hex triplet. + */ + currentPageIndicatorColor: string; + + /** + * Determines whether page bouncing effect is disabled. + */ + disableBounce: boolean; + + /** + * Sets the region where this view responds to gestures. + */ + hitRect: Dimension; + + /** + * Determines the behavior when the user overscolls the view. + */ + overScrollMode: number; + + /** + * Determines whether the paging control is added as an overlay to the view. + */ + overlayEnabled: boolean; + + /** + * The padding applied to the scrollable view. + */ + padding: Padding; + + /** + * Color of the paging control, as a color name or hex triplet. + */ + pageIndicatorColor: string; + + /** + * Alpha value of the paging control. + */ + pagingControlAlpha: number; + + /** + * Color of the paging control, as a color name or hex triplet. + */ + pagingControlColor: string; + + /** + * Height of the paging control, in pixels. + */ + pagingControlHeight: number; + + /** + * Determines whether the paging control is displayed at the top or bottom of the view. + */ + pagingControlOnTop: boolean; + + /** + * Number of milliseconds to wait before hiding the paging control. + */ + pagingControlTimeout: number; + + /** + * Determines whether scrolling is enabled for the view. + */ + scrollingEnabled: boolean; + + /** + * Determines whether the paging control is visible. + */ + showPagingControl: boolean; + + /** + * Sets the pages within this Scrollable View. + */ + views: Titanium.UI.View[]; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.ScrollableView, event: ScrollableViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds a new page to this Scrollable View. + */ + addView(view: Titanium.UI.View): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ScrollableViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCacheSize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClipViews(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCurrentPage(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCurrentPageIndicatorColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisableBounce(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHitRect(): Dimension; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverScrollMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverlayEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPadding(): Padding; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPageIndicatorColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPagingControlAlpha(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPagingControlColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPagingControlHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPagingControlOnTop(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPagingControlTimeout(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollingEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowPagingControl(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViews(): Titanium.UI.View[]; + + /** + * Inserts views at the specified position in the [views](Titanium.UI.ScrollableView.views) array. + */ + insertViewsAt(position: number, views: ReadonlyArray): void; + + /** + * Sets the current page to the next consecutive page in . + */ + moveNext(): void; + + /** + * Sets the current page to the previous consecutive page in . + */ + movePrevious(): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.ScrollableView, event: ScrollableViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes an existing page from this Scrollable View. + */ + removeView(view: number | Titanium.UI.View): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Scrolls to the specified page in . + */ + scrollToView(view: number | Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCacheSize(cacheSize: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClipViews(clipViews: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCurrentPage(currentPage: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCurrentPageIndicatorColor(currentPageIndicatorColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisableBounce(disableBounce: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHitRect(hitRect: Dimension): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverScrollMode(overScrollMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverlayEnabled(overlayEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPadding(padding: Padding): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPageIndicatorColor(pageIndicatorColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPagingControlAlpha(pagingControlAlpha: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPagingControlColor(pagingControlColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPagingControlHeight(pagingControlHeight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPagingControlOnTop(pagingControlOnTop: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPagingControlTimeout(pagingControlTimeout: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollingEnabled(scrollingEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowPagingControl(showPagingControl: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViews(views: ReadonlyArray): void; + + } + /** + * Base event for class Titanium.UI.SearchBar + */ + interface SearchBarBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.SearchBar; + + } + /** + * Fired when the device detects a click against the view. + */ + interface SearchBar_click_Event extends SearchBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface SearchBar_dblclick_Event extends SearchBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface SearchBar_doubletap_Event extends SearchBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the search bar gains focus. + */ + interface SearchBar_focus_Event extends SearchBarBaseEvent { + /** + * Value of the search bar. + */ + value: string; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface SearchBar_keypressed_Event extends SearchBarBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface SearchBar_longclick_Event extends SearchBarBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface SearchBar_longpress_Event extends SearchBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface SearchBar_pinch_Event extends SearchBarBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface SearchBar_postlayout_Event extends SearchBarBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface SearchBar_singletap_Event extends SearchBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface SearchBar_swipe_Event extends SearchBarBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface SearchBar_touchcancel_Event extends SearchBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface SearchBar_touchend_Event extends SearchBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface SearchBar_touchmove_Event extends SearchBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface SearchBar_touchstart_Event extends SearchBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface SearchBar_twofingertap_Event extends SearchBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the search bar loses focus. + */ + interface SearchBar_blur_Event extends SearchBarBaseEvent { + /** + * Value of the search bar. + */ + value: string; + + } + /** + * Fired when the bookmark button is pressed. + */ + interface SearchBar_bookmark_Event extends SearchBarBaseEvent { + /** + * Value of the search bar. + */ + value: string; + + } + /** + * Fired when the cancel button is pressed. + */ + interface SearchBar_cancel_Event extends SearchBarBaseEvent { + /** + * Value of the search bar. + */ + value: string; + + } + /** + * Fired when the value of the search bar changes. + */ + interface SearchBar_change_Event extends SearchBarBaseEvent { + /** + * Value of the search bar. + */ + value: string; + + } + /** + * Fired when keyboard search button is pressed. + */ + interface SearchBar_return_Event extends SearchBarBaseEvent { + /** + * Value of the search bar. + */ + value: string; + + } + interface SearchBarEventMap extends ProxyEventMap { + blur: SearchBar_blur_Event; + + bookmark: SearchBar_bookmark_Event; + + cancel: SearchBar_cancel_Event; + + change: SearchBar_change_Event; + + click: SearchBar_click_Event; + + dblclick: SearchBar_dblclick_Event; + + doubletap: SearchBar_doubletap_Event; + + focus: SearchBar_focus_Event; + + keypressed: SearchBar_keypressed_Event; + + longclick: SearchBar_longclick_Event; + + longpress: SearchBar_longpress_Event; + + pinch: SearchBar_pinch_Event; + + postlayout: SearchBar_postlayout_Event; + + return: SearchBar_return_Event; + + singletap: SearchBar_singletap_Event; + + swipe: SearchBar_swipe_Event; + + touchcancel: SearchBar_touchcancel_Event; + + touchend: SearchBar_touchend_Event; + + touchmove: SearchBar_touchmove_Event; + + touchstart: SearchBar_touchstart_Event; + + twofingertap: SearchBar_twofingertap_Event; + + } + /** + * A specialized text field for entering search text. + */ + class SearchBar extends Titanium.UI.View { + /** + * Determines how text is capitalized during typing. + */ + autocapitalization: number; + + /** + * Determines whether the text in the search bar is autocorrected during typing. + */ + autocorrect: boolean; + + /** + * Bar color of the search bar view, as a color name or hex triplet. + */ + barColor: string; + + /** + * The title of the cancel button when the search bar field is focused. + */ + cancelButtonTitle: string; + + /** + * Color of the text in this text field, as a color name or hex triplet. + */ + color: string; + + /** + * Background image of the text field in disabled state, specified as a local file path or URL. + */ + fieldBackgroundDisabledImage: string; + + /** + * Background image of the text field, specified as a local file path or URL. + */ + fieldBackgroundImage: string; + + /** + * Text to show when the search bar field is not focused. + */ + hintText: string; + + /** + * Hint text color to display when the field is empty. + */ + hintTextColor: string; + + /** + * Key identifying a string from the locale file to use for the + * [hintText](Titanium.UI.SearchBar.hintText) property. + */ + hinttextid: string; + + /** + * Determines the appearance of the keyboard to be displayed the field is focused. + */ + keyboardAppearance: number; + + /** + * Keyboard type constant to use when the field is focused. + */ + keyboardType: number; + + /** + * Single line of text displayed at the top of the search bar. + */ + prompt: string; + + /** + * Key identifying a string from the locale file to use for the + * [prompt](Titanium.UI.SearchBar.prompt) property. + */ + promptid: string; + + /** + * Determines whether the bookmark button is displayed. + */ + showBookmark: boolean; + + /** + * Determines whether the cancel button is displayed. + */ + showCancel: boolean; + + /** + * Determines the style of the search bar. + */ + style: number; + + /** + * Value of the search bar. + */ + value: string; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.SearchBar, event: SearchBarEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Causes the search bar to lose focus. + */ + blur(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: SearchBarEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Causes the search bar to gain focus. + */ + focus(): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutocapitalization(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutocorrect(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCancelButtonTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFieldBackgroundDisabledImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFieldBackgroundImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintTextColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHinttextid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardAppearance(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPrompt(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPromptid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowBookmark(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowCancel(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): string; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.SearchBar, event: SearchBarEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutocapitalization(autocapitalization: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutocorrect(autocorrect: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarColor(barColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCancelButtonTitle(cancelButtonTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFieldBackgroundDisabledImage(fieldBackgroundDisabledImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFieldBackgroundImage(fieldBackgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintText(hintText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintTextColor(hintTextColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHinttextid(hinttextid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardAppearance(keyboardAppearance: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardType(keyboardType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPrompt(prompt: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPromptid(promptid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowBookmark(showBookmark: boolean): void; + + /** + * Shows or hides the cancel button. + */ + setShowCancel(showCancel: boolean, options?: AnimatedOptions): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: string): void; + + } + /** + * An application shortcut. + */ + class ShortcutItem extends Titanium.Proxy { + /** + * Description of the shortcut. + */ + description: string; + + /** + * Shortcut icon. + */ + icon: string | number; + + /** + * Determines shortcut id. + */ + id: string; + + /** + * Title of the shortcut. + */ + title: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDescription(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIcon(): string | number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getId(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Hide the shortcut. + */ + hide(): void; + + /** + * Pin shortcut to launcher. + */ + pin(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDescription(description: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIcon(icon: string | number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setId(id: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Allow the shortcut to show. + */ + show(): void; + + } + /** + * Base event for class Titanium.UI.Slider + */ + interface SliderBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Slider; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Slider_click_Event extends SliderBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Slider_dblclick_Event extends SliderBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Slider_doubletap_Event extends SliderBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface Slider_focus_Event extends SliderBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Slider_keypressed_Event extends SliderBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface Slider_longclick_Event extends SliderBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface Slider_longpress_Event extends SliderBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Slider_pinch_Event extends SliderBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Slider_postlayout_Event extends SliderBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Slider_singletap_Event extends SliderBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Slider_swipe_Event extends SliderBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Slider_touchcancel_Event extends SliderBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Slider_touchend_Event extends SliderBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Slider_touchmove_Event extends SliderBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Slider_touchstart_Event extends SliderBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Slider_twofingertap_Event extends SliderBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the value of the slider changes. + */ + interface Slider_change_Event extends SliderBaseEvent { + /** + * Dictionary with properties `x` and `y` of the thumb's left-top corner in + * the control. Available with custom thumb image. + */ + thumbOffset: Point; + + /** + * Dictionary with properties `width` and `height` of the size of the thumb. + * Available with custom thumb image. + */ + thumbSize: Size; + + /** + * New value of the slider. + */ + value: number; + + } + /** + * Fired when the user starts tracking the slider. + */ + interface Slider_start_Event extends SliderBaseEvent { + /** + * False. This event does not bubble. + */ + bubbles: boolean; + + /** + * Current value of the slider. + */ + value: number; + + } + /** + * Fired when the user stops tracking the slider. + */ + interface Slider_stop_Event extends SliderBaseEvent { + /** + * False. This event does not bubble. + */ + bubbles: boolean; + + /** + * Current value of the slider. + */ + value: number; + + } + interface SliderEventMap extends ProxyEventMap { + change: Slider_change_Event; + + click: Slider_click_Event; + + dblclick: Slider_dblclick_Event; + + doubletap: Slider_doubletap_Event; + + focus: Slider_focus_Event; + + keypressed: Slider_keypressed_Event; + + longclick: Slider_longclick_Event; + + longpress: Slider_longpress_Event; + + pinch: Slider_pinch_Event; + + postlayout: Slider_postlayout_Event; + + singletap: Slider_singletap_Event; + + start: Slider_start_Event; + + stop: Slider_stop_Event; + + swipe: Slider_swipe_Event; + + touchcancel: Slider_touchcancel_Event; + + touchend: Slider_touchend_Event; + + touchmove: Slider_touchmove_Event; + + touchstart: Slider_touchstart_Event; + + twofingertap: Slider_twofingertap_Event; + + } + /** + * A slider component with a draggable thumb. + */ + class Slider extends Titanium.UI.View { + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Image URL of the slider left track when in the disabled state. + */ + disabledLeftTrackImage: string; + + /** + * Image URL of the slider right track when in the disabled state. + */ + disabledRightTrackImage: string; + + /** + * Image URL of the slider thumb when in the disabled state. + */ + disabledThumbImage: string; + + /** + * Boolean to indicate the enabled state of the slider. + */ + enabled: boolean; + + /** + * View height, in platform-specific units. + */ + height: never; + + /** + * Image URL of the slider left track when in the highlighted state. + */ + highlightedLeftTrackImage: string; + + /** + * Image URL of the slider right track when in the highlighted state. + */ + highlightedRightTrackImage: string; + + /** + * Image URL of the slider thumb when in the highlighted state. + */ + highlightedThumbImage: string; + + /** + * Image URL of the slider left track. + */ + leftTrackImage: string; + + /** + * Size of the left end cap for the leftTrackImage, disabledLeftTrackImage, highlightedLeftTrackImage and selectedLeftTrackImage properties. + */ + leftTrackLeftCap: number; + + /** + * Size of the top end cap for the leftTrackImage, disabledLeftTrackImage, highlightedLeftTrackImage and selectedLeftTrackImage properties. + */ + leftTrackTopCap: number; + + /** + * Maximum value of the slider. + */ + max: number; + + /** + * Upper limit on the slider value that can be selected. + */ + maxRange: number; + + /** + * Minimum value of the slider. + */ + min: number; + + /** + * Lower limit on the slider value that can be selected. + */ + minRange: number; + + /** + * Image URL of the slider right track. + */ + rightTrackImage: string; + + /** + * Size of the left end cap for the rightTrackImage, disabledRightTrackImage, highlightedRightTrackImage and selectedRightTrackImage properties. + */ + rightTrackLeftCap: number; + + /** + * Size of the top end cap for the rightTrackImage, disabledRightTrackImage, highlightedRightTrackImage and selectedRightTrackImage properties. + */ + rightTrackTopCap: number; + + /** + * Image URL of the slider left track when in the selected state. + */ + selectedLeftTrackImage: string; + + /** + * Image URL of the slider right track when in the selected state. + */ + selectedRightTrackImage: string; + + /** + * Image URL of the slider thumb when in the selected state. + */ + selectedThumbImage: string; + + /** + * Separates the thumbImage from the slider track. + */ + splitTrack: boolean; + + /** + * Image for the slider thumb. + */ + thumbImage: string | Titanium.Blob; + + /** + * The color shown for the portion of the progress bar that is filled. + */ + tintColor: string; + + /** + * The color shown for the portion of the progress bar that is not filled. + */ + trackTintColor: string; + + /** + * Current value of the slider. + */ + value: number; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Slider, event: SliderEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: SliderEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisabledLeftTrackImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisabledRightTrackImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisabledThumbImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHighlightedLeftTrackImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHighlightedRightTrackImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHighlightedThumbImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftTrackImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftTrackLeftCap(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftTrackTopCap(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMax(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxRange(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMin(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinRange(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightTrackImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightTrackLeftCap(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightTrackTopCap(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedLeftTrackImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedRightTrackImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedThumbImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSplitTrack(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getThumbImage(): string | Titanium.Blob; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTrackTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): number; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Slider, event: SliderEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisabledLeftTrackImage(disabledLeftTrackImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisabledRightTrackImage(disabledRightTrackImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisabledThumbImage(disabledThumbImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnabled(enabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHighlightedLeftTrackImage(highlightedLeftTrackImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHighlightedRightTrackImage(highlightedRightTrackImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHighlightedThumbImage(highlightedThumbImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftTrackImage(leftTrackImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftTrackLeftCap(leftTrackLeftCap: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftTrackTopCap(leftTrackTopCap: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMax(max: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxRange(maxRange: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMin(min: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinRange(minRange: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightTrackImage(rightTrackImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightTrackLeftCap(rightTrackLeftCap: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightTrackTopCap(rightTrackTopCap: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedLeftTrackImage(selectedLeftTrackImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedRightTrackImage(selectedRightTrackImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedThumbImage(selectedThumbImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSplitTrack(splitTrack: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setThumbImage(thumbImage: string | Titanium.Blob): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTrackTintColor(trackTintColor: string): void; + + /** + * Sets the [value](Titanium.UI.Slider.value) property. + */ + setValue(value: number, options?: AnimatedOptions): void; + + } + /** + * Base event for class Titanium.UI.Switch + */ + interface SwitchBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Switch; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Switch_click_Event extends SwitchBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Switch_dblclick_Event extends SwitchBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Switch_doubletap_Event extends SwitchBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface Switch_focus_Event extends SwitchBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Switch_keypressed_Event extends SwitchBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface Switch_longclick_Event extends SwitchBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface Switch_longpress_Event extends SwitchBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Switch_pinch_Event extends SwitchBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Switch_postlayout_Event extends SwitchBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Switch_singletap_Event extends SwitchBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Switch_swipe_Event extends SwitchBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Switch_touchcancel_Event extends SwitchBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Switch_touchend_Event extends SwitchBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Switch_touchmove_Event extends SwitchBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Switch_touchstart_Event extends SwitchBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Switch_twofingertap_Event extends SwitchBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the switch value changes. + */ + interface Switch_change_Event extends SwitchBaseEvent { + /** + * New value of the switch. + */ + value: boolean; + + } + interface SwitchEventMap extends ProxyEventMap { + change: Switch_change_Event; + + click: Switch_click_Event; + + dblclick: Switch_dblclick_Event; + + doubletap: Switch_doubletap_Event; + + focus: Switch_focus_Event; + + keypressed: Switch_keypressed_Event; + + longclick: Switch_longclick_Event; + + longpress: Switch_longpress_Event; + + pinch: Switch_pinch_Event; + + postlayout: Switch_postlayout_Event; + + singletap: Switch_singletap_Event; + + swipe: Switch_swipe_Event; + + touchcancel: Switch_touchcancel_Event; + + touchend: Switch_touchend_Event; + + touchmove: Switch_touchmove_Event; + + touchstart: Switch_touchstart_Event; + + twofingertap: Switch_twofingertap_Event; + + } + /** + * An on/off switch control. + */ + class Switch extends Titanium.UI.View { + /** + * Determines if there is animation when the switch value changes. + */ + animated: boolean; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Color to use for switch text, as a color name or hex triplet. + */ + color: string; + + /** + * Determines whether the switch is enabled. + */ + enabled: boolean; + + /** + * Font to use for the switch text. + */ + font: Font; + + /** + * The color used to tint the appearance of the switch when it is turned on. + */ + onTintColor: string; + + /** + * Style of the switch. + */ + style: number; + + /** + * Horizontal text alignment of the switch title. + */ + textAlign: string | number; + + /** + * The color used to tint the appearance of the thumb. + */ + thumbTintColor: string; + + /** + * The color used to tint the outline of the switch when it is turned off. + */ + tintColor: string; + + /** + * Text to display next to the switch, when the checkbox style is in use. + */ + title: string; + + /** + * Text to display on the switch in its "off" state, when the toggle button style is in use. + */ + titleOff: string; + + /** + * Text to display on the switch in its "on" state, when the toggle button style is in use. + */ + titleOn: string; + + /** + * Indicates whether the switch has been turned on or off by the user. May also be set + * programmatically. + */ + value: boolean; + + /** + * Vertical alignment for the text field. + */ + verticalAlign: number | string; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Switch, event: SwitchEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: SwitchEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimated(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTextAlign(): string | number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getThumbTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleOff(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleOn(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalAlign(): number | string; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Switch, event: SwitchEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnimated(animated: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnabled(enabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnTintColor(onTintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTextAlign(textAlign: string | number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setThumbTintColor(thumbTintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleOff(titleOff: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleOn(titleOn: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalAlign(verticalAlign: number | string): void; + + } + /** + * Base event for class Titanium.UI.Tab + */ + interface TabBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Tab; + + } + /** + * Fired when this tab is clicked in the tab group. + */ + interface Tab_click_Event extends TabBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Tab_dblclick_Event extends TabBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Tab_doubletap_Event extends TabBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Tab_keypressed_Event extends TabBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface Tab_longclick_Event extends TabBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface Tab_longpress_Event extends TabBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Tab_pinch_Event extends TabBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Tab_postlayout_Event extends TabBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Tab_singletap_Event extends TabBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Tab_swipe_Event extends TabBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Tab_touchcancel_Event extends TabBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Tab_touchend_Event extends TabBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Tab_touchmove_Event extends TabBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Tab_touchstart_Event extends TabBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Tab_twofingertap_Event extends TabBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the tab is no longer selected. + */ + interface Tab_unselected_Event extends TabBaseEvent { + /** + * Index of the current active tab. + */ + index: number; + + /** + * Index of the previous active tab. + */ + previousIndex: number; + + /** + * Previous active tab object. + */ + previousTab: Titanium.UI.Tab; + + /** + * Current active tab object. + */ + tab: Titanium.UI.Tab; + + } + /** + * Fired when the tab is selected. + */ + interface Tab_selected_Event extends TabBaseEvent { + /** + * Index of the current active tab. + */ + index: number; + + /** + * Index of the previous active tab. + */ + previousIndex: number; + + /** + * Previous active tab object. + */ + previousTab: Titanium.UI.Tab; + + /** + * Current active tab object. + */ + tab: Titanium.UI.Tab; + + } + interface TabEventMap extends ProxyEventMap { + click: Tab_click_Event; + + dblclick: Tab_dblclick_Event; + + doubletap: Tab_doubletap_Event; + + keypressed: Tab_keypressed_Event; + + longclick: Tab_longclick_Event; + + longpress: Tab_longpress_Event; + + pinch: Tab_pinch_Event; + + postlayout: Tab_postlayout_Event; + + selected: Tab_selected_Event; + + singletap: Tab_singletap_Event; + + swipe: Tab_swipe_Event; + + touchcancel: Tab_touchcancel_Event; + + touchend: Tab_touchend_Event; + + touchmove: Tab_touchmove_Event; + + touchstart: Tab_touchstart_Event; + + twofingertap: Tab_twofingertap_Event; + + unselected: Tab_unselected_Event; + + } + /** + * A tab instance for a [TabGroup](Titanium.UI.TabGroup). + */ + class Tab extends Titanium.UI.View { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * `true` if this tab is active, `false` if it is not. + */ + active: boolean; + + /** + * Icon URL for this tab when active. + */ + activeIcon: string; + + /** + * Defines if the active icon property of the tab must be used as a mask. + */ + activeIconIsMask: boolean; + + /** + * Defines the color of the title of tab when it's active. + */ + activeTitleColor: string; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: never; + + /** + * Sets the color of the tab when it is inactive. + */ + backgroundColor: string; + + /** + * Sets the color of the tab when it is focused. + */ + backgroundFocusedColor: string; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Badge value for this tab. `null` indicates no badge. + */ + badge: string; + + /** + * If this item displays a badge, this color will be used for the badge's background. + * If set to null, the default background color will be used instead. + */ + badgeColor: string; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * View's bottom position, in platform-specific units. + */ + bottom: never; + + /** + * View's center position, in the parent view's coordinates. + */ + center: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: never; + + /** + * View height, in platform-specific units. + */ + height: never; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Icon URL for this tab. + */ + icon: string; + + /** + * The icon inset or outset for each edge. + */ + iconInsets: TabIconInsets; + + /** + * Defines if the icon property of the tab must be used as a mask. + */ + iconIsMask: boolean; + + /** + * Determines whether to keep the device screen on. + */ + keepScreenOn: never; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * View's left position, in platform-specific units. + */ + left: never; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: never; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: never; + + /** + * View's right position, in platform-specific units. + */ + right: never; + + /** + * The size of the view in system units. + */ + readonly size: never; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * Title for this tab. + */ + title: string; + + /** + * Defines the color of the title of tab when it's inactive. + */ + titleColor: string; + + /** + * Key identifying a string from the locale file to use for the tab title. Only one of `title` or `titleid` should be specified. + */ + titleid: string; + + /** + * The view's top position. + */ + top: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * Determines whether the view is visible. + */ + visible: never; + + /** + * View's width, in platform-specific units. + */ + width: never; + + /** + * Root-level tab window. All tabs must have at least one root-level tab window. + */ + window: Titanium.UI.Window; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Tab, event: TabEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Closes the top-level window for this tab. + */ + close(window: Titanium.UI.Window, options?: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: TabEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActive(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActiveIcon(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActiveIconIsMask(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActiveTitleColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBadge(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBadgeColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIcon(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIconInsets(): TabIconInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIconIsMask(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepScreenOn: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWindow(): Titanium.UI.Window; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Hides this view. + */ + hide: never; + + /** + * Opens a new window. + */ + open(window: Titanium.UI.Window, options?: openWindowParams): void; + + /** + * Closes all windows that are currently opened inside the tab. + */ + popToRootWindow(options?: AnimatedOptions): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Tab, event: TabEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActive(active: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActiveIcon(activeIcon: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActiveIconIsMask(activeIconIsMask: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActiveTitleColor(activeTitleColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor(backgroundFocusedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBadge(badge: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBadgeColor(badgeColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIcon(icon: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIconInsets(iconInsets: TabIconInsets): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIconIsMask(iconIsMask: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepScreenOn: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleColor(titleColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleid(titleid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth: never; + + /** + * Sets the root window that appears in the tab. + */ + setWindow(window: Titanium.UI.Window): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + /** + * Makes this view visible. + */ + show: never; + + } + /** + * Base event for class Titanium.UI.TabGroup + */ + interface TabGroupBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.TabGroup; + + } + /** + * Fired when the device detects a click against the view. + */ + interface TabGroup_click_Event extends TabGroupBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface TabGroup_dblclick_Event extends TabGroupBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface TabGroup_doubletap_Event extends TabGroupBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when this tab group gains focus. On Android, fired when a tab in this tab group + * gains focus. + */ + interface TabGroup_focus_Event extends TabGroupBaseEvent { + /** + * Index of the current active tab. + */ + index: number; + + /** + * Index of the previous active tab. + */ + previousIndex: number; + + /** + * Previous active tab. + */ + previousTab: Titanium.UI.Tab; + + /** + * Active tab. + */ + tab: Titanium.UI.Tab; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface TabGroup_keypressed_Event extends TabGroupBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface TabGroup_longclick_Event extends TabGroupBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface TabGroup_longpress_Event extends TabGroupBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface TabGroup_pinch_Event extends TabGroupBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface TabGroup_postlayout_Event extends TabGroupBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface TabGroup_singletap_Event extends TabGroupBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface TabGroup_swipe_Event extends TabGroupBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface TabGroup_touchcancel_Event extends TabGroupBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface TabGroup_touchend_Event extends TabGroupBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface TabGroup_touchmove_Event extends TabGroupBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface TabGroup_touchstart_Event extends TabGroupBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface TabGroup_twofingertap_Event extends TabGroupBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the back button is pressed by the user. + */ + interface TabGroup_androidback_Event extends TabGroupBaseEvent { + } + /** + * Fired when the Camera button is released. + */ + interface TabGroup_androidcamera_Event extends TabGroupBaseEvent { + } + /** + * Fired when the Camera button is half-pressed then released. + */ + interface TabGroup_androidfocus_Event extends TabGroupBaseEvent { + } + /** + * Fired when the Search button is released. + */ + interface TabGroup_androidsearch_Event extends TabGroupBaseEvent { + } + /** + * Fired when the volume down button is released. + */ + interface TabGroup_androidvoldown_Event extends TabGroupBaseEvent { + } + /** + * Fired when the volume up button is released. + */ + interface TabGroup_androidvolup_Event extends TabGroupBaseEvent { + } + /** + * Fired when this tab group loses focus. On Android, fired when a tab in this tab group + * loses focus. + */ + interface TabGroup_blur_Event extends TabGroupBaseEvent { + /** + * Index of the current active tab. On iOS, a value of `undefined` indicates that the + * **More** tab was the active tab. + */ + index: number; + + /** + * Index of the previous active tab. On iOS, a value of `undefined` indicates that the + * **More** tab was the previous tab. + */ + previousIndex: number; + + /** + * Previous active tab. On iOS, a value of `undefined` indicates that the **More** tab was + * the previous tab. + */ + previousTab: Titanium.UI.Tab; + + /** + * Active tab. + */ + tab: Titanium.UI.Tab; + + } + /** + * Fired when the tab group is closed. + */ + interface TabGroup_close_Event extends TabGroupBaseEvent { + } + /** + * Fired when the tab group is opened. + */ + interface TabGroup_open_Event extends TabGroupBaseEvent { + } + interface TabGroupEventMap extends ProxyEventMap { + androidback: TabGroup_androidback_Event; + + androidcamera: TabGroup_androidcamera_Event; + + androidfocus: TabGroup_androidfocus_Event; + + androidsearch: TabGroup_androidsearch_Event; + + androidvoldown: TabGroup_androidvoldown_Event; + + androidvolup: TabGroup_androidvolup_Event; + + blur: TabGroup_blur_Event; + + click: TabGroup_click_Event; + + close: TabGroup_close_Event; + + dblclick: TabGroup_dblclick_Event; + + doubletap: TabGroup_doubletap_Event; + + focus: TabGroup_focus_Event; + + keypressed: TabGroup_keypressed_Event; + + longclick: TabGroup_longclick_Event; + + longpress: TabGroup_longpress_Event; + + open: TabGroup_open_Event; + + pinch: TabGroup_pinch_Event; + + postlayout: TabGroup_postlayout_Event; + + singletap: TabGroup_singletap_Event; + + swipe: TabGroup_swipe_Event; + + touchcancel: TabGroup_touchcancel_Event; + + touchend: TabGroup_touchend_Event; + + touchmove: TabGroup_touchmove_Event; + + touchstart: TabGroup_touchstart_Event; + + twofingertap: TabGroup_twofingertap_Event; + + } + /** + * A tabbed group of windows. + */ + class TabGroup extends Titanium.UI.Window { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: never; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: never; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: never; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: never; + + /** + * Active tab. + */ + activeTab: number | Titanium.UI.Tab; + + /** + * Default background image for the active tab. + */ + activeTabBackgroundImage: string; + + /** + * Color applied to active tabs icons, as a color name or hex triplet, where the tab's activeIcon was not defined. + */ + activeTabIconTint: string; + + /** + * Reference to the Android Activity object associated with this tab group. + */ + readonly activity: Titanium.Android.Activity; + + /** + * Allow the user to reorder tabs in the tab group using the **Edit** button on the **More** + * tab. + */ + allowUserCustomization: boolean; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: never; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: never; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * A background gradient for the view. + */ + backgroundGradient: never; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Default navigation bar color (typically for the **More** tab), as a color name or hex triplet. + */ + barColor: string; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: never; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: never; + + /** + * Border width of the view. + */ + borderWidth: never; + + /** + * Window's bottom position, in platform-specific units. + */ + bottom: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Title for the edit button on the **More** tab. + */ + editButtonTitle: string; + + /** + * Boolean value indicating if the application should exit when closing the tab group, whether via Android + * back button or the [close](Titanium.UI.TabGroup.close) method. + */ + exitOnClose: boolean; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: never; + + /** + * View height, in platform-specific units. + */ + height: never; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: never; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * Window's left position, in platform-specific units. + */ + left: never; + + /** + * The tintColor to apply to the navigation bar (typically for the **More** tab). + */ + navTintColor: string; + + /** + * The opacity from 0.0-1.0. + */ + opacity: never; + + /** + * Window's right position, in platform-specific units. + */ + right: never; + + /** + * Image of the shadow placed between the tab bar and the content area. + */ + shadowImage: string; + + /** + * Determines whether the [TABS_STYLE_BOTTOM_NAVIGATION](Titanium.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION) uses shiftMode. + */ + shiftMode: boolean; + + /** + * Boolean value indicating if changing pages by tab clicks is animated. + */ + smoothScrollOnTabClick: boolean; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * Property defining which style for the TabGroup to be used. + */ + style: number; + + /** + * Boolean value indicating if tab navigation can be done by swipes, in addition to tab clicks. + */ + swipeable: boolean; + + /** + * Tabs managed by the tab group. + */ + tabs: Titanium.UI.Tab[]; + + /** + * Default background color for inactive tabs, as a color name or hex triplet. + */ + tabsBackgroundColor: string; + + /** + * Default background image for tabs. + */ + tabsBackgroundImage: string; + + /** + * Default background selected color for tabs, as a color name or hex triplet. + */ + tabsBackgroundSelectedColor: string; + + /** + * The tintColor to apply to the tabs. + */ + tabsTintColor: string; + + /** + * A Boolean value that indicates whether the tab bar is translucent. + */ + tabsTranslucent: boolean; + + /** + * Title for this tabGroup. + */ + title: string; + + /** + * Title text attributes of the window to be applied on the **More** tab. + */ + titleAttributes: titleAttributesParams; + + /** + * Window's top position, in platform-specific units. + */ + top: never; + + /** + * Transformation matrix to apply to the view. + */ + transform: never; + + /** + * Boolean value indicating if the nav bar (typically for the **More** tab), is translucent. + */ + translucent: boolean; + + /** + * Unselected items in this tab group will be tinted with this color. Setting this value to null + * indicates that the tab group should use its default value instead. + */ + unselectedItemTintColor: string; + + /** + * View's width, in platform-specific units. + */ + width: never; + + /** + * Determines how the tab group is treated when a soft input method (such as a virtual keyboard) + * is displayed. + */ + windowSoftInputMode: number; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: never; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.TabGroup, event: TabGroupEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds a tab to the tab group. + */ + addTab(tab: Titanium.UI.Tab): void; + + /** + * Closes the tab group and removes it from the UI. + */ + close(params?: Titanium.UI.Animation | Dictionary | closeWindowParams): void; + + /** + * Disable (or re-enable) tab navigation. If tab navigation is disabled, the tabs are hidden and + * the last selected tab window is shown. + */ + disableTabNavigation(disable: boolean): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: TabGroupEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue: never; + + /** + * Gets the currently-active tab. + */ + getActiveTab(): Titanium.UI.Tab; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActiveTabBackgroundImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActiveTabIconTint(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivity(): Titanium.Android.Activity; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowUserCustomization(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditButtonTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getExitOnClose(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShiftMode(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSmoothScrollOnTabClick(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSwipeable(): boolean; + + /** + * Gets all tabs that are managed by the tab group. + */ + getTabs(): Titanium.UI.Tab[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTabsBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTabsBackgroundImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTabsBackgroundSelectedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTabsTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTabsTranslucent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleAttributes(): titleAttributesParams; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslucent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUnselectedItemTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWindowSoftInputMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex: never; + + /** + * Opens the tab group and makes it visible. + */ + open(params?: openWindowParams): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.TabGroup, event: TabGroupEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes a tab from the tab group. + */ + removeTab(tab: Titanium.UI.Tab): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue: never; + + /** + * Selects the currently active tab in a tab group. + */ + setActiveTab(indexOrObject: number | Titanium.UI.Tab): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActiveTabBackgroundImage(activeTabBackgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActiveTabIconTint(activeTabIconTint: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowUserCustomization(allowUserCustomization: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarColor(barColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditButtonTitle(editButtonTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setExitOnClose(exitOnClose: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNavTintColor(navTintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowImage(shadowImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShiftMode(shiftMode: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSmoothScrollOnTabClick(smoothScrollOnTabClick: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSwipeable(swipeable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabs(tabs: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabsBackgroundColor(tabsBackgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabsBackgroundImage(tabsBackgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabsBackgroundSelectedColor(tabsBackgroundSelectedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabsTintColor(tabsTintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabsTranslucent(tabsTranslucent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleAttributes(titleAttributes: titleAttributesParams): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslucent(translucent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUnselectedItemTintColor(unselectedItemTintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWindowSoftInputMode(windowSoftInputMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex: never; + + } + /** + * Base event for class Titanium.UI.TabbedBar + */ + interface TabbedBarBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.TabbedBar; + + } + /** + * Fired when a button is clicked. + */ + interface TabbedBar_click_Event extends TabbedBarBaseEvent { + /** + * Index of the clicked button. + */ + index: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface TabbedBar_dblclick_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface TabbedBar_doubletap_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface TabbedBar_focus_Event extends TabbedBarBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface TabbedBar_keypressed_Event extends TabbedBarBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface TabbedBar_longclick_Event extends TabbedBarBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface TabbedBar_longpress_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface TabbedBar_pinch_Event extends TabbedBarBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface TabbedBar_postlayout_Event extends TabbedBarBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface TabbedBar_singletap_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface TabbedBar_swipe_Event extends TabbedBarBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface TabbedBar_touchcancel_Event extends TabbedBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface TabbedBar_touchend_Event extends TabbedBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface TabbedBar_touchmove_Event extends TabbedBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface TabbedBar_touchstart_Event extends TabbedBarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface TabbedBar_twofingertap_Event extends TabbedBarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface TabbedBarEventMap extends ProxyEventMap { + click: TabbedBar_click_Event; + + dblclick: TabbedBar_dblclick_Event; + + doubletap: TabbedBar_doubletap_Event; + + focus: TabbedBar_focus_Event; + + keypressed: TabbedBar_keypressed_Event; + + longclick: TabbedBar_longclick_Event; + + longpress: TabbedBar_longpress_Event; + + pinch: TabbedBar_pinch_Event; + + postlayout: TabbedBar_postlayout_Event; + + singletap: TabbedBar_singletap_Event; + + swipe: TabbedBar_swipe_Event; + + touchcancel: TabbedBar_touchcancel_Event; + + touchend: TabbedBar_touchend_Event; + + touchmove: TabbedBar_touchmove_Event; + + touchstart: TabbedBar_touchstart_Event; + + twofingertap: TabbedBar_twofingertap_Event; + + } + /** + * A button bar that maintains a selected state. + */ + class TabbedBar extends Titanium.UI.View { + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Index of the currently selected button. + */ + index: number; + + /** + * Array of labels for the tabbed bar. + */ + labels: string[] | BarItemType[]; + + /** + * Style of the tabbed bar. + */ + style: number; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.TabbedBar, event: TabbedBarEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: TabbedBarEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIndex(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLabels(): string[] | BarItemType[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.TabbedBar, event: TabbedBarEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIndex(index: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLabels(labels: string[] | BarItemType[]): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + } + /** + * Base event for class Titanium.UI.TableView + */ + interface TableViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.TableView; + + } + /** + * Fired when a table row is clicked by the user. + */ + interface TableView_click_Event extends TableViewBaseEvent { + /** + * Indicates whether the detail button was clicked. Only `true` if `row.hasDetail` is + * `true` and the detail button was clicked. + */ + detail: boolean; + + /** + * Row index. + */ + index: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. + * When the row is created implicitly using a JavaScript dictionary object, + * use this property rather than `row` to access any custom row properties. + * Here's an example of creating a row implicitly, which is not the recommended way. + * var data = [{title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff', special:'special 1'},]; + * var table = Ti.UI.createTableView({data: data}); + */ + rowData: Dictionary; + + /** + * Indicates whether the table is in search mode. + */ + searchMode: boolean; + + /** + * Table view section object, if the clicked row is contained in a section. + */ + section: Titanium.UI.TableViewSection; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface TableView_dblclick_Event extends TableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against this view. + */ + interface TableView_doubletap_Event extends TableViewBaseEvent { + /** + * Row index. + */ + index: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. + * When the row is created implicitly using a JavaScript dictionary object, + * use this property rather than `row` to access any custom row properties. + * Here's an example of creating a row implicitly, which is not the recommended way. + * var data = [{title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff', special:'special 1'},]; + * var table = Ti.UI.createTableView({data: data}); + */ + rowData: Dictionary; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface TableView_focus_Event extends TableViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface TableView_keypressed_Event extends TableViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface TableView_longclick_Event extends TableViewBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface TableView_longpress_Event extends TableViewBaseEvent { + /** + * Row index. + */ + index: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. + * When the row is created implicitly using a JavaScript dictionary object, + * use this property rather than `row` to access any custom row properties. + * Here's an example of creating a row implicitly, which is not the recommended way. + * var data = [{title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff', special:'special 1'},]; + * var table = Ti.UI.createTableView({data: data}); + */ + rowData: Dictionary; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface TableView_pinch_Event extends TableViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface TableView_postlayout_Event extends TableViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface TableView_singletap_Event extends TableViewBaseEvent { + /** + * Row index. + */ + index: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. + * When the row is created implicitly using a JavaScript dictionary object, + * use this property rather than `row` to access any custom row properties. + * Here's an example of creating a row implicitly, which is not the recommended way. + * var data = [{title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff', special:'special 1'},]; + * var table = Ti.UI.createTableView({data: data}); + */ + rowData: Dictionary; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture (left or right) against the view. + */ + interface TableView_swipe_Event extends TableViewBaseEvent { + /** + * Direction of the swipe, either `left` or `right`. + */ + direction: string; + + /** + * Row index. + */ + index: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. + * When the row is created implicitly using a JavaScript dictionary object, + * use this property rather than `row` to access any custom row properties. + * Here's an example of creating a row implicitly, which is not the recommended way. + * var data = [{title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff', special:'special 1'},]; + * var table = Ti.UI.createTableView({data: data}); + */ + rowData: Dictionary; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch gesture is interrupted by the device. + */ + interface TableView_touchcancel_Event extends TableViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The current force value of the touch event. + * Note: This property only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch gesture is complete. + */ + interface TableView_touchend_Event extends TableViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The current force value of the touch event. + * Note: This property only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + force: number; + + /** + * Row index. + */ + index: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. + * When the row is created implicitly using a JavaScript dictionary object, + * use this property rather than `row` to access any custom row properties. + * Here's an example of creating a row implicitly, which is not the recommended way. + * var data = [{title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff', special:'special 1'},]; + * var table = Ti.UI.createTableView({data: data}); + */ + rowData: Dictionary; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface TableView_touchmove_Event extends TableViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture against this view. + */ + interface TableView_touchstart_Event extends TableViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The current force value of the touch event. + * Note: This property only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + force: number; + + /** + * Row index. + */ + index: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. + * When the row is created implicitly using a JavaScript dictionary object, + * use this property rather than `row` to access any custom row properties. + * Here's an example of creating a row implicitly, which is not the recommended way. + * var data = [{title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff', special:'special 1'},]; + * var table = Ti.UI.createTableView({data: data}); + */ + rowData: Dictionary; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface TableView_twofingertap_Event extends TableViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when user stops two-pan gesture interaction for selecting multiple rows. + * It is used in conjunction with . + */ + interface TableView_rowsselected_Event extends TableViewBaseEvent { + /** + * List of rows selected by user. + */ + selectedRows: SelectedRowObject[]; + + /** + * First row selected when user started interaction. + */ + startingRow: SelectedRowObject; + + } + /** + * Fired when a table row is deleted by the user. + */ + interface TableView_delete_Event extends TableViewBaseEvent { + /** + * Indicates whether the delete button was clicked. Always `false` for this event. + */ + detail: boolean; + + /** + * Row index. + */ + index: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. Use this property rather than `row` to access any custom row + * properties. + */ + rowData: Dictionary; + + /** + * Indicates whether the table is in search mode. Always `false` for this event. + */ + searchMode: boolean; + + /** + * Table view section object, if the deleted row is contained in a section. + */ + section: Titanium.UI.TableViewSection; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the index bar is clicked by the user. + */ + interface TableView_indexclick_Event extends TableViewBaseEvent { + /** + * The index number clicked. + */ + index: number; + + /** + * The title of the index clicked. + */ + title: string; + + } + /** + * Fired when a table row is moved by the user. + */ + interface TableView_move_Event extends TableViewBaseEvent { + /** + * Boolean to indicate if the right area was clicked. Always `false` for this event. + */ + detail: boolean; + + /** + * Row index. + */ + index: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Properties of the row. Use this property rather than `row` to access any custom row + * properties. + */ + rowData: Dictionary; + + /** + * Boolean to indicate if the table is in search mode. Always `false` for this event. + */ + searchMode: boolean; + + /** + * Table view section object, if the deleted row is contained in a section. + */ + section: Titanium.UI.TableViewSection; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the table view is scrolled. + */ + interface TableView_scroll_Event extends TableViewBaseEvent { + /** + * Dictionary with `x` and `y` properties containing the content offset. + */ + contentOffset: Point; + + /** + * Dictionary with `width` and `height` properties containing the size of the content + * (regardless of the display size in the case of scrolling). + */ + contentSize: Size; + + /** + * Row index of the topmost visible row in the view. + */ + firstVisibleItem: number; + + /** + * Dictionary with `width` and `height` properties containing the size of the visible + * table view + */ + size: Size; + + /** + * Total number of rows in the view. + */ + totalItemCount: number; + + /** + * Number of rows currently visible in the view. + */ + visibleItemCount: number; + + } + /** + * Fired when the table view stops scrolling. + */ + interface TableView_scrollend_Event extends TableViewBaseEvent { + /** + * Dictionary with `x` and `y` properties containing the content offset. + */ + contentOffset: Point; + + /** + * Dictionary with `width` and `height` properties containing the size of the content + * (regardless of the display size in the case of scrolling). + */ + contentSize: Size; + + /** + * Dictionary with `width` and `height` properties containing the size of the visible + * table view. + */ + size: Size; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the scrollable region starts being dragged. + */ + interface TableView_dragstart_Event extends TableViewBaseEvent { + } + /** + * Fired when the scrollable region stops being dragged. + */ + interface TableView_dragend_Event extends TableViewBaseEvent { + /** + * Indicates whether scrolling will continue but decelerate, now that the drag gesture has + * been released by the touch. If `false`, scrolling will stop immediately. + */ + decelerate: boolean; + + } + interface TableViewEventMap extends ProxyEventMap { + click: TableView_click_Event; + + dblclick: TableView_dblclick_Event; + + delete: TableView_delete_Event; + + doubletap: TableView_doubletap_Event; + + dragend: TableView_dragend_Event; + + dragstart: TableView_dragstart_Event; + + focus: TableView_focus_Event; + + indexclick: TableView_indexclick_Event; + + keypressed: TableView_keypressed_Event; + + longclick: TableView_longclick_Event; + + longpress: TableView_longpress_Event; + + move: TableView_move_Event; + + pinch: TableView_pinch_Event; + + postlayout: TableView_postlayout_Event; + + rowsselected: TableView_rowsselected_Event; + + scroll: TableView_scroll_Event; + + scrollend: TableView_scrollend_Event; + + singletap: TableView_singletap_Event; + + swipe: TableView_swipe_Event; + + touchcancel: TableView_touchcancel_Event; + + touchend: TableView_touchend_Event; + + touchmove: TableView_touchmove_Event; + + touchstart: TableView_touchstart_Event; + + twofingertap: TableView_twofingertap_Event; + + } + /** + * A table view is used to present information, organized in sections and rows, in a + * vertically-scrolling view. + */ + class TableView extends Titanium.UI.View { + /** + * Determines whether multiple items of this table view can be selected at the same time while editing the table. + */ + allowsMultipleSelectionDuringEditing: boolean; + + /** + * Allows a two-finger pan gesture to automatically transition the table view into editing mode and start selecting rows. + */ + allowsMultipleSelectionInteraction: boolean; + + /** + * Determines whether this table's rows can be selected. + */ + allowsSelection: boolean; + + /** + * Determines whether this table's rows can be selected while editing the table. + */ + allowsSelectionDuringEditing: boolean; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: string; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Rows of the table view. + */ + data: Titanium.UI.TableViewRow[] | Titanium.UI.TableViewSection[]; + + /** + * A Boolean indicating whether the underlying content is dimmed during a search. + */ + dimBackgroundForSearch: boolean; + + /** + * Determines the rows' default editable behavior, which allows them to be deleted by the user + * when the table is in `editing` or `moving` mode. + */ + editable: boolean; + + /** + * Determines whether row editing mode is active. + */ + editing: boolean; + + /** + * Determines whether the search is limited to the start of the string + */ + filterAnchored: boolean; + + /** + * Filter attribute to be used when searching. + */ + filterAttribute: string; + + /** + * Determines whether the search is case insensitive. + */ + filterCaseInsensitive: boolean; + + /** + * When set to false, the ListView will not draw the divider before the footer view. + */ + footerDividersEnabled: boolean; + + /** + * Table view footer title. + */ + footerTitle: string; + + /** + * Table view footer as a view that will be rendered instead of a label. + */ + footerView: Titanium.UI.View; + + /** + * When set to false, the ListView will not draw the divider after the header view. + */ + headerDividersEnabled: boolean; + + /** + * View positioned above the first row that is only revealed when the user drags the table + * contents down. + */ + headerPullView: Titanium.UI.View; + + /** + * Table view header title. + */ + headerTitle: string; + + /** + * Table view header as a view that will be rendered instead of a label. + */ + headerView: Titanium.UI.View; + + /** + * Determines whether the search field should hide on completion. + */ + hideSearchOnSelection: boolean; + + /** + * Array of objects (with `title` and `index` properties) to control the table view index. + */ + index: TableViewIndexEntry[]; + + /** + * Max number of row class names. + */ + maxClassname: number; + + /** + * Maximum row height for table view rows. + */ + maxRowHeight: number; + + /** + * Minimum row height for table view rows. + */ + minRowHeight: number; + + /** + * Determines the rows' default moveable behavior, which allows them to be re-ordered by the + * user when the table is in `editing` or `moving` mode. + */ + moveable: boolean; + + /** + * Determines whether row moving mode is active. + */ + moving: boolean; + + /** + * Determines the behavior when the user overscrolls the view. + */ + overScrollMode: number; + + /** + * View positioned above the first row that is only revealed when the user drags the list view contents down. + */ + refreshControl: Titanium.UI.RefreshControl; + + /** + * The background color of the search results (iOS-only). + */ + resultsBackgroundColor: string; + + /** + * Separator line color between rows inside search results, + * as a color name or hex triplet (iOS-only). + */ + resultsSeparatorColor: string; + + /** + * The insets for search results separators (applies to all cells & iOS-only). + */ + resultsSeparatorInsets: HorizontalInsets; + + /** + * The separator style of the search results (iOS-only). + */ + resultsSeparatorStyle: number; + + /** + * Default row height for table view rows. + */ + rowHeight: number; + + /** + * The insets for table view cells (applies to all cells). + */ + rowSeparatorInsets: HorizontalInsets; + + /** + * Style of the scrollbar. + */ + scrollIndicatorStyle: number; + + /** + * If `true`, the tableview can be scrolled. + */ + scrollable: boolean; + + /** + * Controls whether the scroll-to-top gesture is effective. + */ + scrollsToTop: boolean; + + /** + * Search field to use for the table view. + */ + search: Titanium.UI.SearchBar | Titanium.UI.Android.SearchView; + + /** + * Determines whether the [SearchBar](Titanium.UI.SearchBar) or [SearchView](Titanium.UI.Android.SearchView) appears as part of the TableView. + */ + searchAsChild: boolean; + + /** + * Determines whether the search field is visible. + */ + searchHidden: boolean; + + /** + * Number of sections in this table view. + */ + readonly sectionCount: number; + + /** + * Sections of this table. + */ + sections: Titanium.UI.TableViewSection[]; + + /** + * Separator line color between rows, as a color name or hex triplet. + */ + separatorColor: string; + + /** + * The insets for table view separators (applies to all cells). + * @deprecated Use [Titanium.UI.TableView.tableSeparatorInsets](Titanium.UI.TableView.tableSeparatorInsets) instead. + */ + separatorInsets: HorizontalInsets; + + /** + * Separator style constant. + */ + separatorStyle: number; + + /** + * A Boolean indicating whether search bar will be in navigation bar. + */ + showSearchBarInNavBar: boolean; + + /** + * Determines whether this table view displays a vertical scroll indicator. + */ + showVerticalScrollIndicator: boolean; + + /** + * Style of the table view, specified using one of the constants from + * . + */ + style: number; + + /** + * The insets for the table view header and footer. + */ + tableSeparatorInsets: HorizontalInsets; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.TableView, event: TableViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Appends a single row or an array of rows to the end of the table. + */ + appendRow(row: Titanium.UI.TableViewRow | Dictionary | Titanium.UI.TableViewRow[] | Array>, animation?: TableViewAnimationProperties): void; + + /** + * Appends a single section or an array of sections to the end of the table. + */ + appendSection(section: Titanium.UI.TableViewSection | Dictionary | Titanium.UI.TableViewSection[] | Array>, animation?: TableViewAnimationProperties): void; + + /** + * Deletes an existing row. + */ + deleteRow(row: number | Titanium.UI.TableViewRow, animation?: TableViewAnimationProperties): void; + + /** + * Deletes an existing section. + */ + deleteSection(section: number, animation?: TableViewAnimationProperties): void; + + /** + * Programmatically deselects a row. + */ + deselectRow(row: number): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: TableViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsMultipleSelectionDuringEditing(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsMultipleSelectionInteraction(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsSelection(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsSelectionDuringEditing(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getData(): Titanium.UI.TableViewRow[] | Titanium.UI.TableViewSection[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDimBackgroundForSearch(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditing(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFilterAnchored(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFilterAttribute(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFilterCaseInsensitive(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterDividersEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderDividersEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderPullView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHideSearchOnSelection(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIndex(): TableViewIndexEntry[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxClassname(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxRowHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinRowHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMoveable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMoving(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverScrollMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRefreshControl(): Titanium.UI.RefreshControl; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResultsBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResultsSeparatorColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResultsSeparatorInsets(): HorizontalInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getResultsSeparatorStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRowHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRowSeparatorInsets(): HorizontalInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollIndicatorStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollsToTop(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSearch(): Titanium.UI.SearchBar | Titanium.UI.Android.SearchView; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSearchAsChild(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSearchHidden(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSectionCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSections(): Titanium.UI.TableViewSection[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSeparatorColor(): string; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.TableView.tableSeparatorInsets](Titanium.UI.TableView.tableSeparatorInsets) instead. + */ + getSeparatorInsets(): HorizontalInsets; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSeparatorStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowSearchBarInNavBar(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowVerticalScrollIndicator(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTableSeparatorInsets(): HorizontalInsets; + + /** + * Inserts a row after another row. + */ + insertRowAfter(index: number, row: Titanium.UI.TableViewRow | Dictionary, animation?: TableViewAnimationProperties): void; + + /** + * Inserts a row before another row. + */ + insertRowBefore(index: number, row: Titanium.UI.TableViewRow | Dictionary, animation?: TableViewAnimationProperties): void; + + /** + * Inserts a section after another section. + */ + insertSectionAfter(index: number, section: Titanium.UI.TableViewSection | Dictionary, animation?: TableViewAnimationProperties): void; + + /** + * Inserts a section before another section. + */ + insertSectionBefore(index: number, section: Titanium.UI.TableViewSection | Dictionary, animation?: TableViewAnimationProperties): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.TableView, event: TableViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Scrolls the table view to ensure that the specified row is on screen. + */ + scrollToIndex(index: number, animation?: TableViewAnimationProperties): void; + + /** + * Scrolls the table to a specific top position where 0 is the topmost y position in the + * table view. + */ + scrollToTop(top: number, animation?: TableViewAnimationProperties): void; + + /** + * Programmatically selects a row. In Android, it sets the currently selected item. If in touch mode, + * the item will not be selected but it will still be positioned appropriately. If the specified + * selection position is less than 0, then the item at position 0 will be selected. + */ + selectRow(row: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsMultipleSelectionDuringEditing(allowsMultipleSelectionDuringEditing: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsMultipleSelectionInteraction(allowsMultipleSelectionInteraction: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsSelection(allowsSelection: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsSelectionDuringEditing(allowsSelectionDuringEditing: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets this tableview's content insets. + */ + setContentInsets(edgeInsets: Padding, options?: AnimatedWithDurationOptions): void; + + /** + * Sets the value of the content offset of the table view without animation by default. + */ + setContentOffset(contentOffset: Point, options?: AnimatedOptions): void; + + /** + * Sets the data in the table. + */ + setData(data: Titanium.UI.TableViewRow[] | Array> | Titanium.UI.TableViewSection[], animation?: TableViewAnimationProperties): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDimBackgroundForSearch(dimBackgroundForSearch: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditable(editable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditing(editing: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFilterAnchored(filterAnchored: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFilterAttribute(filterAttribute: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFilterCaseInsensitive(filterCaseInsensitive: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterDividersEnabled(footerDividersEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterTitle(footerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterView(footerView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderDividersEnabled(headerDividersEnabled: boolean): void; + + /** + * Sets the value of the [Titanium.UI.TableView.headerPullView] property. + */ + setHeaderPullView(view: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderTitle(headerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderView(headerView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHideSearchOnSelection(hideSearchOnSelection: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIndex(index: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxClassname(maxClassname: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxRowHeight(maxRowHeight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinRowHeight(minRowHeight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMoveable(moveable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMoving(moving: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverScrollMode(overScrollMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRefreshControl(refreshControl: Titanium.UI.RefreshControl): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResultsBackgroundColor(resultsBackgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResultsSeparatorColor(resultsSeparatorColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResultsSeparatorInsets(resultsSeparatorInsets: HorizontalInsets): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setResultsSeparatorStyle(resultsSeparatorStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRowHeight(rowHeight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRowSeparatorInsets(rowSeparatorInsets: HorizontalInsets): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollIndicatorStyle(scrollIndicatorStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollable(scrollable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollsToTop(scrollsToTop: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSearch(search: Titanium.UI.SearchBar | Titanium.UI.Android.SearchView): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSearchAsChild(searchAsChild: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSearchHidden(searchHidden: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSections(sections: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSeparatorColor(separatorColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.TableView.tableSeparatorInsets](Titanium.UI.TableView.tableSeparatorInsets) instead. + */ + setSeparatorInsets(separatorInsets: HorizontalInsets): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSeparatorStyle(separatorStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowSearchBarInNavBar(showSearchBarInNavBar: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowVerticalScrollIndicator(showVerticalScrollIndicator: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStyle(style: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTableSeparatorInsets(tableSeparatorInsets: HorizontalInsets): void; + + /** + * Updates an existing row, optionally with animation. + */ + updateRow(index: number, row: Titanium.UI.TableViewRow, animation: TableViewAnimationProperties): void; + + /** + * Updates an existing section, optionally with animation. + */ + updateSection(index: number, section: Titanium.UI.TableViewSection, animation: TableViewAnimationProperties): void; + + } + /** + * Base event for class Titanium.UI.TableViewRow + */ + interface TableViewRowBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.TableViewRow; + + } + /** + * Fired when a table row is clicked by the user. + */ + interface TableViewRow_click_Event extends TableViewRowBaseEvent { + /** + * Indicates whether the detail button was clicked. Only `true` if `row.hasDetail` is + * `true` and the detail button was clicked. + */ + detail: boolean; + + /** + * Row index. + */ + index: number; + + /** + * Table view row object. + */ + row: Titanium.UI.TableViewRow; + + /** + * Dictionary containing the properties set on the row. + */ + rowData: Dictionary; + + /** + * Boolean to indicate if the table is in search mode. + */ + searchMode: boolean; + + /** + * Table view section object, if the clicked row is contained in a section. + */ + section: Titanium.UI.TableViewSection; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface TableViewRow_dblclick_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface TableViewRow_doubletap_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface TableViewRow_focus_Event extends TableViewRowBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface TableViewRow_keypressed_Event extends TableViewRowBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface TableViewRow_longclick_Event extends TableViewRowBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface TableViewRow_longpress_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface TableViewRow_pinch_Event extends TableViewRowBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface TableViewRow_postlayout_Event extends TableViewRowBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface TableViewRow_singletap_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface TableViewRow_swipe_Event extends TableViewRowBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch gesture is interrupted by the device. + */ + interface TableViewRow_touchcancel_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch gesture is complete. + */ + interface TableViewRow_touchend_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch.. + */ + interface TableViewRow_touchmove_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture against this view. + */ + interface TableViewRow_touchstart_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface TableViewRow_twofingertap_Event extends TableViewRowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface TableViewRowEventMap extends ProxyEventMap { + click: TableViewRow_click_Event; + + dblclick: TableViewRow_dblclick_Event; + + doubletap: TableViewRow_doubletap_Event; + + focus: TableViewRow_focus_Event; + + keypressed: TableViewRow_keypressed_Event; + + longclick: TableViewRow_longclick_Event; + + longpress: TableViewRow_longpress_Event; + + pinch: TableViewRow_pinch_Event; + + postlayout: TableViewRow_postlayout_Event; + + singletap: TableViewRow_singletap_Event; + + swipe: TableViewRow_swipe_Event; + + touchcancel: TableViewRow_touchcancel_Event; + + touchend: TableViewRow_touchend_Event; + + touchmove: TableViewRow_touchmove_Event; + + touchstart: TableViewRow_touchstart_Event; + + twofingertap: TableViewRow_twofingertap_Event; + + } + /** + * A table view row is an individual item in a table, organized into table view sections. + */ + class TableViewRow extends Titanium.UI.View { + /** + * A succint label associated with the table row for the device's accessibility service. + */ + accessibilityLabel: string; + + /** + * Class name for the row. + */ + className: string; + + /** + * Default text color of the row when not selected, as a color name or hex triplet. + */ + color: string; + + /** + * Text to display on the delete button when editable is enabled + */ + deleteButtonTitle: string; + + /** + * Determines the rows' editable behavior, which allows them to be deleted by the user when the + * table is in `editing` or `moving` mode. + */ + editable: boolean; + + /** + * Font to use for the row title. + */ + font: Font; + + /** + * The footer title of the row. + */ + footer: string; + + /** + * Determines whether a system-provided checkmark is displayed on the right-hand side of + * the row. + */ + hasCheck: boolean; + + /** + * Determines whether a system-provided arrow is displayed on the right-hand side of the row. + */ + hasChild: boolean; + + /** + * Determines whether a system-provided detail disclosure button is displayed on the right-hand + * side of the row. + */ + hasDetail: boolean; + + /** + * The header title of the row. + */ + header: string; + + /** + * Indention level for the row. + */ + indentionLevel: number; + + /** + * Image to render in the left image area of the row, specified as a local path or URL. + */ + leftImage: string; + + /** + * Determines the rows' moveable behavior, which allows them to be re-ordered by the user when + * the table is in `editing` or `moving` mode. + */ + moveable: boolean; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: number; + + /** + * Image to render in the right image area of the row, specified as a local path or URL. + */ + rightImage: string; + + /** + * Background color to render when the row is selected, as a color name or hex triplet. + */ + selectedBackgroundColor: string; + + /** + * Background image to render when the row is selected. + */ + selectedBackgroundImage: string; + + /** + * Color of the row text when the row is selected, as a color name or hex triplet. + */ + selectedColor: string; + + /** + * Selection style constant to control the selection color. + */ + selectionStyle: number; + + /** + * Text to display on the row. + */ + title: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.TableViewRow, event: TableViewRowEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: TableViewRowEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClassName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDeleteButtonTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooter(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHasCheck(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHasChild(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHasDetail(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeader(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIndentionLevel(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMoveable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedBackgroundImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectionStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.TableViewRow, event: TableViewRowEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel(accessibilityLabel: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClassName(className: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDeleteButtonTitle(deleteButtonTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditable(editable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooter(footer: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHasCheck(hasCheck: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHasChild(hasChild: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHasDetail(hasDetail: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeader(header: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIndentionLevel(indentionLevel: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftImage(leftImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMoveable(moveable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity(opacity: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightImage(rightImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedBackgroundColor(selectedBackgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedBackgroundImage(selectedBackgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectedColor(selectedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSelectionStyle(selectionStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + } + /** + * A table view section is a container within a table used to organize table view rows. + */ + class TableViewSection extends Titanium.Proxy { + /** + * Title of this section footer. + */ + footerTitle: string; + + /** + * View to use for this section footer. + */ + footerView: Titanium.UI.View; + + /** + * Title of this section header. + */ + headerTitle: string; + + /** + * View to use for this section header. + */ + headerView: Titanium.UI.View; + + /** + * Number of rows in this section. + */ + readonly rowCount: number; + + /** + * Rows in this section. + */ + readonly rows: Titanium.UI.TableViewRow[]; + + /** + * Adds a table view row to this section. + */ + add(row: Titanium.UI.TableViewRow): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFooterView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeaderView(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRowCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRows(): Titanium.UI.TableViewRow[]; + + /** + * Removes a table view row from this section. + */ + remove(row: Titanium.UI.TableViewRow): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Returns a row in this section. + */ + rowAtIndex(index: number): Titanium.UI.TableViewRow; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterTitle(footerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFooterView(footerView: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderTitle(headerTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeaderView(headerView: Titanium.UI.View): void; + + } + /** + * Base event for class Titanium.UI.TextArea + */ + interface TextAreaBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.TextArea; + + } + /** + * Fired when the device detects a click against the view. + */ + interface TextArea_click_Event extends TextAreaBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface TextArea_dblclick_Event extends TextAreaBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface TextArea_doubletap_Event extends TextAreaBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when this text area gains focus. + */ + interface TextArea_focus_Event extends TextAreaBaseEvent { + /** + * Value of this text area. + */ + value: string; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface TextArea_keypressed_Event extends TextAreaBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface TextArea_longclick_Event extends TextAreaBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface TextArea_longpress_Event extends TextAreaBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface TextArea_pinch_Event extends TextAreaBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface TextArea_postlayout_Event extends TextAreaBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface TextArea_singletap_Event extends TextAreaBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface TextArea_swipe_Event extends TextAreaBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface TextArea_touchcancel_Event extends TextAreaBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface TextArea_touchend_Event extends TextAreaBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface TextArea_touchmove_Event extends TextAreaBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface TextArea_touchstart_Event extends TextAreaBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface TextArea_twofingertap_Event extends TextAreaBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when this text area loses focus. + */ + interface TextArea_blur_Event extends TextAreaBaseEvent { + /** + * Value of this text area. + */ + value: string; + + } + /** + * Fired when this text area value changes. + */ + interface TextArea_change_Event extends TextAreaBaseEvent { + /** + * New value of this text area. + */ + value: string; + + } + /** + * Fired when user interacts with a URL in the text area. See [handleLinks](Titanium.UI.TextArea.handleLinks). + */ + interface TextArea_link_Event extends TextAreaBaseEvent { + /** + * This is false. This event does not bubble. + */ + bubbles: boolean; + + /** + * An array of two numbers [location, length] describing the character range of the text associated with this URL. + */ + range: any[]; + + /** + * The URL that is associated with this event. + */ + url: string; + + } + /** + * Fired when the return key is pressed on the keyboard. + */ + interface TextArea_return_Event extends TextAreaBaseEvent { + /** + * Value of this text area. + */ + value: string; + + } + /** + * Fired when text in this text area is selected. + */ + interface TextArea_selected_Event extends TextAreaBaseEvent { + /** + * Dictionary that describes the position and length of the selected text. + */ + range: textAreaSelectedParams; + + } + interface TextAreaEventMap extends ProxyEventMap { + blur: TextArea_blur_Event; + + change: TextArea_change_Event; + + click: TextArea_click_Event; + + dblclick: TextArea_dblclick_Event; + + doubletap: TextArea_doubletap_Event; + + focus: TextArea_focus_Event; + + keypressed: TextArea_keypressed_Event; + + link: TextArea_link_Event; + + longclick: TextArea_longclick_Event; + + longpress: TextArea_longpress_Event; + + pinch: TextArea_pinch_Event; + + postlayout: TextArea_postlayout_Event; + + return: TextArea_return_Event; + + selected: TextArea_selected_Event; + + singletap: TextArea_singletap_Event; + + swipe: TextArea_swipe_Event; + + touchcancel: TextArea_touchcancel_Event; + + touchend: TextArea_touchend_Event; + + touchmove: TextArea_touchmove_Event; + + touchstart: TextArea_touchstart_Event; + + twofingertap: TextArea_twofingertap_Event; + + } + /** + * A multiline text field that supports editing and scrolling. + */ + class TextArea extends Titanium.UI.View { + /** + * Determines the appearance of the keyboard displayed when this text area is focused. + * @deprecated Use [Titanium.UI.TextArea.keyboardAppearance](Titanium.UI.TextArea.keyboardAppearance) instead. + */ + appearance: never; + + /** + * Hint text attributed string. + */ + attributedHintText: Titanium.UI.AttributedString; + + /** + * TextArea attributed string. + */ + attributedString: Titanium.UI.AttributedString; + + /** + * Automatically convert text to clickable links. + */ + autoLink: number; + + /** + * Determines how text is capitalized during typing. + */ + autocapitalization: number; + + /** + * Determines whether to automatically correct text entered into this text area. + */ + autocorrect: boolean; + + /** + * Sets the autofill type for the text area. + */ + autofillType: string; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Determines whether the value of this text area should be cleared when it is focused. + */ + clearOnEdit: boolean; + + /** + * Color of the text in this text area, as a color name or hex triplet. + */ + color: string; + + /** + * Determines whether this field can be edited. + */ + editable: boolean; + + /** + * Determines whether an ellipsis (`...`) should be used to indicate truncated text. + */ + ellipsize: boolean; + + /** + * Determines whether the return key is enabled automatically when there is text in this text + * area. + */ + enableReturnKey: boolean; + + /** + * Font to use for text. + */ + font: Font; + + /** + * Leave some space above the keyboard in landscape mode or not. + */ + fullscreen: boolean; + + /** + * Specifies if the text area should allow user interaction with the given URL in the given range of text. + */ + handleLinks: boolean; + + /** + * Hint text to display when the field is empty. + */ + hintText: string; + + /** + * Color of hint text that displays when field is empty. + */ + hintTextColor: string; + + /** + * Hint type to display on the text field. + */ + hintType: number; + + /** + * Determines the appearance of the keyboard displayed when this text area is focused. + */ + keyboardAppearance: number; + + /** + * Array of toolbar button objects or a [toolbar](Titanium.UI.iOS.Toolbar) to be used when the + * keyboard is displayed. + */ + keyboardToolbar: Titanium.UI.View[] | Titanium.UI.Toolbar | Titanium.UI.iOS.Toolbar; + + /** + * Color of the keyboard toolbar if keyboardToolbar is an array, as a color name or hex triplet. + */ + keyboardToolbarColor: string; + + /** + * Height of the keyboard toolbar if keyboardToolbar is an array. + */ + keyboardToolbarHeight: number; + + /** + * Keyboard type to display when this text area is focused. + */ + keyboardType: number; + + /** + * Number of lines tall the text area height will be, if set. + */ + lines: number; + + /** + * Maximum length of text field input. + */ + maxLength: number; + + /** + * Maximum line count of text field input. + */ + maxLines: number; + + /** + * Sets the left and right padding of this TextArea. The text will always be vertically centered. + */ + padding: Padding; + + /** + * Specifies the text to display on the keyboard `Return` key when this text area is focused. + */ + returnKeyType: number; + + /** + * Determines whether this text area can be scrolled. + */ + scrollable: boolean; + + /** + * Controls whether the scroll-to-top gesture is effective. + */ + scrollsToTop: boolean; + + /** + * Returns the currently selected text of the text area. + */ + readonly selection: textAreaSelectedParams; + + /** + * Determinates if the undo and redo buttons on the left side of the keyboard should be displayed or not. Only valid on iOS9 and above. This property can only be set upon creation. + */ + showUndoRedoActions: boolean; + + /** + * Determines if the return key should be suppressed during text entry. + */ + suppressReturn: boolean; + + /** + * Text alignment within this text area. + * This has no effect on `hintText` when `hintType` is Ti.UI.HINT_TYPE_ANIMATED. + */ + textAlign: string | number; + + /** + * Value of this text area, which may be set programmatically and modified by the user. + */ + value: string; + + /** + * Vertical alignment within this text area. + */ + verticalAlign: number | string; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.TextArea, event: TextAreaEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Forces this text area to lose focus. + */ + blur(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: TextAreaEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Forces this text area to gain focus. + */ + focus(): void; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.TextArea.keyboardAppearance](Titanium.UI.TextArea.keyboardAppearance) instead. + */ + getAppearance: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAttributedHintText(): Titanium.UI.AttributedString; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAttributedString(): Titanium.UI.AttributedString; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutoLink(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutocapitalization(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutocorrect(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutofillType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClearOnEdit(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEllipsize(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnableReturnKey(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFullscreen(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHandleLinks(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintTextColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardAppearance(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardToolbar(): Titanium.UI.View[] | Titanium.UI.Toolbar | Titanium.UI.iOS.Toolbar; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardToolbarColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardToolbarHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLines(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxLength(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxLines(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPadding(): Padding; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getReturnKeyType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollsToTop(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelection(): textAreaSelectedParams; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowUndoRedoActions(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSuppressReturn(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTextAlign(): string | number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalAlign(): number | string; + + /** + * Returns `true` if this text area contains text. + */ + hasText(): boolean; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.TextArea, event: TextAreaEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.TextArea.keyboardAppearance](Titanium.UI.TextArea.keyboardAppearance) instead. + */ + setAppearance: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAttributedHintText(attributedHintText: Titanium.UI.AttributedString): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAttributedString(attributedString: Titanium.UI.AttributedString): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutoLink(autoLink: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutocapitalization(autocapitalization: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutocorrect(autocorrect: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutofillType(autofillType: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClearOnEdit(clearOnEdit: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditable(editable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEllipsize(ellipsize: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnableReturnKey(enableReturnKey: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFullscreen(fullscreen: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHandleLinks(handleLinks: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintText(hintText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintTextColor(hintTextColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintType(hintType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardAppearance(keyboardAppearance: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardToolbar(keyboardToolbar: Titanium.UI.View[] | Titanium.UI.Toolbar | Titanium.UI.iOS.Toolbar): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardToolbarColor(keyboardToolbarColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardToolbarHeight(keyboardToolbarHeight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardType(keyboardType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLines(lines: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxLength(maxLength: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxLines(maxLines: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPadding(padding: Padding): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setReturnKeyType(returnKeyType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollable(scrollable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollsToTop(scrollsToTop: boolean): void; + + /** + * Selects the text in range (start, end). + */ + setSelection(start: number, end: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowUndoRedoActions(showUndoRedoActions: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSuppressReturn(suppressReturn: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTextAlign(textAlign: string | number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalAlign(verticalAlign: number | string): void; + + } + /** + * Base event for class Titanium.UI.TextField + */ + interface TextFieldBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.TextField; + + } + /** + * Fired when the device detects a click against the view. + */ + interface TextField_click_Event extends TextFieldBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface TextField_dblclick_Event extends TextFieldBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface TextField_doubletap_Event extends TextFieldBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the field gains focus. + */ + interface TextField_focus_Event extends TextFieldBaseEvent { + /** + * Value of the field. + */ + value: string; + + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface TextField_keypressed_Event extends TextFieldBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface TextField_longclick_Event extends TextFieldBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface TextField_longpress_Event extends TextFieldBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface TextField_pinch_Event extends TextFieldBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface TextField_postlayout_Event extends TextFieldBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface TextField_singletap_Event extends TextFieldBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface TextField_swipe_Event extends TextFieldBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface TextField_touchcancel_Event extends TextFieldBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface TextField_touchend_Event extends TextFieldBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface TextField_touchmove_Event extends TextFieldBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface TextField_touchstart_Event extends TextFieldBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface TextField_twofingertap_Event extends TextFieldBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the field loses focus. + */ + interface TextField_blur_Event extends TextFieldBaseEvent { + /** + * Value of the field. + */ + value: string; + + } + /** + * Fired when the field value changes. + */ + interface TextField_change_Event extends TextFieldBaseEvent { + /** + * New value of the field. + */ + value: string; + + } + /** + * Fired when the return key is pressed on the keyboard. + */ + interface TextField_return_Event extends TextFieldBaseEvent { + /** + * Value of this text area. + */ + value: string; + + } + interface TextFieldEventMap extends ProxyEventMap { + blur: TextField_blur_Event; + + change: TextField_change_Event; + + click: TextField_click_Event; + + dblclick: TextField_dblclick_Event; + + doubletap: TextField_doubletap_Event; + + focus: TextField_focus_Event; + + keypressed: TextField_keypressed_Event; + + longclick: TextField_longclick_Event; + + longpress: TextField_longpress_Event; + + pinch: TextField_pinch_Event; + + postlayout: TextField_postlayout_Event; + + return: TextField_return_Event; + + singletap: TextField_singletap_Event; + + swipe: TextField_swipe_Event; + + touchcancel: TextField_touchcancel_Event; + + touchend: TextField_touchend_Event; + + touchmove: TextField_touchmove_Event; + + touchstart: TextField_touchstart_Event; + + twofingertap: TextField_twofingertap_Event; + + } + /** + * A single line text field. + */ + class TextField extends Titanium.UI.View { + /** + * Determines the appearance of the keyboard displayed when this field is focused. + * @deprecated Use [Titanium.UI.TextField.keyboardAppearance](Titanium.UI.TextField.keyboardAppearance) instead. + */ + appearance: never; + + /** + * Hint text attributed string. + */ + attributedHintText: Titanium.UI.AttributedString; + + /** + * TextField attributed string. + */ + attributedString: Titanium.UI.AttributedString; + + /** + * Automatically convert text to clickable links. + */ + autoLink: number; + + /** + * Determines how text is capitalized during typing. + */ + autocapitalization: number; + + /** + * Determines whether to automatically correct text entered into this text field. + */ + autocorrect: boolean; + + /** + * Sets the autofill type for the text field. + */ + autofillType: string; + + /** + * Border style for the field. + */ + borderStyle: number; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Determines when the clear button is displayed. + */ + clearButtonMode: number; + + /** + * Determines whether the value of this text field should be cleared when it is focused. + */ + clearOnEdit: boolean; + + /** + * Color of the text in this text field, as a color name or hex triplet. + */ + color: string; + + /** + * Determines whether this field can be edited. + */ + editable: boolean; + + /** + * Determines whether an ellipsis (`...`) should be used to indicate truncated text. + */ + ellipsize: boolean; + + /** + * Determines whether the return key is enabled automatically when there is text in this text + * field. + */ + enableReturnKey: boolean; + + /** + * Font to use for text. + */ + font: Font; + + /** + * Leave some space above the keyboard in landscape mode or not. + */ + fullscreen: boolean; + + /** + * Hint text to display when the field is empty. + */ + hintText: string; + + /** + * Hint text color to display when the field is empty. + */ + hintTextColor: string; + + /** + * Hint type to display on the text field. + */ + hintType: number; + + /** + * Key identifying a string from the locale file to use for the + * [hintText](Titanium.UI.TextField.hintText) property. + */ + hinttextid: string; + + /** + * Input type to accept in the text field. Also influences the Keyboard type to display. + */ + inputType: number[]; + + /** + * Determines the appearance of the keyboard displayed when this field is focused. + */ + keyboardAppearance: number; + + /** + * Array of toolbar button objects or a [toolbar](Titanium.UI.iOS.Toolbar) to be used when the + * keyboard is displayed. + */ + keyboardToolbar: Titanium.UI.View[] | Titanium.UI.Toolbar | Titanium.UI.iOS.Toolbar; + + /** + * Color of the keyboard toolbar if keyboardToolbar is an array, as a color name or hex triplet. + */ + keyboardToolbarColor: string; + + /** + * Height of the keyboard toolbar if keyboardToolbar is an array. + */ + keyboardToolbarHeight: number; + + /** + * Keyboard type to display when this text field is focused. + */ + keyboardType: number; + + /** + * Left button view to display in the `TextField`. + */ + leftButton: Titanium.UI.View; + + /** + * Determines when to display the left button view. + */ + leftButtonMode: number; + + /** + * Padding between the left button and the edge of the field. + */ + leftButtonPadding: number; + + /** + * Maximum length of text field input. + */ + maxLength: number; + + /** + * Minimum size of the font when the font is sized based on the contents. Enables font + * scaling to fit. + */ + minimumFontSize: number; + + /** + * Sets the padding of this text field. + */ + padding: TextFieldPadding; + + /** + * Left padding of this text field. + * @deprecated Use [Titanium.UI.TextField.padding](Titanium.UI.TextField.padding) for parity instead. + */ + paddingLeft: never; + + /** + * Right padding of this text field. + * @deprecated Use [Titanium.UI.TextField.padding](Titanium.UI.TextField.padding) for parity instead. + */ + paddingRight: never; + + /** + * Obscure the input text from the user. + */ + passwordMask: boolean; + + /** + * Set password rules that should be used for this text field. + */ + passwordRules: string; + + /** + * Specifies the text to display on the keyboard `Return` key when this field is focused. + */ + returnKeyType: number; + + /** + * Right button view. + */ + rightButton: Titanium.UI.View; + + /** + * Determines when to display the right button view. + */ + rightButtonMode: number; + + /** + * Padding between the right button and the edge of the field. + */ + rightButtonPadding: number; + + /** + * Returns the currently selected text of the text field. + */ + readonly selection: textFieldSelectedParams; + + /** + * Determinates if the undo and redo buttons on the left side of the keyboard should be displayed or not. Only valid on iOS9 and above. + */ + showUndoRedoActions: boolean; + + /** + * Determines whether the return key should be suppressed during entry. + */ + suppressReturn: boolean; + + /** + * Text alignment within this text field. + * This has no effect on `hintText` when `hintType` is Ti.UI.HINT_TYPE_ANIMATED. + */ + textAlign: string | number; + + /** + * Value of this text field, which may be set programmatically and modified by the user. + */ + value: string; + + /** + * Vertical alignment within this text field. + */ + verticalAlign: number | string; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.TextField, event: TextFieldEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Forces the field to lose focus. + */ + blur(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: TextFieldEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Forces the field to gain focus. + */ + focus(): void; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.TextField.keyboardAppearance](Titanium.UI.TextField.keyboardAppearance) instead. + */ + getAppearance: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAttributedHintText(): Titanium.UI.AttributedString; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAttributedString(): Titanium.UI.AttributedString; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutoLink(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutocapitalization(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutocorrect(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutofillType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClearButtonMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClearOnEdit(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEditable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEllipsize(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnableReturnKey(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFont(): Font; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFullscreen(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintTextColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHintType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHinttextid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getInputType(): number[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardAppearance(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardToolbar(): Titanium.UI.View[] | Titanium.UI.Toolbar | Titanium.UI.iOS.Toolbar; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardToolbarColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardToolbarHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftButton(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftButtonMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftButtonPadding(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMaxLength(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMinimumFontSize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPadding(): TextFieldPadding; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.TextField.padding](Titanium.UI.TextField.padding) for parity instead. + */ + getPaddingLeft: never; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.TextField.padding](Titanium.UI.TextField.padding) for parity instead. + */ + getPaddingRight: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPasswordMask(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPasswordRules(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getReturnKeyType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightButton(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightButtonMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightButtonPadding(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelection(): textFieldSelectedParams; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShowUndoRedoActions(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSuppressReturn(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTextAlign(): string | number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalAlign(): number | string; + + /** + * Returns `true` if this text field contains text. + */ + hasText(): boolean; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.TextField, event: TextFieldEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.TextField.keyboardAppearance](Titanium.UI.TextField.keyboardAppearance) instead. + */ + setAppearance: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAttributedHintText(attributedHintText: Titanium.UI.AttributedString): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAttributedString(attributedString: Titanium.UI.AttributedString): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutoLink(autoLink: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutocapitalization(autocapitalization: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutocorrect(autocorrect: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutofillType(autofillType: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderStyle(borderStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClearButtonMode(clearButtonMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClearOnEdit(clearOnEdit: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setColor(color: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEditable(editable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEllipsize(ellipsize: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnableReturnKey(enableReturnKey: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFont(font: Font): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFullscreen(fullscreen: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintText(hintText: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintTextColor(hintTextColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHintType(hintType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHinttextid(hinttextid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setInputType(inputType: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardAppearance(keyboardAppearance: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardToolbar(keyboardToolbar: Titanium.UI.View[] | Titanium.UI.Toolbar | Titanium.UI.iOS.Toolbar): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardToolbarColor(keyboardToolbarColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardToolbarHeight(keyboardToolbarHeight: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardType(keyboardType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftButton(leftButton: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftButtonMode(leftButtonMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftButtonPadding(leftButtonPadding: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMaxLength(maxLength: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMinimumFontSize(minimumFontSize: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPadding(padding: TextFieldPadding): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.TextField.padding](Titanium.UI.TextField.padding) for parity instead. + */ + setPaddingLeft: never; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.TextField.padding](Titanium.UI.TextField.padding) for parity instead. + */ + setPaddingRight: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPasswordMask(passwordMask: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPasswordRules(passwordRules: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setReturnKeyType(returnKeyType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightButton(rightButton: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightButtonMode(rightButtonMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightButtonPadding(rightButtonPadding: number): void; + + /** + * Selects the text in range (start, end). + */ + setSelection(start: number, end: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShowUndoRedoActions(showUndoRedoActions: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSuppressReturn(suppressReturn: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTextAlign(textAlign: string | number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalAlign(verticalAlign: number | string): void; + + } + /** + * Base event for class Titanium.UI.Toolbar + */ + interface ToolbarBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Toolbar; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Toolbar_click_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Toolbar_dblclick_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Toolbar_doubletap_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface Toolbar_focus_Event extends ToolbarBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Toolbar_keypressed_Event extends ToolbarBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface Toolbar_longclick_Event extends ToolbarBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface Toolbar_longpress_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Toolbar_pinch_Event extends ToolbarBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Toolbar_postlayout_Event extends ToolbarBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Toolbar_singletap_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Toolbar_swipe_Event extends ToolbarBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Toolbar_touchcancel_Event extends ToolbarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Toolbar_touchend_Event extends ToolbarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Toolbar_touchmove_Event extends ToolbarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Toolbar_touchstart_Event extends ToolbarBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Toolbar_twofingertap_Event extends ToolbarBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface ToolbarEventMap extends ProxyEventMap { + click: Toolbar_click_Event; + + dblclick: Toolbar_dblclick_Event; + + doubletap: Toolbar_doubletap_Event; + + focus: Toolbar_focus_Event; + + keypressed: Toolbar_keypressed_Event; + + longclick: Toolbar_longclick_Event; + + longpress: Toolbar_longpress_Event; + + pinch: Toolbar_pinch_Event; + + postlayout: Toolbar_postlayout_Event; + + singletap: Toolbar_singletap_Event; + + swipe: Toolbar_swipe_Event; + + touchcancel: Toolbar_touchcancel_Event; + + touchend: Toolbar_touchend_Event; + + touchmove: Toolbar_touchmove_Event; + + touchstart: Toolbar_touchstart_Event; + + twofingertap: Toolbar_twofingertap_Event; + + } + /** + * A Toolbar can contain buttons, as well as certain other widgets, including text fields and labels. + */ + class Toolbar extends Titanium.UI.View { + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: never; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: never; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: never; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: never; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: never; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: never; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: never; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: never; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: never; + + /** + * Size of the top end cap. + */ + backgroundTopCap: never; + + /** + * Background color for the toolbar, as a color name or hex triplet. + */ + barColor: string; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * Returns the margin after the toolbar's content when there are action buttons. + */ + contentInsetEndWithActions: number; + + /** + * Returns the margin at the toolbar's content start when there is a navigation button. + */ + contentInsetStartWithNavigation: number; + + /** + * If `true`, the background of the toolbar extends upwards. + */ + extendBackground: boolean; + + /** + * An array of buttons (or other widgets) contained in the toolbar. + */ + items: Titanium.UI.View[]; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: never; + + /** + * Image to be used as a logo in the Toolbar. + */ + logo: string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Image to be used for a navigation icon. + */ + navigationIcon: string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Image to be used for the overflow menu. + */ + overflowIcon: string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: never; + + /** + * Text of the subtitle. + */ + subtitle: string; + + /** + * Color for toolbar's subtitle + */ + subtitleTextColor: string; + + /** + * Text of the title. + */ + title: string; + + /** + * Color string with any Titanium supported format + */ + titleTextColor: string; + + /** + * If `true`, a translucent background color is used for the toolbar. + */ + translucent: boolean; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Toolbar, event: ToolbarEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Collapses expanded ActionViews if there is any + */ + collapseActionViews(): void; + + /** + * Collapses expandend ActionViews and hides overflow menu + */ + dismissPopupMenus(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ToolbarEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Returns the margin at the toolbar's content end. + */ + getContentInsetEnd(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentInsetEndWithActions(): number; + + /** + * Returns the margin on the left of the toolbar's content. + */ + getContentInsetLeft(): number; + + /** + * Returns the margin on the right of the toolbar's content. + */ + getContentInsetRight(): number; + + /** + * Returns the margin at the toolbar's content start. + */ + getContentInsetStart(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getContentInsetStartWithNavigation(): number; + + /** + * Returns the margin at the toolbar's content end that will be used with the current configuration of the toolbar. + */ + getCurrentContentInsetEnd(): number; + + /** + * Returns the margin on the left of the toolbar's content that will be used with the current configuration of the toolbar. + */ + getCurrentContentInsetLeft(): number; + + /** + * Returns the margin on the right of the toolbar's content that will be used with the current configuration of the toolbar. + */ + getCurrentContentInsetRight(): number; + + /** + * Returns the margin at the toolbar's content start that will be used with the current configuration of the toolbar. + */ + getCurrentContentInsetStart(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getItems(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLogo(): string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavigationIcon(): string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverflowIcon(): string | Titanium.Blob | Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSubtitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSubtitleTextColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleTextColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslucent(): boolean; + + /** + * Checks if the toolbar is currently hosting an expanded action view. + */ + hasExpandedActionView(): boolean; + + /** + * Hides the overflow menu if there is one. + */ + hideOverflowMenu(): void; + + /** + * Checks if the toolbar is currently hosting an expanded action view. + */ + isOverflowMenuShowing(): boolean; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Toolbar, event: ToolbarEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarColor(barColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentInsetEndWithActions(contentInsetEndWithActions: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setContentInsetStartWithNavigation(contentInsetStartWithNavigation: number): void; + + /** + * Sets the content margins of the toolbar + */ + setContentInsetsAbsolute(insetLeft: number, insetRight: number): void; + + /** + * Sets the content margins relative to the layout direction + */ + setContentInsetsRelative(insetStart: number, insetEnd: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setItems(items: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLogo(logo: string | Titanium.Blob | Titanium.Filesystem.File): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNavigationIcon(navigationIcon: string | Titanium.Blob | Titanium.Filesystem.File): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverflowIcon(overflowIcon: string | Titanium.Blob | Titanium.Filesystem.File): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSubtitle(subtitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSubtitleTextColor(subtitleTextColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleTextColor(titleTextColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslucent(translucent: boolean): void; + + /** + * Shows the overflow menu if there is one + */ + showOverflowMenu(): void; + + } + /** + * Base event for class Titanium.UI.View + */ + interface ViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.View; + + } + /** + * Fired when the device detects a click against the view. + */ + interface View_click_Event extends ViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface View_dblclick_Event extends ViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface View_doubletap_Event extends ViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface View_focus_Event extends ViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface View_keypressed_Event extends ViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface View_longclick_Event extends ViewBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface View_longpress_Event extends ViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface View_pinch_Event extends ViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface View_postlayout_Event extends ViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface View_singletap_Event extends ViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface View_swipe_Event extends ViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface View_touchcancel_Event extends ViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface View_touchend_Event extends ViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface View_touchmove_Event extends ViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface View_touchstart_Event extends ViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface View_twofingertap_Event extends ViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + interface ViewEventMap extends ProxyEventMap { + click: View_click_Event; + + dblclick: View_dblclick_Event; + + doubletap: View_doubletap_Event; + + focus: View_focus_Event; + + keypressed: View_keypressed_Event; + + longclick: View_longclick_Event; + + longpress: View_longpress_Event; + + pinch: View_pinch_Event; + + postlayout: View_postlayout_Event; + + singletap: View_singletap_Event; + + swipe: View_swipe_Event; + + touchcancel: View_touchcancel_Event; + + touchend: View_touchend_Event; + + touchmove: View_touchmove_Event; + + touchstart: View_touchstart_Event; + + twofingertap: View_twofingertap_Event; + + } + /** + * An empty drawing surface or container + */ + class View extends Titanium.Proxy { + /** + * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. + */ + accessibilityHidden: boolean; + + /** + * Briefly describes what performing an action (such as a click) on the view will do. + */ + accessibilityHint: string; + + /** + * A succint label identifying the view for the device's accessibility service. + */ + accessibilityLabel: string; + + /** + * A string describing the value (if any) of the view for the device's accessibility service. + */ + accessibilityValue: string; + + /** + * Coordinate of the view about which to pivot an animation. + */ + anchorPoint: Point; + + /** + * Current position of the view during an animation. + */ + readonly animatedCenter: Point; + + /** + * Background color of the view, as a color name or hex triplet. + */ + backgroundColor: string; + + /** + * Disabled background color of the view, as a color name or hex triplet. + */ + backgroundDisabledColor: string; + + /** + * Disabled background image for the view, specified as a local file path or URL. + */ + backgroundDisabledImage: string; + + /** + * Focused background color of the view, as a color name or hex triplet. + */ + backgroundFocusedColor: string; + + /** + * Focused background image for the view, specified as a local file path or URL. + */ + backgroundFocusedImage: string; + + /** + * A background gradient for the view. + */ + backgroundGradient: Gradient; + + /** + * Background image for the view, specified as a local file path or URL. + */ + backgroundImage: string; + + /** + * Size of the left end cap. + */ + backgroundLeftCap: number; + + /** + * Determines whether to tile a background across a view. + */ + backgroundRepeat: boolean; + + /** + * Selected background color of the view, as a color name or hex triplet. + */ + backgroundSelectedColor: string; + + /** + * Selected background image url for the view, specified as a local file path or URL. + */ + backgroundSelectedImage: string; + + /** + * Size of the top end cap. + */ + backgroundTopCap: number; + + /** + * Border color of the view, as a color name or hex triplet. + */ + borderColor: string; + + /** + * Radius for the rounded corners of the view's border. + */ + borderRadius: number; + + /** + * Border width of the view. + */ + borderWidth: number; + + /** + * View's bottom position, in platform-specific units. + */ + bottom: number | string; + + /** + * View's center position, in the parent view's coordinates. + */ + center: Point; + + /** + * Array of this view's child views. + */ + readonly children: Titanium.UI.View[]; + + /** + * View's clipping behavior. + */ + clipMode: number; + + /** + * Base elevation of the view relative to its parent in pixels. + */ + elevation: number; + + /** + * Whether view should be focusable while navigating with the trackball. + */ + focusable: boolean; + + /** + * View height, in platform-specific units. + */ + height: number | string; + + /** + * Sets the behavior when hiding an object to release or keep the free space + */ + hiddenBehavior: number; + + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: MinMaxOptions; + + /** + * Determines whether the layout has wrapping behavior. + */ + horizontalWrap: boolean; + + /** + * View's identifier. + */ + id?: string; + + /** + * Determines whether to keep the device screen on. + */ + keepScreenOn: boolean; + + /** + * Specifies how the view positions its children. + * One of: 'composite', 'vertical', or 'horizontal'. + */ + layout: string; + + /** + * View's left position, in platform-specific units. + */ + left: number | string; + + /** + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). + */ + opacity: number; + + /** + * When on, animate call overrides current animation if applicable. + */ + overrideCurrentAnimation: boolean; + + /** + * The preview context used in the 3D-Touch feature "Peek and Pop". + */ + previewContext: Titanium.UI.iOS.PreviewContext; + + /** + * Background color of the wrapper view when this view is used as either or . + * Defaults to `undefined`. Results in a light grey background color on the wrapper view. + */ + pullBackgroundColor: string; + + /** + * The bounding box of the view relative to its parent, in system units. + */ + readonly rect: DimensionWithAbsolutes; + + /** + * View's right position, in platform-specific units. + */ + right: number | string; + + /** + * Clockwise 2D rotation of the view in degrees. + */ + rotation: number; + + /** + * Clockwise rotation of the view in degrees (x-axis). + */ + rotationX: number; + + /** + * Clockwise rotation of the view in degrees (y-axis). + */ + rotationY: number; + + /** + * Scaling of the view in x-axis in pixels. + */ + scaleX: number; + + /** + * Scaling of the view in y-axis in pixels. + */ + scaleY: number; + + /** + * The size of the view in system units. + */ + readonly size: Dimension; + + /** + * Determines keyboard behavior when this view is focused. Defaults to . + */ + softKeyboardOnFocus: number; + + /** + * The view's tintColor + */ + tintColor: string; + + /** + * The view's top position. + */ + top: number | string; + + /** + * Determines whether view should receive touch events. + */ + touchEnabled: boolean; + + /** + * A material design visual construct that provides an instantaneous visual confirmation of touch point. + */ + touchFeedback: boolean; + + /** + * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. + */ + touchFeedbackColor: string; + + /** + * Transformation matrix to apply to the view. + */ + transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; + + /** + * A name to identify this view in activity transition. + */ + transitionName: string; + + /** + * Horizontal location of the view relative to its left position in pixels. + */ + translationX: number; + + /** + * Vertical location of the view relative to its top position in pixels. + */ + translationY: number; + + /** + * Depth of the view relative to its elevation in pixels. + */ + translationZ: number; + + /** + * Adds a vertical parallax effect to the view + */ + verticalMotionEffect: MinMaxOptions; + + /** + * Determines the color of the shadow. + */ + viewShadowColor: string; + + /** + * Determines the offset for the shadow of the view. + */ + viewShadowOffset: Point; + + /** + * Determines the blur radius used to create the shadow. + */ + viewShadowRadius: number; + + /** + * Determines whether the view is visible. + */ + visible: boolean; + + /** + * View's width, in platform-specific units. + */ + width: number | string; + + /** + * Z-index stack order position, relative to other sibling views. + */ + zIndex: number; + + /** + * Adds a child to this view's hierarchy. + */ + add(view: Titanium.UI.View | Titanium.UI.View[]): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.View, event: ViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Animates this view. + */ + animate(animation: Titanium.UI.Animation | Dictionary, callback?: (param0: any) => void): void; + + /** + * Removes all previously added motion effects. + */ + clearMotionEffects(): void; + + /** + * Translates a point from this view's coordinate system to another view's coordinate system. + */ + convertPointToView(point: Point, destinationView: Titanium.UI.View): Point; + + /** + * Finishes a batch update of the View's layout properties and schedules a layout pass of the + * view tree. + * @deprecated Use the [applyProperties](Titanium.Proxy.applyProperties) method to batch-update layout properties. + */ + finishLayout: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: ViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHidden(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityHint(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityLabel(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAccessibilityValue(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnchorPoint(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAnimatedCenter(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundDisabledImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundFocusedImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundGradient(): Gradient; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundLeftCap(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundRepeat(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundSelectedImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundTopCap(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderRadius(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBorderWidth(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCenter(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getClipMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getElevation(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFocusable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHiddenBehavior(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalMotionEffect(): MinMaxOptions; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHorizontalWrap(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeepScreenOn(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLayout(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverrideCurrentAnimation(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPreviewContext(): Titanium.UI.iOS.PreviewContext; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPullBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRect(): DimensionWithAbsolutes; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRotation(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRotationX(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRotationY(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScaleX(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScaleY(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize(): Dimension; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSoftKeyboardOnFocus(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchFeedback(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTouchFeedbackColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransitionName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslationX(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslationY(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslationZ(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVerticalMotionEffect(): MinMaxOptions; + + /** + * Returns the matching view of a given view ID. + */ + getViewById(id: string): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowOffset(): Point; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getViewShadowRadius(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getVisible(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZIndex(): number; + + /** + * Hides this view. + */ + hide(options?: AnimatedOptions): void; + + /** + * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + insertAt(params: ViewPositionOptions): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove(view: Titanium.UI.View): void; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.View, event: ViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt(params: ViewPositionOptions): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHidden(accessibilityHidden: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityHint(accessibilityHint: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityLabel(accessibilityLabel: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAccessibilityValue(accessibilityValue: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAnchorPoint(anchorPoint: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledColor(backgroundDisabledColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundDisabledImage(backgroundDisabledImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedColor(backgroundFocusedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundFocusedImage(backgroundFocusedImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundGradient(backgroundGradient: Gradient): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundImage(backgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundLeftCap(backgroundLeftCap: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundRepeat(backgroundRepeat: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedColor(backgroundSelectedColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundSelectedImage(backgroundSelectedImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundTopCap(backgroundTopCap: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderColor(borderColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderRadius(borderRadius: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBorderWidth(borderWidth: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom(bottom: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCenter(center: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setClipMode(clipMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setElevation(elevation: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFocusable(focusable: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHeight(height: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHiddenBehavior(hiddenBehavior: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalMotionEffect(horizontalMotionEffect: MinMaxOptions): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHorizontalWrap(horizontalWrap: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeepScreenOn(keepScreenOn: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLayout(layout: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft(left: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity(opacity: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverrideCurrentAnimation(overrideCurrentAnimation: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPreviewContext(previewContext: Titanium.UI.iOS.PreviewContext): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPullBackgroundColor(pullBackgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight(right: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRotation(rotation: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRotationX(rotationX: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRotationY(rotationY: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScaleX(scaleX: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScaleY(scaleY: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSoftKeyboardOnFocus(softKeyboardOnFocus: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTintColor(tintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop(top: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchEnabled(touchEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchFeedback(touchFeedback: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTouchFeedbackColor(touchFeedbackColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransform(transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransitionName(transitionName: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslationX(translationX: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslationY(translationY: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslationZ(translationZ: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVerticalMotionEffect(verticalMotionEffect: MinMaxOptions): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowColor(viewShadowColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowOffset(viewShadowOffset: Point): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setViewShadowRadius(viewShadowRadius: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setVisible(visible: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWidth(width: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZIndex(zIndex: number): void; + + /** + * Makes this view visible. + */ + show(options?: AnimatedOptions): void; + + /** + * Starts a batch update of this view's layout properties. + * @deprecated Use the [Titanium.Proxy.applyProperties](Titanium.Proxy.applyProperties) method to batch-update layout properties. + */ + startLayout: never; + + /** + * Returns an image of the rendered view, as a Blob. + */ + toImage(callback?: (param0: Titanium.Blob) => void, honorScaleFactor?: boolean): Titanium.Blob; + + /** + * Performs a batch update of all supplied layout properties and schedules a layout pass after + * they have been updated. + * @deprecated Use the [Titanium.Proxy.applyProperties](Titanium.Proxy.applyProperties) method to batch-update layout properties. + */ + updateLayout: never; + + } + /** + * Base event for class Titanium.UI.WebView + */ + interface WebViewBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.WebView; + + } + /** + * Fired when the device detects a click against the view. + */ + interface WebView_click_Event extends WebViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface WebView_dblclick_Event extends WebViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface WebView_doubletap_Event extends WebViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the view element gains focus. + */ + interface WebView_focus_Event extends WebViewBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface WebView_keypressed_Event extends WebViewBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface WebView_longclick_Event extends WebViewBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface WebView_longpress_Event extends WebViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface WebView_pinch_Event extends WebViewBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface WebView_postlayout_Event extends WebViewBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface WebView_singletap_Event extends WebViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface WebView_swipe_Event extends WebViewBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface WebView_touchcancel_Event extends WebViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface WebView_touchend_Event extends WebViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface WebView_touchmove_Event extends WebViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface WebView_touchstart_Event extends WebViewBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface WebView_twofingertap_Event extends WebViewBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired before the web view starts loading its content. + */ + interface WebView_beforeload_Event extends WebViewBaseEvent { + /** + * Indicate if the event was generated from the main page or an iframe. + */ + isMainFrame: boolean; + + /** + * Constant indicating the user's action. + */ + navigationType: number; + + /** + * URL of the web document being loaded. + */ + url: string; + + } + /** + * Fired when the web view cannot load the content. + */ + interface WebView_error_Event extends WebViewBaseEvent { + /** + * Error code. + * If the error was generated by the operating system, that system's error value + * is used. Otherwise, this value will be -1. + */ + code: number; + + /** + * Error message, if any returned. May be undefined. + */ + error: string; + + /** + * A constant or underlying platform specific error code. Use code instead. + * @deprecated Removed on ios in 8.0.0. Removed on android in 9.0.0. + */ + errorCode: never; + + /** + * Error message. Use error instead. + * @deprecated Removed on ios in 8.0.0. Removed on android in 9.0.0. + */ + message: never; + + /** + * Indicates a successful operation. Returns `false`. + */ + success: boolean; + + /** + * URL of the web document. + */ + url: string; + + } + /** + * Fired when the web view content is loaded. + */ + interface WebView_load_Event extends WebViewBaseEvent { + /** + * URL of the web document. + */ + url: string; + + } + /** + * Fired when loading resource. + */ + interface WebView_onLoadResource_Event extends WebViewBaseEvent { + /** + * The url of the resource that will load. + */ + url: string; + + } + /** + * Fired when an SSL error occurred. + */ + interface WebView_sslerror_Event extends WebViewBaseEvent { + /** + * SSL error code. + */ + code: number; + + } + /** + * Fired when a blacklisted URL is stopped. + */ + interface WebView_blacklisturl_Event extends WebViewBaseEvent { + /** + * The URL of the web document that is stopped. + */ + url: string; + + } + /** + * Fired when a script message is received from a webpage. + */ + interface WebView_message_Event extends WebViewBaseEvent { + /** + * The body of the message sent from webview. + */ + body: string; + + /** + * A Boolean value indicating whether the frame is the web site's main frame or a subframe. + */ + isMainFrame: boolean; + + /** + * The name of the message handler to which the message is sent. + */ + name: string; + + /** + * URL of the web document being loaded. + */ + url: string; + + } + /** + * Fired when webpage download progresses. + */ + interface WebView_progress_Event extends WebViewBaseEvent { + /** + * URL of the web document being loaded. + */ + url: string; + + /** + * An estimate of what fraction of the current navigation has been loaded. + */ + value: number; + + } + /** + * Fired when a web view receives a server redirect. + */ + interface WebView_redirect_Event extends WebViewBaseEvent { + /** + * Page title of webpage. + */ + title: string; + + /** + * URL of the web document being loaded. + */ + url: string; + + } + /** + * Fired when contains scheme of opening url. + */ + interface WebView_handleurl_Event extends WebViewBaseEvent { + /** + * Handler . + */ + handler: string; + + /** + * URL of the web document being loaded. + */ + url: string; + + } + interface WebViewEventMap extends ProxyEventMap { + beforeload: WebView_beforeload_Event; + + blacklisturl: WebView_blacklisturl_Event; + + click: WebView_click_Event; + + dblclick: WebView_dblclick_Event; + + doubletap: WebView_doubletap_Event; + + error: WebView_error_Event; + + focus: WebView_focus_Event; + + handleurl: WebView_handleurl_Event; + + keypressed: WebView_keypressed_Event; + + load: WebView_load_Event; + + longclick: WebView_longclick_Event; + + longpress: WebView_longpress_Event; + + message: WebView_message_Event; + + onLoadResource: WebView_onLoadResource_Event; + + pinch: WebView_pinch_Event; + + postlayout: WebView_postlayout_Event; + + progress: WebView_progress_Event; + + redirect: WebView_redirect_Event; + + singletap: WebView_singletap_Event; + + sslerror: WebView_sslerror_Event; + + swipe: WebView_swipe_Event; + + touchcancel: WebView_touchcancel_Event; + + touchend: WebView_touchend_Event; + + touchmove: WebView_touchmove_Event; + + touchstart: WebView_touchstart_Event; + + twofingertap: WebView_twofingertap_Event; + + } + /** + * The web view allows you to open an HTML5 based view which can load either local or remote content. + */ + class WebView extends Titanium.UI.View { + /** + * List of allowed URL schemes for the web view. + */ + allowedURLSchemes: string[]; + + /** + * A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations. + */ + allowsBackForwardNavigationGestures: boolean; + + /** + * A Boolean value that determines whether pressing on a link displays a preview of the + * destination for the link. + */ + allowsLinkPreview: boolean; + + /** + * Path of file or directory to allow read access by the WebView. + */ + assetsDirectory: string; + + /** + * An array of url strings to blacklist. + */ + blacklistedURLs: string[]; + + /** + * Determines how a cache is used in this web view. + */ + cacheMode: number; + + /** + * The cache policy for the request. + */ + cachePolicy: number; + + /** + * Array of this view's child views. + */ + readonly children: never; + + /** + * The configuration for the new web view. + */ + configuration: Titanium.UI.iOS.WebViewConfiguration; + + /** + * Web content to load. + */ + data: Titanium.Blob | Titanium.Filesystem.File; + + /** + * Determines whether the view will bounce when scrolling to the edge of the scrollable region. + */ + disableBounce: boolean; + + /** + * Determines whether or not the webview should not be able to display the context menu. + */ + disableContextMenu: boolean; + + /** + * Enable adding javascript interfaces internally to webview prior to JELLY_BEAN_MR1 (Android 4.2) + */ + enableJavascriptInterface: boolean; + + /** + * If `true`, zoom controls are enabled. + */ + enableZoomControls: boolean; + + /** + * Lets the webview handle platform supported urls + * @deprecated This property in no more supported in Titanium SDK 8.0.0+. Use property + * in conjuction with . See the example section + * "Usage of allowedURLSchemes and handleurl in iOS". + * + */ + handlePlatformUrl: boolean; + + /** + * Hides activity indicator when loading remote URL. + */ + hideLoadIndicator: boolean; + + /** + * HTML content of this web view. + */ + html: string; + + /** + * Controls whether to ignore invalid SSL certificates or not. + */ + ignoreSslError: boolean; + + /** + * A Boolean value indicating whether web content can programmatically display the keyboard. + */ + keyboardDisplayRequiresUserAction: boolean; + + /** + * Enables using light touches to make a selection and activate mouseovers. + */ + lightTouchEnabled: boolean; + + /** + * Indicates if the webview is loading content. + */ + loading: boolean; + + /** + * If `true`, allows the loading of insecure resources from a secure origin. + */ + mixedContentMode: boolean; + + /** + * Callback function called when there is a request for the application to create a new window + * to host new content. + */ + onCreateWindow: (param0: any) => void; + + /** + * Fired before navigating to a link. + */ + onlink: (param0: OnLinkURLResponse) => void; + + /** + * Determines the behavior when the user overscrolls the view. + */ + overScrollMode: number; + + /** + * Determines how to treat content that requires plugins in this web view. + */ + pluginState: number; + + /** + * An estimate of what fraction of the current navigation has been loaded. + */ + readonly progress: number; + + /** + * Sets extra request headers for this web view to use on subsequent URL requests. + */ + requestHeaders: any; + + /** + * If `true`, scale contents to fit the web view. + */ + scalesPageToFit: boolean; + + /** + * Controls whether the scroll-to-top gesture is effective. + */ + scrollsToTop: boolean; + + /** + * A Boolean value indicating whether all resources on the page have been loaded through + * securely encrypted connections. + */ + readonly secure: boolean; + + /** + * The level of granularity with which the user can interactively select content in the web view. + */ + readonly selectionGranularity: number; + + /** + * The timeout interval for the request, in seconds. + */ + timeout: number; + + /** + * Returns page title of webpage. + */ + readonly title: string; + + /** + * URL to the web document. + */ + url: string; + + /** + * The User-Agent header used by the web view when requesting content. + */ + userAgent: string; + + /** + * Explicitly specifies if this web view handles touches. + */ + willHandleTouches: boolean; + + /** + * Manage the zoom-level of the current page. + */ + zoomLevel: number; + + /** + * Adds a child to this view's hierarchy. + */ + add: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.WebView, event: WebViewEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds a script message handler. + */ + addScriptMessageHandler(handlerName: string): void; + + /** + * Adds a user script. + */ + addUserScript(source: string, injectionTime: number, mainFrameOnly: boolean): void; + + /** + * An object which maintains a list of visited pages used to go back and forward to the most recent page. + */ + backForwardList(): BackForwardList; + + /** + * Returns `true` if the web view can go back in its history list. + */ + canGoBack(): boolean; + + /** + * Returns `true` if the web view can go forward in its history list. + */ + canGoForward(): boolean; + + /** + * Evaluates a JavaScript expression inside the context of the web view and + * optionally, returns a result. If a callback function is passed in as second argument, + * the evaluation will take place asynchronously and the the callback function will be called with the result. + */ + evalJS(code: string, callback?: (param0: string) => void): string; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: WebViewEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowedURLSchemes(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsBackForwardNavigationGestures(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAllowsLinkPreview(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAssetsDirectory(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBlacklistedURLs(): string[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCacheMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getCachePolicy(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getChildren: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getConfiguration(): Titanium.UI.iOS.WebViewConfiguration; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getData(): Titanium.Blob | Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisableBounce(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDisableContextMenu(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnableJavascriptInterface(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getEnableZoomControls(): boolean; + + /** + * Gets the value of the property. + * @deprecated This property in no more supported in Titanium SDK 8.0.0+. Use property + * in conjuction with . See the example section + * "Usage of allowedURLSchemes and handleurl in iOS". + * + */ + getHandlePlatformUrl(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHideLoadIndicator(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHtml(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIgnoreSslError(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getKeyboardDisplayRequiresUserAction(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLightTouchEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLoading(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMixedContentMode(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnCreateWindow(): (param0: any) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnlink(): (param0: OnLinkURLResponse) => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOverScrollMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getPluginState(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getProgress(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRequestHeaders(): any; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScalesPageToFit(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getScrollsToTop(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSecure(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSelectionGranularity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTimeout(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUrl(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getUserAgent(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWillHandleTouches(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getZoomLevel(): number; + + /** + * Goes back one entry in the web view's history list, to the previous page. + */ + goBack(): void; + + /** + * Goes forward one entry in this web view's history list, if possible. + */ + goForward(): void; + + /** + * Pauses native webview plugins. + */ + pause(): void; + + /** + * Releases memory when the web view is no longer needed. + */ + release(): void; + + /** + * Reloads the current webpage. + */ + reload(): void; + + /** + * Removes a child view from this view's hierarchy. + */ + remove: never; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Removes all associated user scripts. + */ + removeAllUserScripts(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.WebView, event: WebViewEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes a script message handler. + */ + removeScriptMessageHandler(name: string): void; + + /** + * Forces the web view to repaint its contents. + */ + repaint(): void; + + /** + * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. + */ + replaceAt: never; + + /** + * Resume native webview plugins. + */ + resume(): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowedURLSchemes(allowedURLSchemes: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsBackForwardNavigationGestures(allowsBackForwardNavigationGestures: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAllowsLinkPreview(allowsLinkPreview: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAssetsDirectory(assetsDirectory: string): void; + + /** + * Sets the basic authentication for this web view to use on subsequent URL requests. + */ + setBasicAuthentication(username: string, password: string, persistence: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBlacklistedURLs(blacklistedURLs: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCacheMode(cacheMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setCachePolicy(cachePolicy: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setConfiguration(configuration: Titanium.UI.iOS.WebViewConfiguration): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setData(data: Titanium.Blob | Titanium.Filesystem.File): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisableBounce(disableBounce: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setDisableContextMenu(disableContextMenu: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnableJavascriptInterface(enableJavascriptInterface: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setEnableZoomControls(enableZoomControls: boolean): void; + + /** + * Sets the value of the property. + * @deprecated This property in no more supported in Titanium SDK 8.0.0+. Use property + * in conjuction with . See the example section + * "Usage of allowedURLSchemes and handleurl in iOS". + * + */ + setHandlePlatformUrl(handlePlatformUrl: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHideLoadIndicator(hideLoadIndicator: boolean): void; + + /** + * Sets the value of [html](Titanium.UI.WebView.html) property. + */ + setHtml(html: any, options?: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIgnoreSslError(ignoreSslError: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setKeyboardDisplayRequiresUserAction(keyboardDisplayRequiresUserAction: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLightTouchEnabled(lightTouchEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLoading(loading: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setMixedContentMode(mixedContentMode: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnCreateWindow(onCreateWindow: (param0: any) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnlink(onlink: (param0: OnLinkURLResponse) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOverScrollMode(overScrollMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setPluginState(pluginState: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRequestHeaders(requestHeaders: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScalesPageToFit(scalesPageToFit: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setScrollsToTop(scrollsToTop: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTimeout(timeout: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUrl(url: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setUserAgent(userAgent: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWillHandleTouches(willHandleTouches: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setZoomLevel(zoomLevel: number): void; + + /** + * Add native properties for observing for change. + */ + startListeningToProperties(propertyList: ReadonlyArray): void; + + /** + * Remove native properties from observing. + */ + stopListeningToProperties(propertyList: ReadonlyArray): void; + + /** + * Stops loading a currently loading page. + */ + stopLoading(): void; + + /** + * Takes a snapshot of the view's visible viewport. + */ + takeSnapshot(callback: (param0: SnapshotResult) => void): void; + + } + /** + * Base event for class Titanium.UI.Window + */ + interface WindowBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.UI.Window; + + } + /** + * Fired when the device detects a click against the view. + */ + interface Window_click_Event extends WindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double click against the view. + */ + interface Window_dblclick_Event extends WindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a double tap against the view. + */ + interface Window_doubletap_Event extends WindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the window gains focus. + */ + interface Window_focus_Event extends WindowBaseEvent { + } + /** + * Fired when a hardware key is pressed in the view. + */ + interface Window_keypressed_Event extends WindowBaseEvent { + /** + * The code for the physical key that was pressed. For more details, see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html). This API is experimental and subject to change. + */ + keyCode: number; + + } + /** + * Fired when the device detects a long click. + */ + interface Window_longclick_Event extends WindowBaseEvent { + } + /** + * Fired when the device detects a long press. + */ + interface Window_longpress_Event extends WindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a pinch gesture. + */ + interface Window_pinch_Event extends WindowBaseEvent { + /** + * The average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpan: number; + + /** + * The average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanX: number; + + /** + * The average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + currentSpanY: number; + + /** + * The X coordinate of the current gesture's focal point. + */ + focusX: number; + + /** + * The Y coordinate of the current gesture's focal point. + */ + focusY: number; + + /** + * Returns `true` if a scale gesture is in progress, `false` otherwise. + */ + inProgress: boolean; + + /** + * The previous average distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpan: number; + + /** + * The previous average X distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanX: number; + + /** + * The previous average Y distance between each of the pointers forming the gesture in progress through + * the focal point. + */ + previousSpanY: number; + + /** + * The scale factor relative to the points of the two touches in screen coordinates. + */ + scale: number; + + /** + * The event time of the current event being processed. + */ + time: number; + + /** + * The time difference in milliseconds between the previous accepted scaling event and the + * current scaling event. + */ + timeDelta: number; + + /** + * The velocity of the pinch in scale factor per second. + */ + velocity: number; + + } + /** + * Fired when a layout cycle is finished. + */ + interface Window_postlayout_Event extends WindowBaseEvent { + } + /** + * Fired when the device detects a single tap against the view. + */ + interface Window_singletap_Event extends WindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a swipe gesture against the view. + */ + interface Window_swipe_Event extends WindowBaseEvent { + /** + * Direction of the swipe--either 'left', 'right', 'up', or 'down'. + */ + direction: string; + + /** + * X coordinate of the event's endpoint from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event's endpoint from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is interrupted by the device. + */ + interface Window_touchcancel_Event extends WindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when a touch event is completed. + */ + interface Window_touchend_Event extends WindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Penciland are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects movement of a touch. + */ + interface Window_touchmove_Event extends WindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired as soon as the device detects a touch gesture. + */ + interface Window_touchstart_Event extends WindowBaseEvent { + /** + * A value which indicates the stylus angle on the screen. If the stylus is perpendicular to the screen or no stylus is + * being used, the value will be Pi/2. If the stylus is parallel to the screen, the value will be 0. + * Note: This property is only available for iOS devices that support 3D-Touch and are 9.1 or later. + */ + altitudeAngle: number; + + /** + * The x value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewX: number; + + /** + * The y value of the unit vector that points in the direction of the azimuth of the stylus. + * Note: This property is only available for iOS devices that support the Apple Pencil and are 9.1 or later. + */ + azimuthUnitVectorInViewY: number; + + /** + * The current force value of the touch event. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later and on some Android devices. + */ + force: number; + + /** + * Maximum possible value of the force property. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + maximumPossibleForce: number; + + /** + * The current size of the touch area. Note: This property is only available on some Android devices. + */ + size: number; + + /** + * The time (in seconds) when the touch was used in correlation with the system start up. + * Note: This property is only available for iOS devices that support 3D-Touch and run 9.0 or later. + */ + timestamp: number; + + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the device detects a two-finger tap against the view. + */ + interface Window_twofingertap_Event extends WindowBaseEvent { + /** + * X coordinate of the event from the `source` view's coordinate system. + */ + x: number; + + /** + * Y coordinate of the event from the `source` view's coordinate system. + */ + y: number; + + } + /** + * Fired when the back button is pressed by the user. + */ + interface Window_androidback_Event extends WindowBaseEvent { + } + /** + * Fired when the Camera button is released. + */ + interface Window_androidcamera_Event extends WindowBaseEvent { + } + /** + * Fired when the Camera button is half-pressed then released. + */ + interface Window_androidfocus_Event extends WindowBaseEvent { + } + /** + * Fired when the Search button is released. + */ + interface Window_androidsearch_Event extends WindowBaseEvent { + } + /** + * Fired when the volume down button is released. + */ + interface Window_androidvoldown_Event extends WindowBaseEvent { + } + /** + * Fired when the volume up button is released. + */ + interface Window_androidvolup_Event extends WindowBaseEvent { + } + /** + * Fired when the window loses focus. + */ + interface Window_blur_Event extends WindowBaseEvent { + } + /** + * Fired when the window is closed. + */ + interface Window_close_Event extends WindowBaseEvent { + } + /** + * Fired when the window is opened. + */ + interface Window_open_Event extends WindowBaseEvent { + } + interface WindowEventMap extends ProxyEventMap { + androidback: Window_androidback_Event; + + androidcamera: Window_androidcamera_Event; + + androidfocus: Window_androidfocus_Event; + + androidsearch: Window_androidsearch_Event; + + androidvoldown: Window_androidvoldown_Event; + + androidvolup: Window_androidvolup_Event; + + blur: Window_blur_Event; + + click: Window_click_Event; + + close: Window_close_Event; + + dblclick: Window_dblclick_Event; + + doubletap: Window_doubletap_Event; + + focus: Window_focus_Event; + + keypressed: Window_keypressed_Event; + + longclick: Window_longclick_Event; + + longpress: Window_longpress_Event; + + open: Window_open_Event; + + pinch: Window_pinch_Event; + + postlayout: Window_postlayout_Event; + + singletap: Window_singletap_Event; + + swipe: Window_swipe_Event; + + touchcancel: Window_touchcancel_Event; + + touchend: Window_touchend_Event; + + touchmove: Window_touchmove_Event; + + touchstart: Window_touchstart_Event; + + twofingertap: Window_twofingertap_Event; + + } + /** + * The Window is an empty drawing surface or container. + */ + class Window extends Titanium.UI.View { + /** + * Contains a reference to the Android Activity object associated with this window. + */ + readonly activity: Titanium.Android.Activity; + + /** + * The type of transition used when activity is entering. + */ + activityEnterTransition: number; + + /** + * The type of transition used when activity is exiting. + */ + activityExitTransition: number; + + /** + * The type of transition used when reentering to a previously started activity. + */ + activityReenterTransition: number; + + /** + * The type of transition used when returning from a previously started activity. + */ + activityReturnTransition: number; + + /** + * The type of enter transition used when animating shared elements between two activities. + */ + activitySharedElementEnterTransition: number; + + /** + * The type of exit transition used when animating shared elements between two activities. + */ + activitySharedElementExitTransition: number; + + /** + * The type of reenter transition used when animating shared elements between two activities. + */ + activitySharedElementReenterTransition: number; + + /** + * The type of return transition used when animating shared elements between two activities. + */ + activitySharedElementReturnTransition: number; + + /** + * Specifies whether or not the view controller should automatically adjust its scroll view insets. + */ + autoAdjustScrollViewInsets: boolean; + + /** + * Title for the back button. This is only valid when the window is a child of a tab. + */ + backButtonTitle: string; + + /** + * The image to show as the back button. This is only valid when the window is a child of a tab. + */ + backButtonTitleImage: string | Titanium.Blob; + + /** + * Background color of the window, as a color name or hex triplet. + */ + backgroundColor: string; + + /** + * Background color for the nav bar, as a color name or hex triplet. + */ + barColor: string; + + /** + * Background image for the nav bar, specified as a URL to a local image. + */ + barImage: string; + + /** + * Window's bottom position, in platform-specific units. + */ + bottom: number | string; + + /** + * Boolean value indicating if the application should exit when the Android + * Back button is pressed while the window is being shown or when the window + * is closed programmatically. + */ + exitOnClose: boolean; + + /** + * An array of supported values specified using the EXTEND_EDGE constants in . + */ + extendEdges: number[]; + + /** + * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. + */ + extendSafeArea: boolean; + + /** + * Treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays. + */ + flagSecure: boolean; + + /** + * Boolean value indicating if the window is fullscreen. + */ + fullscreen: boolean; + + /** + * Set this to true to hide the shadow image of the navigation bar. + */ + hideShadow: boolean; + + /** + * Set this to true to hide the back button of navigation bar. + */ + hidesBackButton: boolean; + + /** + * Set this to true to hide the navigation bar on swipe. + */ + hidesBarsOnSwipe: boolean; + + /** + * Set this to true to hide the navigation bar on tap. + */ + hidesBarsOnTap: boolean; + + /** + * Set this to true to hide the navigation bar when the keyboard appears. + */ + hidesBarsWhenKeyboardAppears: boolean; + + /** + * A Boolean value indicating whether the integrated search bar is hidden when scrolling any underlying content. + */ + hidesSearchBarWhenScrolling: boolean; + + /** + * Boolean value indicating whether the system is allowed to hide the visual indicator for returning to the Home screen. + */ + homeIndicatorAutoHidden: boolean; + + /** + * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). + */ + includeOpaqueBars: boolean; + + /** + * The mode to use when displaying the title of the navigation bar. + */ + largeTitleDisplayMode: number; + + /** + * A Boolean value indicating whether the title should be displayed in a large format. + */ + largeTitleEnabled: boolean; + + /** + * Window's left position, in platform-specific units. + */ + left: number | string; + + /** + * View to show in the left nav bar area. + */ + leftNavButton: Titanium.UI.View; + + /** + * An Array of views to show in the left nav bar area. + */ + leftNavButtons: Titanium.UI.View[]; + + /** + * Indicates to open a modal window or not. + */ + modal: boolean; + + /** + * Hides the navigation bar (`true`) or shows the navigation bar (`false`). + */ + navBarHidden: boolean; + + /** + * The tintColor to apply to the navigation bar. + */ + navTintColor: string; + + /** + * The instance hosting this window. + */ + readonly navigationWindow: Titanium.UI.NavigationWindow; + + /** + * Callback function that overrides the default behavior when the user presses the **Back** + * button. + */ + onBack: () => void; + + /** + * The opacity from 0.0-1.0. + */ + opacity: number; + + /** + * Current orientation of the window. + */ + readonly orientation: number; + + /** + * Array of supported orientation modes, specified using the orientation + * constants defined in . + */ + orientationModes: number[]; + + /** + * Window's right position, in platform-specific units. + */ + right: number | string; + + /** + * View to show in the right nav bar area. + */ + rightNavButton: Titanium.UI.View; + + /** + * An Array of views to show in the right nav bar area. + */ + rightNavButtons: Titanium.UI.View[]; + + /** + * The padding needed to safely display content without it being overlapped by the screen insets and notches. + */ + readonly safeAreaPadding: Padding; + + /** + * Shadow image for the navigation bar, specified as a URL to a local image.. + */ + shadowImage: string; + + /** + * Boolean value to enable split action bar. + * @deprecated Deprecated in AppCompat theme. The same behaviour can be achived by using Toolbar. + */ + splitActionBar: boolean; + + /** + * The status bar style associated with this window. + */ + statusBarStyle: number; + + /** + * Maintain a sustainable level of performance. + */ + sustainedPerformanceMode: boolean; + + /** + * Boolean value indicating if the user should be able to close a window using a swipe gesture. + */ + swipeToClose: boolean; + + /** + * Boolean value indicating if the tab bar should be hidden. + */ + tabBarHidden: boolean; + + /** + * Name of the theme to apply to the window. + */ + theme: string; + + /** + * Title of the window. + */ + title: string; + + /** + * Title text attributes of the window. + */ + titleAttributes: titleAttributesParams; + + /** + * View to show in the title area of the nav bar. + */ + titleControl: Titanium.UI.View; + + /** + * Image to show in the title area of the nav bar, specified as a local file path or URL. + */ + titleImage: string; + + /** + * Title prompt for the window. + */ + titlePrompt: string; + + /** + * Key identifying a string from the locale file to use for the window title. + */ + titleid: string; + + /** + * Key identifying a string from the locale file to use for the window title prompt. + */ + titlepromptid: string; + + /** + * Array of button objects to show in the window's toolbar. + */ + toolbar: Titanium.UI.View[]; + + /** + * Window's top position, in platform-specific units. + */ + top: number | string; + + /** + * Use a transition animation when opening or closing windows in a + * or . + */ + transitionAnimation: Titanium.Proxy; + + /** + * Boolean value indicating if the nav bar is translucent. + */ + translucent: boolean; + + /** + * Loads a JavaScript file from a local URL. + * @deprecated + */ + url: never; + + /** + * Additional flags to set on the Activity Window. + */ + windowFlags: number; + + /** + * Set the pixel format for the Activity's Window. + */ + windowPixelFormat: number; + + /** + * Determines whether a window's soft input area (ie software keyboard) is visible + * as it receives focus and how the window behaves in order to accomodate it while keeping its + * contents in view. + */ + windowSoftInputMode: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: K, callback: (this: Titanium.UI.Window, event: WindowEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds a common UI element to participate in window transition animation. + */ + addSharedElement(view: Titanium.UI.View, transitionName: string): void; + + /** + * Closes the window. + */ + close(params?: Titanium.UI.Animation | Dictionary | closeWindowParams): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: K, event?: WindowEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivity(): Titanium.Android.Activity; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivityEnterTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivityExitTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivityReenterTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivityReturnTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivitySharedElementEnterTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivitySharedElementExitTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivitySharedElementReenterTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getActivitySharedElementReturnTransition(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAutoAdjustScrollViewInsets(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackButtonTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackButtonTitleImage(): string | Titanium.Blob; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBarImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBottom(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getExitOnClose(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getExtendEdges(): number[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getExtendSafeArea(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFlagSecure(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFullscreen(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHideShadow(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHidesBackButton(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHidesBarsOnSwipe(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHidesBarsOnTap(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHidesBarsWhenKeyboardAppears(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHidesSearchBarWhenScrolling(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHomeIndicatorAutoHidden(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getIncludeOpaqueBars(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLargeTitleDisplayMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLargeTitleEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeft(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftNavButton(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLeftNavButtons(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getModal(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavBarHidden(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavTintColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNavigationWindow(): Titanium.UI.NavigationWindow; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOnBack(): () => void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOpacity(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOrientation(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getOrientationModes(): number[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRight(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightNavButton(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getRightNavButtons(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSafeAreaPadding(): Padding; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getShadowImage(): string; + + /** + * Gets the value of the property. + * @deprecated Deprecated in AppCompat theme. The same behaviour can be achived by using Toolbar. + */ + getSplitActionBar(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getStatusBarStyle(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSustainedPerformanceMode(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSwipeToClose(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTabBarHidden(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTheme(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitle(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleAttributes(): titleAttributesParams; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleControl(): Titanium.UI.View; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitlePrompt(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitleid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTitlepromptid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getToolbar(): Titanium.UI.View[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTop(): number | string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTransitionAnimation(): Titanium.Proxy; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTranslucent(): boolean; + + /** + * Gets the value of the property. + * @deprecated + */ + getUrl: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWindowFlags(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWindowPixelFormat(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWindowSoftInputMode(): number; + + /** + * Hides the navigation bar. + */ + hideNavBar(options?: AnimatedOptions): void; + + /** + * Hides the tab bar. Must be called before opening the window. + */ + hideTabBar(): void; + + /** + * Makes the bottom toolbar invisible. + */ + hideToolbar(options?: AnimatedOptions): void; + + /** + * Opens the window. + */ + open(params?: openWindowParams): void; + + /** + * Removes all child views from this view's hierarchy. + */ + removeAllChildren: never; + + /** + * Clears all added shared elements. + */ + removeAllSharedElements(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: K, callback: (this: Titanium.UI.Window, event: WindowEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivityEnterTransition(activityEnterTransition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivityExitTransition(activityExitTransition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivityReenterTransition(activityReenterTransition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivityReturnTransition(activityReturnTransition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivitySharedElementEnterTransition(activitySharedElementEnterTransition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivitySharedElementExitTransition(activitySharedElementExitTransition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivitySharedElementReenterTransition(activitySharedElementReenterTransition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setActivitySharedElementReturnTransition(activitySharedElementReturnTransition: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setAutoAdjustScrollViewInsets(autoAdjustScrollViewInsets: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackButtonTitle(backButtonTitle: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackButtonTitleImage(backButtonTitleImage: string | Titanium.Blob): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarColor(barColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBarImage(barImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBottom(bottom: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setExitOnClose(exitOnClose: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setExtendEdges(extendEdges: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setExtendSafeArea(extendSafeArea: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFlagSecure(flagSecure: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setFullscreen(fullscreen: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHideShadow(hideShadow: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHidesBackButton(hidesBackButton: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHidesBarsOnSwipe(hidesBarsOnSwipe: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHidesBarsOnTap(hidesBarsOnTap: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHidesBarsWhenKeyboardAppears(hidesBarsWhenKeyboardAppears: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHidesSearchBarWhenScrolling(hidesSearchBarWhenScrolling: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setHomeIndicatorAutoHidden(homeIndicatorAutoHidden: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setIncludeOpaqueBars(includeOpaqueBars: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLargeTitleDisplayMode(largeTitleDisplayMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLargeTitleEnabled(largeTitleEnabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeft(left: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftNavButton(leftNavButton: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLeftNavButtons(leftNavButtons: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setModal(modal: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNavBarHidden(navBarHidden: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setNavTintColor(navTintColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOnBack(onBack: () => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOpacity(opacity: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setOrientationModes(orientationModes: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRight(right: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightNavButton(rightNavButton: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setRightNavButtons(rightNavButtons: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setShadowImage(shadowImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Deprecated in AppCompat theme. The same behaviour can be achived by using Toolbar. + */ + setSplitActionBar(splitActionBar: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setStatusBarStyle(statusBarStyle: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSustainedPerformanceMode(sustainedPerformanceMode: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setSwipeToClose(swipeToClose: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTabBarHidden(tabBarHidden: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTheme(theme: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitle(title: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleAttributes(titleAttributes: titleAttributesParams): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleControl(titleControl: Titanium.UI.View): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleImage(titleImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitlePrompt(titlePrompt: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitleid(titleid: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTitlepromptid(titlepromptid: string): void; + + /** + * Sets the array of items to show in the window's toolbar. + */ + setToolbar(items: ReadonlyArray, params?: windowToolbarParam): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTop(top: number | string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTransitionAnimation(transitionAnimation: Titanium.Proxy): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setTranslucent(translucent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated + */ + setUrl: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWindowFlags(windowFlags: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWindowPixelFormat(windowPixelFormat: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setWindowSoftInputMode(windowSoftInputMode: number): void; + + /** + * Makes the navigation bar visible. + */ + showNavBar(options?: AnimatedOptions): void; + + /** + * Makes the bottom toolbar visible. + */ + showToolbar(options?: AnimatedOptions): void; + + } + /** + * Apple iOS specific UI capabilities. All properties, methods and events in this namespace will + * only work on Apple iOS devices. + */ + class iOS extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Value of the badge for the application's springboard icon. + */ + static appBadge: number; + + /** + * Determines whether the shake to edit system-wide capability is enabled. + */ + static appSupportsShakeToEdit: boolean; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Determines if the 3D-Touch capability "Force Touch" is supported (`true`) or not (`false`) by the device. + */ + static readonly forceTouchSupported: boolean; + + /** + * Sets the global status bar background color for the application. + */ + static statusBarBackgroundColor: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates and returns an instance of . + * @deprecated iAd has been deprecated in iOS 10 and SDK 5.5.0. It was removed as part of the SDK 7.0.0. + */ + static createAdView: never; + + /** + * Creates and returns an instance of . + */ + static createAnchorAttachmentBehavior(parameters?: Dictionary): Titanium.UI.iOS.AnchorAttachmentBehavior; + + /** + * Creates and returns an instance of . + */ + static createAnimator(parameters?: Dictionary): Titanium.UI.iOS.Animator; + + /** + * Creates and returns an instance of . + */ + static createApplicationShortcuts(parameters?: Dictionary): Titanium.UI.iOS.ApplicationShortcuts; + + /** + * Creates and returns an instance of . + * @deprecated Use [Attribute](Attribute) instead. + */ + static createAttribute: never; + + /** + * Creates and returns an instance of . + * @deprecated Use [Titanium.UI.AttributedString](Titanium.UI.AttributedString) instead. + */ + static createAttributedString: never; + + /** + * Creates and returns an instance of . + */ + static createBlurView(parameters?: Dictionary): Titanium.UI.iOS.BlurView; + + /** + * Creates and returns an instance of . + */ + static createCollisionBehavior(parameters?: Dictionary): Titanium.UI.iOS.CollisionBehavior; + + /** + * Creates and returns an instance of . + */ + static createCoverFlowView(parameters?: Dictionary): Titanium.UI.iOS.CoverFlowView; + + /** + * Creates and returns an instance of . + */ + static createDocumentViewer(parameters?: Dictionary): Titanium.UI.iOS.DocumentViewer; + + /** + * Creates and returns an instance of . + */ + static createDynamicItemBehavior(parameters?: Dictionary): Titanium.UI.iOS.DynamicItemBehavior; + + /** + * Creates and returns an instance of . + */ + static createFeedbackGenerator(parameters?: Dictionary): Titanium.UI.iOS.FeedbackGenerator; + + /** + * Creates and returns an instance of . + */ + static createGravityBehavior(parameters?: Dictionary): Titanium.UI.iOS.GravityBehavior; + + /** + * Creates a live photo badge to be used together with the + * API. + */ + static createLivePhotoBadge(type: number): Titanium.Blob; + + /** + * Creates and returns an instance of . + */ + static createLivePhotoView(parameters?: Dictionary): Titanium.UI.iOS.LivePhotoView; + + /** + * Creates and returns an instance of . + */ + static createMenuPopup(parameters?: Dictionary): Titanium.UI.iOS.MenuPopup; + + /** + * Creates and returns an instance of . + * @deprecated Use [Titanium.UI.NavigationWindow](Titanium.UI.NavigationWindow) instead. + */ + static createNavigationWindow(parameters?: Dictionary): Titanium.UI.iOS.NavigationWindow; + + /** + * Creates and returns an instance of . + */ + static createPreviewAction(parameters?: Dictionary): Titanium.UI.iOS.PreviewAction; + + /** + * Creates and returns an instance of . + */ + static createPreviewActionGroup(parameters?: Dictionary): Titanium.UI.iOS.PreviewActionGroup; + + /** + * Creates and returns an instance of . + */ + static createPreviewContext(parameters?: Dictionary): Titanium.UI.iOS.PreviewContext; + + /** + * Creates and returns an instance of . + */ + static createPushBehavior(parameters?: Dictionary): Titanium.UI.iOS.PushBehavior; + + /** + * Creates and returns an instance of . + */ + static createSnapBehavior(parameters?: Dictionary): Titanium.UI.iOS.SnapBehavior; + + /** + * Creates and returns an instance of . + */ + static createSplitWindow(parameters?: Dictionary): Titanium.UI.iOS.SplitWindow; + + /** + * Creates and returns an instance of . + */ + static createStepper(parameters?: Dictionary): Titanium.UI.iOS.Stepper; + + /** + * Creates and returns an instance of . + */ + static createSystemButton(parameters?: Dictionary): Titanium.UI.iOS.SystemButton; + + /** + * Creates and returns an instance of . + * @deprecated Use [Titanium.UI.TabbedBar](Titanium.UI.TabbedBar) instead. + */ + static createTabbedBar(parameters?: Dictionary): Titanium.UI.iOS.TabbedBar; + + /** + * Creates and returns an instance of . + * @deprecated Use the cross-platform [Titanium.UI.Toolbar](Titanium.UI.Toolbar) instead. + */ + static createToolbar(parameters?: Dictionary): Titanium.UI.iOS.Toolbar; + + /** + * Creates and returns an instance of . + */ + static createTransitionAnimation(parameters?: Dictionary): Titanium.UI.iOS.TransitionAnimation; + + /** + * Creates and returns an instance of . + */ + static createViewAttachmentBehavior(parameters?: Dictionary): Titanium.UI.iOS.ViewAttachmentBehavior; + + /** + * Creates and returns an instance of . + */ + static createWebViewConfiguration(parameters?: Dictionary): Titanium.UI.iOS.WebViewConfiguration; + + /** + * Creates and returns an instance of . + */ + static createWebViewDecisionHandler(parameters?: Dictionary): Titanium.UI.iOS.WebViewDecisionHandler; + + /** + * Creates and returns an instance of . + */ + static createWebViewProcessPool(parameters?: Dictionary): Titanium.UI.iOS.WebViewProcessPool; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAppBadge(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAppSupportsShakeToEdit(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getForceTouchSupported(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getStatusBarBackgroundColor(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAppBadge(appBadge: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAppSupportsShakeToEdit(appSupportsShakeToEdit: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setMODAL_PRESENTATION_CURRENT_CONTEXT(MODAL_PRESENTATION_CURRENT_CONTEXT: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setMODAL_PRESENTATION_OVER_CURRENT_CONTEXT(MODAL_PRESENTATION_OVER_CURRENT_CONTEXT: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setMODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN(MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setStatusBarBackgroundColor(statusBarBackgroundColor: string): void; + + /** + * Get image from SF Symbols provided by Apple. + */ + static systemImage(name: string): Titanium.Blob; + + } + /** + * iPad specific UI capabilities. + */ + class iPad extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates and returns an instance of . + * @deprecated Use [Titanium.UI.iOS.DocumentViewer](Titanium.UI.iOS.DocumentViewer) instead. + */ + static createDocumentViewer: never; + + /** + * Creates and returns an instance of . + */ + static createPopover(parameters?: Dictionary): Titanium.UI.iPad.Popover; + + /** + * Creates and returns an instance of . + * @deprecated Use [Titanium.UI.iOS.SplitWindow](Titanium.UI.iOS.SplitWindow) instead. + */ + static createSplitWindow: never; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + } + /** + * The iPhone/iPad-specific UI capabilities. All properties, methods and events in this namespace + * will only work on Apple iOS systems. + * @deprecated Use the unified [Titanium.UI.iOS](Titanium.UI.iOS) namespace instead. + */ + const iPhone: never; } - - /** - * Stream module containing stream utility methods. - */ - namespace Stream { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Use with [createStream](Titanium.Stream.createStream) to open a stream in read - * mode. - */ - const MODE_READ: number; - - /** - * Use with [createStream](Titanium.Stream.createStream) to open a stream in write - * mode. - */ - const MODE_WRITE: number; - - /** - * Use with [createStream](Titanium.Stream.createStream) to open a stream in append - * mode. - */ - const MODE_APPEND: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Creates stream from a `Buffer` or `Blob` object. - */ - function createStream(params: CreateStreamArgs): Titanium.IOStream; - - /** - * Asynchronously reads data from an [IOStream](Titanium.IOStream) into a buffer. - */ - function read(sourceStream: Titanium.IOStream, buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: ReadCallbackArgs) => any): void; - - /** - * Reads all data from the specified [IOStream](Titanium.IOStream). - */ - function readAll(sourceStream: Titanium.IOStream, buffer?: Titanium.Buffer, resultsCallback?: (param0: ReadCallbackArgs) => any): Titanium.Buffer | void; - - /** - * Asynchronously writes data from a buffer to an [IOStream](Titanium.IOStream). - */ - function write(outputStream: Titanium.IOStream, buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): void; - - /** - * Writes all data from an input stream to an output stream. - */ - function writeStream(inputStream: Titanium.IOStream, outputStream: Titanium.IOStream, maxChunkSize: number, resultsCallback?: (param0: WriteStreamCallbackArgs) => any): void; - - /** - * Reads data from input stream and passes it to a handler method. - */ - function pump(inputStream: Titanium.IOStream, handler: (param0: PumpCallbackArgs) => any, maxChunkSize: number, isAsync?: boolean): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - - /** - * The top-level Utils module, containing a set of JavaScript methods that are often useful when - * building applications. - */ - namespace Utils { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Returns the specified data decoded from Base64. - */ - function base64decode(obj: string): Titanium.Blob; - - /** - * Returns the specified data decoded from Base64. - */ - function base64decode(obj: Titanium.Blob): Titanium.Blob; - - /** - * Returns the specified data decoded from Base64. - */ - function base64decode(obj: Titanium.Filesystem.File): Titanium.Blob; - - /** - * Returns the specified data encoded to Base64. - */ - function base64encode(obj: string): Titanium.Blob; - - /** - * Returns the specified data encoded to Base64. - */ - function base64encode(obj: Titanium.Blob): Titanium.Blob; - - /** - * Returns the specified data encoded to Base64. - */ - function base64encode(obj: Titanium.Filesystem.File): Titanium.Blob; - - /** - * Returns a MD5 digest of the specified data as a hex-based String. - */ - function md5HexDigest(obj: string): string; - - /** - * Returns a MD5 digest of the specified data as a hex-based String. - */ - function md5HexDigest(obj: Titanium.Blob): string; - - /** - * Returns a SHA-1 hash of the specified data as a hex-based String. - */ - function sha1(obj: string): string; - - /** - * Returns a SHA-1 hash of the specified data as a hex-based String. - */ - function sha1(obj: Titanium.Blob): string; - - /** - * Returns a SHA-256 hash of the specified data as a hex-based String. - */ - function sha256(obj: string): string; - - /** - * Returns a SHA-256 hash of the specified data as a hex-based String. - */ - function sha256(obj: Titanium.Blob): string; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - } - - /** - * Used to enable data and file transfers between a watchOS and iOS application. - */ - namespace WatchSession { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * Returns the current activation state of the watch. - */ - const activationState: number; - - /** - * The watch is currently not activated. - */ - const ACTIVATION_STATE_NOT_ACTIVATED: number; - - /** - * The watch is currently inactive. - */ - const ACTIVATION_STATE_INACTIVE: number; - - /** - * The watch is currently activated. - */ - const ACTIVATION_STATE_ACTIVATED: number; - - /** - * Returns `true` if there is more content for the session to deliver. - */ - const hasContentPending: boolean; - - /** - * The number of calls remaining to `transferCurrentComplication` before the system starts - * transferring the complicationUserInfo as regular userInfos. - */ - const remainingComplicationUserInfoTransfers: number; - - /** - * Returns `true` if the device supports watch connectivity. - */ - const isSupported: boolean; - - /** - * Returns `true` if the device is paired with a watch. - */ - const isPaired: boolean; - - /** - * Returns `true` if the accompanying watch app is installed. - */ - const isWatchAppInstalled: boolean; - - /** - * Returns `true` if complication is enabled on the installed watch app. - */ - const isComplicationEnabled: boolean; - - /** - * Returns `true` if the watch is currently reachable. - */ - const isReachable: boolean; - - /** - * Returns `true` if the watch is currently activated. - */ - const isActivated: boolean; - - /** - * The most recent application context sent to the watch app. - */ - const recentApplicationContext: any; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Activates the watch session - */ - function activateSession(): void; - - /** - * Sends a message to the apple watch. - */ - function sendMessage(message: any, reply?: (param0: MessageReply) => any): void; - - /** - * Sends an app context update to the apple watch. - */ - function updateApplicationContext(params: any): void; - - /** - * Transfers an user info to the apple watch. - */ - function transferUserInfo(params: any): void; - - /** - * Transfers a file to the apple watch. - */ - function transferFile(params: any): void; - - /** - * Transfers complication data to the watch application. - */ - function transferCurrentComplication(params: any): void; - - /** - * Cancels all incomplete user info and complication transfers to the apple watch. - */ - function cancelAllUserInfoTransfers(): void; - - /** - * Cancels all incomplete file transfers to the apple watch. - */ - function cancelAllFileTransfers(): void; - - /** - * Cancels all incomplete transfers to the apple watch. - */ - function cancelAllTransfers(): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getActivationState(): number; - - /** - * Gets the value of the property. - */ - function getHasContentPending(): boolean; - - /** - * Gets the value of the property. - */ - function getRemainingComplicationUserInfoTransfers(): number; - - /** - * Gets the value of the property. - */ - function getIsSupported(): boolean; - - /** - * Gets the value of the property. - */ - function getIsPaired(): boolean; - - /** - * Gets the value of the property. - */ - function getIsWatchAppInstalled(): boolean; - - /** - * Gets the value of the property. - */ - function getIsComplicationEnabled(): boolean; - - /** - * Gets the value of the property. - */ - function getIsReachable(): boolean; - - /** - * Gets the value of the property. - */ - function getIsActivated(): boolean; - - /** - * Gets the value of the property. - */ - function getRecentApplicationContext(): any; - - } - /** * The top level XML module. The XML module is used for parsing and processing XML-based content. */ namespace XML { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Parses an XML string into a object. - */ - function parseString(xml: string): Titanium.XML.Document; - - /** - * Serializes a [Node](Titanium.XML.Node) object into a string. - */ - function serializeToString(node: Titanium.XML.Node): string; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - /** * Represents an attribute of an [Element](Titanium.XML.Element). */ - interface Attr extends Titanium.Proxy { - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. - */ - readonly ELEMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. - */ - readonly ATTRIBUTE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. - */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - + class Attr extends Titanium.XML.Node { /** * Attribute name */ @@ -55674,77 +76043,47 @@ declare namespace Titanium { value: string; /** - * Appends the node `newChild` as a child of this node. + * Adds the specified callback as an event listener for the named event. */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Returns a duplicate of this node. + * Fires a synthesized event to any registered listeners. */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getName(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getOwnerElement(): Titanium.XML.Element; /** * Gets the value of the property. + * @deprecated Access instead. */ getSpecified(): boolean; /** * Gets the value of the property. + * @deprecated Access instead. */ getValue(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setValue(value: string): void; @@ -55753,426 +76092,28 @@ declare namespace Titanium { * Used to include blocks of literal text containing characters that would otherwise need * to be escaped. */ - interface CDATASection extends Titanium.Proxy { + class CDATASection extends Titanium.XML.Text { /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. + * Adds the specified callback as an event listener for the named event. */ - readonly ELEMENT_NODE: number; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. + * Fires a synthesized event to any registered listeners. */ - readonly ATTRIBUTE_NODE: number; + fireEvent(name: string, event?: any): void; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. + * Removes the specified callback as an event listener for the named event. */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - - /** - * The character data of the node that implements this interface. Throws an exception during setting if this node is readonly. - */ - data: string; - - /** - * The number of characters that are available through data and the substringData method. This may have the value zero, i.e., may be empty. - */ - readonly length: number; - - /** - * Appends the node `newChild` as a child of this node. - */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Returns a duplicate of this node. - */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the string specified. Throws an exception if this node is readonly. - */ - appendData(arg: string): void; - - /** - * Remove a range of characters from the node. Upon success, data and length reflect the change. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. - */ - deleteData(offset: number, count: number): void; - - /** - * Insert a string at the specified offset. Throws an exception if this node is readonly, if offset is negative, or if offset is beyond the data's length. - */ - insertData(offset: number, arg: string): void; - - /** - * Replace the characters starting at the specified offset with the specified string. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. - */ - replaceData(offset: number, count: number, arg: string): void; - - /** - * Extracts a range of data from the node. Throws an exception if offset is negative, offset is beyond the data's length, or if count is negative. - */ - substringData(offset: number, count: number): string; - - /** - * Breaks this node into two nodes at the specified by offset, and returns a new node of the same type, which contains all the content at and after the offset point. Throws an exception if the specified offset is negative or if this node is read only. - */ - splitText(offset: number): Titanium.XML.Text; - - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; - - /** - * Gets the value of the property. - */ - getData(): string; - - /** - * Sets the value of the property. - */ - setData(data: string): void; - - /** - * Gets the value of the property. - */ - getLength(): number; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * An interface extending with a set of attributes and methods for accessing character data in the DOM. * Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-FF21A306) on Android and iOS. For reasons of compatibility with the javascript engine, text is represented by UTF-8 instead of UTF-16 on Android and iOS. */ - interface CharacterData extends Titanium.Proxy { - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. - */ - readonly ELEMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. - */ - readonly ATTRIBUTE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. - */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - + class CharacterData extends Titanium.XML.Node { /** * The character data of the node that implements this interface. Throws an exception during setting if this node is readonly. */ @@ -56184,49 +76125,9 @@ declare namespace Titanium { readonly length: number; /** - * Appends the node `newChild` as a child of this node. + * Adds the specified callback as an event listener for the named event. */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Returns a duplicate of this node. - */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the string specified. Throws an exception if this node is readonly. @@ -56238,305 +76139,79 @@ declare namespace Titanium { */ deleteData(offset: number, count: number): void; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getData(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLength(): number; + /** * Insert a string at the specified offset. Throws an exception if this node is readonly, if offset is negative, or if offset is beyond the data's length. */ insertData(offset: number, arg: string): void; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Replace the characters starting at the specified offset with the specified string. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. */ replaceData(offset: number, count: number, arg: string): void; - /** - * Extracts a range of data from the node. Throws an exception if offset is negative, offset is beyond the data's length, or if count is negative. - */ - substringData(offset: number, count: number): string; - - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; - - /** - * Gets the value of the property. - */ - getData(): string; - /** * Sets the value of the property. + * @deprecated Set the value using instead. */ setData(data: string): void; /** - * Gets the value of the property. + * Extracts a range of data from the node. Throws an exception if offset is negative, offset is beyond the data's length, or if count is negative. */ - getLength(): number; + substringData(offset: number, count: number): string; } /** * Represents the contents of an XML comment. */ - interface Comment extends Titanium.Proxy { + class Comment extends Titanium.XML.CharacterData { /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. + * Adds the specified callback as an event listener for the named event. */ - readonly ELEMENT_NODE: number; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. + * Fires a synthesized event to any registered listeners. */ - readonly ATTRIBUTE_NODE: number; + fireEvent(name: string, event?: any): void; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. + * Removes the specified callback as an event listener for the named event. */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - - /** - * The character data of the node that implements this interface. Throws an exception during setting if this node is readonly. - */ - data: string; - - /** - * The number of characters that are available through data and the substringData method. This may have the value zero, i.e., may be empty. - */ - readonly length: number; - - /** - * Appends the node `newChild` as a child of this node. - */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Returns a duplicate of this node. - */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the string specified. Throws an exception if this node is readonly. - */ - appendData(arg: string): void; - - /** - * Remove a range of characters from the node. Upon success, data and length reflect the change. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. - */ - deleteData(offset: number, count: number): void; - - /** - * Insert a string at the specified offset. Throws an exception if this node is readonly, if offset is negative, or if offset is beyond the data's length. - */ - insertData(offset: number, arg: string): void; - - /** - * Replace the characters starting at the specified offset with the specified string. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. - */ - replaceData(offset: number, count: number, arg: string): void; - - /** - * Extracts a range of data from the node. Throws an exception if offset is negative, offset is beyond the data's length, or if count is negative. - */ - substringData(offset: number, count: number): string; - - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; - - /** - * Gets the value of the property. - */ - getData(): string; - - /** - * Sets the value of the property. - */ - setData(data: string): void; - - /** - * Gets the value of the property. - */ - getLength(): number; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * The interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490) on Android and iOS. */ - interface DOMImplementation extends Titanium.Proxy { + class DOMImplementation extends Titanium.Proxy { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Creates an object of the specified type with its document element. Raises an exception if qualifiedName is malformed, contains an illegal character, or is inconsistent with namespaceURI. Also raises an exception if doctype has already been used with a different document. */ @@ -56547,170 +76222,26 @@ declare namespace Titanium { */ createDocumentType(qualifiedName: string, publicId: string, systemId: string): Titanium.XML.DocumentType; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Test if the implements a specific feature. */ hasFeature(feature: string, version: string): boolean; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + } /** * The DOM Document returned from . */ - interface Document extends Titanium.Proxy { - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. - */ - readonly ELEMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. - */ - readonly ATTRIBUTE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. - */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - + class Document extends Titanium.XML.Node { /** * An interface to the list of entities that are defined for the document, such as via a Document Type Definition (DTD). */ @@ -56728,49 +76259,9 @@ declare namespace Titanium { readonly implementation: Titanium.XML.DOMImplementation; /** - * Appends the node `newChild` as a child of this node. + * Adds the specified callback as an event listener for the named event. */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Returns a duplicate of this node. - */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Creates an attribute with the given name. @@ -56822,6 +76313,23 @@ declare namespace Titanium { */ createTextNode(data: string): Titanium.XML.Text; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDoctype(): Titanium.XML.DocumentType; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getDocumentElement(): Titanium.XML.Element; + /** * Returns an [Element](Titanium.XML.Element) that has an ID attribute with the given value. */ @@ -56837,6 +76345,12 @@ declare namespace Titanium { */ getElementsByTagNameNS(namespaceURI: string, localname: string): Titanium.XML.NodeList; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getImplementation(): Titanium.XML.DOMImplementation; + /** * Imports a node from another document to this document, * without altering or removing the source node from the original document. @@ -56844,393 +76358,35 @@ declare namespace Titanium { importNode(importedNode: Titanium.XML.Node, deep: boolean): Titanium.XML.Node; /** - * Gets the value of the property. + * Removes the specified callback as an event listener for the named event. */ - getAttributes(): Titanium.XML.NamedNodeMap; - - /** - * Gets the value of the property. - */ - getDoctype(): Titanium.XML.DocumentType; - - /** - * Gets the value of the property. - */ - getDocumentElement(): Titanium.XML.Element; - - /** - * Gets the value of the property. - */ - getImplementation(): Titanium.XML.DOMImplementation; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * A lightweight document object used as a container for a group of nodes. */ - interface DocumentFragment extends Titanium.Proxy { + class DocumentFragment extends Titanium.XML.Node { /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. + * Adds the specified callback as an event listener for the named event. */ - readonly ELEMENT_NODE: number; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. + * Fires a synthesized event to any registered listeners. */ - readonly ATTRIBUTE_NODE: number; + fireEvent(name: string, event?: any): void; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. + * Removes the specified callback as an event listener for the named event. */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - - /** - * Appends the node `newChild` as a child of this node. - */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Returns a duplicate of this node. - */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * Each has a `doctype` attribute whose value is either 'null' or a object. */ - interface DocumentType extends Titanium.Proxy { - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. - */ - readonly ELEMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. - */ - readonly ATTRIBUTE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. - */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - + class DocumentType extends Titanium.XML.Node { /** * A containing the general entities, both external and internal, declared in the DTD. Parameter entities are not contained. Duplicates are discarded. */ @@ -57262,172 +76418,72 @@ declare namespace Titanium { readonly systemId: string; /** - * Appends the node `newChild` as a child of this node. + * Adds the specified callback as an event listener for the named event. */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Returns a duplicate of this node. + * Fires a synthesized event to any registered listeners. */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getEntities(): Titanium.XML.NamedNodeMap; /** * Gets the value of the property. + * @deprecated Access instead. */ getInternalSubset(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getName(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getNotations(): Titanium.XML.NamedNodeMap; /** * Gets the value of the property. + * @deprecated Access instead. */ getPublicId(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getSystemId(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + } /** * Represents an element in a DOM document, a defined by a start-tag and end-tag (or an empty tag). Elements may have [attributes](Titanium.XML.Attr) associated with them. * Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-745549614) on Android and iOS with some non-standard extensions. */ - interface Element extends Titanium.Proxy { + class Element extends Titanium.XML.Node { /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. + * The name of the element, as defined by its tag. */ - readonly ELEMENT_NODE: number; + readonly tagName: string; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. + * Content (value) of all text nodes within this node. + * @deprecated Use [Titanium.XML.Element.textContent](Titanium.XML.Element.textContent) instead. */ - readonly ATTRIBUTE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. - */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; + readonly text: string; /** * Content (value) of all text nodes within this node. @@ -57435,121 +76491,14 @@ declare namespace Titanium { readonly textContent: string; /** - * Content (value) of all text nodes within this node. + * Adds the specified callback as an event listener for the named event. */ - readonly text: string; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. + * Fires a synthesized event to any registered listeners. */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - - /** - * The name of the element, as defined by its tag. - */ - readonly tagName: string; - - /** - * Appends the node `newChild` as a child of this node. - */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Returns a duplicate of this node. - */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; + fireEvent(name: string, event?: any): void; /** * Retrieves an attribute value by name, returning it as a string. @@ -57557,14 +76506,9 @@ declare namespace Titanium { getAttribute(name: string): string; /** - * Adds a new attribute. Any attribute with the same name is replaced. Throws an exception if the element is read-only, or if the name contains an illegal character. + * Retrieves an attribute value by local name and namespace URI, returning it as a string. */ - setAttribute(name: string, value: string): void; - - /** - * Removes an attribute by name. If the attribute has a default value, it is immediately replaced with this default, including namespace URI and local name. Throws an exception if the element is read-only. - */ - removeAttribute(name: string): void; + getAttributeNS(namespaceURI: string, localName: string): string; /** * Retrieves an attribute value by name, returning it as a object. @@ -57572,50 +76516,26 @@ declare namespace Titanium { getAttributeNode(name: string): Titanium.XML.Attr; /** - * Adds a new attribute. Any attribute with the same `nodeName` as the argument is replaced. Throws an exception if the element is read-only, if `newAttr` is from a different document, or if `newAttr` is already an attribute of another element. + * Retrieves an attribute value by local name and namespace URI, returning it as a object. */ - setAttributeNode(newAttr: Titanium.XML.Attr): Titanium.XML.Attr; - - /** - * Removes the specified attribute node. If the removed attribute has a default value, it is replaced immediately, with the same namespace and local name as the removed attribute, if applicable. Throws an exception if the element is read-only, or the attribute is not an attribute of the element. - */ - removeAttributeNode(oldAttr: Titanium.XML.Attr): void; + getAttributeNodeNS(namespaceURI: string, localName: string): Titanium.XML.Attr; /** * Retrieves a of all descendant elements with a given tag name, in preorder traversal. */ getElementsByTagName(name: string): Titanium.XML.NodeList; - /** - * Retrieves an attribute value by local name and namespace URI, returning it as a string. - */ - getAttributeNS(namespaceURI: string, localName: string): string; - - /** - * Adds a new attribute. Any attribute with the same local name and namespace URI is present on the element is replaced, with its prefix changed to that of the `qualifiedName` parameter. Throws an exception if the element is read-only, if the name contains an illegal character, or if the qualified name contains an error. - */ - setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void; - - /** - * Removes an attribute by local name and namespace URI. If the attribute has a default value, it is immediately replaced with this default, including namespace URI and local name. Throws an exception if the element is read-only. - */ - removeAttributeNS(namespaceURI: string, localName: string): void; - - /** - * Retrieves an attribute value by local name and namespace URI, returning it as a object. - */ - getAttributeNodeNS(namespaceURI: string, localName: string): Titanium.XML.Attr; - - /** - * Adds a new attribute. Any attribute with the same local name and namespace URI is replaced. Throws an exception if the element is read-only, if `newAttr` is from a different document, or if `newAttr` is already an attribute of another element. - */ - setAttributeNodeNS(newAttr: Titanium.XML.Attr): Titanium.XML.Attr; - /** * Retrieves a of all descendant elements with a given local name and namespace URI, in preorder traversal. */ getElementsByTagNameNS(namespaceURI: string, localName: string): Titanium.XML.NodeList; + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getTagName(): string; + /** * Determines whether or not an attribute with the given name is available in the element, or has a default value. */ @@ -57627,175 +76547,51 @@ declare namespace Titanium { hasAttributeNS(namespaceURI: string, localName: string): boolean; /** - * Gets the value of the property. + * Removes an attribute by name. If the attribute has a default value, it is immediately replaced with this default, including namespace URI and local name. Throws an exception if the element is read-only. */ - getAttributes(): Titanium.XML.NamedNodeMap; + removeAttribute(name: string): void; /** - * Gets the value of the property. + * Removes an attribute by local name and namespace URI. If the attribute has a default value, it is immediately replaced with this default, including namespace URI and local name. Throws an exception if the element is read-only. */ - getTagName(): string; + removeAttributeNS(namespaceURI: string, localName: string): void; + + /** + * Removes the specified attribute node. If the removed attribute has a default value, it is replaced immediately, with the same namespace and local name as the removed attribute, if applicable. Throws an exception if the element is read-only, or the attribute is not an attribute of the element. + */ + removeAttributeNode(oldAttr: Titanium.XML.Attr): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds a new attribute. Any attribute with the same name is replaced. Throws an exception if the element is read-only, or if the name contains an illegal character. + */ + setAttribute(name: string, value: string): void; + + /** + * Adds a new attribute. Any attribute with the same local name and namespace URI is present on the element is replaced, with its prefix changed to that of the `qualifiedName` parameter. Throws an exception if the element is read-only, if the name contains an illegal character, or if the qualified name contains an error. + */ + setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void; + + /** + * Adds a new attribute. Any attribute with the same `nodeName` as the argument is replaced. Throws an exception if the element is read-only, if `newAttr` is from a different document, or if `newAttr` is already an attribute of another element. + */ + setAttributeNode(newAttr: Titanium.XML.Attr): Titanium.XML.Attr; + + /** + * Adds a new attribute. Any attribute with the same local name and namespace URI is replaced. Throws an exception if the element is read-only, if `newAttr` is from a different document, or if `newAttr` is already an attribute of another element. + */ + setAttributeNodeNS(newAttr: Titanium.XML.Attr): Titanium.XML.Attr; } /** * This interface represents an entity, either parsed or unparsed, in an XML document. Note that this models the entity itself not the entity declaration. The nodeName attribute that is inherited from Node contains the name of the entity. An Entity node does not have any parent. * Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-527DCFF2) on Android and iOS. */ - interface Entity extends Titanium.Proxy { - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. - */ - readonly ELEMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. - */ - readonly ATTRIBUTE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. - */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - + class Entity extends Titanium.XML.Node { /** * For unparsed entities, the name of the notation for the entity. For parsed entities, this is `null`. */ @@ -57812,304 +76608,94 @@ declare namespace Titanium { readonly systemId: string; /** - * Appends the node `newChild` as a child of this node. + * Adds the specified callback as an event listener for the named event. */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Returns a duplicate of this node. + * Fires a synthesized event to any registered listeners. */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; + fireEvent(name: string, event?: any): void; /** * Gets the value of the property. + * @deprecated Access instead. */ getNotationName(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getPublicId(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getSystemId(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + } /** * Represents an XML entity reference. */ - interface EntityReference extends Titanium.Proxy { + class EntityReference extends Titanium.XML.Node { /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. + * Adds the specified callback as an event listener for the named event. */ - readonly ELEMENT_NODE: number; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. + * Fires a synthesized event to any registered listeners. */ - readonly ATTRIBUTE_NODE: number; + fireEvent(name: string, event?: any): void; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. + * Removes the specified callback as an event listener for the named event. */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - - /** - * Appends the node `newChild` as a child of this node. - */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Returns a duplicate of this node. - */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * A key-value paired map that maps String objects to objects. * Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1780488922) on Android and iOS. */ - interface NamedNodeMap extends Titanium.Proxy { + class NamedNodeMap extends Titanium.Proxy { /** * The number of nodes in the map. The valid range of child node indices is 0-`length`-1, inclusive. */ readonly length: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLength(): number; + /** * Retrieves a node specified by name. */ getNamedItem(name: string): Titanium.XML.Node; /** - * Adds a node using its `nodeName` attribute. If a node with that name is already present, it is replaced. Throws an exception if the argument is from a different document, the map is read-only, or the argument is an attribute of another element. + * Retrieves a node specified by name and namespace. Returns `null` if no matching node is in the map. */ - setNamedItem(node: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Removes a node from the map specified by name. When this map contains attributes attached to an element, if the removed attribtue is known to have a default, it is replaced with that value. - */ - removeNamedItem(name: string): Titanium.XML.Node; + getNamedItemNS(namespaceURI: string, localName: string): Titanium.XML.Node; /** * Retrieves the node at the specified index of the map. Note that NamedNodeMaps are not ordered. @@ -58117,14 +76703,14 @@ declare namespace Titanium { item(index: number): Titanium.XML.Node; /** - * Retrieves a node specified by name and namespace. Returns `null` if no matching node is in the map. + * Removes the specified callback as an event listener for the named event. */ - getNamedItemNS(namespaceURI: string, localName: string): Titanium.XML.Node; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * Adds a node using its `namespaceURI` and `localName` attributes. If a node with that name is already present, it is replaced. Throws an exception if the argument is from a different document, the map is read-only, or the argument is an attribute of another element. + * Removes a node from the map specified by name. When this map contains attributes attached to an element, if the removed attribtue is known to have a default, it is replaced with that value. */ - setNamedItemNS(node: Titanium.XML.Node): Titanium.XML.Node; + removeNamedItem(name: string): Titanium.XML.Node; /** * Removes a node from the map specified by local name and namespace URI. When this map contains attributes attached to an element, if the removed attribtue is known to have a default, it is replaced with that value. Returns the node removed from the map, or `null` if there is no corresponding node. @@ -58132,63 +76718,44 @@ declare namespace Titanium { removeNamedItemNS(namespaceURI: string, localName: string): Titanium.XML.Node; /** - * Gets the value of the property. + * Adds a node using its `nodeName` attribute. If a node with that name is already present, it is replaced. Throws an exception if the argument is from a different document, the map is read-only, or the argument is an attribute of another element. */ - getLength(): number; + setNamedItem(node: Titanium.XML.Node): Titanium.XML.Node; + + /** + * Adds a node using its `namespaceURI` and `localName` attributes. If a node with that name is already present, it is replaced. Throws an exception if the argument is from a different document, the map is read-only, or the argument is an attribute of another element. + */ + setNamedItemNS(node: Titanium.XML.Node): Titanium.XML.Node; } /** * A single node in the [Document](Titanium.XML.Document) tree. */ - interface Node extends Titanium.Proxy { - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. - */ - readonly ELEMENT_NODE: number; - + class Node extends Titanium.Proxy { /** * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an * [Attr](Titanium.XML.Attr) node. */ readonly ATTRIBUTE_NODE: number; - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. - */ - readonly TEXT_NODE: number; - /** * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a * [CDATASection](Titanium.XML.CDATASection) node. */ readonly CDATA_SECTION_NODE: number; - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - /** * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a * [Comment](Titanium.XML.Comment) node. */ readonly COMMENT_NODE: number; + /** + * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a + * [DocumentFragment](Titanium.XML.DocumentFragment) node. + */ + readonly DOCUMENT_FRAGMENT_NODE: number; + /** * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a * [Document](Titanium.XML.Document) node. @@ -58202,10 +76769,22 @@ declare namespace Titanium { readonly DOCUMENT_TYPE_NODE: number; /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. + * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an + * [Element](Titanium.XML.Element) node. */ - readonly DOCUMENT_FRAGMENT_NODE: number; + readonly ELEMENT_NODE: number; + + /** + * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an + * [Entity](Titanium.XML.Entity) node. + */ + readonly ENTITY_NODE: number; + + /** + * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an + * [EntityReference](Titanium.XML.EntityReference) node. + */ + readonly ENTITY_REFERENCE_NODE: number; /** * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a @@ -58214,36 +76793,21 @@ declare namespace Titanium { readonly NOTATION_NODE: number; /** - * Name of this node. + * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a + * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. */ - readonly nodeName: string; + readonly PROCESSING_INSTRUCTION_NODE: number; /** - * Content (value) of this node. + * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a + * [Text](Titanium.XML.Text) node. */ - nodeValue: string; + readonly TEXT_NODE: number; /** - * Content (value) of all text nodes within this node. + * A map of this node's attributes. */ - readonly textContent: string; - - /** - * Content (value) of all text nodes within this node. - */ - readonly text: string; - - /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. - */ - readonly nodeType: number; - - /** - * This node's parent node. - */ - readonly parentNode: Titanium.XML.Node; + readonly attributes: Titanium.XML.NamedNodeMap; /** * A of this node's children. @@ -58261,39 +76825,72 @@ declare namespace Titanium { readonly lastChild: Titanium.XML.Node; /** - * This node's previous sibling. + * Local part of the qualified name of this node. */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; + localName: string; /** * Namespace URI of this node. */ readonly namespaceURI: string; + /** + * This node's next sibling. + */ + readonly nextSibling: Titanium.XML.Node; + + /** + * Name of this node. + */ + readonly nodeName: string; + + /** + * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, + * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, + * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. + */ + readonly nodeType: number; + + /** + * Content (value) of this node. + */ + nodeValue: string; + + /** + * This node's owning document. + */ + readonly ownerDocument: Titanium.XML.Document; + + /** + * This node's parent node. + */ + readonly parentNode: Titanium.XML.Node; + /** * Namespace prefix of this node. */ prefix: string; /** - * Local part of the qualified name of this node. + * This node's previous sibling. */ - localName: string; + readonly previousSibling: Titanium.XML.Node; + + /** + * Content (value) of all text nodes within this node. + * @deprecated Use [Titanium.XML.Node.textContent](Titanium.XML.Node.textContent) instead. + */ + readonly text: string; + + /** + * Content (value) of all text nodes within this node. + */ + readonly textContent: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Appends the node `newChild` as a child of this node. @@ -58305,6 +76902,17 @@ declare namespace Titanium { */ cloneNode(deep: boolean): Titanium.XML.Node; + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getAttributes(): Titanium.XML.NamedNodeMap; + /** * Returns `true` if this node has attributes. */ @@ -58335,41 +76943,57 @@ declare namespace Titanium { */ removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + /** * Replaces the node `oldChild` with the node `newChild`. */ replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; - } /** * A list of objects. Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-536297177) on Android and iOS. */ - interface NodeList extends Titanium.Proxy { + class NodeList extends Titanium.Proxy { /** * The length of the node list. */ readonly length: number; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLength(): number; + /** * Returns the object at the specified index. */ item(index: number): Titanium.XML.Node; /** - * Gets the value of the property. + * Removes the specified callback as an event listener for the named event. */ - getLength(): number; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; } /** * Represents a notation declared in the DTD. Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-5431D1B9) on Android and iOS. */ - interface Notation extends Titanium.Proxy { + class Notation extends Titanium.Proxy { /** * The public identifier of this notation. If the public identifier was not specified, this is `null`. */ @@ -58380,21 +77004,38 @@ declare namespace Titanium { */ readonly systemId: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getPublicId(): string; /** * Gets the value of the property. + * @deprecated Access instead. */ getSystemId(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + } /** * A way to keep processor-specific information in the text of the document. Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1004215813) on Android and iOS. */ - interface ProcessingInstruction extends Titanium.Proxy { + class ProcessingInstruction extends Titanium.Proxy { /** * Retrieve the content of this processing instruction. This from the first non white space character after the target to the character immediatly preceding the ?>. When setting a processing instruction, a DOMException may be thrown on an invalid instruction. */ @@ -58405,1734 +77046,6146 @@ declare namespace Titanium { */ readonly target: string; + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + /** * Gets the value of the property. + * @deprecated Access instead. */ getData(): string; - /** - * Sets the value of the property. - */ - setData(data: string): void; - /** * Gets the value of the property. + * @deprecated Access instead. */ getTarget(): string; + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setData(data: string): void; + } /** * Represents the textual content of an or Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1312295772) on Android and iOS. */ - interface Text extends Titanium.Proxy { - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Element](Titanium.XML.Element) node. - */ - readonly ELEMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Attr](Titanium.XML.Attr) node. - */ - readonly ATTRIBUTE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Text](Titanium.XML.Text) node. - */ - readonly TEXT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [CDATASection](Titanium.XML.CDATASection) node. - */ - readonly CDATA_SECTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [EntityReference](Titanium.XML.EntityReference) node. - */ - readonly ENTITY_REFERENCE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify an - * [Entity](Titanium.XML.Entity) node. - */ - readonly ENTITY_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [ProcessingInstruction](Titanium.XML.ProcessingInstruction) node. - */ - readonly PROCESSING_INSTRUCTION_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Comment](Titanium.XML.Comment) node. - */ - readonly COMMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Document](Titanium.XML.Document) node. - */ - readonly DOCUMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentType](Titanium.XML.DocumentType) node. - */ - readonly DOCUMENT_TYPE_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [DocumentFragment](Titanium.XML.DocumentFragment) node. - */ - readonly DOCUMENT_FRAGMENT_NODE: number; - - /** - * Used with [nodeType](Titanium.XML.Node.nodeType) to identify a - * [Notation](Titanium.XML.Notation) node. - */ - readonly NOTATION_NODE: number; - - /** - * Name of this node. - */ - readonly nodeName: string; - - /** - * Content (value) of this node. - */ - nodeValue: string; - + class Text extends Titanium.XML.CharacterData { /** * Content (value) of all text nodes within this node. */ readonly textContent: string; /** - * Content (value) of all text nodes within this node. + * Adds the specified callback as an event listener for the named event. */ - readonly text: string; + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** - * This node's type. One of `ELEMENT_NODE`, `ATTRIBUTE_NODE`, `TEXT_NODE`, `CDATA_SECTION_NODE`, - * `ENTITY_REFERENCE_NODE`, `ENTITY_NODE`, `PROCESSING_INSTRUCTION_NODE`, `COMMENT_NODE`, - * `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `DOCUMENT_FRAGMENT_NODE`, `NOTATION_NODE`. + * Fires a synthesized event to any registered listeners. */ - readonly nodeType: number; + fireEvent(name: string, event?: any): void; /** - * This node's parent node. + * Removes the specified callback as an event listener for the named event. */ - readonly parentNode: Titanium.XML.Node; - - /** - * A of this node's children. - */ - readonly childNodes: Titanium.XML.NodeList; - - /** - * This node's first child. - */ - readonly firstChild: Titanium.XML.Node; - - /** - * This node's last child. - */ - readonly lastChild: Titanium.XML.Node; - - /** - * This node's previous sibling. - */ - readonly previousSibling: Titanium.XML.Node; - - /** - * This node's next sibling. - */ - readonly nextSibling: Titanium.XML.Node; - - /** - * A map of this node's attributes. - */ - readonly attributes: Titanium.XML.NamedNodeMap; - - /** - * This node's owning document. - */ - readonly ownerDocument: Titanium.XML.Document; - - /** - * Namespace URI of this node. - */ - readonly namespaceURI: string; - - /** - * Namespace prefix of this node. - */ - prefix: string; - - /** - * Local part of the qualified name of this node. - */ - localName: string; - - /** - * The character data of the node that implements this interface. Throws an exception during setting if this node is readonly. - */ - data: string; - - /** - * The number of characters that are available through data and the substringData method. This may have the value zero, i.e., may be empty. - */ - readonly length: number; - - /** - * Appends the node `newChild` as a child of this node. - */ - appendChild(newChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Returns a duplicate of this node. - */ - cloneNode(deep: boolean): Titanium.XML.Node; - - /** - * Returns `true` if this node has attributes. - */ - hasAttributes(): boolean; - - /** - * Returns `true` if this node has child nodes. - */ - hasChildNodes(): boolean; - - /** - * Inserts the node `newChild` before the node `refChild`. - */ - insertBefore(newChild: Titanium.XML.Node, refChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Tests whether the DOM implementation supports a specific feature. - */ - isSupported(feature: string, version: string): boolean; - - /** - * Normalizes text and attribute nodes in this node's child hierarchy. - */ - normalize(): void; - - /** - * Removes a child node from this node. - */ - removeChild(oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Replaces the node `oldChild` with the node `newChild`. - */ - replaceChild(newChild: Titanium.XML.Node, oldChild: Titanium.XML.Node): Titanium.XML.Node; - - /** - * Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the string specified. Throws an exception if this node is readonly. - */ - appendData(arg: string): void; - - /** - * Remove a range of characters from the node. Upon success, data and length reflect the change. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. - */ - deleteData(offset: number, count: number): void; - - /** - * Insert a string at the specified offset. Throws an exception if this node is readonly, if offset is negative, or if offset is beyond the data's length. - */ - insertData(offset: number, arg: string): void; - - /** - * Replace the characters starting at the specified offset with the specified string. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative. - */ - replaceData(offset: number, count: number, arg: string): void; - - /** - * Extracts a range of data from the node. Throws an exception if offset is negative, offset is beyond the data's length, or if count is negative. - */ - substringData(offset: number, count: number): string; + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Breaks this node into two nodes at the specified by offset, and returns a new node of the same type, which contains all the content at and after the offset point. Throws an exception if the specified offset is negative or if this node is read only. */ splitText(offset: number): Titanium.XML.Text; - /** - * Gets the value of the property. - */ - getAttributes(): Titanium.XML.NamedNodeMap; - - /** - * Gets the value of the property. - */ - getData(): string; - - /** - * Sets the value of the property. - */ - setData(data: string): void; - - /** - * Gets the value of the property. - */ - getLength(): number; - } } - /** - * The top level Yahoo module. The Yahoo module is used for accessing Yahoo related API services. + * The top-level API module, containing methods to output messages to the system log. */ - namespace Yahoo { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - + class API extends Titanium.Module { /** * The name of the API that this proxy corresponds to. */ - const apiName: string; + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; /** * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; /** * Adds the specified callback as an event listener for the named event. */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Applies the properties to the proxy. */ - function applyProperties(props: any): void; + static applyProperties(props: any): void; /** - * invoke a Yahoo YQL query + * Logs messages with a `debug` severity-level. */ - function yql(yql: string, callback: (param0: YQLResponse) => any): void; + static debug(message: string[] | string): void; /** - * Gets the value of the property. + * Logs messages with an `error` severity-level. */ - function getBubbleParent(): boolean; + static error(message: string[] | string): void; /** - * Sets the value of the property. + * Fires a synthesized event to any registered listeners. */ - function setBubbleParent(bubbleParent: boolean): void; + static fireEvent(name: string, event?: any): void; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - function getApiName(): string; + static getApiName(): string; /** - * Gets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + static getBubbleParent(): boolean; /** - * Sets the value of the property. + * Gets the value of the property. + * @deprecated Access instead. */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; /** - * Sets the value of the property. + * Logs messages with an `info` severity-level. */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; + static info(message: string[] | string): void; + + /** + * Logs messages with the specified severity-level. + */ + static log(level: string, message: string[] | string): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Logs messages with a `timestamp` severity-level, prefixed with a timestamp float number + * representing the number of seconds since January 1st, 2001. + */ + static timestamp(message: string[] | string): void; + + /** + * Logs messages with a `trace` severity-level. + */ + static trace(message: string[] | string): void; + + /** + * Logs messages with a `warn` severity-level. + */ + static warn(message: string[] | string): void; } + /** + * Base event for class Titanium.Accelerometer + */ + interface AccelerometerBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Accelerometer; + + } + /** + * Fired when the accelerometer changes. + */ + interface Accelerometer_update_Event extends AccelerometerBaseEvent { + /** + * Reference timestamp since the previous change. This is not a valid timestamp and should + * simply be used to determine the number of milliseconds between events. + */ + timestamp: number; + + /** + * Current `x` axis of the device. + */ + x: number; + + /** + * Current `y` axis of the device. + */ + y: number; + + /** + * Current `z` axis of the device. + */ + z: number; + + } + interface AccelerometerEventMap extends ProxyEventMap { + update: Accelerometer_update_Event; + + } + /** + * The top-level Accelerometer module, used to determine the device's physical position. + */ + class Accelerometer extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Accelerometer, event: AccelerometerEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: AccelerometerEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Accelerometer, event: AccelerometerEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * Used for transmitting developer-defined Analytics events to the Appcelerator Analytics product. + */ + class Analytics extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * JSON representation of the last Analytics event generated. + */ + static readonly lastEvent: string; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Allows the user to opt out from Analytics during runtime to comply to GPDR. + */ + static optedOut: boolean; + + /** + * Sends a generic event for this application session. + * **Not displayed in Analytics UI**. + * @deprecated + */ + static addEvent: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener: never; + + /** + * Applies the properties to the proxy. + */ + static applyProperties: never; + + /** + * Sends a feature event for this application session. + */ + static featureEvent(name: string, data?: any): number; + + /** + * Sets a list of events that will not be sent to the Analytics server. + */ + static filterEvents(events: ReadonlyArray): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLastEvent(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getOptedOut(): boolean; + + /** + * Sends a navigation event for this application session. + * **Not displayed in Analytics UI**. + * @deprecated + */ + static navEvent(from: string, to: string, name?: string, data?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setOptedOut(optedOut: boolean): void; + + /** + * Sends a settings event for this application session. + * **Not displayed in Analytics UI**. + * @deprecated + */ + static settingsEvent: never; + + /** + * Send a timed event for this application session. + * **Not displayed in Analytics UI**. + * @deprecated + */ + static timedEvent: never; + + /** + * Sends a user event for this application session. **Not displayed in Analytics UI**. + * @deprecated + */ + static userEvent: never; + + } + /** + * The top-level Android module. + */ + class Android extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * References the top-most window's activity. + */ + static readonly currentActivity: Titanium.Android.Activity; + + /** + * Service in the active context. + */ + static readonly currentService: Titanium.Android.Service; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * The first activity launched by the application. + */ + static readonly rootActivity: Titanium.Android.Activity; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates and returns an instance of . + */ + static createBigPictureStyle(parameters?: Dictionary): Titanium.Android.BigPictureStyle; + + /** + * Creates and returns an instance of . + */ + static createBigTextStyle(parameters?: Dictionary): Titanium.Android.BigTextStyle; + + /** + * Create an `Intent` to be used in a broadcast. + */ + static createBroadcastIntent(parameters?: Dictionary): Titanium.Android.Intent; + + /** + * Creates and returns an instance of . + */ + static createBroadcastReceiver(parameters?: Dictionary): Titanium.Android.BroadcastReceiver; + + /** + * Creates a [DrawerLayout](Titanium.UI.Android.DrawerLayout). + */ + static createDrawerLayout(parameters?: Dictionary): Titanium.UI.Android.DrawerLayout; + + /** + * Creates and returns an instance of . + */ + static createIntent(parameters?: Dictionary): Titanium.Android.Intent; + + /** + * Creates an activity chooser intent, used to allow the user to select a target activity + * for an intent. + */ + static createIntentChooser(intent: Titanium.Android.Intent, title: string): Titanium.Android.Intent; + + /** + * Creates and returns an instance of . + */ + static createNotification(parameters?: Dictionary): Titanium.Android.Notification; + + /** + * Creates and returns an instance of . + */ + static createNotificationChannel(parameters?: Dictionary): Titanium.Android.NotificationChannel; + + /** + * Creates a [PendingIntent](Titanium.Android.PendingIntent) to be used inside a + * [Notification](Titanium.Android.Notification). + */ + static createPendingIntent(parameters?: Dictionary): Titanium.Android.PendingIntent; + + /** + * Creates and returns an instance of . + */ + static createQuickSettingsService(parameters?: Dictionary): Titanium.Android.QuickSettingsService; + + /** + * Creates and returns an instance of . + */ + static createRemoteViews(parameters?: Dictionary): Titanium.Android.RemoteViews; + + /** + * Create a so you can start/stop it and listen for events from it. + */ + static createService(intent: Titanium.Android.Intent): Titanium.Android.Service; + + /** + * Create an `Intent` to be used to start a service. + */ + static createServiceIntent(options: ServiceIntentOptions): Titanium.Android.Intent; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Returns `true` if the app has permission access. + */ + static hasPermission(permission: string | string[]): boolean; + + /** + * Check on state of Service. + */ + static isServiceRunning(intent: Titanium.Android.Intent): boolean; + + /** + * Registers broadcast receiver for the given actions. + */ + static registerBroadcastReceiver(broadcastReceiver: Titanium.Android.BroadcastReceiver, actions: ReadonlyArray): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Request for permission access. + */ + static requestPermissions(permissions: string | string[], callback?: (param0: RequestPermissionAccessResult) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Starts a simple service. + */ + static startService(intent: Titanium.Android.Intent): void; + + /** + * Stop a simple service that was started with `startService`. + */ + static stopService(intent: Titanium.Android.Intent): void; + + /** + * Unregisters a broadcast receiver. + */ + static unregisterBroadcastReceiver(broadcastReceiver: Titanium.Android.BroadcastReceiver): void; + + } + /** + * Base event for class Titanium.App + */ + interface AppBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.App; + + } + /** + * Fired by the system when the device's accessibility service is turned on or off. + */ + interface App_accessibilitychanged_Event extends AppBaseEvent { + /** + * Whether accessibility is now enabled or disabled. + */ + enabled: boolean; + + } + /** + * Fired by the system when the application is about to be terminated. + */ + interface App_close_Event extends AppBaseEvent { + } + /** + * Fired when the app receives a warning from the operating system about low memory availability. + */ + interface App_memorywarning_Event extends AppBaseEvent { + } + /** + * Fired when the application transitions from active to inactive state on a multitasked system. + */ + interface App_pause_Event extends AppBaseEvent { + } + /** + * Fired when the application transitions to the background on a multitasked system. + */ + interface App_paused_Event extends AppBaseEvent { + } + /** + * Fired when the proximity sensor changes state. + */ + interface App_proximity_Event extends AppBaseEvent { + /** + * Proximity state value. + */ + state: boolean; + + } + /** + * Fired when an uncaught JavaScript exception occurs. + */ + interface App_uncaughtException_Event extends AppBaseEvent { + /** + * The backtrace of function calls when the error occurred. + * @deprecated + */ + backtrace: never; + + /** + * The column offset on the line where the error occured. + */ + column: number; + + /** + * The java stack trace of the exception. + * @deprecated Use `nativeStack` property for cross-platform parity. + */ + javaStack: string; + + /** + * The javascript stack trace of the exception. + * @deprecated Use `stack` property for cross-platform parity. + */ + jsStack: string; + + /** + * The line where the error occurred. + */ + line: number; + + /** + * The offset on the line where the error occurred. + * @deprecated Use `column` property for cross-platform parity. + */ + lineOffset: number; + + /** + * The line source reference. + */ + lineSource: string; + + /** + * The error message. + */ + message: string; + + /** + * The native platform stack trace of the exception. + */ + nativeStack: string; + + /** + * A unique identification for the source file. + */ + sourceId: number; + + /** + * The name of the source file. + */ + sourceName: string; + + /** + * The URL to the source file. + */ + sourceURL: string; + + /** + * The javascript stack trace of the exception. + */ + stack: string; + + /** + * The title for the error. + */ + title: string; + + /** + * The type of error. + */ + type: string; + + } + /** + * Fired when the application returns to the foreground on a multitasked system. + */ + interface App_resume_Event extends AppBaseEvent { + } + /** + * Fired when the application returns to the foreground. + */ + interface App_resumed_Event extends AppBaseEvent { + } + /** + * Fired after the "app.js" or "alloy.js" gets executed during application startup. + */ + interface App_started_Event extends AppBaseEvent { + } + /** + * Fired when the soft keyboard is presented, on and off the screen. + */ + interface App_keyboardframechanged_Event extends AppBaseEvent { + /** + * The duration of the keyboard animation. This parameter is only available on Titanium SDK 4.0.0 and later. + */ + animationDuration: number; + + /** + * A dictionary with keys x, y, width and height representing the frame of keyboard on screen. + */ + keyboardFrame: Dimension; + + } + /** + * Fired when there is a significant change in the time. + */ + interface App_significanttimechange_Event extends AppBaseEvent { + } + /** + * Fired when a is clicked. + */ + interface App_shortcutitemclick_Event extends AppBaseEvent { + /** + * Identifier of the clicked shortcut item. + */ + id: string; + + } + /** + * Called whenever an interaction with the window occurred. To be used together with the property. + */ + interface App_userinteraction_Event extends AppBaseEvent { + } + interface AppEventMap extends ProxyEventMap { + accessibilitychanged: App_accessibilitychanged_Event; + + close: App_close_Event; + + keyboardframechanged: App_keyboardframechanged_Event; + + memorywarning: App_memorywarning_Event; + + pause: App_pause_Event; + + paused: App_paused_Event; + + proximity: App_proximity_Event; + + resume: App_resume_Event; + + resumed: App_resumed_Event; + + shortcutitemclick: App_shortcutitemclick_Event; + + significanttimechange: App_significanttimechange_Event; + + started: App_started_Event; + + uncaughtException: App_uncaughtException_Event; + + userinteraction: App_userinteraction_Event; + + } + /** + * The top-level App module is mainly used for accessing information about the + * application at runtime, and for sending or listening for system events. + */ + class App extends Titanium.Module { + /** + * Indicates whether Accessibility is enabled by the system. + */ + static readonly accessibilityEnabled: boolean; + + /** + * Indicates whether Analytics is enabled, determined by `tiapp.xml`. + */ + static readonly analytics: boolean; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Application copyright statement, determined by `tiapp.xml`. + */ + static readonly copyright: string; + + /** + * A reference to the currnet background service running when the application is placed in the background. + */ + static readonly currentService: Titanium.App.iOS.BackgroundService; + + /** + * Build type that reflects how the application was packaged. + * Returns one of the following values: + * * `development` (Simulator) + * * `test` (Device) + * * `production` (App Store / Adhoc) + */ + static readonly deployType: string; + + /** + * Application description, determined by `tiapp.xml`. + */ + static readonly description: string; + + /** + * Prevents network activity indicator from being displayed. + */ + static disableNetworkActivityIndicator: boolean; + + /** + * Shows the application's splash screen on app resume. + */ + static forceSplashAsSnapshot: boolean; + + /** + * Application globally-unique ID, determined by `tiapp.xml`. + */ + static readonly guid: string; + + /** + * Application ID, from `tiapp.xml`. + */ + static readonly id: string; + + /** + * Determines whether the screen is locked when the device is idle. + */ + static idleTimerDisabled: boolean; + + /** + * The install ID for this application. + */ + static readonly installId: string; + + /** + * Indicates whether or not the soft keyboard is visible. + */ + static readonly keyboardVisible: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Application name, determined by `tiapp.xml`. + */ + static readonly name: string; + + /** + * Determines whether proximity detection is enabled. + */ + static proximityDetection: boolean; + + /** + * Indicates the state of the device's proximity sensor, according to the + * event. + */ + static readonly proximityState: boolean; + + /** + * Application publisher, from `tiapp.xml`. + */ + static readonly publisher: string; + + /** + * Unique session identifier for the current continuous run of the application. + */ + static readonly sessionId: string; + + /** + * Indicates whether or not the user interaction shoud be tracked. + */ + static trackUserInteraction: boolean; + + /** + * Application URL, from `tiapp.xml`. + */ + static readonly url: string; + + /** + * Application version, from `tiapp.xml`. + */ + static readonly version: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.App, event: AppEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: AppEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Fire a system-level event such as . + */ + static fireSystemEvent(eventName: string, param?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAccessibilityEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAnalytics(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Returns the arguments passed to the application on startup. + */ + static getArguments(): launchOptions; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCopyright(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCurrentService(): Titanium.App.iOS.BackgroundService; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getDeployType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getDescription(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getDisableNetworkActivityIndicator(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getForceSplashAsSnapshot(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getGuid(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getId(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIdleTimerDisabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getInstallId(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getKeyboardVisible(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getProximityDetection(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getProximityState(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getPublisher(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getSessionId(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getUrl(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getVersion(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.App, event: AppEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setDisableNetworkActivityIndicator(disableNetworkActivityIndicator: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setForceSplashAsSnapshot(forceSplashAsSnapshot: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setIdleTimerDisabled(idleTimerDisabled: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setProximityDetection(proximityDetection: boolean): void; + + } + /** + * A container for binary data. + */ + class Blob extends Titanium.Proxy { + /** + * File object represented by this blob, or `null` if this blob is not + * associated with a file. + */ + readonly file: Titanium.Filesystem.File; + + /** + * If this blob represents an image, this is the height of the image in pixels. + */ + readonly height: number; + + /** + * Length of this blob in bytes. + */ + readonly length: number; + + /** + * Mime type of the data in this blob. + */ + readonly mimeType: string; + + /** + * If this blob represents a [File](Titanium.Filesystem.File), this is the file URL + * that represents it. + */ + readonly nativePath: string; + + /** + * Size of the blob in pixels (for image blobs) or bytes (for all other blobs). + */ + readonly size: number; + + /** + * UTF-8 string representation of the data in this blob. + */ + readonly text: string; + + /** + * If this blob represents an image, this is the width of the image in pixels. + */ + readonly width: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Appends the data from another blob to this blob. + */ + append(blob: Titanium.Blob): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getFile(): Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getHeight(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLength(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getMimeType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getNativePath(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getSize(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getText(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getWidth(): number; + + /** + * Creates a new blob by compressing the underlying image to the specified quality. + */ + imageAsCompressed(quality: number): Titanium.Blob; + + /** + * Creates a new blob by cropping the underlying image to the specified dimensions. + */ + imageAsCropped(options: Dimension): Titanium.Blob; + + /** + * Creates a new blob by resizing and scaling the underlying image to the specified dimensions. + */ + imageAsResized(width: number, height: number): Titanium.Blob; + + /** + * Returns a thumbnail version of the underlying image, optionally with a border and rounded corners. + */ + imageAsThumbnail(size: number, borderSize?: number, cornerRadius?: number): Titanium.Blob; + + /** + * Returns a copy of the underlying image with an added alpha channel. + */ + imageWithAlpha(): Titanium.Blob; + + /** + * Returns a copy of the underlying image with rounded corners added. + */ + imageWithRoundedCorner(cornerSize: number, borderSize?: number): Titanium.Blob; + + /** + * Returns a copy of the underlying image with an added transparent border. + */ + imageWithTransparentBorder(size: number): Titanium.Blob; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Returns a string representation of this blob. + */ + toString(): string; + + } + /** + * Wrapper around that implements the interface. + */ + class BlobStream extends Titanium.IOStream { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * Buffer is a mutable, resizable container for raw data. + */ + class Buffer extends Titanium.Proxy { + /** + * Byte order of this buffer. + */ + byteOrder: number; + + /** + * Length of the buffer in bytes. + */ + length: number; + + /** + * The type of data encoding to use with `value`. + */ + type: string; + + /** + * Data to be encoded. + */ + value: number | string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Appends `sourceBuffer` to the this buffer. + */ + append(sourceBuffer: Titanium.Buffer, sourceOffset?: number, sourceLength?: number): number; + + /** + * Clears this buffer's contents but does not change the size of the buffer. + */ + clear(): void; + + /** + * Creates a complete or partial copy of this buffer. + */ + clone(offset?: number, length?: number): Titanium.Buffer; + + /** + * Copies data from `sourceBuffer` into the current buffer at `offset`. + */ + copy(sourceBuffer: Titanium.Buffer, offset: number, sourceOffset?: number, sourceLength?: number): number; + + /** + * Fills this buffer with the specified byte value. + */ + fill(fillByte: number, offset?: number, length?: number): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getByteOrder(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLength(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getValue(): number | string; + + /** + * Inserts data from `sourceBuffer` into this buffer at `offset`. + */ + insert(sourceBuffer: Titanium.Buffer, offset: number, sourceOffset?: number, sourceLength?: number): number; + + /** + * Releases the space allocated to the buffer, and sets its length to 0. + */ + release(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setByteOrder(byteOrder: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLength(length: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setType(type: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setValue(value: number | string): void; + + /** + * Converts this buffer to a . + */ + toBlob(): Titanium.Blob; + + /** + * Converts this buffer to a String. + */ + toString(): string; + + } + /** + * Wrapper around that implements the interface. + */ + class BufferStream extends Titanium.IOStream { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + } + /** + * Base event for class Titanium.Calendar + */ + interface CalendarBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Calendar; + + } + /** + * Fired when the database backing the EventKit module is modified. + */ + interface Calendar_change_Event extends CalendarBaseEvent { + } + interface CalendarEventMap extends ProxyEventMap { + change: Calendar_change_Event; + + } + /** + * The Calendar module provides an API for accessing the native calendar functionality. + */ + class Calendar extends Titanium.Module { + /** + * All alerts in selected calendars. + */ + static readonly allAlerts: Titanium.Calendar.Alert[]; + + /** + * All calendars known to the native calendar app. + */ + static readonly allCalendars: Titanium.Calendar.Calendar[]; + + /** + * All calendars known to the native calendar app that can add, edit, and + * delete items in the calendar. + */ + static readonly allEditableCalendars: Titanium.Calendar.Calendar[]; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Returns an authorization constant indicating if the application has access to the events in the EventKit. + */ + static readonly calendarAuthorization: number; + + /** + * Calendar that events are added to by default, as specified by user settings. + */ + static readonly defaultCalendar: Titanium.Calendar.Calendar; + + /** + * Returns an authorization constant indicating if the application has access to the events in the EventKit. + * @deprecated Use [Titanium.Calendar.calendarAuthorization](Titanium.Calendar.calendarAuthorization) instead. + */ + static readonly eventsAuthorization: never; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * All calendars selected within the native calendar app, which may be a subset of `allCalendars`. + */ + static readonly selectableCalendars: Titanium.Calendar.Calendar[]; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Calendar, event: CalendarEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: CalendarEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAllAlerts(): Titanium.Calendar.Alert[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAllCalendars(): Titanium.Calendar.Calendar[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAllEditableCalendars(): Titanium.Calendar.Calendar[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCalendarAuthorization(): number; + + /** + * Gets the calendar with the specified identifier. + */ + static getCalendarById(id: string): Titanium.Calendar.Calendar; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getDefaultCalendar(): Titanium.Calendar.Calendar; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.Calendar.calendarAuthorization](Titanium.Calendar.calendarAuthorization) instead. + */ + static getEventsAuthorization: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getSelectableCalendars(): Titanium.Calendar.Calendar[]; + + /** + * Returns `true` if the app has calendar access. + */ + static hasCalendarPermissions(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Calendar, event: CalendarEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Requests for calendar access. + */ + static requestCalendarPermissions(callback: (param0: EventsAuthorizationResponse) => void): void; + + /** + * If authorization is unknown, the system will bring up a dialog requesting permission. + * @deprecated Use [Titanium.Calendar.requestCalendarPermissions](Titanium.Calendar.requestCalendarPermissions) instead. + */ + static requestEventsAuthorization: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * A module for translating between primitive types and raw byte streams. + */ + class Codec extends Titanium.Module { + /** + * Big endian (network) byte order -- that is, the most significant byte first. + */ + static readonly BIG_ENDIAN: number; + + /** + * ASCII character encoding.. + */ + static readonly CHARSET_ASCII: string; + + /** + * ISO 8859-1 (Latin-1) character encoding. + */ + static readonly CHARSET_ISO_LATIN_1: string; + + /** + * UTF-16 character encoding with default byte order. + */ + static readonly CHARSET_UTF16: string; + + /** + * UTF-16 character encoding with big endian byte order. + */ + static readonly CHARSET_UTF16BE: string; + + /** + * UTF-16 character encoding with little endian byte order. + */ + static readonly CHARSET_UTF16LE: string; + + /** + * UTF-8 character encoding. + */ + static readonly CHARSET_UTF8: string; + + /** + * Little endian byte order -- that is, the least significant byte first. + */ + static readonly LITTLE_ENDIAN: number; + + /** + * 8-bit integer encoding type. + */ + static readonly TYPE_BYTE: string; + + /** + * 64-bit double precision floating-point type. + */ + static readonly TYPE_DOUBLE: string; + + /** + * 32-bit single precision floating-point type. + */ + static readonly TYPE_FLOAT: string; + + /** + * 32-bit integer encoding type. + */ + static readonly TYPE_INT: string; + + /** + * 64-bit integer encoding type. + */ + static readonly TYPE_LONG: string; + + /** + * 16-bit integer encoding type. + */ + static readonly TYPE_SHORT: string; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Decodes a number from the `source` buffer using the specified data type. + */ + static decodeNumber(options: DecodeNumberDict): number; + + /** + * Decodes the source buffer into a String using the supplied character set. + */ + static decodeString(options: DecodeStringDict): string; + + /** + * Encodes a number and writes it to a buffer. + */ + static encodeNumber(options: EncodeNumberDict): number; + + /** + * Encodes a string into a series of bytes in a buffer using the specified character set. + */ + static encodeString(options: Dictionary): number; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Get the OS native byte order (either or + * ). + */ + static getNativeByteOrder(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * Base event for class Titanium.Contacts + */ + interface ContactsBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Contacts; + + } + /** + * Fired when the database backing the contacts module is modified externally. + */ + interface Contacts_reload_Event extends ContactsBaseEvent { + } + interface ContactsEventMap extends ProxyEventMap { + reload: Contacts_reload_Event; + + } + /** + * The top-level Contacts module, used for accessing and modifying the system contacts address book. + */ + class Contacts extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Returns an authorization constant indicating if the application has access to the address book. + */ + static readonly contactsAuthorization: number; + + /** + * A boolean value that indicates whether to fetch the notes stored in contacts or not. + */ + static includeNote: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Contacts, event: ContactsEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates and returns an instance of . + */ + static createGroup(parameters?: Dictionary): Titanium.Contacts.Group; + + /** + * Creates and returns an instance of , and commits all pending + * changes to the underlying contacts database. + */ + static createPerson(parameters?: Dictionary): Titanium.Contacts.Person; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: ContactsEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets all groups. + */ + static getAllGroups(): Titanium.Contacts.Group[]; + + /** + * Gets all people, unless a limit is specified. + */ + static getAllPeople(limit: number): Titanium.Contacts.Person[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getContactsAuthorization(): number; + + /** + * Gets the group with the specified identifier. + * @deprecated Use [Titanium.Contacts.getGroupByIdentifier](Titanium.Contacts.getGroupByIdentifier) instead. + */ + static getGroupByID: never; + + /** + * Gets the group with the specified identifier. + */ + static getGroupByIdentifier(id: string): Titanium.Contacts.Group; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIncludeNote(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets people with a `firstName`, `middleName` or `lastName` field, or a combination + * of these fields, that match the specified name. + */ + static getPeopleWithName(name: string): Titanium.Contacts.Person[]; + + /** + * Gets the person with the specified identifier. + * @deprecated Use [Titanium.Contacts.getPersonByIdentifier](Titanium.Contacts.getPersonByIdentifier) instead. + */ + static getPersonByID: never; + + /** + * Gets the person with the specified identifier. + */ + static getPersonByIdentifier(id: number): Titanium.Contacts.Person; + + /** + * Returns `true` if the app has contacts access. + */ + static hasContactsPermissions(): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Contacts, event: ContactsEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes a group from the address book. + */ + static removeGroup(group: Titanium.Contacts.Group): void; + + /** + * Removes a contact from the address book. + */ + static removePerson(person: Titanium.Contacts.Person): void; + + /** + * If authorization is unknown, will bring up a dialog requesting permission. + * @deprecated Use [Titanium.Contacts.requestContactsPermissions](Titanium.Contacts.requestContactsPermissions) instead. + */ + static requestAuthorization: never; + + /** + * Requests for contacts access. + */ + static requestContactsPermissions(callback: (param0: ContactsAuthorizationResponse) => void): void; + + /** + * Reverts all changes made by the previous save to the address book. Deprecated for >= iOS9. + */ + static revert(): void; + + /** + * Commits all pending changes to the underlying contacts database. + */ + static save(contacts: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setIncludeNote(includeNote: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Displays a picker that allows a person to be selected. + */ + static showContacts(params: showContactsParams): void; + + } + /** + * The top-level `Database` module, used for creating and accessing the + * in-application SQLite database. + */ + class Database extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Installs an SQLite database to device's internal storage. + */ + static install(path: string, dbName: string): Titanium.Database.DB; + + /** + * Opens an SQLite database. + */ + static open(dbName: string): Titanium.Database.DB; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * The base type for all Titanium events. + */ + interface Event { + /** + * True if the event will try to bubble up if possible. + */ + readonly bubbles: boolean; + + /** + * Set to true to stop the event from bubbling. + */ + cancelBubble: boolean; + + /** + * Source object that fired the event. + */ + readonly source: any; + + /** + * Name of the event fired. + */ + readonly type: string; + + } + /** + * The top level filesystem module, used to access files and directories on the device. + */ + class Filesystem extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Path to the application's internal cache directory. + */ + static readonly applicationCacheDirectory: string; + + /** + * Path to the application's data directory. + */ + static readonly applicationDataDirectory: string; + + /** + * Path to the iOS application directory. + */ + static readonly applicationDirectory: string; + + /** + * Path to the application support directory. + */ + static readonly applicationSupportDirectory: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Path to a directory on removable storage, such as SD card. + */ + static readonly externalStorageDirectory: string; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Platform-specific line ending constant. + */ + static readonly lineEnding: string; + + /** + * Path to the application's raw resource directory. + */ + static readonly resRawDirectory: string; + + /** + * Path to the application's resource directory. + */ + static readonly resourcesDirectory: string; + + /** + * Platform-specific path separator constant. + */ + static readonly separator: string; + + /** + * Path for the application's temporary directory. + */ + static readonly tempDirectory: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates a temporary directory and returns a [File](Titanium.Filesystem.File) object representing the new directory. + */ + static createTempDirectory(): Titanium.Filesystem.File; + + /** + * Creates a temporary file and returns a [File](Titanium.Filesystem.File) object representing the new file. + */ + static createTempFile(): Titanium.Filesystem.File; + + /** + * Returns the path to the container directory associated with the specified security application group ID. + */ + static directoryForSuite(suiteName: string): string; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApplicationCacheDirectory(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApplicationDataDirectory(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApplicationDirectory(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApplicationSupportDirectory(): string; + + /** + * Returns a `Blob` object representing the asset catalog image identified by the path arguments. + */ + static getAsset(...path: string[]): Titanium.Blob; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getExternalStorageDirectory(): string; + + /** + * Returns a `File` object representing the file identified by the path arguments. + */ + static getFile(...path: string[]): Titanium.Filesystem.File; + + /** + * Returns a `File` object representing the file identified by the path arguments. + */ + static getFile(path: ReadonlyArray): Titanium.Filesystem.File; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLineEnding(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getResRawDirectory(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getResourcesDirectory(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getSeparator(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getTempDirectory(): string; + + /** + * Returns `true` if the app has storage permissions. + */ + static hasStoragePermissions(): boolean; + + /** + * Returns `true` if the device supports external storage *and* the external storage device is mounted. + */ + static isExternalStoragePresent(): boolean; + + /** + * Opens file using the interface. + */ + static openStream(mode: number, path: string): Titanium.Filesystem.FileStream; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Requests for storage permissions + */ + static requestStoragePermissions(callback: (param0: RequestStorageAccessResult) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * Base event for class Titanium.Geolocation + */ + interface GeolocationBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Geolocation; + + } + /** + * Fired when the device detects interface and requires calibration. + */ + interface Geolocation_calibration_Event extends GeolocationBaseEvent { + } + /** + * Fired when an heading update is received. + */ + interface Geolocation_heading_Event extends GeolocationBaseEvent { + /** + * If `success` is `false`, the error code is available. + */ + code: number; + + /** + * If `success` is false, a string describing the error. + */ + error: string; + + /** + * Dictionary object containing the heading data. + */ + heading: HeadingData; + + /** + * Indicate if the heading event was successfully received. Android returns this since SDK 7.5.0. + */ + success: boolean; + + } + /** + * Fired when a location update is received. + */ + interface Geolocation_location_Event extends GeolocationBaseEvent { + /** + * if `success` is false, the error code if available. + */ + code: number; + + /** + * If `success` is true, actual location data for this update. + */ + coords: LocationCoordinates; + + /** + * If `success` is false, a string describing the error. + */ + error: string; + + /** + * If `success` is true, object describing the location provider generating this update. + */ + provider: LocationProviderDict; + + /** + * Indicates if location data was successfully retrieved. + */ + success: boolean; + + } + /** + * Fired when location updates are paused by the OS. + */ + interface Geolocation_locationupdatepaused_Event extends GeolocationBaseEvent { + } + /** + * Fired when location manager is resumed by the OS. + */ + interface Geolocation_locationupdateresumed_Event extends GeolocationBaseEvent { + } + /** + * Fired when changes are made to the authorization status for location services. + */ + interface Geolocation_authorization_Event extends GeolocationBaseEvent { + /** + * New authorization status for the application. + */ + authorizationStatus: number; + + } + interface GeolocationEventMap extends ProxyEventMap { + authorization: Geolocation_authorization_Event; + + calibration: Geolocation_calibration_Event; + + heading: Geolocation_heading_Event; + + location: Geolocation_location_Event; + + locationupdatepaused: Geolocation_locationupdatepaused_Event; + + locationupdateresumed: Geolocation_locationupdateresumed_Event; + + } + /** + * The top level Geolocation module. The Geolocation module is used for accessing device location based information. + */ + class Geolocation extends Titanium.Module { + /** + * Specifies the requested accuracy for location updates. + */ + static accuracy: number; + + /** + * The type of user activity to be associated with the location updates. + */ + static activityType: number; + + /** + * Determines if the app can do background location updates. + */ + static allowsBackgroundLocationUpdates: boolean; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The minimum change of position (in meters) before a 'location' event is fired. + */ + static distanceFilter: number; + + /** + * Requested frequency for location updates, in milliseconds. + * @deprecated Android legacy mode operation is deprecated. For new development, use + * either simple mode or manual mode. See "Configurating Location Updates on Android" + * in the main description of this class for more information. + * + */ + static frequency: number; + + /** + * Indicates whether the current device supports a compass. + */ + static readonly hasCompass: boolean; + + /** + * Minimum heading change (in degrees) before a `heading` event is fired. + */ + static headingFilter: number; + + /** + * JSON representation of the last geolocation received. + */ + static readonly lastGeolocation: string; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Returns an authorization constant indicating if the application has access to location services. + */ + static readonly locationServicesAuthorization: number; + + /** + * Indicates if the user has enabled or disabled location services for the device (not the application). + */ + static readonly locationServicesEnabled: boolean; + + /** + * Indicates whether the location updates may be paused. + */ + static pauseLocationUpdateAutomatically: boolean; + + /** + * Determines the preferred location provider. + * @deprecated Android legacy mode operation is deprecated. For new development, use + * either simple mode or manual mode. See "Configurating Location Updates on Android" + * in the main description of this class for more information. + * + */ + static preferredProvider: string; + + /** + * Specifies that an indicator be shown when the app makes use of continuous + * background location updates. + */ + static showBackgroundLocationIndicator: boolean; + + /** + * Determines whether the compass calibration UI is shown if needed. + */ + static showCalibration: boolean; + + /** + * Indicates if the location changes should be updated only when a significant change + * in location occurs. + */ + static trackSignificantLocationChange: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Geolocation, event: GeolocationEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: GeolocationEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Resolves an address to a location. + */ + static forwardGeocoder(address: string, callback: (param0: ForwardGeocodeResponse) => void): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAccuracy(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getActivityType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAllowsBackgroundLocationUpdates(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Retrieves the current compass heading. + */ + static getCurrentHeading(callback: (param0: HeadingResponse) => void): void; + + /** + * Retrieves the last known location from the device. + */ + static getCurrentPosition(callback: (param0: LocationResults) => void): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getDistanceFilter(): number; + + /** + * Gets the value of the property. + * @deprecated Android legacy mode operation is deprecated. For new development, use + * either simple mode or manual mode. See "Configurating Location Updates on Android" + * in the main description of this class for more information. + * + */ + static getFrequency(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getHasCompass(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getHeadingFilter(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLastGeolocation(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLocationServicesAuthorization(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLocationServicesEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getPauseLocationUpdateAutomatically(): boolean; + + /** + * Gets the value of the property. + * @deprecated Android legacy mode operation is deprecated. For new development, use + * either simple mode or manual mode. See "Configurating Location Updates on Android" + * in the main description of this class for more information. + * + */ + static getPreferredProvider(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getShowBackgroundLocationIndicator(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getShowCalibration(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getTrackSignificantLocationChange(): boolean; + + /** + * Returns `true` if the app has location access. + */ + static hasLocationPermissions(authorizationType: number): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Geolocation, event: GeolocationEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Requests for location access. + */ + static requestLocationPermissions(authorizationType: number, callback: (param0: LocationAuthorizationResponse) => void): void; + + /** + * Tries to resolve a location to an address. + */ + static reverseGeocoder(latitude: number, longitude: number, callback: (param0: ReverseGeocodeResponse) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAccuracy(accuracy: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setActivityType(activityType: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setDistanceFilter(distanceFilter: number): void; + + /** + * Sets the value of the property. + * @deprecated Android legacy mode operation is deprecated. For new development, use + * either simple mode or manual mode. See "Configurating Location Updates on Android" + * in the main description of this class for more information. + * + */ + static setFrequency(frequency: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setHeadingFilter(headingFilter: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setPauseLocationUpdateAutomatically(pauseLocationUpdateAutomatically: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Android legacy mode operation is deprecated. For new development, use + * either simple mode or manual mode. See "Configurating Location Updates on Android" + * in the main description of this class for more information. + * + */ + static setPreferredProvider(preferredProvider: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setShowBackgroundLocationIndicator(showBackgroundLocationIndicator: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setShowCalibration(showCalibration: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setTrackSignificantLocationChange(trackSignificantLocationChange: boolean): void; + + } + /** + * Base event for class Titanium.Gesture + */ + interface GestureBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Gesture; + + } + /** + * Fired when the device orientation changes. + */ + interface Gesture_orientationchange_Event extends GestureBaseEvent { + /** + * Orientation of the device. + */ + orientation: number; + + } + /** + * Fired when the device is shaken. + */ + interface Gesture_shake_Event extends GestureBaseEvent { + /** + * Time interval since previous shake event. On iOS, this value is 0 for the first shake + * event in a series. + */ + timestamp: number; + + /** + * Acceleration along the X axis, in Gs. + */ + x: number; + + /** + * Acceleration along the Y axis, in Gs. + */ + y: number; + + /** + * Acceleration along the Z axis, in Gs. + */ + z: number; + + } + interface GestureEventMap extends ProxyEventMap { + orientationchange: Gesture_orientationchange_Event; + + shake: Gesture_shake_Event; + + } + /** + * The Gesture module is responsible for high-level device gestures such as orientation changes + * and shake gestures. + */ + class Gesture extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Indicates if the device is currently held in landscape form. + */ + static readonly landscape: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Orientation of the device. + */ + static readonly orientation: number; + + /** + * Indicates if the device is currently held in portrait form. + */ + static readonly portrait: boolean; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Gesture, event: GestureEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: GestureEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getOrientation(): number; + + /** + * Returns whether or not the device is currently held in landscape form. + * @deprecated Use [Titanium.Gesture.landscape](Titanium.Gesture.landscape) for parity instead. Removed in 7.0.0 on Android, 8.1.0 on iOS. + */ + static isLandscape: never; + + /** + * Returns whether or not the device is currently held in portrait form. + * @deprecated Use [Titanium.Gesture.portrait](Titanium.Gesture.portrait) for parity instead. Removed in 7.0.0 on Android, 8.1.0 on iOS. + */ + static isPortrait: never; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Gesture, event: GestureEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * IOStream is the interface that all stream types implement. + */ + // tslint:disable-next-line:interface-name + class IOStream extends Titanium.Proxy { + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Closes this stream. + */ + close(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Indicates whether this stream is readable. + */ + isReadable(): boolean; + + /** + * Indicates whether this stream is writable. + */ + isWritable(): boolean; + + /** + * Reads data from this stream into a buffer. + */ + read(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: ReadCallbackArgs) => void): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Writes data from a buffer to this stream. + */ + write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => void): number; + + } + /** + * Base event for class Titanium.Locale + */ + interface LocaleBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Locale; + + } + /** + * Fired when the device locale changes. + */ + interface Locale_change_Event extends LocaleBaseEvent { + } + interface LocaleEventMap extends ProxyEventMap { + change: Locale_change_Event; + + } + /** + * The top level Locale module. + */ + class Locale extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Country of the current system locale, as an ISO 2-letter code. + */ + static readonly currentCountry: string; + + /** + * Language of the current system locale, as an ISO 2-letter code. + */ + static readonly currentLanguage: string; + + /** + * Current system locale, as a combination of ISO 2-letter language and country codes. + */ + static readonly currentLocale: string; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Locale, event: LocaleEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: LocaleEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Formats a telephone number according to the current system locale. + */ + static formatTelephoneNumber(number: string): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Returns the ISO 3-letter currency code for the specified locale. + */ + static getCurrencyCode(locale: string): string; + + /** + * Returns the currency symbol for the specified currency code. + */ + static getCurrencySymbol(currencyCode: string): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCurrentCountry(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCurrentLanguage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCurrentLocale(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Returns the currency symbol for the specified locale. + */ + static getLocaleCurrencySymbol(locale: string): string; + + /** + * Returns a string, localized according to the current system locale using the appropriate + * `/i18n/LANG/strings.xml` localization file. + */ + static getString(key: string, hint?: string): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Locale, event: LocaleEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the current language of the application. + */ + static setLanguage(language: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * Base event for class Titanium.Media + */ + interface MediaBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Media; + + } + /** + * Fires when the camera overlay is ready to take pictures. + */ + interface Media_cameraready_Event extends MediaBaseEvent { + } + /** + * Fired when an audio line type change is detected. + */ + interface Media_routechange_Event extends MediaBaseEvent { + /** + * Returns a description of the current route, consisting of zero or more input ports and zero or more output ports. + */ + currentRoute: RouteDescription; + + /** + * Returns a description of the old route, consisting of zero or more input ports and zero or more output ports. + */ + oldRoute: RouteDescription; + + /** + * The reason for route change. + */ + reason: string; + + } + /** + * Fired when the volume output changes. + */ + interface Media_volume_Event extends MediaBaseEvent { + /** + * New volume level in dB. + */ + volume: number; + + } + interface MediaEventMap extends ProxyEventMap { + cameraready: Media_cameraready_Event; + + routechange: Media_routechange_Event; + + volume: Media_volume_Event; + + } + /** + * The top-level Media module. + */ + class Media extends Titanium.Module { + /** + * Media type constant for medium-quality video recording. + */ + static readonly QUALITY_640x480: number; + + /** + * Media type constant for medium-quality video recording. + */ + static readonly QUALITY_IFRAME_1280x720: number; + + /** + * Media type constant for medium-quality video recording. + */ + static readonly QUALITY_IFRAME_960x540: number; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * An instance of representing the app-specific music player. + */ + static readonly appMusicPlayer: Titanium.Media.MusicPlayer; + + /** + * Returns the line type constant for the current line type. + * @deprecated Use [Titanium.Media.currentRoute](Titanium.Media.currentRoute) instead. + */ + static readonly audioLineType: never; + + /** + * Returns `true` if the device is playing audio. + */ + static readonly audioPlaying: boolean; + + /** + * A constant for the audio session category to be used. + */ + static audioSessionCategory: string; + + /** + * A constant for the audio session mode to be used. + * @deprecated Use [Titanium.Media.audioSessionCategory](Titanium.Media.audioSessionCategory) instead. + */ + static audioSessionMode: never; + + /** + * Array of media type constants supported for the camera. + */ + static availableCameraMediaTypes: any[]; + + /** + * Array indicating which cameras are available, `CAMERA_FRONT`, `CAMERA_REAR` or both. + */ + static readonly availableCameras: number[]; + + /** + * Array of media type constants supported for saving to the device's camera roll or saved images album. + */ + static availablePhotoGalleryMediaTypes: any[]; + + /** + * Array of media type constants supported for the photo library. + */ + static availablePhotoMediaTypes: any[]; + + /** + * Current average microphone level in dB or -1 if microphone monitoring is disabled. + */ + static averageMicrophonePower: number; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Returns the authorization status for the camera. + */ + static readonly cameraAuthorization: number; + + /** + * Returns the authorization status for the camera. + * @deprecated Use [Titanium.Media.cameraAuthorization](Titanium.Media.cameraAuthorization) instead. + */ + static readonly cameraAuthorizationStatus: never; + + /** + * Determines how the flash is fired when using the device's camera. + */ + static cameraFlashMode: number; + + /** + * `true` if the device has a recording input device available. + */ + static readonly canRecord: boolean; + + /** + * Returns a description of the current route, consisting of zero or more input ports and zero or more output ports. + */ + static readonly currentRoute: RouteDescription; + + /** + * `true` if the device has camera support. + */ + static readonly isCameraSupported: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Current microphone level peak power in dB or -1 if microphone monitoring is disabled. + */ + static readonly peakMicrophonePower: number; + + /** + * An instance of representing the system-wide music player. + */ + static readonly systemMusicPlayer: Titanium.Media.MusicPlayer; + + /** + * Current volume of the playback device. + */ + static readonly volume: number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Media, event: MediaEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Plays a device beep notification. + */ + static beep(): void; + + /** + * Creates and returns an instance of . + */ + static createAudioPlayer(parameters?: Dictionary): Titanium.Media.AudioPlayer; + + /** + * Creates and returns an instance of . + */ + static createAudioRecorder(parameters?: Dictionary): Titanium.Media.AudioRecorder; + + /** + * Creates and returns an instance of . + */ + static createSound(parameters?: Dictionary): Titanium.Media.Sound; + + /** + * Creates and returns an instance of . + * @deprecated This iOS-only API has been deprecated and moved to the [Ti.SystemAlert](https://github.com/appcelerator-modules/ti.systemalert) module in 8.0.0. + */ + static createSystemAlert(parameters?: Dictionary): Titanium.Media.SystemAlert; + + /** + * Creates and returns an instance of . + */ + static createVideoPlayer(parameters?: Dictionary): Titanium.Media.VideoPlayer; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: MediaEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAppMusicPlayer(): Titanium.Media.MusicPlayer; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.Media.currentRoute](Titanium.Media.currentRoute) instead. + */ + static getAudioLineType: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAudioPlaying(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAudioSessionCategory(): string; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.Media.audioSessionCategory](Titanium.Media.audioSessionCategory) instead. + */ + static getAudioSessionMode: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAvailableCameraMediaTypes(): any[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAvailableCameras(): number[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAvailablePhotoGalleryMediaTypes(): any[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAvailablePhotoMediaTypes(): any[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAverageMicrophonePower(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCameraAuthorization(): number; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.Media.cameraAuthorization](Titanium.Media.cameraAuthorization) instead. + */ + static getCameraAuthorizationStatus: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCameraFlashMode(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCanRecord(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getCurrentRoute(): RouteDescription; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIsCameraSupported(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getPeakMicrophonePower(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getQUALITY_640x480(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getQUALITY_IFRAME_1280x720(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getQUALITY_IFRAME_960x540(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getSystemMusicPlayer(): Titanium.Media.MusicPlayer; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getVolume(): number; + + /** + * Returns `true` if the app has audio permissions. + * @deprecated Use [Titanium.Media.hasAudioRecorderPermissions](Titanium.Media.hasAudioRecorderPermissions) instead. + */ + static hasAudioPermissions(): boolean; + + /** + * Returns `true` if the app has audio permissions. + */ + static hasAudioRecorderPermissions(): boolean; + + /** + * Returns `true` if the app has camera access. + */ + static hasCameraPermissions(): boolean; + + /** + * Returns `true` if the app has music library access. + */ + static hasMusicLibraryPermissions(): boolean; + + /** + * Returns `true` if the app has photo gallery permissions. + */ + static hasPhotoGalleryPermissions(): boolean; + + /** + * Hides the device camera UI. + */ + static hideCamera(): void; + + /** + * Hides the music library. + */ + static hideMusicLibrary(): void; + + /** + * Returns `true` if the source supports the specified media type. + */ + static isMediaTypeSupported(source: string, type: string): boolean; + + /** + * Shows the music library and allows the user to select one or more tracks. + */ + static openMusicLibrary(options: MusicLibraryOptionsType): void; + + /** + * Opens the photo gallery image picker. + */ + static openPhotoGallery(options: PhotoGalleryOptionsType): void; + + /** + * Displays the given image. + */ + static previewImage(options: Dictionary): void; + + /** + * Searches the music library for items matching the specified search predicates. + */ + static queryMusicLibrary(query: MediaQueryType): Titanium.Media.Item[]; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Media, event: MediaEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Request the user's permission for audio recording. + * @deprecated Use [Titanium.Media.requestAudioRecorderPermissions](Titanium.Media.requestAudioRecorderPermissions) instead. + */ + static requestAudioPermissions: never; + + /** + * Request the user's permission for audio recording. + */ + static requestAudioRecorderPermissions(callback: (param0: MediaAuthorizationResponse) => void): void; + + /** + * Request the user's permission for audio recording. + * @deprecated Use [Titanium.Media.requestAudioRecorderPermissions](Titanium.Media.requestAudioRecorderPermissions) instead. + */ + static requestAuthorization: never; + + /** + * Requests for camera access. + * @deprecated Please use [Titanium.Media.requestCameraPermissions](Titanium.Media.requestCameraPermissions) instead. + */ + static requestCameraAccess: never; + + /** + * Requests for camera access. + */ + static requestCameraPermissions(callback: (param0: RequestCameraAccessResult) => void): void; + + /** + * Request permissions for the native music-library. + */ + static requestMusicLibraryPermissions(callback: (param0: RequestMusicLibraryAccessResult) => void): void; + + /** + * Requests for photo gallery permissions. + */ + static requestPhotoGalleryPermissions(callback: (param0: RequestPhotoGalleryAccessResult) => void): void; + + /** + * Saves media to the device's photo gallery / camera roll. + */ + static saveToPhotoGallery(media: Titanium.Blob | Titanium.Filesystem.File, callbacks: any): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAudioSessionCategory(audioSessionCategory: string): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.Media.audioSessionCategory](Titanium.Media.audioSessionCategory) instead. + */ + static setAudioSessionMode: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAvailableCameraMediaTypes(availableCameraMediaTypes: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAvailablePhotoGalleryMediaTypes(availablePhotoGalleryMediaTypes: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAvailablePhotoMediaTypes(availablePhotoMediaTypes: ReadonlyArray): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setAverageMicrophonePower(averageMicrophonePower: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setCameraFlashMode(cameraFlashMode: number): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Overrides the default audio route when using the session mode. + */ + static setOverrideAudioRoute(route: number): void; + + /** + * Shows the camera. + */ + static showCamera(options: CameraOptionsType): void; + + /** + * Starts monitoring the microphone sound level. + */ + static startMicrophoneMonitor(): void; + + /** + * Starts video capture using the camera specified. + */ + static startVideoCapture(): void; + + /** + * Stops monitoring the microphone sound level. + */ + static stopMicrophoneMonitor(): void; + + /** + * Stops video capture using the camera specified. + */ + static stopVideoCapture(): void; + + /** + * Switches between front and rear-facing cameras. Make sure to set one of the below constants to determine + * the camera you want to switch to. + */ + static switchCamera(camera: number): void; + + /** + * Uses the device camera to capture a photo. + */ + static takePicture(): void; + + /** + * Takes a screen shot of the visible UI on the device. + */ + static takeScreenshot(callback: (param0: ScreenshotResult) => void): void; + + /** + * Makes the device vibrate. + */ + static vibrate(pattern?: ReadonlyArray): void; + + } + /** + * Base type for all Titanium modules. + */ + class Module extends Titanium.Proxy { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * Base event for class Titanium.Network + */ + interface NetworkBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Network; + + } + /** + * Fired when network connectivity changes. + */ + interface Network_change_Event extends NetworkBaseEvent { + /** + * New network type + */ + networkType: number; + + /** + * New network type as a string. + */ + networkTypeName: string; + + /** + * Boolean indicating if the device is connected to the network. + */ + online: boolean; + + /** + * Human-readable text describing the reason for the change. + */ + reason: string; + + } + interface NetworkEventMap extends ProxyEventMap { + change: Network_change_Event; + + } + /** + * The top level network module. + */ + class Network extends Titanium.Module { + /** + * A list of all cookies in the cookie storage. + */ + static readonly allHTTPCookies: Titanium.Network.Cookie[]; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Network type value as a constant. + */ + static readonly networkType: number; + + /** + * Network type as a String. Returns one of `NONE`, `WIFI`, `LAN`, `MOBILE`, or `UNKNOWN`. + */ + static readonly networkTypeName: string; + + /** + * Boolean value indicating if the device is connected to the network. + */ + static readonly online: boolean; + + /** + * Remote device UUID if the device is registered with the Apple Push Notification + * Service, or null if it is not registered. + */ + static readonly remoteDeviceUUID: string; + + /** + * Array of push notification type constants enabled for the application. + */ + static readonly remoteNotificationTypes: number[]; + + /** + * Indicates whether push notifications have been enabled using + * [registerForPushNotifications](Titanium.Network.registerForPushNotifications). + */ + static readonly remoteNotificationsEnabled: boolean; + + /** + * Legacy method to add a connectivity listener to listen for network changes. + * @deprecated Use the [Titanium.Network.change](Titanium.Network.change) event to monitor connectivity changes. + */ + static addConnectivityListener: never; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Network, event: NetworkEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Adds a cookie to the HTTP client cookie store. + */ + static addHTTPCookie(cookie: Titanium.Network.Cookie): void; + + /** + * Adds a cookie to the system cookie store. + */ + static addSystemCookie(cookie: Titanium.Network.Cookie): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates and returns a `BonjourBrowser` object. + */ + static createBonjourBrowser(serviceType: string, domain: string, parameters?: Dictionary): Titanium.Network.BonjourBrowser; + + /** + * Creates and returns a `BonjourService` object. + */ + static createBonjourService(name: string, type: string, domain: string, parameters?: Dictionary): Titanium.Network.BonjourService; + + /** + * Creates and returns an instance of . + */ + static createCookie(parameters?: Dictionary): Titanium.Network.Cookie; + + /** + * Creates and returns an instance of . + */ + static createHTTPClient(parameters?: Dictionary): Titanium.Network.HTTPClient; + + /** + * Legacy method to create and return an instance of . + * @deprecated Use [Titanium.Network.Socket.createTCP](Titanium.Network.Socket.createTCP) instead. + */ + static createTCPSocket: never; + + /** + * Returns a decoded version of a URI encoded value. + */ + static decodeURIComponent(value: string): string; + + /** + * Returns a URI encoded version of the specified URI component. + */ + static encodeURIComponent(value: string): string; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: NetworkEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAllHTTPCookies(): Titanium.Network.Cookie[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets all the cookies with the domain, path and name matched with the given values from the HTTP client cookie store. + */ + static getHTTPCookies(domain: string, path: string, name: string): Titanium.Network.Cookie[]; + + /** + * Gets all the cookies with the domain matched with the given values from the HTTP client cookie store. + */ + static getHTTPCookiesForDomain(domain: string): Titanium.Network.Cookie[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getNetworkType(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getNetworkTypeName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getOnline(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getRemoteDeviceUUID(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getRemoteNotificationTypes(): number[]; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getRemoteNotificationsEnabled(): boolean; + + /** + * Gets all the cookies with the domain, path and name matched with the given values from the system cookie store. + */ + static getSystemCookies(domain: string, path: string, name: string): Titanium.Network.Cookie[]; + + /** + * Registers for push notifications with the Apple Push Notification Service. + */ + static registerForPushNotifications(config: PushNotificationConfig): void; + + /** + * Removes all the cookies from the HTTP client cookie store. + */ + static removeAllHTTPCookies(): void; + + /** + * Removes all the cookie from the system client cookie store. + */ + static removeAllSystemCookies(): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Network, event: NetworkEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Removes the cookie with the domain, path and name exactly the same as the given values from the HTTP client cookie store. + */ + static removeHTTPCookie(domain: string, path: string, name: string): void; + + /** + * Removes the cookies with the domain matched with the given values from the HTTP client cookie store. + */ + static removeHTTPCookiesForDomain(domain: string): void; + + /** + * Removes the cookie with the domain, path and name exactly the same as the given values from the system cookie store. + */ + static removeSystemCookie(domain: string, path: string, name: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Unregisters the application for push notifications. + */ + static unregisterForPushNotifications(): void; + + } + /** + * Base event for class Titanium.Platform + */ + interface PlatformBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.Platform; + + } + /** + * Fired when the battery state changes. This is measured in 5% increments on iPhone/iPad. + */ + interface Platform_battery_Event extends PlatformBaseEvent { + /** + * Percentage battery power level. + */ + level: number; + + /** + * The battery state. + */ + state: number; + + } + interface PlatformEventMap extends ProxyEventMap { + battery: Platform_battery_Event; + + } + /** + * The top-level Platform module. The Platform module is used to access the device's platform-related + * functionality. + */ + class Platform extends Titanium.Module { + /** + * System's WIFI IP address. No other network types are supported. + */ + static readonly address: string; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * System's processor architecture. + */ + static readonly architecture: string; + + /** + * System's unused memory, measured in bytes. + */ + static readonly availableMemory: number; + + /** + * Battery level in percent, accessible only when `batteryMonitoring` is enabled. Measured + * in 5% increments on iPhone/iPad. + */ + static readonly batteryLevel: number; + + /** + * Determines whether battery monitoring is enabled. + */ + static batteryMonitoring: boolean; + + /** + * Indicates the state of the battery. Accessible only when `batteryMonitoring` is enabled. + */ + static readonly batteryState: number; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Returns the DisplayCaps object. + */ + static readonly displayCaps: Titanium.Platform.DisplayCaps; + + /** + * Applications's globally-unique ID (UUID). + */ + static readonly id: string; + + /** + * An alphanumeric string unique to each device, used only for serving advertisements. + */ + static identifierForAdvertising: string; + + /** + * An alphanumeric string that uniquely identifies a device to the app's vendor. + */ + static readonly identifierForVendor: string; + + /** + * A Boolean value that indicates whether the user has limited ad tracking. + */ + static readonly isAdvertisingTrackingEnabled: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * System's default language. + */ + static readonly locale: string; + + /** + * System's network interface mac address, or app UUID. + */ + static readonly macaddress: string; + + /** + * Manufacturer of the device. + */ + static readonly manufacturer: string; + + /** + * Model of the device. + */ + static readonly model: string; + + /** + * Name of the platform. Returns `android` for the Android platform, `iPhone OS` for the iOS + * platform (iPhone, iPad, or iPod Touch), and `windows` for the Windows platform. + * Since iOS 10 this property returns `iOS` for for the iOS platform (iPhone, iPad, or iPod Touch). + */ + static readonly name: string; + + /** + * System's WIFI network mask. No other network types are supported. + */ + static readonly netmask: string; + + /** + * Short name of the system's Operating System. Returns `android` for the Android platfrom, + * `iphone` for the iPhone or iPod Touch, `ipad` for the iPad, `windowsphone` for Windows Phone, and `windowsstore` for Windows Store + * platform. + */ + static readonly osname: string; + + /** + * Operating System architecture. On Android, this is `32bit`. + */ + static readonly ostype: string; + + /** + * Number of logical processing cores. + */ + static readonly processorCount: number; + + /** + * Short name of the JavaScript runtime in use. + */ + static readonly runtime: string; + + /** + * System's total memory, measured in bytes. + */ + static readonly totalMemory: number; + + /** + * System uptime since last boot in seconds. + */ + static readonly uptime: number; + + /** + * System name, if set. On iOS, this can be found in Settings > General > About > Name. + */ + static readonly username: string; + + /** + * System's OS version. + */ + static readonly version: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.Platform, event: PlatformEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Returns whether the system is configured with a default application to handle the URL's protocol/scheme. + */ + static canOpenURL(url: string): boolean; + + /** + * Returns an array of basic cpu information for all logical processors + */ + static cpus(): CPU[]; + + /** + * Creates a globally-unique identifier. + */ + static createUUID(): string; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: PlatformEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAddress(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getArchitecture(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getAvailableMemory(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBatteryLevel(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBatteryMonitoring(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBatteryState(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getDisplayCaps(): Titanium.Platform.DisplayCaps; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getId(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIdentifierForAdvertising(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIdentifierForVendor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIsAdvertisingTrackingEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLocale(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getMacaddress(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getManufacturer(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getModel(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getNetmask(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getOsname(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getOstype(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getProcessorCount(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getRuntime(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getTotalMemory(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getUptime(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getUsername(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getVersion(): string; + + /** + * Returns whether the system settings are configured to show times in 24-hour format. + */ + static is24HourTimeFormat(): boolean; + + /** + * Opens this URL using the system's default application for its protocol/scheme. + */ + static openURL(url: string, options?: OpenURLOptions, callback?: (...args: any[]) => void): boolean; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.Platform, event: PlatformEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBatteryMonitoring(batteryMonitoring: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setIdentifierForAdvertising(identifierForAdvertising: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * The base for all Titanium objects. + */ + class Proxy { + /** + * The name of the API that this proxy corresponds to. + */ + readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + lifecycleContainer?: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Proxy identifier + */ + id?: string | number; + + /** + * Adds the specified callback as an event listener for the named event. + */ + addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + getLifecycleContainer?(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Removes the specified callback as an event listener for the named event. + */ + removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + setLifecycleContainer?(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * Stream module containing stream utility methods. + */ + class Stream extends Titanium.Module { + /** + * Use with [createStream](Titanium.Stream.createStream) to open a stream in append + * mode. + */ + static readonly MODE_APPEND: number; + + /** + * Use with [createStream](Titanium.Stream.createStream) to open a stream in read + * mode. + */ + static readonly MODE_READ: number; + + /** + * Use with [createStream](Titanium.Stream.createStream) to open a stream in write + * mode. + */ + static readonly MODE_WRITE: number; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Creates stream from a `Buffer` or `Blob` object. + */ + static createStream(params: CreateStreamArgs): Titanium.IOStream; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Reads data from input stream and passes it to a handler method. + */ + static pump(inputStream: Titanium.IOStream, handler: (param0: PumpCallbackArgs) => void, maxChunkSize: number, isAsync?: boolean): void; + + /** + * Asynchronously reads data from an [IOStream](Titanium.IOStream) into a buffer. + */ + static read(sourceStream: Titanium.IOStream, buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: ReadCallbackArgs) => void): void; + + /** + * Reads all data from the specified [IOStream](Titanium.IOStream). + */ + static readAll(sourceStream: Titanium.IOStream, buffer?: Titanium.Buffer, resultsCallback?: (param0: ReadCallbackArgs) => void): Titanium.Buffer | void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Asynchronously writes data from a buffer to an [IOStream](Titanium.IOStream). + */ + static write(outputStream: Titanium.IOStream, buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => void): void; + + /** + * Writes all data from an input stream to an output stream. + */ + static writeStream(inputStream: Titanium.IOStream, outputStream: Titanium.IOStream, maxChunkSize: number, resultsCallback?: (param0: WriteStreamCallbackArgs) => void): void; + + } + /** + * The main module. + */ + class UI extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Sets the background color of the master view (when there are no windows or other top-level + * controls displayed). + */ + static backgroundColor: string; + + /** + * 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). + */ + static backgroundImage: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The currently active tab, if a tab group is open. + * @deprecated + */ + static currentTab: never; + + /** + * The active window associated with the executing JavaScript context. + * @deprecated + */ + static readonly currentWindow: never; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Updates the orientation of the current window to the specified orientation value. + * @deprecated Use [Titanium.UI.Window.orientationModes](Titanium.UI.Window.orientationModes) instead. + */ + static orientation: never; + + /** + * When running on Android, iOS 10 or lower, or Windows the value to return form the applications colorset. + */ + static semanticColorType: string; + + /** + * 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. + */ + static tintColor: string; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Converts one type of unit to another using the metrics of the main display. + */ + static convertUnits(convertFromValue: string, convertToUnits: number): number; + + /** + * Creates and returns an instance of . + * @deprecated Use [Titanium.UI.createMatrix2D](Titanium.UI.createMatrix2D) instead. + */ + static create2DMatrix(parameters?: Matrix2DCreationDict): Titanium.UI.Matrix2D; + + /** + * Creates and returns an instance of . + * @deprecated Use [Titanium.UI.createMatrix3D](Titanium.UI.createMatrix3D) instead. + */ + static create3DMatrix(parameters?: Matrix3DCreationDict): Titanium.UI.Matrix3D; + + /** + * Creates and returns an instance of . + */ + static createActivityIndicator(parameters?: Dictionary): Titanium.UI.ActivityIndicator; + + /** + * Creates and returns an instance of . + */ + static createAlertDialog(parameters?: Dictionary): Titanium.UI.AlertDialog; + + /** + * Creates and returns an instance of . + */ + static createAnimation(parameters?: Dictionary): Titanium.UI.Animation; + + /** + * Creates and returns an instance of . + */ + static createAttributedString(parameters?: Dictionary): Titanium.UI.AttributedString; + + /** + * Creates and returns an instance of . + */ + static createButton(parameters?: Dictionary): Titanium.UI.Button; + + /** + * Creates and returns an instance of . + */ + static createButtonBar(parameters?: Dictionary): Titanium.UI.ButtonBar; + + /** + * Creates and returns an instance of . + * @deprecated Use [Titanium.UI.iOS.CoverFlowView](Titanium.UI.iOS.CoverFlowView) instead. + */ + static createCoverFlowView: never; + + /** + * Creates and returns an instance of . + */ + static createDashboardItem(parameters?: Dictionary): Titanium.UI.DashboardItem; + + /** + * Creates and returns an instance of . + */ + static createDashboardView(parameters?: Dictionary): Titanium.UI.DashboardView; + + /** + * Creates and returns an instance of . + */ + static createEmailDialog(parameters?: Dictionary): Titanium.UI.EmailDialog; + + /** + * Creates and returns an instance of . + */ + static createImageView(parameters?: Dictionary): Titanium.UI.ImageView; + + /** + * Creates and returns an instance of . + */ + static createLabel(parameters?: Dictionary): Titanium.UI.Label; + + /** + * Creates and returns an instance of . + */ + static createListSection(parameters?: Dictionary): Titanium.UI.ListSection; + + /** + * Creates and returns an instance of . + */ + static createListView(parameters?: Dictionary): Titanium.UI.ListView; + + /** + * Creates and returns an instance of . + */ + static createMaskedImage(parameters?: Dictionary): Titanium.UI.MaskedImage; + + /** + * Creates and returns an instance of . + */ + static createMatrix2D(parameters?: Matrix2DCreationDict): Titanium.UI.Matrix2D; + + /** + * Creates and returns an instance of . + */ + static createMatrix3D(parameters?: Matrix3DCreationDict): Titanium.UI.Matrix3D; + + /** + * Creates and returns an instance of . + */ + static createNavigationWindow(parameters?: Dictionary): Titanium.UI.NavigationWindow; + + /** + * Creates and returns an instance of . + */ + static createNotification(parameters?: Dictionary): Titanium.UI.Notification; + + /** + * Creates and returns an instance of . + */ + static createOptionDialog(parameters?: Dictionary): Titanium.UI.OptionDialog; + + /** + * Creates and returns an instance of . + */ + static createPicker(parameters?: Dictionary): Titanium.UI.Picker; + + /** + * Creates and returns an instance of . + */ + static createPickerColumn(parameters?: Dictionary): Titanium.UI.PickerColumn; + + /** + * Creates and returns an instance of . + */ + static createPickerRow(parameters?: Dictionary): Titanium.UI.PickerRow; + + /** + * Creates and returns an instance of . + */ + static createProgressBar(parameters?: Dictionary): Titanium.UI.ProgressBar; + + /** + * Creates and returns an instance of . + */ + static createRefreshControl(parameters?: Dictionary): Titanium.UI.RefreshControl; + + /** + * Creates and returns an instance of . + */ + static createScrollView(parameters?: Dictionary): Titanium.UI.ScrollView; + + /** + * Creates and returns an instance of . + */ + static createScrollableView(parameters?: Dictionary): Titanium.UI.ScrollableView; + + /** + * Creates and returns an instance of . + */ + static createSearchBar(parameters?: Dictionary): Titanium.UI.SearchBar; + + /** + * Creates and returns an instance of . + */ + static createShortcutItem(parameters?: Dictionary): Titanium.UI.ShortcutItem; + + /** + * Creates and returns an instance of . + */ + static createSlider(parameters?: Dictionary): Titanium.UI.Slider; + + /** + * Creates and returns an instance of . + */ + static createSwitch(parameters?: Dictionary): Titanium.UI.Switch; + + /** + * Creates and returns an instance of . + */ + static createTab(parameters?: Dictionary): Titanium.UI.Tab; + + /** + * Creates and returns an instance of . + */ + static createTabGroup(parameters?: Dictionary): Titanium.UI.TabGroup; + + /** + * Creates and returns an instance of . + */ + static createTabbedBar(parameters?: Dictionary): Titanium.UI.TabbedBar; + + /** + * Creates and returns an instance of . + */ + static createTableView(parameters?: Dictionary): Titanium.UI.TableView; + + /** + * Creates and returns an instance of . + */ + static createTableViewRow(parameters?: Dictionary): Titanium.UI.TableViewRow; + + /** + * Creates and returns an instance of . + */ + static createTableViewSection(parameters?: Dictionary): Titanium.UI.TableViewSection; + + /** + * Creates and returns an instance of . + */ + static createTextArea(parameters?: Dictionary): Titanium.UI.TextArea; + + /** + * Creates and returns an instance of . + */ + static createTextField(parameters?: Dictionary): Titanium.UI.TextField; + + /** + * Creates and returns an instance of . + */ + static createToolbar(parameters?: Dictionary): Titanium.UI.Toolbar; + + /** + * Creates and returns an instance of . + */ + static createView(parameters?: Dictionary): Titanium.UI.View; + + /** + * Creates and returns an instance of . + */ + static createWebView(parameters?: Dictionary): Titanium.UI.WebView; + + /** + * Creates and returns an instance of . + */ + static createWindow(parameters?: Dictionary): Titanium.UI.Window; + + /** + * Fetches the correct color to be used with a UI element dependent on the users current dark mode setting on iOS 13 and above, or the [Titanium.UI.semanticColorType](Titanium.UI.semanticColorType) setting in other instances. + */ + static fetchSemanticColor(colorName: string): string; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBackgroundColor(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBackgroundImage(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated + */ + static getCurrentTab: never; + + /** + * Gets the value of the property. + * @deprecated + */ + static getCurrentWindow: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Gets the value of the property. + * @deprecated Use [Titanium.UI.Window.orientationModes](Titanium.UI.Window.orientationModes) instead. + */ + static getOrientation: never; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getSemanticColorType(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getTintColor(): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBackgroundColor(backgroundColor: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBackgroundImage(backgroundImage: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated + */ + static setCurrentTab: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Sets the value of the property. + * @deprecated Use [Titanium.UI.Window.orientationModes](Titanium.UI.Window.orientationModes) instead. + */ + static setOrientation: never; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setSemanticColorType(semanticColorType: string): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setTintColor(tintColor: string): void; + + } + /** + * The top-level Utils module, containing a set of JavaScript methods that are often useful when + * building applications. + */ + class Utils extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Returns the specified data decoded from Base64. + */ + static base64decode(obj: string | Titanium.Blob | Titanium.Filesystem.File): Titanium.Blob; + + /** + * Returns the specified data encoded to Base64. + */ + static base64encode(obj: string | Titanium.Blob | Titanium.Filesystem.File): Titanium.Blob; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Returns a MD5 digest of the specified data as a hex-based String. + */ + static md5HexDigest(obj: string | Titanium.Blob): string; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + /** + * Returns a SHA-1 hash of the specified data as a hex-based String. + */ + static sha1(obj: string | Titanium.Blob): string; + + /** + * Returns a SHA-256 hash of the specified data as a hex-based String. + */ + static sha256(obj: string | Titanium.Blob): string; + + } + /** + * Base event for class Titanium.WatchSession + */ + interface WatchSessionBaseEvent extends Ti.Event { + /** + * Source object that fired the event. + */ + source: Titanium.WatchSession; + + } + /** + * App received message from apple watch in foreground. Will be called on startup if the + * incoming message caused the receiver to launch. + */ + interface WatchSession_receivemessage_Event extends WatchSessionBaseEvent { + /** + * The message content + */ + message: any; + + } + /** + * App received app context from apple watch. Will be called on startup if an applicationContext is available. + */ + interface WatchSession_receiveapplicationcontext_Event extends WatchSessionBaseEvent { + /** + * The application Context + */ + applicationContext: any; + + } + /** + * App received user info from apple watch in background. Will be called on startup if the user info finished + * transferring when the receiver was not running. + */ + interface WatchSession_receiveuserinfo_Event extends WatchSessionBaseEvent { + /** + * The user info content + */ + userInfo: any; + + } + /** + * App received file from apple watch in background. + */ + interface WatchSession_receivefile_Event extends WatchSessionBaseEvent { + /** + * The downloaded data as a Titanium.Blob object. + */ + data: Titanium.Blob; + + /** + * Error code if transfer failed. + */ + errorCode: number; + + /** + * Error message if any. + */ + message: string; + + /** + * Information about the file. + */ + metaData: any; + + /** + * If the transfer was successful. + */ + success: boolean; + + } + /** + * The watch state has changed. + */ + interface WatchSession_watchstatechanged_Event extends WatchSessionBaseEvent { + /** + * Returns the current activation state of the watch. Only available on iOS 9.3 + * and later. See for more infos. + */ + activationState: number; + + /** + * If the apple watch is currently activated. Only available on iOS 9.3 + * and later. See for more infos. + */ + isActivated: boolean; + + /** + * If the complication is enabled in the apple watch. + */ + isComplicationEnabled: boolean; + + /** + * If the device is paired with the apple watch. + */ + isPaired: boolean; + + /** + * If apple watch is currently reachable. + */ + isReachable: boolean; + + /** + * If the watch app is installed in the apple watch. + */ + isWatchAppInstalled: boolean; + + } + /** + * The watch reachability state has changed. + */ + interface WatchSession_reachabilitychanged_Event extends WatchSessionBaseEvent { + /** + * Returns the current activation state of the watch. Only available on iOS 9.3 + * and later. See for more infos. + */ + activationState: number; + + /** + * If the apple watch is currently activated. Only available on iOS 9.3 + * and later. See for more infos. + */ + isActivated: boolean; + + /** + * If the complication is enabled in the apple watch. + */ + isComplicationEnabled: boolean; + + /** + * If the device is paired with the apple watch. + */ + isPaired: boolean; + + /** + * If apple watch is currently reachable. + */ + isReachable: boolean; + + /** + * If the watch app is installed in the apple watch. + */ + isWatchAppInstalled: boolean; + + } + /** + * Fired when the application completed user info transfer to the watch app. + */ + interface WatchSession_finishuserinfotransfer_Event extends WatchSessionBaseEvent { + /** + * Error code if transfer failed. + */ + errorCode: number; + + /** + * Error message if any. + */ + message: string; + + /** + * If the transfer was successful. + */ + success: boolean; + + /** + * The downloaded data as a Titanium.Blob object. + */ + userInfo: any; + + } + /** + * App completed file transfer to watch app. + */ + interface WatchSession_finishfiletransfer_Event extends WatchSessionBaseEvent { + /** + * Error code if transfer failed. + */ + errorCode: number; + + /** + * URL of the file transferred. + */ + fileURL: string; + + /** + * Error message if any. + */ + message: string; + + /** + * meta data of the file transferred. + */ + metaData: any; + + /** + * If the transfer was successful. + */ + success: boolean; + + } + /** + * Called when the session can no longer be used to modify or add any new transfers and, + * all interactive messages will be cancelled, but events for background transfers can still fire. + * This will happen when the selected watch is being changed. + */ + interface WatchSession_inactive_Event extends WatchSessionBaseEvent { + /** + * Returns the current activation state of the watch. Only available on iOS 9.3 + * and later. See for more infos. + */ + activationState: number; + + /** + * If the apple watch is currently activated. Only available on iOS 9.3 + * and later. See for more infos. + */ + isActivated: boolean; + + /** + * If the complication is enabled in the apple watch. + */ + isComplicationEnabled: boolean; + + /** + * If the device is paired with the apple watch. + */ + isPaired: boolean; + + /** + * If apple watch is currently reachable. + */ + isReachable: boolean; + + /** + * If the watch app is installed in the apple watch. + */ + isWatchAppInstalled: boolean; + + } + /** + * Called when all events for the previously selected watch has occurred. + * The session can be re-activated for the now selected watch using activateSession. + */ + interface WatchSession_deactivate_Event extends WatchSessionBaseEvent { + /** + * Returns the current activation state of the watch. Only available on iOS 9.3 + * and later. See for more infos. + */ + activationState: number; + + /** + * If the apple watch has currently content pending. Only available on iOS 10.0 + * and later. See for more infos. + */ + hasContentPending: boolean; + + /** + * If the apple watch is currently activated. Only available on iOS 9.3 + * and later. See for more infos. + */ + isActivated: boolean; + + /** + * If the complication is enabled in the apple watch. + */ + isComplicationEnabled: boolean; + + /** + * If the device is paired with the apple watch. + */ + isPaired: boolean; + + /** + * If apple watch is currently reachable. + */ + isReachable: boolean; + + /** + * If the watch app is installed in the apple watch. + */ + isWatchAppInstalled: boolean; + + /** + * If the apple watch has complication userInfo transfers left. Only available on iOS 10.0 + * and later. See for more infos. + */ + remainingComplicationUserInfoTransfers: boolean; + + } + /** + * Called when the session has completed activation. If session state is + * there will be an error + * with more details. + */ + interface WatchSession_activationCompleted_Event extends WatchSessionBaseEvent { + /** + * Returns the current activation state of the watch. Only available on iOS 9.3 + * and later. See for more infos. + */ + activationState: number; + + /** + * If the apple watch is currently activated. Only available on iOS 9.3 + * and later. See for more infos. + */ + isActivated: boolean; + + /** + * If the complication is enabled in the apple watch. + */ + isComplicationEnabled: boolean; + + /** + * If the device is paired with the apple watch. + */ + isPaired: boolean; + + /** + * If apple watch is currently reachable. + */ + isReachable: boolean; + + /** + * If the watch app is installed in the apple watch. + */ + isWatchAppInstalled: boolean; + + } + interface WatchSessionEventMap extends ProxyEventMap { + activationCompleted: WatchSession_activationCompleted_Event; + + deactivate: WatchSession_deactivate_Event; + + finishfiletransfer: WatchSession_finishfiletransfer_Event; + + finishuserinfotransfer: WatchSession_finishuserinfotransfer_Event; + + inactive: WatchSession_inactive_Event; + + reachabilitychanged: WatchSession_reachabilitychanged_Event; + + receiveapplicationcontext: WatchSession_receiveapplicationcontext_Event; + + receivefile: WatchSession_receivefile_Event; + + receivemessage: WatchSession_receivemessage_Event; + + receiveuserinfo: WatchSession_receiveuserinfo_Event; + + watchstatechanged: WatchSession_watchstatechanged_Event; + + } + /** + * Used to enable data and file transfers between a watchOS and iOS application. + */ + class WatchSession extends Titanium.Module { + /** + * The watch is currently activated. + */ + static readonly ACTIVATION_STATE_ACTIVATED: number; + + /** + * The watch is currently inactive. + */ + static readonly ACTIVATION_STATE_INACTIVE: number; + + /** + * The watch is currently not activated. + */ + static readonly ACTIVATION_STATE_NOT_ACTIVATED: number; + + /** + * Returns the current activation state of the watch. + */ + static readonly activationState: number; + + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * Returns `true` if there is more content for the session to deliver. + */ + static readonly hasContentPending: boolean; + + /** + * Returns `true` if the watch is currently activated. + */ + static readonly isActivated: boolean; + + /** + * Returns `true` if complication is enabled on the installed watch app. + */ + static readonly isComplicationEnabled: boolean; + + /** + * Returns `true` if the device is paired with a watch. + */ + static readonly isPaired: boolean; + + /** + * Returns `true` if the watch is currently reachable. + */ + static readonly isReachable: boolean; + + /** + * Returns `true` if the device supports watch connectivity. + */ + static readonly isSupported: boolean; + + /** + * Returns `true` if the accompanying watch app is installed. + */ + static readonly isWatchAppInstalled: boolean; + + /** + * The most recent application context sent to the watch app. + */ + static readonly recentApplicationContext: any; + + /** + * The number of calls remaining to `transferCurrentComplication` before the system starts + * transferring the complicationUserInfo as regular userInfos. + */ + static readonly remainingComplicationUserInfoTransfers: number; + + /** + * Activates the watch session + */ + static activateSession(): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: K, callback: (this: Titanium.WatchSession, event: WatchSessionEventMap[K]) => void): void; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Cancels all incomplete file transfers to the apple watch. + */ + static cancelAllFileTransfers(): void; + + /** + * Cancels all incomplete transfers to the apple watch. + */ + static cancelAllTransfers(): void; + + /** + * Cancels all incomplete user info and complication transfers to the apple watch. + */ + static cancelAllUserInfoTransfers(): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: K, event?: WatchSessionEventMap[K]): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getActivationState(): number; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getHasContentPending(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIsActivated(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIsComplicationEnabled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIsPaired(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIsReachable(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIsSupported(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getIsWatchAppInstalled(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getRecentApplicationContext(): any; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getRemainingComplicationUserInfoTransfers(): number; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: K, callback: (this: Titanium.WatchSession, event: WatchSessionEventMap[K]) => void): void; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Sends a message to the apple watch. + */ + static sendMessage(message: any, reply?: (param0: MessageReply) => void): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Transfers complication data to the watch application. + */ + static transferCurrentComplication(params: any): void; + + /** + * Transfers a file to the apple watch. + */ + static transferFile(params: any): void; + + /** + * Transfers an user info to the apple watch. + */ + static transferUserInfo(params: any): void; + + /** + * Sends an app context update to the apple watch. + */ + static updateApplicationContext(params: any): void; + + } + /** + * The top level XML module. The XML module is used for parsing and processing XML-based content. + */ + class XML extends Titanium.Module { + /** + * The name of the API that this proxy corresponds to. + */ + static readonly apiName: string; + + /** + * Indicates if the proxy will bubble an event to its parent. + */ + static bubbleParent: boolean; + + /** + * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. + */ + static lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Adds the specified callback as an event listener for the named event. + */ + static addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Applies the properties to the proxy. + */ + static applyProperties(props: any): void; + + /** + * Fires a synthesized event to any registered listeners. + */ + static fireEvent(name: string, event?: any): void; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getApiName(): string; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getBubbleParent(): boolean; + + /** + * Gets the value of the property. + * @deprecated Access instead. + */ + static getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; + + /** + * Parses an XML string into a object. + */ + static parseString(xml: string): Titanium.XML.Document; + + /** + * Removes the specified callback as an event listener for the named event. + */ + static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; + + /** + * Serializes a [Node](Titanium.XML.Node) object into a string. + */ + static serializeToString(node: Titanium.XML.Node): string; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setBubbleParent(bubbleParent: boolean): void; + + /** + * Sets the value of the property. + * @deprecated Set the value using instead. + */ + static setLifecycleContainer(lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup): void; + + } + /** + * The top level Yahoo module. The Yahoo module is used for accessing Yahoo related API services. + * @deprecated Use the standalone [Ti.Yahoo](https://github.com/appcelerator-modules/ti.yahoo) module instead. + */ + const Yahoo: never; } /** - * Argument passed to the callback when a request finishes successfully or erroneously. + * Provide at least the property `identifier` and `url` property to identify a local + * image, sound or video. If your media is invalid, the API will throw an error log and + * skip the invalid attachment. */ -interface CloudACLsResponse { +interface UserNotificationAttachment { /** - * Indicates whether the request succeeded. + * The identifier of this attachment. */ - success?: boolean; + identifier: string; /** - * Indicates whether the request failed. + * An additional dictionary of options to provide. */ - error?: boolean; + options?: any; /** - * Meta data, if any returned. + * The URL to the attachment's data. If you have obtained this attachment from + * the notification-center then the URL will be security-scoped. */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of ACL objects, if any exist. - */ - acls?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudACLsCheckResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Dictionary of permissions. - */ - permission?: any; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudChatsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `chats` objects, if any exist. - */ - chats?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudChatGroupsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `chat_groups` objects, if any exist. - */ - chat_groups?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudCheckinsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `checkins` objects, if any exist. - */ - checkins?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudClientsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * IP address of client. - */ - ip_address?: string; - - /** - * Location of client. - */ - location?: any; - -} -/** - * Argument passed to the callback as a request is transmitted or received. - */ -interface CloudStreamProgress { - /** - * A value from 0.0-1.0 with the progress of the exchange. - */ - progress?: number; - - /** - * The URL for the request, to help identify it. - */ - url?: string; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudEmailsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudEventsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `event` objects, if any exist. - */ - events?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudEventOccurrencesResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `event` objects, if any exist. - */ - event_occurrences?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudFilesResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `file` objects, if any exist. - */ - files?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudFriendsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `user` objects, if any exist. - */ - users?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudFriendRequestsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `user` objects, if any exist. - */ - friend_requests?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudGeoFenceResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of geo-fence objects, if any exist. - */ - geo_fences?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudKeyValuesResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `keyvalues` objects, if any exist. - */ - keyvalues?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudLikesResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `like` objects, if any exist. - */ - likes?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudMessagesResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `message` objects, if any exist. - */ - messages?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudObjectsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `classname` objects, if any exist. - */ - classname?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudPhotoCollectionsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `collections` objects, if any exist. - */ - collections?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudPhotoCollectionsPhotosResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `photos` objects, if any exist. - */ - photos?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudPhotosResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `photos` objects, if any exist. - */ - photos?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudPlacesResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `places` objects, if any exist. - */ - places?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudPostsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `posts` objects, if any exist. - */ - posts?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudPushNotificationsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - -} -/** - * Argument passed to the callback when a request finishes successfully. - */ -interface CloudPushNotificationsQueryChannelResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Array of `push_channel` names, if any exist. - */ - push_channels?: string[]; - -} -/** - * Argument passed to the callback when a request finishes successfully. - */ -interface CloudPushNotificationsShowChannelResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Dictionary containing counts of devices subscribed to a push channel, grouped by platform. - */ - devices?: any; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudPushNotificationsQueryResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `subscription` objects, if any exist. - */ - subscriptions?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully. - */ -interface CloudPushSchedulesResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Array of [schedules push notifications](https://docs.appcelerator.com/arrowdb/latest/#!/api/PushSchedules), if any exist. - */ - push_schedules?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudReviewsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `reviews` objects, if any exist. - */ - reviews?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudSocialIntegrationsResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `users` objects, if any exist. - */ - users?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudStatusesResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `statuses` objects, if any exist. - */ - statuses?: any[]; - -} -/** - * Properties for the modal dialog used in 3-Legged OAuth - */ -interface CloudUsersSecureDialog { - /** - * Defines the title for the dialog. - */ - title?: string; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudUsersResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Set of `user` objects, if any exist. - */ - users?: any[]; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CloudUsersSecureResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Indicates whether the request failed. - */ - error?: boolean; - - /** - * Meta data, if any returned. - */ - meta?: any; - - /** - * Error code, if any returned. - */ - code?: number; - - /** - * Error message, if any returned. - */ - message?: string; - - /** - * Identifies the current access token when using 3-Legged OAuth. - */ - accessToken?: string; - - /** - * Indicates the number of seconds before the access token expires. - */ - expiresIn?: number; - -} -/** - * Simple object for specifying token retrieval options to [retrieveDeviceToken](Modules.CloudPush.retrieveDeviceToken). - */ -interface CloudPushNotificationConfig { - /** - * Callback function called when the push registration is successfully completed. - */ - success?: (param0: CloudPushNotificationSuccessArg) => any; - - /** - * Callback function called when an error occurs during registration. - */ - error?: (param0: CloudPushNotificationErrorArg) => any; - -} -/** - * A simple object passed to the [retrieveDeviceToken](Modules.CloudPush.retrieveDeviceToken) success callback. - */ -interface CloudPushNotificationSuccessArg { - /** - * The device token which this device was registered for. - */ - deviceToken?: string; - -} -/** - * A simple object passed to the [retrieveDeviceToken](Modules.CloudPush.retrieveDeviceToken) error callback. - */ -interface CloudPushNotificationErrorArg { - /** - * Description of the error. - */ - error?: string; - -} -/** - * Optional Titanium modules. - */ -interface Modules { -} -/** - * Simple object passed to the - * [startActivityForResult](Titanium.Android.Activity.startActivityForResult) callback. - */ -interface ActivityResult { - /** - * Unique, automatically generated integer request code. - */ - requestCode?: number; - - /** - * Integer result code that the started activity passed to - * [setResult](Titanium.Android.Activity.setResult). - */ - resultCode?: number; - - /** - * Intent that can contain data returned to the caller. Data can be attached to - * the intent as "extras"). - */ - intent?: Titanium.Android.Intent; - -} -/** - * Options passed to . - */ -interface ServiceIntentOptions { - /** - * URL for the service's JavaScript. - */ - url?: string; - - /** - * One of the `START_*` constants from to specify the "stickiness" of the Service when Android shuts down the host application. - */ - startMode?: number; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface RequestPermissionAccessResult { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface CalendarPermissionResponse { - /** - * Indicates whether the request succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code, if any returned. - */ - code?: number; - -} -/** - * Parameter for wakeLock - */ -interface wakeLockOptions { - /** - * Minimum time the device will be switched on (plus device switch-off time) - */ - time?: number; - - /** - * Wake lock level and flag. See [PowerManager.newWakeLock in the Android API Reference](https://developer.android.com/reference/android/os/PowerManager.html#newWakeLock(int,%20java.lang.String)) - */ - flags?: number; - -} -/** - * Dictionary of options for the method. - */ -interface showParams { - /** - * String to be used as title for the dialog. - */ - title?: string; - - /** - * String to be used as a message for the dialog. - */ - message?: string; - - /** - * Array of String instances. - */ - buttonNames?: string[]; - - /** - * Array of String instances. - */ - options?: string[]; - - /** - * Determines whether to animate the dialog as it is shown. - */ - animated?: boolean; - - /** - * View to which to attach the dialog. - */ - view?: Titanium.UI.View; - - /** - * Positions the arrow of the option dialog relative to the attached view's dimensions. - */ - rect?: Dimension; - -} -/** - * Dictionary describing the arguments passed to the application on startup. - * Use the [getArguments](Titanium.App.getArguments) method to retrieve the launch options. - */ -interface launchOptions { - /** - * This key indicates that the application was launched in order to open - * the specified URL. - */ - url?: string; - - /** - * This key indicates that the application was launched by another - * application with the specified bundle ID. - */ - source?: string; - - /** - * If set to `true`, this key indicates that the application was launched in response to an - * incoming location event. - */ - launchOptionsLocationKey?: boolean; + url: string; } /** @@ -60154,16 +83207,6 @@ interface UserNotificationCallbackResponse { * . */ interface UserNotificationDictionary { - /** - * Title of the notification. - */ - alertTitle?: string; - - /** - * Subtitle of the notification. - */ - alertSubtitle?: string; - /** * Alert button text ('Open', by default) or home text ('Press Home to unlock', by default) * type: String @@ -60180,16 +83223,41 @@ interface UserNotificationDictionary { */ alertLaunchImage?: string; + /** + * Subtitle of the notification. + */ + alertSubtitle?: string; + + /** + * Title of the notification. + */ + alertTitle?: string; + /** * Application badge value. */ badge?: number; + /** + * Category identifier of the notification. + */ + category?: string; + /** * Date and time when the notification was configured to fire. */ date?: Date; + /** + * The notification identifier. + */ + identifier: string; + + /** + * Region of the notification. + */ + region?: any; + /** * Path to the sound file configured to play when the notification was fired. */ @@ -60205,223 +83273,6 @@ interface UserNotificationDictionary { */ userInfo?: any; - /** - * Category identifier of the notification. - */ - category?: string; - - /** - * The notification identifier. - */ - identifier: string; - - /** - * Region of the notification. - */ - region?: any; - -} -/** - * Dictionary object of parameters used to register the application with local notifications using - * the method. - */ -interface GetUserNotificationSettings { - /** - * Notification types to use. - */ - types?: number[]; - - /** - * Set of categories of user notification actions required by the applicaiton to use. - */ - categories?: Titanium.App.iOS.UserNotificationCategory[]; - - /** - * The current authorization status for using notifications. - */ - authorizationStatus?: number; - - /** - * The current sound settings. - */ - soundSetting?: number; - - /** - * The current badge settings. - */ - badgeSetting?: number; - - /** - * The current alert settings. - */ - alertSetting?: number; - - /** - * The current notication-center settings. - */ - notificationCenterSetting?: number; - - /** - * The current lock-screen settings. - */ - lockScreenSetting?: number; - - /** - * The current CarPlay settings. - */ - carPlaySetting?: number; - - /** - * The authorization status to play sounds for critical alerts. - * Available in Titanium SDK 7.4.0 and later. - */ - criticalAlertSetting?: number; - - /** - * A Boolean value indicating the system displays a button for in-app notification settings. - * Available in Titanium SDK 7.4.0 and later. - */ - providesAppNotificationSettings?: number; - - /** - * The current alert style used to display notifications. - */ - alertStyle?: number; - -} -/** - * Dictionary object of parameters used to create a notification using - * . - */ -interface NotificationParams { - /** - * The notification identifier. - */ - identifier: string; - - /** - * Alert button text ('Open', by default) or home text ('Press Home to unlock', by default) - * to display. - */ - alertAction?: string; - - /** - * Alert message to display. - */ - alertBody?: string; - - /** - * Alert title to display. - */ - alertTitle?: string; - - /** - * Alert subtitle to display. - */ - alertSubtitle?: string; - - /** - * Image to display instead of `Default.png` when launching the application. - */ - alertLaunchImage?: string; - - /** - * Notification attachments to display. - */ - attachments?: UserNotificationAttachment[]; - - /** - * Application badge value. - */ - badge?: number; - - /** - * String identifier of category of actions to be displayed for an interactive notification. - */ - category?: string; - - /** - * Date and time for the notification to occur. - */ - date?: Date; - - /** - * Interval to repeat the notification. One of `weekly`, `daily`, `yearly,` `monthly`. - */ - repeat?: string; - - /** - * Path to the sound file to play when notification occurs, relative to the `Resources` folder. - */ - sound?: string; - - /** - * Timezone of the date configured for the notification. If not set, the system timezone is used. - */ - timezone?: string; - - /** - * Data to pass to the application with the notification event. - */ - userInfo?: any; - - /** - * Region the notification will be triggered in. Allowed parameter are: - * - `latitude`: Latitude of the location center, in decimal degrees (required). - * - `longitude`: Longitude of the location center, in decimal degrees (required). - * - `triggersOnce`: Whether or not the notification will only fire once (optional, default: true). - */ - region?: any; - - /** - * The string the notification adds to the category's summary format string. - */ - summaryArgument?: string; - - /** - * The number of items the notification adds to the category's summary format string. - */ - summaryArgumentCount?: string; - -} -/** - * Provide at least the property `identifier` and `url` property to identify a local - * image, sound or video. If your media is invalid, the API will throw an error log and - * skip the invalid attachment. - */ -interface UserNotificationAttachment { - /** - * The identifier of this attachment. - */ - identifier: string; - - /** - * The URL to the attachment's data. If you have obtained this attachment from - * the notification-center then the URL will be security-scoped. - */ - url: string; - - /** - * An additional dictionary of options to provide. - */ - options?: any; - -} -/** - * Dictionary object of parameters used to identify an incoming URL that is handled - * by the application. - */ -interface LaunchOptionsType { - /** - * The application or service that triggered the handled URL. - */ - source?: string; - - /** - * The url that was triggered by the application or service. - */ - url?: string; - } /** * Dictionary object of parameters used to register the application with local notifications using @@ -60430,50 +83281,100 @@ interface LaunchOptionsType { * method. */ interface UserNotificationSettings { - /** - * Notification types to use. - */ - types?: number[]; - /** * Set of categories of user notification actions required by the applicaiton to use. */ categories?: Titanium.App.iOS.UserNotificationCategory[]; -} -/** - * Simple object used to specify options for [imageAsCropped](Titanium.Blob.imageAsCropped). - */ -interface ImageAsCroppedDict { /** - * Width to crop this image to. + * Notification types to use. */ - width?: number; - - /** - * Height to crop this image to. - */ - height?: number; - - /** - * Left coordinate of the cropped rectangle within the source image. - */ - x?: number; - - /** - * Top coordinate of the cropped rectangle within the source image. - */ - y?: number; + types?: number[]; } /** - * Argument passed to the callback when a request finishes successfully or erroneously. + * Pass an object with the following key-value pairs: + * * `view` (Titanium.UI.View): View to insert + * * `position` (Number): Position in the [children](Titanium.UI.View.children) array of + * the view elment to replace. */ -interface EventsAuthorizationResponse { +interface ViewPositionOptions { /** - * Indicates whether the request succeeded. + * Position in the [children](Titanium.UI.View.children) array of the view element to replace. */ - success?: boolean; + position?: number; + + /** + * View to insert. Required. + */ + view: Titanium.UI.View; + +} +/** + * Template that represents a view subcomponent of an . + */ +interface ViewTemplate { + /** + * View's ID (or set of IDs) used for data binding. This value must be unique. + */ + bindId?: string; + + /** + * Contains an array of subview templates to be added (in order) as children to this view. + */ + childTemplates?: ViewTemplate[]; + + /** + * Contains key-value pairs of view events and their listeners that are applied to this view component. + */ + events?: any; + + /** + * Contains key-value pairs of view properties and their values that are applied to this view component. + */ + properties?: any; + + /** + * View's class name, for example, `Ti.UI.Button`. + */ + type: string; + +} +/** + * The parameter passed to the method. + */ +interface WebViewPreferencesObject { + /** + * A Boolean value indicating whether JavaScript can open windows without user interaction. + */ + javaScriptCanOpenWindowsAutomatically?: boolean; + + /** + * A Boolean value indicating whether JavaScript is enabled. + */ + javaScriptEnabled?: boolean; + + /** + * The minimum font size in points. + */ + minimumFontSize?: number; + +} +/** + * Argument passed to the write callback when an asynchronous + * [write](Titanium.Stream.write) operation + * finishes. + */ +interface WriteCallbackArgs extends ErrorResponse { + /** + * Number of bytes processed, or -1 in the event of an error or end of stream. + */ + bytesProcessed?: number; + + /** + * Error code. Returns 0 if `success` is `true`. + */ + code?: number; /** * Error message, if any returned. @@ -60481,10 +83382,118 @@ interface EventsAuthorizationResponse { error?: string; /** - * Error code, if any returned. + * Text description of the error. + * @deprecated Use error property to determine error message + */ + errorDescription: never; + + /** + * Whether an error was encountered. Set to 1 in the case of an error, 0 + * otherwise. + * @deprecated Use success or code values to determine error conditions + */ + errorState: never; + + /** + * Stream being written to. + */ + source?: Titanium.IOStream; + + /** + * Indicates if the operation succeeded. + */ + success?: boolean; + +} +/** + * Argument passed to the callback when an asynchronous + * [writeStream](Titanium.Stream.writeStream) operation finishes. + */ +interface WriteStreamCallbackArgs extends ErrorResponse { + /** + * Number of bytes processed, or -1 in the event of an error or end of stream. + */ + bytesProcessed?: number; + + /** + * Text description of the error. + * @deprecated Use error property to determine error message + */ + errorDescription: never; + + /** + * Whether an error was encountered. Set to 1 in the case of an error, 0 + * otherwise. + * @deprecated Use success or code values to determine error conditions + */ + errorState: never; + + /** + * Stream being read from. + */ + fromStream?: Titanium.IOStream; + + /** + * Stream being written to. + */ + toStream?: Titanium.IOStream; + +} +/** + * Properties passed to a yql callback to report a success or failure. + */ +interface YQLResponse extends ErrorResponse { + /** + * Error code. Returns 0 if `success` is `true`. */ code?: number; + /** + * The data payload received from the YQL. + */ + data?: any; + + /** + * Error message, if any returned. + */ + error?: string; + + /** + * Error message, if any returned. Use `error` instead + * @deprecated + */ + message?: string; + +} +/** + * Dictionary of options for the method. + */ +interface closeWindowParams { + /** + * Animation resource to use for the incoming activity. + */ + activityEnterAnimation?: number; + + /** + * Animation resource to use for the outgoing activity. + */ + activityExitAnimation?: number; + + /** + * Determines whether to use an animated effect when the window is closed. Defaults to `true` on Android, `false` on iOS. + */ + animated?: boolean; + + /** + * duration of the animation in milliseconds + */ + animationDuration?: number; + + /** + * Transition type to use during a transition animation. + */ + animationStyle?: number; + } /** * Dictionary containing `daysOfWeek` and `week`. @@ -60502,2214 +83511,6 @@ interface daysOfTheWeekDictionary { */ week?: number; -} -/** - * Dictionary containing either `endDate` or `occurrenceCount` property. - */ -interface recurrenceEndDictionary { - /** - * End date of the recurrence end, or undefined if the recurrence end is count-based. - */ - endDate?: Date; - - /** - * Occurrence count of the recurrence end, or 0 if the recurrence end is date-based. - */ - occurrenceCount?: number; - -} -/** - * Named parameters for . - */ -interface EncodeNumberDict { - /** - * Number to encode. - */ - source: number; - - /** - * Destination buffer. - */ - dest: Titanium.Buffer; - - /** - * Encoding type to use. - */ - type: string; - - /** - * Index in the `dest` buffer of the first byte of encoded data. - */ - position?: number; - - /** - * Byte order to encode with. - */ - byteOrder?: number; - -} -/** - * Named parameters for . - */ -interface DecodeNumberDict { - /** - * Buffer to decode. - */ - source: Titanium.Buffer; - - /** - * The encoding type to use. - */ - type: string; - - /** - * Index in the `source` buffer of the first byte of data to decode. - */ - position?: number; - - /** - * byte order to decode with. - */ - byteOrder?: number; - -} -/** - * Named parameters for . - */ -interface EncodeStringDict { - /** - * Source string to encode. - */ - source: string; - - /** - * Destination buffer. - */ - dest: Titanium.Buffer; - - /** - * Index in the `dest` buffer of the first byte of the encoded string. - */ - destPosition?: number; - - /** - * Position in `source` to start encoding. - */ - sourcePosition?: number; - - /** - * Number of characters in `source` to encode. - */ - sourceLength?: number; - - /** - * Character encoding to use when encoding this string to bytes. - */ - charset?: string; - -} -/** - * Named parameters for . - */ -interface DecodeStringDict { - /** - * Buffer to decode. - */ - source: Titanium.Buffer; - - /** - * Index in the `source` buffer of the first byte of data to decode. - */ - position?: number; - - /** - * Number of bytes to decode. - */ - length?: number; - - /** - * Character set to use when encoding this string to bytes. - */ - charset?: string; - -} -/** - * Dictionary of options for the method. - */ -interface showContactsParams { - /** - * Determines whether to animate the show/hide of the contacts picker (iPhone, iPad only.) - */ - animated?: boolean; - - /** - * Field names to show when selecting properties. By default, shows all available. - */ - fields?: string[]; - - /** - * Function to call when selection is canceled. - */ - cancel?: (param0: any) => any; - - /** - * Function to call when a person is selected. Must not be used with `selectedProperty` property. - */ - selectedPerson?: (param0: any) => any; - - /** - * Function to call when a property is selected. Must not be used with `selectedPerson` - * property. - * Note: If ringtone or texttone is selected, null values are returned, since these are unsupported - * by Apple. - * Since iOS 9.0, there is a native apple issue whereby it may return null if the birthday property - * is selected on certain device models. - * The callback contains the selected property and a 'person' object of type . - * Since iOS 9.0, apple only returns the person object with partial information. Currently it is known to - * at least contain the selected property and fullName. - */ - selectedProperty?: (param0: any) => any; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface ContactsAuthorizationResponse { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Properties used in any event or callback which needs to report a success or failure. - */ -interface ErrorResponse { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Properties used in any event or callback which needs to report a success. - */ -interface SuccessResponse { - /** - * Indicates if the operation succeeded. Returns `true`. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0. - */ - code?: number; - -} -/** - * Properties used in any event or callback which needs to report a failure. - */ -interface FailureResponse { - /** - * Indicates if the operation succeeded. Returns `false`. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns a non-zero value. - */ - code?: number; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface RequestStorageAccessResult { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Argument passed to the [getCurrentPosition](Titanium.Geolocation.getCurrentPosition) callback. - */ -interface LocationResults { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * If `success` is true, object describing the location provider generating this update. - */ - provider?: LocationProviderDict; - - /** - * If `success` is true, actual location data for this update. - */ - coords?: LocationCoordinates; - -} -/** - * Simple object holding the data for a location update. - */ -interface LocationCoordinates { - /** - * Latitude of the location update, in decimal degrees. - */ - latitude?: number; - - /** - * Longitude of the location update, in decimal degrees. - */ - longitude?: number; - - /** - * Altitude of the location update, in meters. - */ - altitude?: number; - - /** - * Accuracy of the location update, in meters. - */ - accuracy?: number; - - /** - * Vertical accuracy of the location update, in meters. - */ - altitudeAccuracy?: number; - - /** - * Compass heading, in degrees. May be unknown if device is not moving. On - * iOS, a negative value indicates that the heading data is not valid. - */ - heading?: number; - - /** - * Current speed in meters/second. On iOS, a negative value indicates that the - * heading data is not valid or the accuracy is configured incorrectly. - * Note: Due to the Apple Geolocation API, set the - * property to in order to properly - * measure speed changes and prevent the app from returning negative values. - */ - speed?: number; - - /** - * Timestamp for this location update, in milliseconds. - */ - timestamp?: number; - - /** - * The floor of the building on which the user is located. - */ - floor?: LocationCoordinatesFloor; - -} -/** - * Simple object holding floor of the building on which the user is located. - */ -interface LocationCoordinatesFloor { - /** - * The logical floor of the building. - */ - level?: number; - -} -/** - * Simple object returned in the callback from the - * [forwardGeocoder](Titanium.Geolocation.forwardGeocoder) method. - * Note that Android includes a number of extra fields. - */ -interface ForwardGeocodeResponse { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * Estimated accuracy of the geocoding, in meters. - */ - accuracy?: number; - - /** - * Longitude of the geocoded address. - */ - longitude?: string; - - /** - * Latitude of the geocoded address. - */ - latitude?: string; - - /** - * Street name, without street address. - */ - street?: string; - - /** - * Street name. - */ - street1?: string; - - /** - * City name. - */ - city?: string; - - /** - * First line of region. - */ - region1?: string; - - /** - * Not used. - */ - region2?: string; - - /** - * Postal code. - */ - postalCode?: string; - - /** - * Country name. - */ - country?: string; - - /** - * Country code. - */ - countryCode?: string; - - /** - * Country code. Same as `countryCode`. - */ - country_code?: string; - - /** - * Display address. Identical to `address`. - */ - displayAddress?: string; - - /** - * Full address. - */ - address?: string; - -} -/** - * Argument passed to the [getCurrentHeading](Titanium.Geolocation.getCurrentHeading) callback. - */ -interface HeadingResponse { - /** - * Indicates a successful operation. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. - */ - code?: number; - - /** - * If `success` is true, the actual heading data. - */ - heading?: HeadingData; - -} -/** - * Simple object holding compass heading data. - */ -interface HeadingData { - /** - * Accuracy of the compass heading, in platform-specific units. - */ - accuracy?: number; - - /** - * Declination in degrees from magnetic North. - */ - magneticHeading?: number; - - /** - * Declination in degrees from true North. - */ - trueHeading?: number; - - /** - * Timestamp for the heading data, in milliseconds. - */ - timestamp?: number; - - /** - * Raw geomagnetic data for the X axis. - */ - x?: number; - - /** - * Raw geomagnetic data for the Y axis. - */ - y?: number; - - /** - * Raw geomagnetic data for the Z axis. - */ - z?: number; - -} -/** - * Simple object describing a location provider. - */ -interface LocationProviderDict { - /** - * Accuracy of the location provider, either fine (1) or coarse (2). - */ - accuracy?: number; - - /** - * Name of the location provider. - */ - name?: string; - - /** - * Power consumption for this provider, either low (1), medium (2), or high (3). - */ - power?: number; - -} -/** - * Simple object returned in the callback from the - * [reverseGeocoder](Titanium.Geolocation.reverseGeocoder) method. - */ -interface ReverseGeocodeResponse { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * An array of reverse-geocoded addresses matching the requested location. - */ - places?: GeocodedAddress[]; - -} -/** - * Simple object representing a place, returned in the callback from the - * [reverseGeocoder](Titanium.Geolocation.reverseGeocoder) method. - */ -interface GeocodedAddress { - /** - * Street name, without street address. - */ - street?: string; - - /** - * Street name. - */ - street1?: string; - - /** - * City name. - */ - city?: string; - - /** - * First line of region. - */ - region1?: string; - - /** - * Not used. - */ - region2?: string; - - /** - * Postal code - */ - postalCode?: string; - - /** - * Postal code. To be replaced by `postalCode` - */ - zipcode?: string; - - /** - * Country name. - */ - country?: string; - - /** - * Country code. - */ - countryCode?: string; - - /** - * Country code. To be replaced by `countryCode`. - */ - country_code?: string; - - /** - * Longitude of the geocoded point. - */ - longitude?: number; - - /** - * Latitude of the geocoded point. - */ - latitude?: number; - - /** - * Display address. Identical to `address`. - */ - displayAddress?: string; - - /** - * Full address. - */ - address?: string; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface LocationAuthorizationResponse { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Simple object passed to the [scanMediaFiles](Titanium.Media.Android.scanMediaFiles) callback. - */ -interface MediaScannerResponse { - /** - * Path to the media file that was scanned. - */ - path?: string; - - /** - * URI to the file if it was scanned and added to the media library, or `null` - * if the file was not added. - */ - uri?: string; - -} -/** - * An abstract type to represent a metadata item inside the `metadata` event (iOS only). - */ -interface TiMetadataItemType { - /** - * The key of the metadata item, e.g. "title". - */ - key?: string; - - /** - * The key-path of the metadata item. - */ - keySpace?: string; - - /** - * The value of the metadata item. Can be represented as various types. - */ - value?: string | number | boolean; - - /** - * A dictionary of the additional attributes. - */ - extraAttributes?: any; - -} -/** - * Simple object for specifying options to [openMusicLibrary](Titanium.Media.openMusicLibrary). - */ -interface MusicLibraryOptionsType { - /** - * Function to call when the music library selection is made. - */ - success?: (param0: MusicLibraryResponseType) => any; - - /** - * Function to call upon receiving an error. - */ - error?: (param0: FailureResponse) => any; - - /** - * Function to call if the user presses the cancel button. - */ - cancel?: (param0: FailureResponse) => any; - - /** - * Specifies that the library should be hidden automatically after media selection is completed. - */ - autohide?: boolean; - - /** - * Boolean if the dialog should be animated when showing and hiding. - */ - animated?: boolean; - - /** - * An array of media type constants defining selectable media. - */ - mediaTypes?: number | number[]; - - /** - * Set to `true` to allow the user to select multiple items from the library. - */ - allowMultipleSelections?: boolean; - -} -/** - * Simple object passed to the [openMusicLibrary](Titanium.Media.openMusicLibrary) - * `success` callback function. - */ -interface MusicLibraryResponseType { - /** - * A single representative of the selected items. - */ - representative?: Titanium.Media.Item; - - /** - * A list of all the items chosen by the user. - */ - items?: Titanium.Media.Item[]; - - /** - * Media types in this collection, represented as the bitwise OR of the media type - * values for all media types represented in `items`. - */ - types?: number; - -} -/** - * A specifier for a media library query. By default, filters perform an exact match. - */ -interface MediaQueryType { - /** - * A constant that specifies the ordering of the result array. - */ - grouping?: number; - - /** - * The media type to filter on. - */ - mediaType?: MediaQueryInfoType | number; - - /** - * The title to filter on. Value should be a String. - */ - title?: MediaQueryInfoType | string; - - /** - * The album title to filter on. Value should be a String. - */ - albumTitle?: MediaQueryInfoType | string; - - /** - * The artist to filter on. Value should be a String. - */ - artist?: MediaQueryInfoType | string; - - /** - * The album artist to filter on. Value should be a String. - */ - albumArtist?: MediaQueryInfoType | string; - - /** - * The genre to filter on. Value should be a String. - */ - genre?: MediaQueryInfoType | string; - - /** - * The composer to filter on. Value should be a String. - */ - composer?: MediaQueryInfoType | string; - - /** - * Filter by whether or not the item is a compilation. - * The value should be a Boolean. - */ - isCompilation?: MediaQueryInfoType | boolean; - - /** - * The play count to filter on. Value should be a Number. - */ - playCount?: MediaQueryInfoType | number; - - /** - * The persistent ID to filter on. Value should be a Number. - */ - persistentID?: MediaQueryInfoType | number; - - /** - * The album persistent ID to filter on. Value should be a Number. - */ - albumPersistentID?: MediaQueryInfoType | number; - - /** - * The album artist persistent ID to filter on. Value should be a Number. - */ - albumArtistPersistentID?: MediaQueryInfoType | number; - - /** - * The genre persistent ID to filter on. Value should be a Number. - */ - genrePersistentID?: MediaQueryInfoType | number; - - /** - * The composer persistent ID to filter on. Value should be a Number. - */ - composerPersistentID?: MediaQueryInfoType | number; - - /** - * Filter by whether or not the item is a cloud item. - * Value should be a Boolean. - */ - isCloudItem?: MediaQueryInfoType | boolean; - - /** - * Filter by whether or not the item is a protected asset. - * Value should be a Boolean. - */ - hasProtectedAsset?: MediaQueryInfoType | boolean; - - /** - * The podcast title to filter on. Value should be a String. - */ - podcastTitle?: MediaQueryInfoType | string; - - /** - * The podcast persistent ID to filter on. Value should be a Number. - */ - podcastPersistentID?: MediaQueryInfoType | number; - -} -/** - * A full query descriptor for a filtering predicate. - */ -interface MediaQueryInfoType { - /** - * The value for the given predicate. See the descriptions in for information about which properties require which values. - */ - value?: number | string | boolean; - - /** - * Whether or not the predicate is for an exact match. The default is `true`. - */ - exact?: boolean; - -} -/** - * Simple object for specifying options to [showCamera](Titanium.Media.showCamera). - */ -interface CameraOptionsType { - /** - * Function to call when the camera is closed after a successful capture/selection. - */ - success?: (param0: CameraMediaItemType) => any; - - /** - * Function to call upon receiving an error. - */ - error?: (param0: FailureResponse) => any; - - /** - * Function to call if the user presses the cancel button. - */ - cancel?: (param0: FailureResponse) => any; - - /** - * Specifies if the camera should be hidden automatically after the media capture is completed. - */ - autohide?: boolean; - - /** - * Specifies if the dialog should be animated upon showing and hiding. - */ - animated?: boolean; - - /** - * Specifies if the media should be saved to the photo gallery upon successful capture. - */ - saveToPhotoGallery?: boolean; - - /** - * Specifies if the media should be editable after capture/selection. - */ - allowEditing?: boolean; - - /** - * Array of media type constants to allow. Note: If you want to select live photos, iOS only allows - * you to select existing live photos from the gallery, capturing new live photos is not supported by - * iOS public API, yet. - */ - mediaTypes?: string[]; - - /** - * Maximum duration (in milliseconds) to allow video capture before completing. - */ - videoMaximumDuration?: number; - - /** - * Constant to indicate the video quality during capture. - */ - videoQuality?: number; - - /** - * Opens the camera with the specified camera direction. - */ - whichCamera?: number; - - /** - * Indicates if the built-in camera controls should be displayed. - */ - showControls?: boolean; - - /** - * View to added as an overlay to the camera UI (on top). - */ - overlay?: Titanium.UI.View; - - /** - * Transformation matrix to apply to the camera or photogallery view. - */ - transform?: Titanium.UI.Matrix2D; - - /** - * Show the camera in a popover. - */ - inPopOver?: boolean; - - /** - * View to position the camera or photo gallery popover on top of. - */ - popoverView?: Titanium.UI.View; - - /** - * Controls the type of arrow and position of the popover. - */ - arrowDirection?: number; - - /** - * Determines if the camera preview should rotate or not. - */ - autorotate?: boolean; - -} -/** - * Simple object for specifying options to - * [openPhotoGallery](Titanium.Media.openPhotoGallery). - */ -interface PhotoGalleryOptionsType { - /** - * Function to call when the photo gallery is closed after a successful selection. - */ - success?: (param0: CameraMediaItemType) => any; - - /** - * Function to call upon receiving an error. - */ - error?: (param0: FailureResponse) => any; - - /** - * Function to call if the user presses the cancel button. - */ - cancel?: (param0: FailureResponse) => any; - - /** - * Specifies if the photo gallery should be hidden automatically after the media - * selection is completed. - */ - autohide?: boolean; - - /** - * Specifies if the dialog should be animated upon showing and hiding. - */ - animated?: boolean; - - /** - * Specifies if the media should be editable after capture/selection. - */ - allowEditing?: boolean; - - /** - * Array of media type constants to allow. - * Live photos is only supported on the iOS platform, starting with iOS 9.1. If you want - * to allow live photos with , you also need to specify - * at least as a fallback. If you do not allow live - * photos, they still can be selected, but will be represented as a normal static photo. - */ - mediaTypes?: string[]; - - /** - * View to position the photo gallery popover on top of. - */ - popoverView?: Titanium.UI.View; - - /** - * Controls the type of arrow and position of the popover. - */ - arrowDirection?: number; - - /** - * Specifies if the user should be able to select multiple photos. - */ - allowMultiple?: boolean; - -} -/** - * A media object from the camera or photo gallery. - */ -interface CameraMediaItemType { - /** - * Indicates if the operation succeeded. Returns `true`. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0. - */ - code?: number; - - /** - * The media object, as a [Blob](Titanium.Blob). - */ - media?: Titanium.Blob; - - /** - * The type of media, either `MEDIA_TYPE_PHOTO`, `MEDIA_TYPE_LIVEPHOTO` or `MEDIA_TYPE_VIDEO` defined in . - */ - mediaType?: string; - - /** - * Simple object defining the user's selected crop rectangle, or `null` if the user has not edited the photo. - */ - cropRect?: CropRectType; - - /** - * Simple object defining the preview image size. - */ - previewRect?: PreviewRectType; - - /** - * The live photo object, as a and - * `undefined` if no live photo is selected. - */ - livePhoto?: Titanium.UI.iOS.LivePhoto; - -} -/** - * Simple object for describing the crop rectangle for an image. - */ -interface CropRectType { - /** - * X coordinate of the crop rectangle's upper-left corner. - */ - x?: number; - - /** - * Y coordinate of the crop rectangle's upper-left corner. - */ - y?: number; - - /** - * Width of the crop rectangle, in pixels. - */ - width?: number; - - /** - * Height of the crop rectangle, in pixels. - */ - height?: number; - -} -/** - * Simple object for describing the preview image rectangle. This will be undefined when custom camera overlay is not used. - */ -interface PreviewRectType { - /** - * Width preview image, in pixels. - */ - width?: number; - - /** - * Height preview image, in pixels. - */ - height?: number; - -} -/** - * Options passed to . - */ -interface PreviewImageOptions { - /** - * The image to preview. Must be a blob based on a file, such as from . - */ - image?: Titanium.Blob; - - /** - * Function to be called back if the preview succeeds. No info is passed. - */ - success?: (param0: any) => any; - - /** - * Function called back if the preview fails. Check the `message` property of passed back parameter. - */ - error?: (param0: PreviewImageError) => any; - -} -/** - * The parameter passed to the `error` callback of . - */ -interface PreviewImageError { - /** - * Indicates if the operation succeeded. Returns `false`. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code, if applicable. - */ - code?: number; - - /** - * Description of the error. - */ - message?: string; - -} -/** - * The parameter passed to the callback. - */ -interface ScreenshotResult { - /** - * The screenshot image. - */ - media?: Titanium.Blob; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface MediaAuthorizationResponse { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface RequestCameraAccessResult { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface RequestMusicLibraryAccessResult { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Argument passed to the callback when a request finishes successfully or erroneously. - */ -interface RequestPhotoGalleryAccessResult { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * An Object describing the current audio route. - */ -interface RouteDescription { - /** - * An Array of current input ports for the session. See the `AUDIO_SESSION_PORT` constants. - */ - inputs?: any[]; - - /** - * An Array of current output ports for the session. See the `AUDIO_SESSION_PORT` constants. - */ - outputs?: any[]; - -} -/** - * Simple object passed to the thumbnail callback in response to the - * [requestThumbnailImagesAtTimes](Titanium.Media.VideoPlayer.requestThumbnailImagesAtTimes) - * method. - */ -interface ThumbnailResponse { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * Thumbnail image, as a `Blob`. - */ - image?: Titanium.Blob; - - /** - * Time offset for the thumbnail, in seconds. - */ - time?: number; - -} -/** - * Simple object used to describe the size of a movie. - */ -interface MovieSize { - /** - * Width of the movie. - */ - width?: number; - - /** - * Height of the movie. - */ - height?: number; - -} -/** - * The protocol that the must implement. - */ -interface SecurityManagerProtocol { - /** - * Returns if the security manager will participate in authentication of this end point. - */ - willHandleURL(url: any): boolean; - - /** - * The for this connection. - */ - connectionDelegateForUrl(url: any): APSConnectionDelegate; - - /** - * Returns an array of objects implementing the [X509TrustManager](https://developer.android.com/reference/javax/net/ssl/X509TrustManager.html) protocol for the SSL Context. - */ - getTrustManagers(proxy: any): any[]; - - /** - * Returns an array of objects implementing the [X509KeyManager](https://developer.android.com/reference/javax/net/ssl/X509KeyManager.html) protocol for the SSL Context. - */ - getKeyManagers(proxy: any): any[]; - -} -/** - * An extension of the [NSURLConnectionDelegate](https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLConnectionDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/NSURLConnectionDelegate) protocol to allow users to participate in authentication and resource management for this HTTPClient. - */ -interface APSConnectionDelegate { -} -/** - * An Object describing the current ready state. See [onreadystatechange](Titanium.Network.HTTPClient.onreadystatechange) for more information. - */ -interface ReadyStatePayload { - /** - * The state for which `onreadystatechange` was invoked. Set to one of `Titanium.Network.HTTPClient` ready-state constants - */ - readyState?: number; - -} -/** - * Simple object for specifying push notification options to - * [registerForPushNotifications](Titanium.Network.registerForPushNotifications). - */ -interface PushNotificationConfig { - /** - * Array of `NOTIFICATION_TYPE` constants that the application would like to receive. - */ - types?: number[]; - - /** - * Callback function called when the push registration is successfully completed. - */ - success?: (param0: PushNotificationSuccessArg) => any; - - /** - * Callback function called when an error occurs during registration. - */ - error?: (param0: PushNotificationErrorArg) => any; - - /** - * Callback function invoked upon receiving a new push notification. - */ - callback?: (param0: PushNotificationData) => any; - -} -/** - * A simple object passed to the - * [registerForPushNotifications](Titanium.Network.registerForPushNotifications) success callback. - */ -interface PushNotificationSuccessArg { - /** - * Indicates if the operation succeeded. Returns `true`. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0. - */ - code?: number; - - /** - * The value of this string is always "remote". - */ - type?: string; - - /** - * The device token which this device was registered for. - */ - deviceToken?: string; - -} -/** - * A simple object passed to the - * [registerForPushNotifications](Titanium.Network.registerForPushNotifications) error callback. - */ -interface PushNotificationErrorArg { - /** - * Indicates if the operation succeeded. Returns `false`. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns a non-zero value. - */ - code?: number; - - /** - * The value of this string is always "remote". - */ - type?: string; - -} -/** - * A simple object representing a push notification. - */ -interface PushNotificationData { - /** - * The `userinfo` dictionary passed to the Apple Push Notification Service. - */ - data?: any; - - /** - * Boolean indicating if notification was received while app was in background. - * This property became available in Titanium Mobile 3.1.0 for iOS. - */ - inBackground?: boolean; - -} -/** - * Argument object passed to the [connected](Titanium.Network.Socket.TCP.connected) callback when the socket connects. - */ -interface ConnectedCallbackArgs { - /** - * Socket instance that has been connected. - */ - socket?: Titanium.Network.Socket.TCP; - -} -/** - * Object passed to the error callback when the socket enters the [ERROR](Titanium.Network.Socket.ERROR) state. - */ -interface ErrorCallbackArgs { - /** - * Indicates if the operation succeeded. Returns `false`. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns a non-zero value. - */ - code?: number; - - /** - * Socket that experienced the error. - */ - socket?: Titanium.Network.Socket.TCP; - - /** - * The error code of the error (potentially system-dependent). - */ - errorCode?: number; - -} -/** - * Argument object passed to the [accepted](Titanium.Network.Socket.TCP.accepted) - * callback when a listener accepts a connection. - */ -interface AcceptedCallbackArgs { - /** - * Socket which received the connection. - */ - socket?: Titanium.Network.Socket.TCP; - - /** - * Socket which represents the inbound connection. - */ - inbound?: Titanium.Network.Socket.TCP; - -} -/** - * Options object for the [accept](Titanium.Network.Socket.TCP.accept) method. - */ -interface AcceptDict { - /** - * Timeout, in milliseconds, for all `write` operations. - */ - timeout?: number; - - /** - * Callback to be fired when the socket enters the [ERROR](Titanium.Network.Socket.ERROR) state. - */ - error?: (param0: ErrorCallbackArgs) => any; - -} -/** - * Simple object holding the data for a logical cpu. - */ -interface CPU { - /** - * General description of the CPU - */ - model?: string; - - /** - * Speed of the CPU in MHz - */ - speed?: number; - - /** - * A collection of timings for this logical CPU. - */ - times?: CPUTimes; - -} -/** - * Simple object holding the data for a logical cpu execution times. - */ -interface CPUTimes { - /** - * The number of milliseconds the CPU has spent in user mode. - */ - user?: number; - - /** - * The number of milliseconds the CPU has spent in nice mode. - */ - nice?: number; - - /** - * The number of milliseconds the CPU has spent in sys mode. - */ - sys?: number; - - /** - * The number of milliseconds the CPU has spent in idle mode. - */ - idle?: number; - - /** - * The number of milliseconds the CPU has spent in irq mode. - */ - irq?: number; - -} -/** - * Argument passed to [createStream](Titanium.Stream.createStream). - */ -interface CreateStreamArgs { - /** - * Object that the stream will read from or write to. - */ - source?: Titanium.Blob | Titanium.Buffer; - - /** - * Mode to open the stream in. - */ - mode?: number; - -} -/** - * Argument passed to the read callback when an asynchronous [read](Titanium.Stream.read) operation - * finishes. - */ -interface ReadCallbackArgs { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * Stream being read. - */ - source?: Titanium.IOStream; - - /** - * Number of bytes processed, or -1 in the event of an error or end of stream. - */ - bytesProcessed?: number; - - /** - * Whether an error was encountered. Set to 1 in the case of an error, 0 - * otherwise. - */ - errorState?: number; - - /** - * Text description of the error. - */ - errorDescription?: string; - -} -/** - * Argument passed to the write callback when an asynchronous - * [write](Titanium.Stream.write) operation - * finishes. - */ -interface WriteCallbackArgs { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * Stream being written to. - */ - source?: Titanium.IOStream; - - /** - * Number of bytes processed, or -1 in the event of an error or end of stream. - */ - bytesProcessed?: number; - - /** - * Whether an error was encountered. Set to 1 in the case of an error, 0 - * otherwise. - */ - errorState?: number; - - /** - * Text description of the error. - */ - errorDescription?: string; - -} -/** - * Argument passed to the callback when an asynchronous - * [writeStream](Titanium.Stream.writeStream) operation finishes. - */ -interface WriteStreamCallbackArgs { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * Stream being read from. - */ - fromStream?: Titanium.IOStream; - - /** - * Stream being written to. - */ - toStream?: Titanium.IOStream; - - /** - * Number of bytes processed, or -1 in the event of an error or end of stream. - */ - bytesProcessed?: number; - - /** - * Whether an error was encountered. Set to 1 in the case of an error, 0 - * otherwise. - */ - errorState?: number; - - /** - * Text description of the error. - */ - errorDescription?: string; - -} -/** - * Argument passed to the callback each time the - * [pump](Titanium.Stream.pump) operation has new data to deliver. - */ -interface PumpCallbackArgs { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * Stream being read from. - */ - source?: Titanium.IOStream; - - /** - * Buffer object holding the data currently being pumped to the handler method. - */ - buffer?: Titanium.Buffer; - - /** - * Number of bytes being passed to this invocation of the handler, or - * -1 in the event of an error or end of stream. - */ - bytesProcessed?: number; - - /** - * Total number of bytes read from the stream so far, - * including the data passed to this current invocation of the handler. - */ - totalBytesProcessed?: number; - - /** - * Whether an error was encountered. Set to 1 in the case of an error, 0 - * otherwise. - */ - errorState?: number; - - /** - * Text description of the error. - */ - errorDescription?: string; - -} -/** - * Arguments to be passed to createBuffer - */ -interface CreateBufferArgs { - /** - * An initial value which will be encoded and placed in the buffer. If value is a Number, type must also be set. (this is simply a convenient way of calling or and placing the encoded value in the returned buffer.) - */ - value?: string | number; - - /** - * The length of the buffer. - */ - length?: number; - - /** - * The type of data encoding to use with `value`. - */ - type?: string; - - /** - * The byte order of this buffer. - */ - byteOrder?: number; - -} -/** - * Simple object passed to to initialize a matrix. - */ -interface MatrixCreationDict { - /** - * Scale the matrix by the specified scaling factor. The same scaling factor is used - * for both horizontal and vertical scaling. - */ - scale?: number; - - /** - * Rotation angle, in degrees. See the [rotate](Titanium.UI.2DMatrix.rotate) method - * for a discussion of rotation. - */ - rotate?: number; - - /** - * Point to rotate around, specified as a dictionary object with `x` and `y` - * properties, where { x: 0.5, y: 0.5 } represents the center of whatever is being - * rotated. - */ - anchorPoint?: any; - -} -/** - * An abstract datatype for specifying an attributed string attribute. - */ -interface Attribute { - /** - * Attribute to apply to the text. - */ - type: number; - - /** - * Attribute value. - */ - value: number; - - /** - * Attribute range. - */ - range: number[]; - -} -/** - * An abstract datatype for specifying an Paragraph style attribute. - */ -interface ParagraphAttribute { - /** - * The text alignment of the receiver. - */ - alignment?: number; - - /** - * The indentation of the first line of the receiver. - */ - firstLineHeadIndent?: number | string; - - /** - * The indentation of the lines of lines other than the first. - */ - headIndent?: number | string; - - /** - * The trailing indentation of the receiver. - */ - tailIndent?: number | string; - - /** - * The mode that should be used to break lines in the receiver. - */ - lineBreakMode?: number; - - /** - * The maximum line height of receiver. - */ - maximumLineHeight?: number | string; - - /** - * The minimum height of receiver. - */ - minimumLineHeight?: number | string; - - /** - * The distance in points between the bottom of one line fragment and the top of the next. - */ - lineSpacing?: number | string; - - /** - * The space after the end of the paragraph. - */ - paragraphSpacingAfter?: number | string; - - /** - * The distance between the top of paragraph and the beginning of its text content. - */ - paragraphSpacingBefore?: number | string; - - /** - * The line height multiple. - */ - lineHeightMultiple?: number; - - /** - * The threshold of paragraph for hyphenation. - */ - hyphenationFactor?: number; - - /** - * A Boolean value indicating whether the system may tighten inter-character spacing - * before truncating text. - */ - allowsDefaultTighteningForTruncation?: boolean; - -} -/** - * Dictionary describing the items for . - */ -interface ClipboardItemsType { - /** - * An array of key-value items to add to the clipboard. The key must a valid mime-type - * matching the mime-type of the value. - */ - items?: any[]; - - /** - * The privacy options to apply to all the items on the clipboard. The available options are - * described in `Ti.UI.CLIPBOARD_OPTION_*`. Depending on the key, the value can be a Date or - * Boolean. - */ - options?: any; - -} -/** - * An abstract datatype for specifying a text font. - */ -interface Font { - /** - * Specifies the font family or specific font to use. - */ - fontFamily?: string; - - /** - * Font size, in platform-dependent units. - */ - fontSize?: number | string; - - /** - * Font weight. Valid values are "bold", "semibold", "normal", "thin", - * "light" and "ultralight". - */ - fontWeight?: string; - - /** - * Font style. Valid values are "italic" or "normal". - */ - fontStyle?: string; - - /** - * The text style for the font. - */ - textStyle?: string; - -} -/** - * Template that represents the basic appearance of a list item. - */ -interface ItemTemplate { - /** - * Contains key-value pairs of view properties and their values that are applied to the ListItem. - */ - properties?: any; - - /** - * Contains key-value pairs of view events and their listeners that are applied to the ListItem. - */ - events?: any; - - /** - * Contains an array of subview templates to be added (in order) as children to this view. - */ - childTemplates?: ViewTemplate[]; - -} -/** - * Template that represents a view subcomponent of an . - */ -interface ViewTemplate { - /** - * View's class name, for example, `Ti.UI.Button`. - */ - type: string; - - /** - * View's ID (or set of IDs) used for data binding. This value must be unique. - */ - bindId?: string; - - /** - * Contains key-value pairs of view properties and their values that are applied to this view component. - */ - properties?: any; - - /** - * Contains key-value pairs of view events and their listeners that are applied to this view component. - */ - events?: any; - - /** - * Contains an array of subview templates to be added (in order) as children to this view. - */ - childTemplates?: ViewTemplate[]; - -} -/** - * Represents displayed item data. - */ -interface ListDataItem { - /** - * Template ID configured with the property or - * . - */ - template?: string | number; - - /** - * Contains key-value pairs of view properties and their values that are applied to the - * `ListItem`. - */ - properties?: any; - - [key: string]: any; -} -/** - * Represents the custom edit action for a ListItem. - */ -interface RowActionType { - /** - * The title of the row action. - */ - title: string; - - /** - * The [identifier](RowActionType. identifier) of the row action. Only included in the event - * if previously defined. Available in Titanium 6.0.0 and later. - */ - identifier?: string; - - /** - * The style of the row action. - */ - style: number; - - /** - * The background color of the row action. - */ - color?: string; - -} -/** - * A simple object for specifying the animation properties to use when inserting or deleting - * sections or cells, or scrolling the list. - */ -interface ListViewAnimationProperties { - /** - * Whether this list change should be animated. Ignored if any `animationStyle` value is specified. - */ - animated?: boolean; - - /** - * Type of animation to use for cell insertions and deletions. - */ - animationStyle?: number; - - /** - * Specifies what position to scroll the selected cell to. - */ - position?: number; - -} -/** - * A simple object that represents an index entry in a `ListView`. - */ -interface ListViewIndexEntry { - /** - * Title to display in the index bar. - */ - title?: string; - - /** - * Section index associated with this title. - */ - index?: number; - -} -/** - * Optional parameter for [setContentInsets](Titanium.UI.ListView.setContentInsets) method. - */ -interface ListViewContentInsetOption { - /** - * Determines whether the list view's content inset change is animated. - */ - animated?: boolean; - - /** - * The duration in `milliseconds` for animation while the content inset is being changed. - */ - duration?: number; - -} -/** - * The parameter for [setMarker](Titanium.UI.ListView.setMarker) and [addMarker](Titanium.UI.ListView.addMarker) methods. - */ -interface ListViewMarkerProps { - /** - * The sectionIndex of the reference item. - */ - sectionIndex?: number; - - /** - * The itemIndex of the reference item. - */ - itemIndex?: number; - -} -/** - * The parameter for [setContentInsets](Titanium.UI.TableView.setContentInsets) method. - */ -interface ListViewEdgeInsets { - /** - * Value specifying the top insets for the enclosing scroll view of the list view. - */ - top?: number; - - /** - * Value specifying the left insets for the enclosing scroll view of the list view. - */ - left?: number; - - /** - * Value specifying the right insets for the enclosing scroll view of the list view. - */ - right?: number; - - /** - * Value specifying the bottom insets for the enclosing scroll view of the list view. - */ - bottom?: number; - -} -/** - * The arguments for the and events. - */ -interface ListItemEventType { - /** - * List section if the item is contained in a list section. - */ - section?: Titanium.UI.ListSection; - - /** - * Section index. - */ - sectionIndex?: number; - - /** - * Item index. - */ - itemIndex?: number; - - /** - * The item ID bound to the list item that generated the event. - */ - itemId?: string; - -} -/** - * Simple object passed to to initialize a matrix. - */ -interface Matrix2DCreationDict { - /** - * Scale the matrix by the specified scaling factor. The same scaling factor is used - * for both horizontal and vertical scaling. - */ - scale?: number; - - /** - * Rotation angle, in degrees. See the [rotate](Titanium.UI.Matrix2D.rotate) method - * for a discussion of rotation. - */ - rotate?: number; - - /** - * Point to rotate around, specified as a dictionary object with `x` and `y` - * properties, where { x: 0.5, y: 0.5 } represents the center of whatever is being - * rotated. - */ - anchorPoint?: any; - } /** * Dictionary of options for the method. @@ -62722,393 +83523,25 @@ interface hideParams { } /** - * Optional parameter for [setContentOffset](Titanium.UI.ScrollView.setContentOffset) method. + * Dictionary describing the arguments passed to the application on startup. + * Use the [getArguments](Titanium.App.getArguments) method to retrieve the launch options. */ -interface contentOffsetOption { +interface launchOptions { /** - * Determines whether the scroll view's content area change is animated. + * If set to `true`, this key indicates that the application was launched in response to an + * incoming location event. */ - animated?: boolean; - -} -/** - * Optional parameter for [setZoomScale](Titanium.UI.ScrollView.setZoomScale) method. - */ -interface zoomScaleOption { - /** - * Determines whether the scroll view's zooming is animated. - */ - animated?: boolean; - -} -/** - * A simple object for specifying the animation properties when scrolling the view. - */ -interface ScrollViewAnimationProperties { - /** - * When set to `true` it will scroll smoothly to the destination. - */ - animated?: boolean; - -} -/** - * Dictionary to specify edge insets for . - */ -interface TabIconInsets { - /** - * Top inset. - */ - top?: number; + launchOptionsLocationKey?: boolean; /** - * Left inset. + * This key indicates that the application was launched by another + * application with the specified bundle ID. */ - left?: number; - -} -/** - * A simple object for specifying the animation properties to use when inserting or deleting rows, or scrolling the table. - */ -interface TableViewAnimationProperties { - /** - * Whether this table change should be animated. Ignored if any `animationStyle` value is specified. - */ - animated?: boolean; + source?: string; /** - * Type of animation to use for row insertions and deletions. - */ - animationStyle?: number; - - /** - * Specifies what position to scroll the selected row to. - */ - position?: number; - -} -/** - * A simple object that represents an index entry in a `TableView`. - */ -interface TableViewIndexEntry { - /** - * Title to display in the index bar for this item. - */ - title?: string; - - /** - * Row index associated with this item. - */ - index?: number; - -} -/** - * Optional parameter for [setContentInsets](Titanium.UI.TableView.setContentInsets) method. - */ -interface TableViewContentInsetOption { - /** - * Determines whether the table view's content inset change is animated. - */ - animated?: boolean; - - /** - * The duration in `milleseconds` for animation while the content inset is being changed. - */ - duration?: number; - -} -/** - * The parameter for [setContentInsets](Titanium.UI.TableView.setContentInsets) method. - */ -interface TableViewEdgeInsets { - /** - * Value specifying the top insets for the enclosing scroll view of the table. - */ - top?: number; - - /** - * Value specifying the left insets for the enclosing scroll view of the table. - */ - left?: number; - - /** - * Value specifying the right insets for the enclosing scroll view of the table. - */ - right?: number; - - /** - * Value specifying the bottom insets for the enclosing scroll view of the table. - */ - bottom?: number; - -} -/** - * Dictionary object of parameters for the event and property that describes - * position and length of the selected text. - */ -interface textAreaSelectedParams { - /** - * Starting position of selected text. - */ - location?: number; - - /** - * Number of characters selected. - */ - length?: number; - -} -/** - * Dictionary object of parameters for the property that describes - * position and length of the selected text. - */ -interface textFieldSelectedParams { - /** - * Starting position of selected text. - */ - location?: number; - - /** - * Number of characters selected. - */ - length?: number; - -} -/** - * Dictionary object of parameters for the that describes the padding - */ -interface TextFieldPadding { - /** - * Left padding - */ - left?: number; - - /** - * Right padding - */ - right?: number; - - /** - * Top padding (Android only, since 6.1.0) - */ - top?: number; - - /** - * Bottom padding (Android only, since 6.1.0) - */ - bottom?: number; - -} -/** - * A pair of coordinates used to describe the location of a . - */ -interface Point { - /** - * The x-axis coordinate of this point. - */ - x?: number | string; - - /** - * The y-axis coordinate of this point. - */ - y?: number | string; - -} -/** - * A simple object defining a color gradient. - */ -interface Gradient { - /** - * Type of gradient, either 'linear' or 'radial'. - */ - type?: string; - - /** - * Start point for the gradient. - */ - startPoint?: Point; - - /** - * End point for the gradient. - */ - endPoint?: Point; - - /** - * For a radial gradient, the radius at the `startPoint`. - */ - startRadius?: number; - - /** - * For a radial gradient, the radius at the `endPoint`. - */ - endRadius?: number; - - /** - * An array of colors, as a color name or hex triplet. - */ - colors?: string[] | GradientColorRef[]; - - /** - * Set to `true` to continue filling with the starting color beyond the `startPoint`. - */ - backfillStart?: boolean; - - /** - * Set to `true` to continue filling with the final color beyond the `endPoint`. - */ - backfillEnd?: boolean; - -} -/** - * A simple object consisting of a color and an offset. - */ -interface GradientColorRef { - /** - * Color value at this point in the gradient, as a color name or hex triplet. - */ - color?: string; - - /** - * The color's normalized position within the gradient, ranging from 0 (start) to 1 (end). - */ - offset?: number; - -} -/** - * A simple object consisting of the position and size measurements. - */ -interface Dimension { - /** - * The height measurement. - */ - height?: number; - - /** - * The width measurement. - */ - width?: number; - - /** - * The x-axis coordinate of the position. - */ - x?: number; - - /** - * The y-axis coordinate of the position. - */ - y?: number; - -} -/** - * Optional parameter to enable animation to [hide](Titanium.UI.View.hide) and [show](Titanium.UI.View.show). - */ -interface AnimationOption { - /** - * Determines whether to enable a circular reveal animation. - */ - animated?: boolean; - -} -/** - * Dictionary object of parameters for the padding applied to all kinds of views. - */ -interface ViewPadding { - /** - * Left padding - */ - left?: number; - - /** - * Right padding - */ - right?: number; - - /** - * Top padding - */ - top?: number; - - /** - * Bottom padding - */ - bottom?: number; - -} -/** - * The parameter passed to the callback. - */ -interface SnapshotResult { - /** - * The snapshot image. - */ - snapshot?: Titanium.Blob; - - /** - * Indicates if the snapshot taken. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - -} -/** - * The object returned to the method. - */ -interface BackForwardList { - /** - * The current item. - */ - currentItem?: BackForwardListItem; - - /** - * The item immediately preceding the current item. - */ - backItem?: BackForwardListItem; - - /** - * The item immediately following the current item. - */ - forwardItem?: BackForwardListItem; - - /** - * The portion of the list preceding the current item. - */ - backList?: BackForwardListItem[]; - - /** - * The portion of the list following the current item. - */ - forwardList?: BackForwardListItem[]; - -} -/** - * The object represents a webpage in the back-forward of a web view. - */ -interface BackForwardListItem { - /** - * The URL of the webpage represented by this item. - */ - url?: string; - - /** - * The URL of the initial request that created this item. - */ - initialUrl?: string; - - /** - * The title of the webpage represented by this item. - */ - title?: string; - -} -/** - * An object returned when the callback is fired. - */ -interface OnLinkURLResponse { - /** - * The url of the link that should be navigated to. + * This key indicates that the application was launched in order to open + * the specified URL. */ url?: string; @@ -63117,6 +83550,16 @@ interface OnLinkURLResponse { * Dictionary of options for the method. */ interface openWindowParams { + /** + * Animation resource to run on the activity being opened. + */ + activityEnterAnimation?: number; + + /** + * Animation resource to run on the activity that is being put in background as a window is being opened above it. + */ + activityExitAnimation?: number; + /** * Determines whether to use an animated effect when the window is shown. */ @@ -63127,6 +83570,11 @@ interface openWindowParams { */ bottom?: number | string; + /** + * Indicates whether the window enforces modal behaviour. + */ + forceModal?: boolean; + /** * Determines if the window is fullscreen. */ @@ -63182,60 +83630,151 @@ interface openWindowParams { */ width?: number | string; +} +/** + * Dictionary containing either `endDate` or `occurrenceCount` property. + */ +interface recurrenceEndDictionary { /** - * Animation resource to run on the activity (heavyweight window) being opened. + * End date of the recurrence end, or undefined if the recurrence end is count-based. */ - activityEnterAnimation?: number; + endDate?: Date; /** - * Animation resource to run on the activity that is being put in background as a heavyweight window is being opened above it. + * Occurrence count of the recurrence end, or 0 if the recurrence end is date-based. */ - activityExitAnimation?: number; + occurrenceCount?: number; } /** - * Dictionary of options for the method. + * Dictionary describing the shadow effect for text. */ -interface windowToolbarParam { +interface shadowDict { /** - * Defines if the toolbar is translucent. + * Specifies the blur radius of the shadow. */ - translucent?: boolean; + blurRadius?: number; /** - * Defines if the toolbar appearance is animated. + * Color name or hex triplet specifying the color of the shadow. + */ + color?: string; + + /** + * with the properties `width` and `height` used as the horizontal + * and vertical offset of the shadow, respectively. + */ + offset?: Size; + +} +/** + * Dictionary of options for the method. + */ +interface showContactsParams { + /** + * Determines whether to animate the show/hide of the contacts picker (iPhone, iPad only.) */ animated?: boolean; /** - * Background color for the toolbar, as a color name or hex triplet. + * Function to call when selection is canceled. */ - barColor?: string; + cancel?: (param0: any) => void; /** - * The tintColor to apply to the tool bar. + * Field names to show when selecting properties. By default, shows all available. */ - tintColor?: string; + fields?: string[]; + + /** + * Function to call when a person is selected. Must not be used with `selectedProperty` property. + */ + selectedPerson?: (param0: any) => void; + + /** + * Function to call when a property is selected. Must not be used with `selectedPerson` + * property. + * Note: If ringtone or texttone is selected, null values are returned, since these are unsupported + * by Apple. + * Since iOS 9.0, there is a native apple issue whereby it may return null if the birthday property + * is selected on certain device models. + * The callback contains the selected property and a 'person' object of type . + * Since iOS 9.0, apple only returns the person object with partial information. Currently it is known to + * at least contain the selected property and fullName. + */ + selectedProperty?: (param0: any) => void; } /** - * Dictionary of options for the method. + * Dictionary of options for the method. */ -interface closeWindowParams { +interface showParams { /** - * Determines whether to use an animated effect when the window is closed. + * Determines whether to animate the dialog as it is shown. */ animated?: boolean; /** - * Animation resource to use for the incoming activity. + * Array of String instances. */ - activityEnterAnimation?: number; + buttonNames?: string[]; /** - * Animation resource to use for the outgoing activity (heavyweight window). + * String to be used as a message for the dialog. */ - activityExitAnimation?: number; + message?: string; + + /** + * Array of String instances. + */ + options?: string[]; + + /** + * Positions the arrow of the option dialog relative to the attached view's dimensions. + */ + rect?: Dimension; + + /** + * String to be used as title for the dialog. + */ + title?: string; + + /** + * View to which to attach the dialog. + */ + view?: Titanium.UI.View; + +} +/** + * Dictionary object of parameters for the event and property that describes + * position and length of the selected text. + */ +interface textAreaSelectedParams { + /** + * Number of characters selected. + */ + length?: number; + + /** + * Starting position of selected text. + */ + location?: number; + +} +/** + * Dictionary object of parameters for the property that describes + * position and length of the selected text. + */ +interface textFieldSelectedParams { + /** + * Number of characters selected. + */ + length?: number; + + /** + * Starting position of selected text. + */ + location?: number; } /** @@ -63259,322 +83798,44 @@ interface titleAttributesParams { } /** - * Dictionary describing the shadow effect for text. + * Parameter for wakeLock */ -interface shadowDict { +interface wakeLockOptions { /** - * Specifies the blur radius of the shadow. + * Wake lock level and flag. See [PowerManager.newWakeLock in the Android API Reference](https://developer.android.com/reference/android/os/PowerManager.html#newWakeLock(int,%20java.lang.String)) */ - blurRadius?: number; + flags?: number; /** - * Color name or hex triplet specifying the color of the shadow. + * Minimum time the device will be switched on (plus device switch-off time) */ - color?: string; - - /** - * Dictionary with the properties `width` and `height` used as the horizontal - * and vertical offset of the shadow, respectively. - */ - offset?: any; + time?: number; } /** - * Object of options for . + * Dictionary of options for the method. */ -interface ShortcutParams { +interface windowToolbarParam { /** - * The unique key for the application shortcut. - */ - itemtype: string; - - /** - * The title of the application shortcut. - */ - title: string; - - /** - * The subtitle displayed on the application shortcut. - */ - subtitle?: string; - - /** - * The icon to be displayed on the application shortcut. You can either use one of the constants like - * , a local image specified by the image path or a reference to a - * . - */ - icon?: number | string | Titanium.Contacts.Person; - - /** - * The userInfo of the application shortcut. - */ - userInfo?: any; - -} -/** - * Dictionary to specify a boundary identifier for . - */ -interface BoundaryIdentifier { - /** - * Arbitrary identifier for the boundary - */ - identifier?: string; - - /** - * Start point for the boundary - */ - point1?: Point; - - /** - * End point for the boundary - */ - point2?: Point; - -} -/** - * Dictionary to specify edge insets for . - */ -interface ReferenceInsets { - /** - * Top inset. - */ - top?: number; - - /** - * Left inset. - */ - left?: number; - - /** - * Right inset. - */ - right?: number; - - /** - * Bottom inset. - */ - bottom?: number; - -} -/** - * Simple object for defining a single image in a cover flow view. - */ -interface CoverFlowImageType { - /** - * Image to use, as a local file URL, `Blob`, or `File`. - */ - image?: string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Display width for the image, in Apple points. - */ - width?: number; - - /** - * Display height of the image, in Apple points. - */ - height?: number; - -} -/** - * A simple object for specifying options when showing or dismissing a . - */ -interface DocumentViewerOptions { - /** - * Indicates whether to animate the transition. + * Defines if the toolbar appearance is animated. */ animated?: boolean; /** - * Anchors the options menu to the specified view. + * Background color for the toolbar, as a color name or hex triplet. */ - view?: Titanium.UI.View; + barColor?: string; + + /** + * The tintColor to apply to the tool bar. + */ + tintColor?: string; + + /** + * Defines if the toolbar is translucent. + */ + translucent?: boolean; } -/** - * Dictionary of options for showing a menu popup with . - */ -interface MenuPopupShowParams { - /** - * The view where the menu pop is shown at. - */ - view: Titanium.UI.View; - /** - * Determines whether the menu popup should be opened or closed animated. - */ - animated?: boolean; - - /** - * Indicates the arrow direction of the menu popup. - */ - arrowDirection?: number; - -} -/** - * Dictionary of options for hiding a menu popup with . - */ -interface MenuPopupHideParams { - /** - * Determines whether the menu popup should be opened or closed animated. - */ - animated?: boolean; - -} -/** - * Optional parameter for [setShowMasterInPortrait](Titanium.UI.iOS.SplitWindow.setShowMasterInPortrait) and - * [setMasterIsOverlayed](Titanium.UI.iOS.SplitWindow.setMasterIsOverlayed) methods. - */ -interface animationOption { - /** - * Determines whether the change is animated. - */ - animated?: boolean; - -} -/** - * Object describing a button bar or tabbed bar item. - */ -interface BarItemType { - /** - * Button title, used if no `image` is specified. - */ - title?: string; - - /** - * Button icon. If specified, takes precedence over `title`. - */ - image?: string | Titanium.Blob | Titanium.Filesystem.File; - - /** - * Width for this button. - */ - width?: number; - - /** - * Whether the button is enabled initially. - */ - enabled?: boolean; - - /** - * A succint label associated with the bar item for the device's accessibility service. - */ - accessibilityLabel?: string; - -} -/** - * The parameter passed to the method. - */ -interface WebViewPreferencesObject { - /** - * The minimum font size in points. - */ - minimumFontSize?: number; - - /** - * A Boolean value indicating whether JavaScript is enabled. - */ - javaScriptEnabled?: boolean; - - /** - * A Boolean value indicating whether JavaScript can open windows without user interaction. - */ - javaScriptCanOpenWindowsAutomatically?: boolean; - -} -/** - * Dictionary specifying the transition animation used with the method. - */ -interface transitionAnimationParam { - /** - * Length of the transition in milliseconds. - */ - duration?: number; - - /** - * Animation to hide the current window. - */ - transitionFrom?: Titanium.UI.Animation; - - /** - * Animation to show the new window. - */ - transitionTo?: Titanium.UI.Animation; - -} -/** - * Dictionary of options for and . - */ -interface PopoverParams { - /** - * Indicates whether to animate showing or hiding the popover. - */ - animated?: boolean; - - /** - * Sets the arrow position of the popover relative to the attached view object's dimensions - * when showing the popover. - */ - rect?: Dimension; - - /** - * Attaches the popover to the specified view when showing the popover. - */ - view: Titanium.UI.View; - -} -/** - * Reply message received from watch app. - */ -interface MessageReply { - /** - * Reply message from watchapp. - */ - message?: any; - - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - -} -/** - * Properties passed to a yql callback to report a success or failure. - */ -interface YQLResponse { - /** - * Indicates if the operation succeeded. - */ - success?: boolean; - - /** - * Error message, if any returned. - */ - error?: string; - - /** - * Error code. Returns 0 if `success` is `true`. - */ - code?: number; - - /** - * Error message, if any returned. Use `error` instead - */ - message?: string; - - /** - * The data payload received from the YQL. - */ - data?: any; - -} +import Ti = Titanium; diff --git a/types/titanium/titanium-tests.ts b/types/titanium/titanium-tests.ts index 4d546f1848..a8a6625c65 100644 --- a/types/titanium/titanium-tests.ts +++ b/types/titanium/titanium-tests.ts @@ -32,7 +32,7 @@ function test_tableview() { text: 'Row ' + (i + 1) }); const image = Ti.UI.createImageView({ - url: 'KS_nav_ui.png' + image: 'KS_nav_ui.png' }); const button = Ti.UI.createButton({ right: 10, @@ -85,3 +85,60 @@ function test_network() { // Send the request. client.send(); } + +function test_android_r() { + const systemAcon = Ti.Android.R.drawable.icon; + const appIcon = Ti.App.Android.R.drawable.icon; +} + +function test_events() { + const view = Ti.UI.createView(); + view.addEventListener('click', e => { + console.log(e.x, e.y); + }); + view.fireEvent('click'); +} + +function test_listdataitem() { + const items1: ListDataItem[] = [ + { + properties: { + itemId: 'test', + title: 'Jon Doe' + } + } + ]; + const section1 = Ti.UI.createListSection({ + items: items1 + }); + + const template = { + childTemplates: [ + { + type: 'Ti.UI.Label', + bindId: 'title', + properties: { + color: 'black' + } + } + ] + }; + const items2: ListDataItem[] = [ + { + template: 'custom', + title: { text: 'Jane Doe' }, + properties: { + accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_NONE + } + } + ]; + const section2 = Ti.UI.createListSection({ + items: items2, + }); + + const list = Ti.UI.createListView({ + templates: { custom: template }, + sections: [section1] + }); + list.replaceSectionAt(0, section2); +} diff --git a/types/titanium/tsconfig.json b/types/titanium/tsconfig.json index 815fb8c48b..829d6fa99b 100644 --- a/types/titanium/tsconfig.json +++ b/types/titanium/tsconfig.json @@ -2,8 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "dom", - "es6" + "es5" ], "noImplicitAny": true, "noImplicitThis": false,