From 42411f2592acf48c6738c79ec1fcea7adf67dbb8 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Fri, 5 Apr 2019 17:17:29 +0100 Subject: [PATCH 1/2] Update titanium types to 8.0.0 --- types/titanium/index.d.ts | 4801 ++++++++++++++++++++++++------------- 1 file changed, 3157 insertions(+), 1644 deletions(-) diff --git a/types/titanium/index.d.ts b/types/titanium/index.d.ts index 468eccf08a..25e41927b7 100644 --- a/types/titanium/index.d.ts +++ b/types/titanium/index.d.ts @@ -1,10 +1,9 @@ -// Type definitions for non-npm package Titanium 7.3 +// Type definitions for Titanium 8.0 // Project: https://github.com/appcelerator/titanium_mobile // Definitions by: Axway Appcelerator // Jan Vennemann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 - declare const Ti: typeof Titanium; /** @@ -201,7 +200,6 @@ declare namespace Titanium { setLifecycleContainer?(lifecycleContainer: Titanium.UI.TabGroup): void; } - /** * A container for binary data. */ @@ -334,7 +332,6 @@ declare namespace Titanium { getSize(): number; } - /** * Wrapper around that implements the interface. */ @@ -342,12 +339,12 @@ declare namespace Titanium { /** * Reads data from this stream into a buffer. */ - read(buffer: Titanium.Buffer, offset?: number, length?: number): number; + 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): number; + write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; /** * Indicates whether this stream is writable. @@ -365,7 +362,6 @@ declare namespace Titanium { close(): void; } - /** * Buffer is a mutable, resizable container for raw data. */ @@ -481,7 +477,6 @@ declare namespace Titanium { setByteOrder(byteOrder: number): void; } - /** * Wrapper around that implements the interface. */ @@ -489,12 +484,12 @@ declare namespace Titanium { /** * Reads data from this stream into a buffer. */ - read(buffer: Titanium.Buffer, offset?: number, length?: number): number; + 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): number; + write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; /** * Indicates whether this stream is writable. @@ -512,7 +507,6 @@ declare namespace Titanium { close(): void; } - /** * The base type for all Titanium events. */ @@ -538,7 +532,6 @@ declare namespace Titanium { cancelBubble: boolean; } - /** * IOStream is the interface that all stream types implement. */ @@ -547,12 +540,12 @@ declare namespace Titanium { /** * Reads data from this stream into a buffer. */ - read(buffer: Titanium.Buffer, offset?: number, length?: number): number; + 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): number; + write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; /** * Indicates whether this stream is writable. @@ -571,7 +564,6 @@ declare namespace Titanium { } - /** * The main module. */ @@ -670,6 +662,11 @@ declare namespace Titanium { */ 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. */ @@ -1901,7 +1898,12 @@ declare namespace Titanium { /** * Creates and returns an instance of . */ - function create2DMatrix(parameters?: MatrixCreationDict): Titanium.UI.Matrix2D; + 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. @@ -1993,6 +1995,16 @@ declare namespace Titanium { */ 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 . */ @@ -2043,6 +2055,11 @@ declare namespace Titanium { */ 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 . */ @@ -2359,7 +2376,7 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). */ opacity: number; @@ -2370,6 +2387,7 @@ declare namespace Titanium { /** * 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; @@ -2419,7 +2437,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * Determines keyboard behavior when this view is focused. + * Determines keyboard behavior when this view is focused. Defaults to . */ softKeyboardOnFocus: number; @@ -3251,7 +3269,6 @@ declare namespace Titanium { setKeepScreenOn(keepScreenOn: boolean): void; } - /** * An empty drawing surface or container */ @@ -3418,7 +3435,7 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). */ opacity: number; @@ -3429,6 +3446,7 @@ declare namespace Titanium { /** * 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; @@ -3478,7 +3496,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * Determines keyboard behavior when this view is focused. + * Determines keyboard behavior when this view is focused. Defaults to . */ softKeyboardOnFocus: number; @@ -4310,7 +4328,6 @@ declare namespace Titanium { setKeepScreenOn(keepScreenOn: boolean): void; } - /** * The 2D Matrix is an object for holding values for an affine transformation matrix. */ @@ -4431,7 +4448,6 @@ declare namespace Titanium { setTy(ty: number): void; } - /** * The 3D Matrix is an object for holding values for a 3D affine transform. */ @@ -4702,7 +4718,6 @@ declare namespace Titanium { setM44(m44: number): void; } - /** * An activity indicator that lets the user know an action is taking place. */ @@ -4798,7 +4813,6 @@ declare namespace Titanium { 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. @@ -5308,7 +5322,6 @@ declare namespace Titanium { setValue(value: string): void; } - /** * The `Animation` object defines an animation that can be applied to a view. */ @@ -5650,7 +5663,6 @@ declare namespace Titanium { 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. @@ -5692,7 +5704,6 @@ declare namespace Titanium { setAttributes(attributes: ReadonlyArray): void; } - /** * A button widget that has four states: normal, disabled, focused and selected. */ @@ -5954,7 +5965,6 @@ declare namespace Titanium { setVerticalAlign(verticalAlign: string): void; } - /** * An iOS button bar component. */ @@ -6071,12 +6081,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -6668,7 +6679,6 @@ declare namespace Titanium { 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. @@ -6786,12 +6796,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -7413,7 +7424,6 @@ declare namespace Titanium { setSelected(selected: number): void; } - /** * A dashboard item is a view that is displayed as an icon in a . */ @@ -7489,7 +7499,6 @@ declare namespace Titanium { 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. @@ -7612,12 +7621,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -8264,7 +8274,6 @@ declare namespace Titanium { setWobble(wobble: boolean): void; } - /** * An email dialog is a modal window that allows users to compose and send an email. */ @@ -8417,7 +8426,6 @@ declare namespace Titanium { setToRecipients(toRecipients: ReadonlyArray): void; } - /** * A view to display a single image or series of animated images. */ @@ -8674,7 +8682,6 @@ declare namespace Titanium { setUrl(url: string): void; } - /** * A text label, with an optional background image. */ @@ -9051,7 +9058,6 @@ declare namespace Titanium { setVerticalAlign(verticalAlign: string): void; } - /** * A list item is an individual item in a list section. */ @@ -9202,7 +9208,6 @@ declare namespace Titanium { setSelectedSubtitleColor(selectedSubtitleColor: string): void; } - /** * A list section is a container within a list view used to organize list items. */ @@ -9314,7 +9319,6 @@ declare namespace Titanium { getItems(): ListDataItem[]; } - /** * A list view is used to present information, organized in to sections and items, * in a vertically-scrolling view. @@ -9340,6 +9344,11 @@ declare namespace Titanium { */ editing: boolean; + /** + * Sets the fastScroll mode on Android ListViews. + */ + fastScroll: boolean; + /** * Determines whether this list view items can be selected while editing the table. */ @@ -9641,6 +9650,16 @@ declare namespace Titanium { */ 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. */ @@ -10042,7 +10061,6 @@ declare namespace Titanium { setSelectedItems(selectedItems: ReadonlyArray): void; } - /** * A control that displays an image composited with a background image or color. */ @@ -10108,7 +10126,1045 @@ declare namespace Titanium { 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. */ @@ -10224,7 +11280,6 @@ declare namespace Titanium { 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 @@ -10382,7 +11437,6 @@ declare namespace Titanium { setTitleid(titleid: string): void; } - /** * A control used to select one or more fixed values. */ @@ -10640,11 +11694,6 @@ declare namespace Titanium { */ getValue(): Date; - /** - * Sets the value of the property. - */ - setValue(value: Date): void; - /** * Gets the value of the property. */ @@ -10676,7 +11725,6 @@ declare namespace Titanium { setFont(font: Font): void; } - /** * A picker column, representing a selectable group of items in a . */ @@ -10727,7 +11775,6 @@ declare namespace Titanium { setFont(font: Font): void; } - /** * A picker row, representing a selectable item in a . */ @@ -10778,7 +11825,6 @@ declare namespace Titanium { setTitle(title: string): void; } - /** * A progress bar. */ @@ -10904,7 +11950,6 @@ declare namespace Titanium { setValue(value: number): void; } - /** * The RefreshControl is a representation of the native iOS * [UIRefreshControl](https://developer.apple.com/documentation/uikit/uirefreshcontrol) @@ -10952,7 +11997,6 @@ declare namespace Titanium { setTintColor(tintColor: string): void; } - /** * A view that contains a horizontally and/or vertically-scrollable region of content. */ @@ -11066,7 +12110,7 @@ declare namespace Titanium { /** * Sets the value of the [contentOffset](Titanium.UI.ScrollView.contentOffset) property. */ - setContentOffset(contentOffset: any, animated?: contentOffsetOption): void; + setContentOffset(contentOffsetXY: any, animated?: contentOffsetOption): void; /** * Sets the value of the [zoomScale](Titanium.UI.ScrollView.zoomScale) property. @@ -11113,11 +12157,6 @@ declare namespace Titanium { */ getContentOffset(): any; - /** - * Sets the value of the property. - */ - setContentOffset(contentOffset: any): void; - /** * Gets the value of the property. */ @@ -11289,7 +12328,6 @@ declare namespace Titanium { getZoomScale(): number; } - /** * A view that encapsulates a horizontally-scrolling set of child views, known as pages, navigable * using its built-in horizontal swipe gestures. @@ -11381,6 +12419,11 @@ declare namespace Titanium { */ 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. */ @@ -11591,8 +12634,17 @@ declare namespace Titanium { */ 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. */ @@ -11859,11 +12911,6 @@ declare namespace Titanium { */ getShowCancel(): boolean; - /** - * Sets the value of the property. - */ - setShowCancel(showCancel: boolean): void; - /** * Gets the value of the property. */ @@ -11885,7 +12932,91 @@ declare namespace Titanium { 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. */ @@ -12241,7 +13372,6 @@ declare namespace Titanium { getValue(): string; } - /** * An on/off switch control. */ @@ -12453,7 +13583,6 @@ declare namespace Titanium { setVerticalAlign(verticalAlign: string): void; } - /** * A tab instance for a [TabGroup](Titanium.UI.TabGroup). */ @@ -12670,58 +13799,336 @@ declare namespace Titanium { getWindow(): Titanium.UI.Window; } - /** * A tabbed group of windows. */ interface TabGroup extends Titanium.UI.View { - /** - * Active tab. - */ - activeTab: Titanium.UI.Tab; - /** * 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; - /** - * Default navigation bar color (typically for the **More** tab), as a color name or hex triplet. - */ - barColor: string; - - /** - * Boolean value indicating if the nav bar (typically for the **More** tab), is translucent. - */ - translucent: boolean; - - /** - * Title text attributes of the window to be applied on the **More** tab. - */ - titleAttributes: titleAttributesParams; - - /** - * The tintColor to apply to the navigation bar (typically for the **More** tab). - */ - navTintColor: string; - /** * 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; - /** * Boolean value indicating if tab navigation can be done by swipes, in addition to tab clicks. */ @@ -12738,10 +14145,14 @@ declare namespace Titanium { tabs: Titanium.UI.Tab[]; /** - * Determines how the tab group is treated when a soft input method (such as a virtual keyboard) - * is displayed. + * Determines whether the BOTTOM_NAVIGATION_VIEW_STYLE uses shiftMode. */ - windowSoftInputMode: number; + 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. @@ -12758,11 +14169,6 @@ declare namespace Titanium { */ tabsTranslucent: boolean; - /** - * Title for this tabGroup. - */ - title: string; - /** * Default background image for tabs. */ @@ -12774,11 +14180,6 @@ declare namespace Titanium { */ unselectedItemTintColor: string; - /** - * Image of the shadow placed between the tab bar and the content area. - */ - shadowImage: string; - /** * Color applied to active tabs icons, as a color name or hex triplet, where the tab's activeIcon was not defined. */ @@ -12795,14 +14196,59 @@ declare namespace Titanium { activeTabBackgroundImage: string; /** - * Adds a tab to the tab group. + * Adds a common UI element to participate in window transition animation. */ - addTab(tab: Titanium.UI.Tab): void; + addSharedElement(view: any, transitionName: string): void; /** * Closes the tab group and removes it from the UI. */ - close(): void; + 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 @@ -12815,11 +14261,6 @@ declare namespace Titanium { */ getActiveTab(): Titanium.UI.Tab; - /** - * Opens the tab group and makes it visible. - */ - open(): void; - /** * Removes a tab from the tab group. */ @@ -12840,30 +14281,35 @@ declare namespace Titanium { */ getTabs(): Titanium.UI.Tab[]; - /** - * Gets the value of the property. - */ - getActiveTab(): Titanium.UI.Tab; - - /** - * Sets the value of the property. - */ - setActiveTab(activeTab: Titanium.UI.Tab): void; - /** * Gets the value of the property. */ getActivity(): Titanium.Android.Activity; /** - * Gets the value of the property. + * Gets the value of the property. */ - getAllowUserCustomization(): boolean; + getBackButtonTitle(): string; /** - * Sets the value of the property. + * Sets the value of the property. */ - setAllowUserCustomization(allowUserCustomization: boolean): void; + 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. @@ -12876,24 +14322,204 @@ declare namespace Titanium { setBarColor(barColor: string): void; /** - * Gets the value of the property. + * Gets the value of the property. */ - getTranslucent(): boolean; + getBarImage(): string; /** - * Sets the value of the property. + * Sets the value of the property. */ - setTranslucent(translucent: boolean): void; + setBarImage(barImage: string): void; /** - * Gets the value of the property. + * Gets the value of the property. */ - getTitleAttributes(): titleAttributesParams; + getExitOnClose(): boolean; /** - * Sets the value of the property. + * Sets the value of the property. */ - setTitleAttributes(titleAttributes: titleAttributesParams): void; + 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. @@ -12905,6 +14531,356 @@ declare namespace Titanium { */ 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. */ @@ -12915,16 +14891,6 @@ declare namespace Titanium { */ setEditButtonTitle(editButtonTitle: 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. */ @@ -12945,25 +14911,30 @@ declare namespace Titanium { */ setSmoothScrollOnTabClick(smoothScrollOnTabClick: boolean): void; - /** - * Gets the value of the property. - */ - getTabs(): Titanium.UI.Tab[]; - /** * Sets the value of the property. */ setTabs(tabs: ReadonlyArray): void; /** - * Gets the value of the property. + * Gets the value of the property. */ - getWindowSoftInputMode(): number; + getShiftMode(): boolean; /** - * Sets the value of the property. + * Sets the value of the property. */ - setWindowSoftInputMode(windowSoftInputMode: number): void; + 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. @@ -12995,16 +14966,6 @@ declare namespace Titanium { */ setTabsTranslucent(tabsTranslucent: 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. */ @@ -13025,16 +14986,6 @@ declare namespace Titanium { */ setUnselectedItemTintColor(unselectedItemTintColor: string): void; - /** - * Gets the value of the property. - */ - getShadowImage(): string; - - /** - * Sets the value of the property. - */ - setShadowImage(shadowImage: string): void; - /** * Gets the value of the property. */ @@ -13066,212 +15017,10 @@ declare namespace Titanium { setActiveTabBackgroundImage(activeTabBackgroundImage: 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). - */ - opacity: number; - - /** - * Background color of the wrapper view when this view is used as either or . - */ - 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; - + interface TabbedBar extends Titanium.UI.View { /** * Index of the currently selected button. */ @@ -13287,478 +15036,6 @@ declare namespace Titanium { */ 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. */ @@ -13795,7 +15072,6 @@ declare namespace Titanium { setStyle(style: number): void; } - /** * A table view is used to present information, organized in sections and rows, in a * vertically-scrolling view. @@ -14154,16 +15430,6 @@ declare namespace Titanium { */ getData(): Titanium.UI.TableViewRow[] | Titanium.UI.TableViewSection[]; - /** - * Sets the value of the property. - */ - setData(data: ReadonlyArray): void; - - /** - * Sets the value of the property. - */ - setData(data: ReadonlyArray): void; - /** * Gets the value of the property. */ @@ -14249,11 +15515,6 @@ declare namespace Titanium { */ getHeaderPullView(): Titanium.UI.View; - /** - * Sets the value of the property. - */ - setHeaderPullView(headerPullView: any): void; - /** * Gets the value of the property. */ @@ -14585,7 +15846,6 @@ declare namespace Titanium { setResultsSeparatorInsets(resultsSeparatorInsets: any): void; } - /** * A table view row is an individual item in a table, organized into table view sections. */ @@ -14880,7 +16140,6 @@ declare namespace Titanium { setTitle(title: string): void; } - /** * A table view section is a container within a table used to organize table view rows. */ @@ -14981,7 +16240,6 @@ declare namespace Titanium { getRows(): Titanium.UI.TableViewRow[]; } - /** * A multiline text field that supports editing and scrolling. */ @@ -15121,7 +16379,7 @@ declare namespace Titanium { /** * Sets the left and right padding of this TextArea. The text will always be vertically centered. */ - padding: TextAreaPadding; + padding: ViewPadding; /** * Specifies the text to display on the keyboard `Return` key when this text area is focused. @@ -15457,12 +16715,12 @@ declare namespace Titanium { /** * Gets the value of the property. */ - getPadding(): TextAreaPadding; + getPadding(): ViewPadding; /** * Sets the value of the property. */ - setPadding(padding: TextAreaPadding): void; + setPadding(padding: ViewPadding): void; /** * Gets the value of the property. @@ -15560,7 +16818,6 @@ declare namespace Titanium { setVerticalAlign(verticalAlign: string): void; } - /** * A single line text field. */ @@ -15722,7 +16979,7 @@ declare namespace Titanium { /** * Sets the padding of this text field. */ - padding: TextFieldPadding; + padding: ViewPadding; /** * Left padding of this text field. @@ -16128,12 +17385,12 @@ declare namespace Titanium { /** * Gets the value of the property. */ - getPadding(): TextFieldPadding; + getPadding(): ViewPadding; /** * Sets the value of the property. */ - setPadding(padding: TextFieldPadding): void; + setPadding(padding: ViewPadding): void; /** * Gets the value of the property. @@ -16291,7 +17548,6 @@ declare namespace Titanium { setMaxLength(maxLength: number): void; } - /** * A toolbar, which can contain buttons and certain other controls. */ @@ -16592,7 +17848,6 @@ declare namespace Titanium { setTitleTextColor(titleTextColor: string): void; } - /** * The web view allows you to open an HTML5 based view which can load either local or remote content. */ @@ -16633,6 +17888,16 @@ declare namespace Titanium { */ 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. */ @@ -16664,6 +17929,11 @@ declare namespace Titanium { */ onCreateWindow: (param0: any) => any; + /** + * Fired before navigating to a link. + */ + onlink: (param0: OnLinkURLResponse) => any; + /** * Determines the behavior when the user overscrolls the view. */ @@ -16689,6 +17959,11 @@ declare namespace Titanium { */ 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. */ @@ -16724,6 +17999,42 @@ declare namespace Titanium { */ 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. */ @@ -16741,9 +18052,10 @@ declare namespace Titanium { /** * Evaluates a JavaScript expression inside the context of the web view and - * optionally, returns a result. + * 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): string; + evalJS(code: string, callback?: (param0: string) => any): string; /** * Goes back one entry in the web view's history list, to the previous page. @@ -16781,15 +18093,55 @@ declare namespace Titanium { resume(): void; /** - * Sets the basic authentication for this web view to use on subsequent URl requests. + * Sets the basic authentication for this web view to use on subsequent URL requests. */ - setBasicAuthentication(username: string, password: string): void; + 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. */ @@ -16865,6 +18217,26 @@ declare namespace Titanium { */ 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. */ @@ -16880,11 +18252,6 @@ declare namespace Titanium { */ getHtml(): string; - /** - * Sets the value of the property. - */ - setHtml(html: string): void; - /** * Gets the value of the property. */ @@ -16925,6 +18292,16 @@ declare namespace Titanium { */ 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. */ @@ -16975,6 +18352,16 @@ declare namespace Titanium { */ 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. */ @@ -17045,8 +18432,57 @@ declare namespace Titanium { */ 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. */ @@ -17106,8 +18542,7 @@ declare namespace Titanium { autoAdjustScrollViewInsets: boolean; /** - * Specifies whether the content (subviews) of the window will render inside the safe-area or not. - * Only used in iOS 11.0 and later. + * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. */ extendSafeArea: boolean; @@ -17182,9 +18617,9 @@ declare namespace Titanium { navTintColor: string; /** - * The instance hosting this window. + * The instance hosting this window. */ - readonly navigationWindow: Titanium.UI.iOS.NavigationWindow; + readonly navigationWindow: Titanium.UI.NavigationWindow; /** * Callback function that overrides the default behavior when the user presses the **Back** @@ -17213,6 +18648,11 @@ declare namespace Titanium { */ 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.. */ @@ -17290,7 +18730,7 @@ declare namespace Titanium { /** * Use a transition animation when opening or closing windows in a - * or . + * or . */ transitionAnimation: Titanium.Proxy; @@ -17664,7 +19104,7 @@ declare namespace Titanium { /** * Gets the value of the property. */ - getNavigationWindow(): Titanium.UI.iOS.NavigationWindow; + getNavigationWindow(): Titanium.UI.NavigationWindow; /** * Gets the value of the property. @@ -17711,6 +19151,11 @@ declare namespace Titanium { */ setRightNavButtons(rightNavButtons: any[]): void; + /** + * Gets the value of the property. + */ + getSafeAreaPadding(): Dimension; + /** * Gets the value of the property. */ @@ -17856,11 +19301,6 @@ declare namespace Titanium { */ getToolbar(): any[]; - /** - * Sets the value of the property. - */ - setToolbar(toolbar: ReadonlyArray): void; - /** * Gets the value of the property. */ @@ -18003,7 +19443,6 @@ declare namespace Titanium { } - /** * A set of constants for the styles available for objects. */ @@ -18115,6 +19554,16 @@ declare namespace Titanium { */ 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. */ @@ -18573,6 +20022,16 @@ declare namespace Titanium { */ 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. */ @@ -18678,6 +20137,11 @@ declare namespace Titanium { */ 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. */ @@ -18770,7 +20234,7 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). */ opacity: number; @@ -18820,7 +20284,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * Determines keyboard behavior when this view is focused. + * Determines keyboard behavior when this view is focused. Defaults to . */ softKeyboardOnFocus: number; @@ -19108,6 +20572,16 @@ declare namespace Titanium { */ 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. */ @@ -19749,7 +21223,6 @@ declare namespace Titanium { setPaddingTop(paddingTop: number): void; } - /** * A panel that displays the app's main navigation options on the left edge of the screen. */ @@ -19774,6 +21247,11 @@ declare namespace Titanium { */ 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. */ @@ -19886,7 +21364,7 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). */ opacity: number; @@ -19936,7 +21414,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * Determines keyboard behavior when this view is focused. + * Determines keyboard behavior when this view is focused. Defaults to . */ softKeyboardOnFocus: number; @@ -20247,6 +21725,16 @@ declare namespace Titanium { */ 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. */ @@ -20868,7 +22356,6 @@ declare namespace Titanium { setToolbar(toolbar: Titanium.UI.Toolbar): void; } - /** * A progress dialog or a horizontal progress bar in the title of the window. */ @@ -21231,7 +22718,6 @@ declare namespace Titanium { setType(type: number): void; } - /** * A specialized text field for entering search text. */ @@ -21256,6 +22742,11 @@ declare namespace Titanium { */ 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. */ @@ -21368,7 +22859,7 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). Defaults to 1.0 (opaque). */ opacity: number; @@ -21418,7 +22909,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * Determines keyboard behavior when this view is focused. + * Determines keyboard behavior when this view is focused. Defaults to . */ softKeyboardOnFocus: number; @@ -21644,6 +23135,16 @@ declare namespace Titanium { */ 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. */ @@ -22205,7 +23706,6 @@ declare namespace Titanium { setSubmitEnabled(submitEnabled: boolean): void; } - } /** @@ -23291,6 +24791,101 @@ declare namespace Titanium { */ 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. */ @@ -23313,7 +24908,7 @@ declare namespace Titanium { /** * Creates a transition animation when opening or closing windows in a - * or . + * or . */ function createTransitionAnimation(transition: transitionAnimationParam): Titanium.Proxy; @@ -23323,11 +24918,6 @@ declare namespace Titanium { */ function createLivePhotoBadge(type: number): Titanium.Blob; - /** - * Creates and returns an instance of . - */ - function create3DMatrix(parameters?: any): Titanium.UI.iOS.Matrix3D; - /** * Creates and returns an instance of . */ @@ -23458,6 +25048,21 @@ declare namespace Titanium { */ 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. */ @@ -23523,277 +25128,6 @@ declare namespace Titanium { */ function setStatusBarBackgroundColor(statusBarBackgroundColor: string): 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 an existing matrix. - */ - invert(): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by combining two existing matrices. - */ - multiply(t2: Titanium.UI.Matrix3D): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by rotating an existing matrix. - */ - rotate(angle: number, x: number, y: number, z: number): Titanium.UI.Matrix3D; - - /** - * Returns a matrix constructed by scaling an existing 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; - - } - /** * The AdView is a view for display Apple iAds. */ @@ -23915,12 +25249,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -24527,7 +25862,6 @@ declare namespace Titanium { setAdSize(adSize: string): void; } - /** * Dynamic behavior to support connections between an anchor point and an item. */ @@ -24623,7 +25957,6 @@ declare namespace Titanium { setOffset(offset: Point): void; } - /** * Provides support for the built-in iOS dynamic animations */ @@ -24699,7 +26032,6 @@ declare namespace Titanium { 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. @@ -24741,7 +26073,6 @@ declare namespace Titanium { getDynamicShortcut(itemtype: string): void; } - /** * An abstract datatype for specifying an attributed string attribute. */ @@ -24792,7 +26123,6 @@ declare namespace Titanium { 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. @@ -24834,7 +26164,6 @@ declare namespace Titanium { 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 @@ -24961,12 +26290,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -25568,7 +26898,6 @@ declare namespace Titanium { setEffect(effect: number): void; } - /** * Dynamic behavior to support collisions between items and boundaries. */ @@ -25664,7 +26993,6 @@ declare namespace Titanium { 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. @@ -25782,12 +27110,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -26409,7 +27738,6 @@ declare namespace Titanium { setSelected(selected: number): void; } - /** * A DocumentViewer provides in-app support for managing user interactions with files on the * local system. @@ -26451,7 +27779,6 @@ declare namespace Titanium { setUrl(url: string): void; } - /** * Base dynamic configuration for an item. */ @@ -26587,7 +27914,6 @@ declare namespace Titanium { 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. @@ -26598,6 +27924,11 @@ declare namespace Titanium { */ 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. */ @@ -26628,8 +27959,17 @@ declare namespace Titanium { */ 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. */ @@ -26700,7 +28040,6 @@ declare namespace Titanium { 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 @@ -26723,7 +28062,6 @@ declare namespace Titanium { 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`, @@ -26753,7 +28091,6 @@ declare namespace Titanium { readonly TOP: number; } - /** * A set of constants for the style that can be used for the `style` property of * . @@ -26772,13 +28109,11 @@ declare namespace Titanium { 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. */ @@ -26900,12 +28235,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -27532,7 +28868,6 @@ declare namespace Titanium { setMuted(muted: boolean): void; } - /** * A menu popup provides the ability to create custom tooltip options using the `items` property * covering the native `UIMenuController` class. @@ -27571,7 +28906,6 @@ declare namespace Titanium { setItems(items: string): void; } - /** * A `NavigationWindow` implements a specialized view that manages the navigation of hierarchical * content. @@ -27700,6 +29034,7 @@ declare namespace Titanium { /** * 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; @@ -27799,8 +29134,7 @@ declare namespace Titanium { autoAdjustScrollViewInsets: boolean; /** - * Specifies whether the content (subviews) of the window will render inside the safe-area or not. - * Only used in iOS 11.0 and later. + * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. */ extendSafeArea: boolean; @@ -27855,9 +29189,9 @@ declare namespace Titanium { modal: boolean; /** - * The instance hosting this window. + * The instance hosting this window. */ - readonly navigationWindow: Titanium.UI.iOS.NavigationWindow; + readonly navigationWindow: Titanium.UI.NavigationWindow; /** * Array of supported orientation modes, specified using the orientation @@ -27875,6 +29209,11 @@ declare namespace Titanium { */ 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. */ @@ -28575,7 +29914,7 @@ declare namespace Titanium { /** * Gets the value of the property. */ - getNavigationWindow(): Titanium.UI.iOS.NavigationWindow; + getNavigationWindow(): Titanium.UI.NavigationWindow; /** * Gets the value of the property. @@ -28602,6 +29941,11 @@ declare namespace Titanium { */ setRightNavButtons(rightNavButtons: any[]): void; + /** + * Gets the value of the property. + */ + getSafeAreaPadding(): Dimension; + /** * Gets the value of the property. */ @@ -28633,7 +29977,6 @@ declare namespace Titanium { setWindow(window: Titanium.UI.Window): void; } - /** * A PreviewAction provides options to configure actions used by the iOS 9 3D-Touch "Peek and Pop" * feature. @@ -28670,7 +30013,6 @@ declare namespace Titanium { setStyle(style: number): void; } - /** * A PreviewActionGroup provides options to configure a group of actions used by the iOS9 3D-Touch * feature "Peek and Pop". @@ -28722,7 +30064,6 @@ declare namespace Titanium { setActions(actions: ReadonlyArray): void; } - /** * A PreviewContext provides options to configure the iOS 9 3D-Touch "Peek and Pop" feature. */ @@ -28773,7 +30114,6 @@ declare namespace Titanium { setPreview(preview: any): void; } - /** * Continuous or instantaneous force to apply to an item. */ @@ -28874,7 +30214,6 @@ declare namespace Titanium { setPushMode(pushMode: number): void; } - /** * Dynamic behavior defining an item's movement to a specific point. */ @@ -28925,7 +30264,6 @@ declare namespace Titanium { setSnapPoint(snapPoint: Point): void; } - /** * A SplitWindow is a window that manages the presentation of two side-by-side view * controllers. @@ -29054,6 +30392,7 @@ declare namespace Titanium { /** * 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; @@ -29173,8 +30512,7 @@ declare namespace Titanium { autoAdjustScrollViewInsets: boolean; /** - * Specifies whether the content (subviews) of the window will render inside the safe-area or not. - * Only used in iOS 11.0 and later. + * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. */ extendSafeArea: boolean; @@ -29249,9 +30587,9 @@ declare namespace Titanium { navTintColor: string; /** - * The instance hosting this window. + * The instance hosting this window. */ - readonly navigationWindow: Titanium.UI.iOS.NavigationWindow; + readonly navigationWindow: Titanium.UI.NavigationWindow; /** * Array of supported orientation modes, specified using the orientation @@ -29274,6 +30612,11 @@ declare namespace Titanium { */ 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.. */ @@ -29359,6 +30702,11 @@ declare namespace Titanium { */ masterIsOverlayed: boolean; + /** + * Determines whether to show the master view or hide. + */ + masterViewVisible: boolean; + /** * Determines the width of the `masterView` in portrait mode. */ @@ -30144,7 +31492,7 @@ declare namespace Titanium { /** * Gets the value of the property. */ - getNavigationWindow(): Titanium.UI.iOS.NavigationWindow; + getNavigationWindow(): Titanium.UI.NavigationWindow; /** * Gets the value of the property. @@ -30181,6 +31529,11 @@ declare namespace Titanium { */ setRightNavButtons(rightNavButtons: any[]): void; + /** + * Gets the value of the property. + */ + getSafeAreaPadding(): Dimension; + /** * Gets the value of the property. */ @@ -30286,11 +31639,6 @@ declare namespace Titanium { */ getToolbar(): any[]; - /** - * Sets the value of the property. - */ - setToolbar(toolbar: ReadonlyArray): void; - /** * Gets the value of the property. */ @@ -30336,20 +31684,20 @@ declare namespace Titanium { */ getShowMasterInPortrait(): boolean; - /** - * Sets the value of the property. - */ - setShowMasterInPortrait(showMasterInPortrait: boolean): void; - /** * Gets the value of the property. */ getMasterIsOverlayed(): boolean; /** - * Sets the value of the property. + * Gets the value of the property. */ - setMasterIsOverlayed(masterIsOverlayed: boolean): void; + getMasterViewVisible(): boolean; + + /** + * Sets the value of the property. + */ + setMasterViewVisible(masterViewVisible: boolean): void; /** * Gets the value of the property. @@ -30372,7 +31720,6 @@ declare namespace Titanium { setLandscapeSplit(landscapeSplit: number): void; } - /** * A widget used to increment and decrement a value. */ @@ -30489,12 +31836,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -31248,7 +32596,6 @@ declare namespace Titanium { setIncrementDisabledImage(incrementDisabledImage: string): void; } - /** * A button bar that maintains a selected state. */ @@ -31365,12 +32712,13 @@ declare namespace Titanium { layout: string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -31977,7 +33325,6 @@ declare namespace Titanium { setStyle(style: number): void; } - /** * An iOS toolbar, which can contain buttons and certain other controls. */ @@ -32068,12 +33415,13 @@ declare namespace Titanium { left: number | string; /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). + * 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; @@ -32640,7 +33988,6 @@ declare namespace Titanium { setTranslucent(translucent: boolean): void; } - /** * Dynamic behavior to support connections between two items. */ @@ -32751,7 +34098,147 @@ declare namespace Titanium { 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 @@ -33907,7 +35394,6 @@ declare namespace Titanium { setUrl(url: string): void; } - /** * A Popover is used to manage the presentation of content in a popover. */ @@ -34125,7 +35611,6 @@ declare namespace Titanium { setTitle(title: string): void; } - /** * A SplitWindow is a window that manages the presentation of two side-by-side view * controllers. @@ -34254,6 +35739,7 @@ declare namespace Titanium { /** * 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; @@ -34368,8 +35854,7 @@ declare namespace Titanium { autoAdjustScrollViewInsets: boolean; /** - * Specifies whether the content (subviews) of the window will render inside the safe-area or not. - * Only used in iOS 11.0 and later. + * Specifies whether the screen insets/notches are allowed to overlap the window's content or not. */ extendSafeArea: boolean; @@ -34444,9 +35929,9 @@ declare namespace Titanium { navTintColor: string; /** - * The instance hosting this window. + * The instance hosting this window. */ - readonly navigationWindow: Titanium.UI.iOS.NavigationWindow; + readonly navigationWindow: Titanium.UI.NavigationWindow; /** * Array of supported orientation modes, specified using the orientation @@ -34469,6 +35954,11 @@ declare namespace Titanium { */ 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.. */ @@ -35304,7 +36794,7 @@ declare namespace Titanium { /** * Gets the value of the property. */ - getNavigationWindow(): Titanium.UI.iOS.NavigationWindow; + getNavigationWindow(): Titanium.UI.NavigationWindow; /** * Gets the value of the property. @@ -35341,6 +36831,11 @@ declare namespace Titanium { */ setRightNavButtons(rightNavButtons: any[]): void; + /** + * Gets the value of the property. + */ + getSafeAreaPadding(): Dimension; + /** * Gets the value of the property. */ @@ -35446,11 +36941,6 @@ declare namespace Titanium { */ getToolbar(): any[]; - /** - * Sets the value of the property. - */ - setToolbar(toolbar: ReadonlyArray): void; - /** * Gets the value of the property. */ @@ -35502,7 +36992,6 @@ declare namespace Titanium { setShowMasterInPortrait(showMasterInPortrait: boolean): void; } - } /** @@ -35656,7 +37145,6 @@ declare namespace Titanium { 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`, @@ -35686,7 +37174,6 @@ declare namespace Titanium { readonly TOP: number; } - /** * A set of constants for the style that can be used for the `style` property of * . @@ -35706,7 +37193,6 @@ declare namespace Titanium { } - /** * A set of constants for the styles available for objects. */ @@ -37378,7 +38864,7 @@ declare namespace Titanium { const ACTION_GTALK_SERVICE_CONNECTED: string; /** - * GTalk connections has been disconnected. + * GTalk connection has been disconnected. */ const ACTION_GTALK_SERVICE_DISCONNECTED: string; @@ -37423,7 +38909,7 @@ declare namespace Titanium { const ACTION_MEDIA_BUTTON: string; /** - * External media is present and being disk-checked + * External media is present and being disk-checked. */ const ACTION_MEDIA_CHECKING: string; @@ -38111,7 +39597,7 @@ declare namespace Titanium { const PRIORITY_HIGH: number; /** - * Default priority if it does no fit into another priority category. + * Default priority if it does not fit into another priority category. */ const PRIORITY_DEFAULT: number; @@ -38293,12 +39779,12 @@ declare namespace Titanium { const SHOW_AS_ACTION_WITH_TEXT: number; /** - * Standard Action Bar navigation mode + * Standard Action Bar navigation mode. */ const NAVIGATION_MODE_STANDARD: number; /** - * Action Bar tab navigation mode + * Action Bar tab navigation mode. */ const NAVIGATION_MODE_TABS: number; @@ -38395,7 +39881,7 @@ declare namespace Titanium { const IMPORTANCE_UNSPECIFIED: number; /** - * Activity of the active context. + * References the top-most window's activity. */ const currentActivity: Titanium.Android.Activity; @@ -38404,6 +39890,11 @@ declare namespace Titanium { */ 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. */ @@ -38477,12 +39968,12 @@ declare namespace Titanium { function isServiceRunning(intent: Titanium.Android.Intent): boolean; /** - * Registers broadcast receiver for the given actions + * Registers broadcast receiver for the given actions. */ function registerBroadcastReceiver(broadcastReceiver: Titanium.Android.BroadcastReceiver, actions: ReadonlyArray): void; /** - * Unregisters a broadcast receiver + * Unregisters a broadcast receiver. */ function unregisterBroadcastReceiver(broadcastReceiver: Titanium.Android.BroadcastReceiver): void; @@ -38717,7 +40208,6 @@ declare namespace Titanium { setCustomView(customView: any): void; } - /** * The Titanium binding of an Android Activity. */ @@ -38728,7 +40218,7 @@ declare namespace Titanium { readonly actionBar: Titanium.Android.ActionBar; /** - * The `Intent` that was used to start this Activity. + * The last `Intent` received by this activity. */ readonly intent: Titanium.Android.Intent; @@ -38944,11 +40434,6 @@ declare namespace Titanium { */ setOnStop(onStop: (param0: any) => any): void; - /** - * Sets the value of the property. - */ - setRequestedOrientation(requestedOrientation: number): void; - /** * Gets the value of the property. */ @@ -38960,7 +40445,6 @@ declare namespace Titanium { setSupportToolbar(supportToolbar: Titanium.UI.Toolbar): void; } - /** * Helper object for generating large-format notifications that include a large image attachment. */ @@ -39061,7 +40545,6 @@ declare namespace Titanium { setSummaryText(summaryText: string): void; } - /** * Helper object for generating large-format notifications that include a lot of text. */ @@ -39112,7 +40595,6 @@ declare namespace Titanium { setSummaryText(summaryText: string): void; } - /** * Monitor and handle Android system broadcasts. */ @@ -39148,7 +40630,6 @@ declare namespace Titanium { setUrl(url: string): void; } - /** * Message objects passed between Android application components. */ @@ -39269,11 +40750,6 @@ declare namespace Titanium { */ setClassName(className: string): void; - /** - * Gets the value of the property. - */ - getData(): string; - /** * Gets the value of the property. */ @@ -39310,7 +40786,6 @@ declare namespace Titanium { setUrl(url: string): void; } - /** * The Titanium binding of an Android Options Menu. */ @@ -39390,7 +40865,6 @@ declare namespace Titanium { getItems(): Titanium.Android.MenuItem[]; } - /** * The Titanium binding of an Android menu item. */ @@ -39576,7 +41050,6 @@ declare namespace Titanium { setTitleCondensed(titleCondensed: string): void; } - /** * UI notifications that can be sent while the application is in the background. */ @@ -40001,7 +41474,6 @@ declare namespace Titanium { setWhen(when: number): void; } - /** * Module for notification channels. */ @@ -40056,6 +41528,11 @@ declare namespace Titanium { */ showBadge: boolean; + /** + * A URL to the sound to play. + */ + sound: string; + /** * The vibration pattern for notifications posted to this channel. */ @@ -40161,6 +41638,16 @@ declare namespace Titanium { */ setShowBadge(showBadge: boolean): void; + /** + * Gets the value of the property. + */ + getSound(): string; + + /** + * Sets the value of the property. + */ + setSound(sound: string): void; + /** * Gets the value of the property. */ @@ -40172,7 +41659,6 @@ declare namespace Titanium { setVibratePattern(vibratePattern: ReadonlyArray): void; } - /** * The Titanium binding of an Android `PendingIntent`. */ @@ -40224,7 +41710,6 @@ declare namespace Titanium { setUpdateCurrentIntent(updateCurrentIntent: boolean): void; } - /** * Android service for creating custom quick settings tiles and handling user's interaction with them. */ @@ -40341,7 +41826,6 @@ declare namespace Titanium { getServiceInstanceId(): number; } - /** * The Titanium binding of [Android RemoteViews](https://developer.android.com/reference/android/widget/RemoteViews.html). */ @@ -40448,7 +41932,6 @@ declare namespace Titanium { setPackageName(packageName: string): void; } - /** * Android application component that executes in the background. */ @@ -40496,7 +41979,6 @@ declare namespace Titanium { } - /** * The Android.Calendar module provides proxies and methods for accessing the native Android * calendar functionality. @@ -40748,7 +42230,6 @@ declare namespace Titanium { getState(): number; } - /** * An object that represents a single calendar on Android. */ @@ -40824,7 +42305,6 @@ declare namespace Titanium { getSelected(): boolean; } - /** * An object that represents a single event in an Android calendar. */ @@ -40991,7 +42471,6 @@ declare namespace Titanium { getVisibility(): number; } - /** * An object that represents a single reminder for an event in an Android calendar. */ @@ -41028,7 +42507,6 @@ declare namespace Titanium { getMinutes(): number; } - } /** @@ -41334,7 +42812,7 @@ declare namespace Titanium { const style: any; /** - * Styleable reosurces. See + * Styleable resources. See * [R.styleable](https://developer.android.com/reference/android/R.styleable.html) * in the Android Developer Reference. */ @@ -41537,6 +43015,11 @@ declare namespace Titanium { */ 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. */ @@ -41822,7 +43305,6 @@ declare namespace Titanium { */ interface R extends Titanium.Proxy { } - } /** @@ -42153,12 +43635,12 @@ declare namespace Titanium { /** * Show the notification's title, even if the user has disabled notification previews for the app. */ - const USER_NOTIFICATION_CATEGORY_OPTION_HIDEEN_PREVIEWS_SHOW_TITLE: number; + const USER_NOTIFICATION_CATEGORY_OPTION_HIDDEN_PREVIEWS_SHOW_TITLE: number; /** * Show the notification's subtitle, even if the user has disabled notification previews for the app. */ - const USER_NOTIFICATION_CATEGORY_OPTION_HIDEEN_PREVIEWS_SHOW_SUBTITLE: number; + const USER_NOTIFICATION_CATEGORY_OPTION_HIDDEN_PREVIEWS_SHOW_SUBTITLE: number; /** * Uniform type identifier for all text types. @@ -42507,7 +43989,6 @@ declare namespace Titanium { setUrl(url: string): void; } - /** * A local notification to alert the user of new or pending application information. */ @@ -42518,7 +43999,6 @@ declare namespace Titanium { cancel(): void; } - /** * A search query object manages the criteria to apply when searching app content that you have previously * indexed by using the Core Spotlight APIs. @@ -42550,7 +44030,6 @@ declare namespace Titanium { isCancelled(): boolean; } - /** * The SearchableIndex module is used to add or remove Ti.App.iOS.SearchableItem objects from the device search index. */ @@ -42581,7 +44060,6 @@ declare namespace Titanium { deleteSearchableItemsByIdentifiers(Array: ReadonlyArray, callback: (param0: any) => any): void; } - /** * Used to create a unique object containing all of the search information that will appear in the device search index. */ @@ -42637,7 +44115,6 @@ declare namespace Titanium { setUniqueIdentifier(uniqueIdentifier: string): void; } - /** * The SearchableItemAttributeSet module defines metadata properties for SearchItem and UserActivity objects. */ @@ -44048,7 +45525,6 @@ declare namespace Titanium { setPostalCode(postalCode: string): void; } - /** * The UserActivity module is used to enable device Handoff and to create User Activities. */ @@ -44073,6 +45549,16 @@ declare namespace Titanium { */ eligibleForHandoff: boolean; + /** + * A Boolean value that determines whether Siri can suggest the user activity as a shortcut to the user. + */ + eligibleForPrediction: boolean; + + /** + * A value used to identify the user activity. + */ + persistentIdentifier: string; + /** * Absolute date after which the activity is no longer eligible to be indexed or handed off. */ @@ -44139,6 +45625,16 @@ declare namespace Titanium { */ 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; + /** * Gets the value of the property. */ @@ -44179,6 +45675,26 @@ declare namespace Titanium { */ setEligibleForHandoff(eligibleForHandoff: boolean): void; + /** + * Gets the value of the property. + */ + getEligibleForPrediction(): boolean; + + /** + * Sets the value of the property. + */ + setEligibleForPrediction(eligibleForPrediction: boolean): void; + + /** + * Gets the value of the property. + */ + getPersistentIdentifier(): string; + + /** + * Sets the value of the property. + */ + setPersistentIdentifier(persistentIdentifier: string): void; + /** * Gets the value of the property. */ @@ -44260,7 +45776,6 @@ declare namespace Titanium { setWebpageURL(webpageURL: string): void; } - /** * 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 @@ -44369,7 +45884,6 @@ declare namespace Titanium { setSuiteName(suiteName: string): void; } - /** * An action the user selects in response to an interactive notification. */ @@ -44425,7 +45939,6 @@ declare namespace Titanium { setBehavior(behavior: number): void; } - /** * A set of notification actions to associate with a notification. */ @@ -44467,42 +45980,16 @@ declare namespace Titanium { } - /** * 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 { - /** - * 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; - /** - * 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; - /** * Fetches the pending notifications asynchronously. */ @@ -44517,29 +46004,19 @@ declare namespace Titanium { * Removes the specified pending notifications to prevent them from being triggered. * If no notifications are specified, all pending notifications will be removed. */ - function removePendingNotifications(notifications: ReadonlyArray): void; + function removePendingNotifications(notifications: ReadonlyArray): void; /** * Removes the specified delivered notifications from the notification-center. * If no notifications are specified, all delivered notifications will be removed. */ - function removeDeliveredNotifications(): void; + function removeDeliveredNotifications(notifications: ReadonlyArray): void; /** * Notification types and user notification categories the application is registered to use. */ function requestUserNotificationSettings(callback: (param0: GetUserNotificationSettings) => 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. */ @@ -45142,7 +46619,6 @@ declare namespace Titanium { getState(): number; } - /** * An object that represents a single attendee of an event. */ @@ -45238,7 +46714,6 @@ declare namespace Titanium { setStatus(status: number): void; } - /** * An object that represents a single calendar. */ @@ -45359,7 +46834,6 @@ declare namespace Titanium { getSourceIdentifier(): string; } - /** * An object that represents a single event in a calendar. */ @@ -45638,7 +47112,6 @@ declare namespace Titanium { getAttendees(): Titanium.Calendar.Attendee[]; } - /** * An object that is used to describe the recurrence pattern for a recurring event. */ @@ -45758,7 +47231,6 @@ declare namespace Titanium { getEnd(): recurrenceEndDictionary; } - /** * An object that represents a single reminder for an event in a calendar. */ @@ -45795,7 +47267,6 @@ declare namespace Titanium { getMinutes(): number; } - } /** @@ -46076,7 +47547,7 @@ declare namespace Titanium { function getAllPeople(limit: number): Titanium.Contacts.Person[]; /** - * Gets the group with the specified identifier. Deprecated for >= iOS9. Use instead. + * Gets the group with the specified identifier. */ function getGroupByID(id: number): Titanium.Contacts.Group; @@ -46092,7 +47563,7 @@ declare namespace Titanium { function getPeopleWithName(name: string): Titanium.Contacts.Person[]; /** - * Gets the person with the specified identifier. Deprecated for >= iOS9. Use instead. + * Gets the person with the specified identifier. */ function getPersonByID(id: number): Titanium.Contacts.Person; @@ -46242,7 +47713,6 @@ declare namespace Titanium { getIdentifier(): string; } - /** * An object that represents a contact record for a person or organization in the system contacts * address book. @@ -46680,7 +48150,6 @@ declare namespace Titanium { setUrl(url: any): void; } - } /** @@ -46877,7 +48346,6 @@ declare namespace Titanium { setRowsAffected(rowsAffected: number): void; } - /** * The ResultSet instance returned by . */ @@ -46952,7 +48420,6 @@ declare namespace Titanium { getValidRow(): boolean; } - } /** @@ -47441,11 +48908,6 @@ declare namespace Titanium { */ getNativePath(): string; - /** - * Gets the value of the property. - */ - getParent(): Titanium.Filesystem.File; - /** * Gets the value of the property. */ @@ -47482,7 +48944,6 @@ declare namespace Titanium { getWriteable(): boolean; } - /** * Wrapper around `Titanium.Filesystem.File` that implements the `Titanium.IOStream` interface */ @@ -47490,12 +48951,12 @@ declare namespace Titanium { /** * Reads data from this stream into a buffer. */ - read(buffer: Titanium.Buffer, offset?: number, length?: number): number; + 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): number; + write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; /** * Indicates whether this stream is writable. @@ -47513,7 +48974,6 @@ declare namespace Titanium { close(): void; } - } /** @@ -47657,21 +49117,6 @@ declare namespace Titanium { */ const ERROR_REGION_MONITORING_FAILURE: number; - /** - * Specifies the GPS location provider. - */ - const PROVIDER_GPS: string; - - /** - * Specifies the network location provider. - */ - const PROVIDER_NETWORK: string; - - /** - * Specifies the passive location provider. - */ - const PROVIDER_PASSIVE: string; - /** * The location data is being used for an unknown activity. */ @@ -48010,6 +49455,21 @@ declare namespace Titanium { */ let manualMode: boolean; + /** + * Specifies the GPS location provider. + */ + const PROVIDER_GPS: string; + + /** + * Specifies the network location provider. + */ + const PROVIDER_NETWORK: string; + + /** + * Specifies the passive location provider. + */ + const PROVIDER_PASSIVE: string; + /** * Adds the specified callback as an event listener for the named event. */ @@ -48105,9 +49565,9 @@ declare namespace Titanium { */ interface LocationProvider extends Titanium.Proxy { /** - * Type of location provider: [PROVIDER_GPS](Titanium.Geolocation.PROVIDER_GPS), - * [PROVIDER_NETWORK](Titanium.Geolocation.PROVIDER_NETWORK), or - * [PROVIDER_PASSIVE](Titanium.Geolocation.PROVIDER_PASSIVE). + * Type of location provider: [PROVIDER_GPS](Titanium.Geolocation.Android.PROVIDER_GPS), + * [PROVIDER_NETWORK](Titanium.Geolocation.Android.PROVIDER_NETWORK), or + * [PROVIDER_PASSIVE](Titanium.Geolocation.Android.PROVIDER_PASSIVE). */ name: string; @@ -48153,7 +49613,6 @@ declare namespace Titanium { setMinUpdateDistance(minUpdateDistance: number): void; } - /** * A location rule to filter the results returned by location providers. */ @@ -48221,7 +49680,6 @@ declare namespace Titanium { setMaxAge(maxAge: number): void; } - } } @@ -50043,21 +51501,6 @@ declare namespace Titanium { */ setRate(rate: number): void; - /** - * Gets the value of the property. - */ - getPaused(): boolean; - - /** - * Sets the value of the property. - */ - setPaused(paused: boolean): void; - - /** - * Gets the value of the property. - */ - getPlaying(): boolean; - /** * Gets the value of the property. */ @@ -50114,7 +51557,6 @@ declare namespace Titanium { setTime(time: number): void; } - /** * An audio recorder object used for recording audio from the device microphone. */ @@ -50200,7 +51642,6 @@ declare namespace Titanium { getStopped(): boolean; } - /** * A representation of a media item returned by [openMusicLibrary](Titanium.Media.openMusicLibrary) or [queryMusicLibrary](Titanium.Media.queryMusicLibrary). */ @@ -50570,7 +52011,6 @@ declare namespace Titanium { getUserGrouping(): string; } - /** * This object represents a music controller. */ @@ -50703,7 +52143,6 @@ declare namespace Titanium { setShuffleMode(shuffleMode: number): void; } - /** * An object for playing basic audio resources. */ @@ -50924,7 +52363,6 @@ declare namespace Titanium { setVolume(volume: number): void; } - /** * An object for playing system sounds. */ @@ -50950,7 +52388,6 @@ declare namespace Titanium { setUrl(url: string): void; } - /** * A native control for playing videos. */ @@ -51368,7 +52805,6 @@ declare namespace Titanium { } - /** * Android-specific media-related functionality. */ @@ -51869,7 +53305,6 @@ declare namespace Titanium { setServiceType(serviceType: string): void; } - /** * Describes a service on the network which is published by Bonjour. */ @@ -51965,7 +53400,6 @@ declare namespace Titanium { setType(type: string): void; } - /** * Cookie object used to manage the system cookie store and HTTP client cookie store. */ @@ -52136,7 +53570,6 @@ declare namespace Titanium { setVersion(version: number): void; } - /** * HTTP client object that (mostly) implements the XMLHttpRequest specification. */ @@ -52552,11 +53985,6 @@ declare namespace Titanium { */ getTimeout(): number; - /** - * Sets the value of the property. - */ - setTimeout(timeout: number): void; - /** * Gets the value of the property. */ @@ -52598,7 +54026,6 @@ declare namespace Titanium { setCache(cache: boolean): void; } - /** * The TCPSocket instance returned from . This object * represents a socket which either listens locally on the device for connections, @@ -52707,7 +54134,6 @@ declare namespace Titanium { } - /** * Socket module, used for creating sockets. */ @@ -52854,12 +54280,12 @@ declare namespace Titanium { /** * Reads data from this stream into a buffer. */ - read(buffer: Titanium.Buffer, offset?: number, length?: number): number; + 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): number; + write(buffer: Titanium.Buffer, offset?: number, length?: number, resultsCallback?: (param0: WriteCallbackArgs) => any): number; /** * Indicates whether this stream is writable. @@ -52967,7 +54393,6 @@ declare namespace Titanium { getState(): number; } - } } @@ -53022,7 +54447,7 @@ declare namespace Titanium { const architecture: string; /** - * System's unused memory, measured in megabytes on iOS and bytes on Android. + * System's unused memory, measured in bytes. */ const availableMemory: number; @@ -53112,7 +54537,7 @@ declare namespace Titanium { const ostype: string; /** - * Number of processing cores. + * Number of logical processing cores. */ const processorCount: number; @@ -53121,6 +54546,16 @@ declare namespace Titanium { */ 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. */ @@ -53156,6 +54591,11 @@ declare namespace Titanium { */ function canOpenURL(url: string): boolean; + /** + * Returns an array of basic cpu information for all logical processors + */ + function cpus(): CPU[]; + /** * Creates a globally-unique identifier. */ @@ -53316,6 +54756,16 @@ declare namespace Titanium { */ 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. */ @@ -53405,7 +54855,6 @@ declare namespace Titanium { } - /** * The Android-specific Platform module, used to access the device's platform-related functionality. */ @@ -54314,7 +55763,6 @@ declare namespace Titanium { setValue(value: string): void; } - /** * Used to include blocks of literal text containing characters that would otherwise need * to be escaped. @@ -54580,7 +56028,6 @@ declare namespace Titanium { getLength(): number; } - /** * 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. @@ -54841,7 +56288,6 @@ declare namespace Titanium { getLength(): number; } - /** * Represents the contents of an XML comment. */ @@ -55101,7 +56547,6 @@ declare namespace Titanium { getLength(): number; } - /** * 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. */ @@ -55122,7 +56567,6 @@ declare namespace Titanium { hasFeature(feature: string, version: string): boolean; } - /** * The DOM Document returned from . */ @@ -55434,7 +56878,6 @@ declare namespace Titanium { getImplementation(): Titanium.XML.DOMImplementation; } - /** * A lightweight document object used as a container for a group of nodes. */ @@ -55644,7 +57087,6 @@ declare namespace Titanium { getAttributes(): Titanium.XML.NamedNodeMap; } - /** * Each has a `doctype` attribute whose value is either 'null' or a object. */ @@ -55914,7 +57356,6 @@ declare namespace Titanium { getSystemId(): string; } - /** * 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. @@ -56210,7 +57651,6 @@ declare namespace Titanium { getTagName(): string; } - /** * 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. @@ -56451,7 +57891,6 @@ declare namespace Titanium { getSystemId(): string; } - /** * Represents an XML entity reference. */ @@ -56661,7 +58100,6 @@ declare namespace Titanium { getAttributes(): Titanium.XML.NamedNodeMap; } - /** * 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. @@ -56713,7 +58151,6 @@ declare namespace Titanium { getLength(): number; } - /** * A single node in the [Document](Titanium.XML.Document) tree. */ @@ -56923,7 +58360,6 @@ declare namespace Titanium { 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. */ @@ -56944,7 +58380,6 @@ declare namespace Titanium { getLength(): number; } - /** * 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. */ @@ -56970,7 +58405,6 @@ declare namespace Titanium { getSystemId(): string; } - /** * 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. */ @@ -57001,7 +58435,6 @@ declare namespace Titanium { getTarget(): string; } - /** * 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. */ @@ -57266,7 +58699,6 @@ declare namespace Titanium { getLength(): number; } - } /** @@ -57380,7 +58812,6 @@ interface CloudACLsResponse { acls?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57416,7 +58847,6 @@ interface CloudACLsCheckResponse { permission?: any; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57452,7 +58882,6 @@ interface CloudChatsResponse { chats?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57488,7 +58917,6 @@ interface CloudChatGroupsResponse { chat_groups?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57524,7 +58952,6 @@ interface CloudCheckinsResponse { checkins?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57565,7 +58992,6 @@ interface CloudClientsResponse { location?: any; } - /** * Argument passed to the callback as a request is transmitted or received. */ @@ -57581,7 +59007,6 @@ interface CloudStreamProgress { url?: string; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57612,7 +59037,6 @@ interface CloudResponse { message?: string; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57643,7 +59067,6 @@ interface CloudEmailsResponse { message?: string; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57679,7 +59102,6 @@ interface CloudEventsResponse { events?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57715,7 +59137,6 @@ interface CloudEventOccurrencesResponse { event_occurrences?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57751,7 +59172,6 @@ interface CloudFilesResponse { files?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57787,7 +59207,6 @@ interface CloudFriendsResponse { users?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57823,7 +59242,6 @@ interface CloudFriendRequestsResponse { friend_requests?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57859,7 +59277,6 @@ interface CloudGeoFenceResponse { geo_fences?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57895,7 +59312,6 @@ interface CloudKeyValuesResponse { keyvalues?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57931,7 +59347,6 @@ interface CloudLikesResponse { likes?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -57967,7 +59382,6 @@ interface CloudMessagesResponse { messages?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58003,7 +59417,6 @@ interface CloudObjectsResponse { classname?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58039,7 +59452,6 @@ interface CloudPhotoCollectionsResponse { collections?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58075,7 +59487,6 @@ interface CloudPhotoCollectionsPhotosResponse { photos?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58111,7 +59522,6 @@ interface CloudPhotosResponse { photos?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58147,7 +59557,6 @@ interface CloudPlacesResponse { places?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58183,7 +59592,6 @@ interface CloudPostsResponse { posts?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58214,7 +59622,6 @@ interface CloudPushNotificationsResponse { message?: string; } - /** * Argument passed to the callback when a request finishes successfully. */ @@ -58250,7 +59657,6 @@ interface CloudPushNotificationsQueryChannelResponse { push_channels?: string[]; } - /** * Argument passed to the callback when a request finishes successfully. */ @@ -58286,7 +59692,6 @@ interface CloudPushNotificationsShowChannelResponse { devices?: any; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58322,7 +59727,6 @@ interface CloudPushNotificationsQueryResponse { subscriptions?: any[]; } - /** * Argument passed to the callback when a request finishes successfully. */ @@ -58358,7 +59762,6 @@ interface CloudPushSchedulesResponse { push_schedules?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58394,7 +59797,6 @@ interface CloudReviewsResponse { reviews?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58430,7 +59832,6 @@ interface CloudSocialIntegrationsResponse { users?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58466,7 +59867,6 @@ interface CloudStatusesResponse { statuses?: any[]; } - /** * Properties for the modal dialog used in 3-Legged OAuth */ @@ -58477,7 +59877,6 @@ interface CloudUsersSecureDialog { title?: string; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58513,7 +59912,6 @@ interface CloudUsersResponse { users?: any[]; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58554,7 +59952,6 @@ interface CloudUsersSecureResponse { expiresIn?: number; } - /** * Simple object for specifying token retrieval options to [retrieveDeviceToken](Modules.CloudPush.retrieveDeviceToken). */ @@ -58570,7 +59967,6 @@ interface CloudPushNotificationConfig { error?: (param0: CloudPushNotificationErrorArg) => any; } - /** * A simple object passed to the [retrieveDeviceToken](Modules.CloudPush.retrieveDeviceToken) success callback. */ @@ -58581,7 +59977,6 @@ interface CloudPushNotificationSuccessArg { deviceToken?: string; } - /** * A simple object passed to the [retrieveDeviceToken](Modules.CloudPush.retrieveDeviceToken) error callback. */ @@ -58592,13 +59987,11 @@ interface CloudPushNotificationErrorArg { error?: string; } - /** * Optional Titanium modules. */ interface Modules { } - /** * Simple object passed to the * [startActivityForResult](Titanium.Android.Activity.startActivityForResult) callback. @@ -58622,7 +60015,6 @@ interface ActivityResult { intent?: Titanium.Android.Intent; } - /** * Options passed to . */ @@ -58633,12 +60025,11 @@ interface ServiceIntentOptions { url?: string; /** - * One of the `START_` constants from to specify the "stickiness" of the Service when Android shuts down the host application. + * 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. */ @@ -58659,7 +60050,6 @@ interface RequestPermissionAccessResult { code?: number; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -58680,7 +60070,6 @@ interface CalendarPermissionResponse { code?: number; } - /** * Parameter for wakeLock */ @@ -58696,7 +60085,6 @@ interface wakeLockOptions { flags?: number; } - /** * Dictionary of options for the method. */ @@ -58737,7 +60125,6 @@ interface showParams { rect?: Dimension; } - /** * Dictionary describing the arguments passed to the application on startup. * Use the [getArguments](Titanium.App.getArguments) method to retrieve the launch options. @@ -58762,7 +60149,6 @@ interface launchOptions { launchOptionsLocationKey?: boolean; } - /** * Response when receiving pending or local notifications * in and @@ -58775,7 +60161,6 @@ interface UserNotificationCallbackResponse { notifications?: UserNotificationDictionary[]; } - /** * Dictionary of notification data used in the array of `notifications` * when receiving pending or local notifications in @@ -58850,7 +60235,6 @@ interface UserNotificationDictionary { region?: any; } - /** * Dictionary object of parameters used to register the application with local notifications using * the method. @@ -58919,7 +60303,6 @@ interface GetUserNotificationSettings { alertStyle?: number; } - /** * Dictionary object of parameters used to create a notification using * . @@ -59015,7 +60398,6 @@ interface NotificationParams { 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 @@ -59039,7 +60421,6 @@ interface UserNotificationAttachment { options?: any; } - /** * Dictionary object of parameters used to identify an incoming URL that is handled * by the application. @@ -59056,7 +60437,6 @@ interface LaunchOptionsType { url?: string; } - /** * Dictionary object of parameters used to register the application with local notifications using * the method. @@ -59075,7 +60455,6 @@ interface UserNotificationSettings { categories?: Titanium.App.iOS.UserNotificationCategory[]; } - /** * Simple object used to specify options for [imageAsCropped](Titanium.Blob.imageAsCropped). */ @@ -59101,7 +60480,6 @@ interface ImageAsCroppedDict { y?: number; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -59122,7 +60500,6 @@ interface EventsAuthorizationResponse { code?: number; } - /** * Dictionary containing `daysOfWeek` and `week`. */ @@ -59140,7 +60517,6 @@ interface daysOfTheWeekDictionary { week?: number; } - /** * Dictionary containing either `endDate` or `occurrenceCount` property. */ @@ -59156,7 +60532,6 @@ interface recurrenceEndDictionary { occurrenceCount?: number; } - /** * Named parameters for . */ @@ -59187,7 +60562,6 @@ interface EncodeNumberDict { byteOrder?: number; } - /** * Named parameters for . */ @@ -59213,7 +60587,6 @@ interface DecodeNumberDict { byteOrder?: number; } - /** * Named parameters for . */ @@ -59249,7 +60622,6 @@ interface EncodeStringDict { charset?: string; } - /** * Named parameters for . */ @@ -59275,7 +60647,6 @@ interface DecodeStringDict { charset?: string; } - /** * Dictionary of options for the method. */ @@ -59314,7 +60685,6 @@ interface showContactsParams { selectedProperty?: (param0: any) => any; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -59335,7 +60705,6 @@ interface ContactsAuthorizationResponse { code?: number; } - /** * Properties used in any event or callback which needs to report a success or failure. */ @@ -59356,7 +60725,6 @@ interface ErrorResponse { code?: number; } - /** * Properties used in any event or callback which needs to report a success. */ @@ -59377,7 +60745,6 @@ interface SuccessResponse { code?: number; } - /** * Properties used in any event or callback which needs to report a failure. */ @@ -59398,7 +60765,6 @@ interface FailureResponse { code?: number; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -59419,7 +60785,6 @@ interface RequestStorageAccessResult { code?: number; } - /** * Argument passed to the [getCurrentPosition](Titanium.Geolocation.getCurrentPosition) callback. */ @@ -59450,7 +60815,6 @@ interface LocationResults { coords?: LocationCoordinates; } - /** * Simple object holding the data for a location update. */ @@ -59506,7 +60870,6 @@ interface LocationCoordinates { floor?: LocationCoordinatesFloor; } - /** * Simple object holding floor of the building on which the user is located. */ @@ -59517,7 +60880,6 @@ interface LocationCoordinatesFloor { level?: number; } - /** * Simple object returned in the callback from the * [forwardGeocoder](Titanium.Geolocation.forwardGeocoder) method. @@ -59610,7 +60972,6 @@ interface ForwardGeocodeResponse { address?: string; } - /** * Argument passed to the [getCurrentHeading](Titanium.Geolocation.getCurrentHeading) callback. */ @@ -59636,7 +60997,6 @@ interface HeadingResponse { heading?: HeadingData; } - /** * Simple object holding compass heading data. */ @@ -59677,7 +61037,6 @@ interface HeadingData { z?: number; } - /** * Simple object describing a location provider. */ @@ -59698,7 +61057,6 @@ interface LocationProviderDict { power?: number; } - /** * Simple object returned in the callback from the * [reverseGeocoder](Titanium.Geolocation.reverseGeocoder) method. @@ -59725,7 +61083,6 @@ interface ReverseGeocodeResponse { places?: GeocodedAddress[]; } - /** * Simple object representing a place, returned in the callback from the * [reverseGeocoder](Titanium.Geolocation.reverseGeocoder) method. @@ -59757,12 +61114,12 @@ interface GeocodedAddress { region2?: string; /** - * Postal code. On iOS, use `zipcode`. + * Postal code */ postalCode?: string; /** - * Postal code. On Android, use `postalCode`. + * Postal code. To be replaced by `postalCode` */ zipcode?: string; @@ -59772,24 +61129,24 @@ interface GeocodedAddress { country?: string; /** - * Country code. On iOS, use `country_code`. + * Country code. */ countryCode?: string; /** - * Country code. Same as `country_code`. + * Country code. To be replaced by `countryCode`. */ country_code?: string; /** * Longitude of the geocoded point. */ - longitude?: string; + longitude?: number; /** * Latitude of the geocoded point. */ - latitude?: string; + latitude?: number; /** * Display address. Identical to `address`. @@ -59802,7 +61159,6 @@ interface GeocodedAddress { address?: string; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -59823,7 +61179,6 @@ interface LocationAuthorizationResponse { code?: number; } - /** * Simple object passed to the [scanMediaFiles](Titanium.Media.Android.scanMediaFiles) callback. */ @@ -59840,7 +61195,6 @@ interface MediaScannerResponse { uri?: string; } - /** * An abstract type to represent a metadata item inside the `metadata` event (iOS only). */ @@ -59866,7 +61220,6 @@ interface TiMetadataItemType { extraAttributes?: any; } - /** * Simple object for specifying options to [openMusicLibrary](Titanium.Media.openMusicLibrary). */ @@ -59907,7 +61260,6 @@ interface MusicLibraryOptionsType { allowMultipleSelections?: boolean; } - /** * Simple object passed to the [openMusicLibrary](Titanium.Media.openMusicLibrary) * `success` callback function. @@ -59930,7 +61282,6 @@ interface MusicLibraryResponseType { types?: number; } - /** * A specifier for a media library query. By default, filters perform an exact match. */ @@ -60034,7 +61385,6 @@ interface MediaQueryType { podcastPersistentID?: MediaQueryInfoType | number; } - /** * A full query descriptor for a filtering predicate. */ @@ -60050,7 +61400,6 @@ interface MediaQueryInfoType { exact?: boolean; } - /** * Simple object for specifying options to [showCamera](Titanium.Media.showCamera). */ @@ -60148,7 +61497,6 @@ interface CameraOptionsType { autorotate?: boolean; } - /** * Simple object for specifying options to * [openPhotoGallery](Titanium.Media.openPhotoGallery). @@ -60210,7 +61558,6 @@ interface PhotoGalleryOptionsType { allowMultiple?: boolean; } - /** * A media object from the camera or photo gallery. */ @@ -60257,7 +61604,6 @@ interface CameraMediaItemType { livePhoto?: Titanium.UI.iOS.LivePhoto; } - /** * Simple object for describing the crop rectangle for an image. */ @@ -60283,7 +61629,6 @@ interface CropRectType { height?: number; } - /** * Simple object for describing the preview image rectangle. This will be undefined when custom camera overlay is not used. */ @@ -60299,7 +61644,6 @@ interface PreviewRectType { height?: number; } - /** * Options passed to . */ @@ -60320,7 +61664,6 @@ interface PreviewImageOptions { error?: (param0: PreviewImageError) => any; } - /** * The parameter passed to the `error` callback of . */ @@ -60346,7 +61689,6 @@ interface PreviewImageError { message?: string; } - /** * The parameter passed to the callback. */ @@ -60357,7 +61699,6 @@ interface ScreenshotResult { media?: Titanium.Blob; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -60378,7 +61719,6 @@ interface MediaAuthorizationResponse { code?: number; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -60399,7 +61739,6 @@ interface RequestCameraAccessResult { code?: number; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -60420,7 +61759,6 @@ interface RequestMusicLibraryAccessResult { code?: number; } - /** * Argument passed to the callback when a request finishes successfully or erroneously. */ @@ -60441,7 +61779,6 @@ interface RequestPhotoGalleryAccessResult { code?: number; } - /** * An Object describing the current audio route. */ @@ -60457,7 +61794,6 @@ interface RouteDescription { outputs?: any[]; } - /** * Simple object passed to the thumbnail callback in response to the * [requestThumbnailImagesAtTimes](Titanium.Media.VideoPlayer.requestThumbnailImagesAtTimes) @@ -60490,7 +61826,6 @@ interface ThumbnailResponse { time?: number; } - /** * Simple object used to describe the size of a movie. */ @@ -60506,7 +61841,6 @@ interface MovieSize { height?: number; } - /** * The protocol that the must implement. */ @@ -60532,13 +61866,11 @@ interface SecurityManagerProtocol { 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. */ @@ -60549,7 +61881,6 @@ interface ReadyStatePayload { readyState?: number; } - /** * Simple object for specifying push notification options to * [registerForPushNotifications](Titanium.Network.registerForPushNotifications). @@ -60576,7 +61907,6 @@ interface PushNotificationConfig { callback?: (param0: PushNotificationData) => any; } - /** * A simple object passed to the * [registerForPushNotifications](Titanium.Network.registerForPushNotifications) success callback. @@ -60608,7 +61938,6 @@ interface PushNotificationSuccessArg { deviceToken?: string; } - /** * A simple object passed to the * [registerForPushNotifications](Titanium.Network.registerForPushNotifications) error callback. @@ -60635,7 +61964,6 @@ interface PushNotificationErrorArg { type?: string; } - /** * A simple object representing a push notification. */ @@ -60652,7 +61980,6 @@ interface PushNotificationData { inBackground?: boolean; } - /** * Argument object passed to the [connected](Titanium.Network.Socket.TCP.connected) callback when the socket connects. */ @@ -60663,7 +61990,6 @@ interface ConnectedCallbackArgs { socket?: Titanium.Network.Socket.TCP; } - /** * Object passed to the error callback when the socket enters the [ERROR](Titanium.Network.Socket.ERROR) state. */ @@ -60694,7 +62020,6 @@ interface ErrorCallbackArgs { errorCode?: number; } - /** * Argument object passed to the [accepted](Titanium.Network.Socket.TCP.accepted) * callback when a listener accepts a connection. @@ -60711,7 +62036,6 @@ interface AcceptedCallbackArgs { inbound?: Titanium.Network.Socket.TCP; } - /** * Options object for the [accept](Titanium.Network.Socket.TCP.accept) method. */ @@ -60727,7 +62051,56 @@ interface AcceptDict { 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). */ @@ -60743,7 +62116,6 @@ interface CreateStreamArgs { mode?: number; } - /** * Argument passed to the read callback when an asynchronous [read](Titanium.Stream.read) operation * finishes. @@ -60786,7 +62158,6 @@ interface ReadCallbackArgs { errorDescription?: string; } - /** * Argument passed to the write callback when an asynchronous * [write](Titanium.Stream.write) operation @@ -60830,7 +62201,6 @@ interface WriteCallbackArgs { errorDescription?: string; } - /** * Argument passed to the callback when an asynchronous * [writeStream](Titanium.Stream.writeStream) operation finishes. @@ -60878,7 +62248,6 @@ interface WriteStreamCallbackArgs { errorDescription?: string; } - /** * Argument passed to the callback each time the * [pump](Titanium.Stream.pump) operation has new data to deliver. @@ -60933,7 +62302,6 @@ interface PumpCallbackArgs { errorDescription?: string; } - /** * Arguments to be passed to createBuffer */ @@ -60959,7 +62327,6 @@ interface CreateBufferArgs { byteOrder?: number; } - /** * Simple object passed to to initialize a matrix. */ @@ -60984,7 +62351,6 @@ interface MatrixCreationDict { anchorPoint?: any; } - /** * An abstract datatype for specifying an attributed string attribute. */ @@ -61005,7 +62371,77 @@ interface Attribute { 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 . */ @@ -61024,7 +62460,6 @@ interface ClipboardItemsType { options?: any; } - /** * An abstract datatype for specifying a text font. */ @@ -61056,7 +62491,6 @@ interface Font { textStyle?: string; } - /** * Template that represents the basic appearance of a list item. */ @@ -61077,7 +62511,6 @@ interface ItemTemplate { childTemplates?: ViewTemplate[]; } - /** * Template that represents a view subcomponent of an . */ @@ -61108,7 +62541,6 @@ interface ViewTemplate { childTemplates?: ViewTemplate[]; } - /** * Represents displayed item data. */ @@ -61126,7 +62558,6 @@ interface ListDataItem { properties?: any; } - /** * Represents the custom edit action for a ListItem. */ @@ -61153,7 +62584,6 @@ interface RowActionType { color?: string; } - /** * A simple object for specifying the animation properties to use when inserting or deleting * sections or cells, or scrolling the list. @@ -61175,7 +62605,6 @@ interface ListViewAnimationProperties { position?: number; } - /** * A simple object that represents an index entry in a `ListView`. */ @@ -61191,7 +62620,6 @@ interface ListViewIndexEntry { index?: number; } - /** * Optional parameter for [setContentInsets](Titanium.UI.ListView.setContentInsets) method. */ @@ -61207,7 +62635,6 @@ interface ListViewContentInsetOption { duration?: number; } - /** * The parameter for [setMarker](Titanium.UI.ListView.setMarker) and [addMarker](Titanium.UI.ListView.addMarker) methods. */ @@ -61223,7 +62650,6 @@ interface ListViewMarkerProps { itemIndex?: number; } - /** * The parameter for [setContentInsets](Titanium.UI.TableView.setContentInsets) method. */ @@ -61249,7 +62675,6 @@ interface ListViewEdgeInsets { bottom?: number; } - /** * The arguments for the and events. */ @@ -61275,7 +62700,30 @@ interface ListItemEventType { 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. */ @@ -61286,7 +62734,6 @@ interface hideParams { animated?: boolean; } - /** * Optional parameter for [setContentOffset](Titanium.UI.ScrollView.setContentOffset) method. */ @@ -61297,7 +62744,6 @@ interface contentOffsetOption { animated?: boolean; } - /** * Optional parameter for [setZoomScale](Titanium.UI.ScrollView.setZoomScale) method. */ @@ -61308,7 +62754,6 @@ interface zoomScaleOption { animated?: boolean; } - /** * A simple object for specifying the animation properties when scrolling the view. */ @@ -61319,7 +62764,6 @@ interface ScrollViewAnimationProperties { animated?: boolean; } - /** * Dictionary to specify edge insets for . */ @@ -61335,7 +62779,6 @@ interface TabIconInsets { left?: number; } - /** * A simple object for specifying the animation properties to use when inserting or deleting rows, or scrolling the table. */ @@ -61356,7 +62799,6 @@ interface TableViewAnimationProperties { position?: number; } - /** * A simple object that represents an index entry in a `TableView`. */ @@ -61372,7 +62814,6 @@ interface TableViewIndexEntry { index?: number; } - /** * Optional parameter for [setContentInsets](Titanium.UI.TableView.setContentInsets) method. */ @@ -61388,7 +62829,6 @@ interface TableViewContentInsetOption { duration?: number; } - /** * The parameter for [setContentInsets](Titanium.UI.TableView.setContentInsets) method. */ @@ -61414,7 +62854,6 @@ interface TableViewEdgeInsets { bottom?: number; } - /** * Dictionary object of parameters for the event and property that describes * position and length of the selected text. @@ -61431,33 +62870,6 @@ interface textAreaSelectedParams { length?: number; } - -/** - * Dictionary object of parameters for the that describes the padding - */ -interface TextAreaPadding { - /** - * Left padding - */ - left?: number; - - /** - * Right padding - */ - right?: number; - - /** - * Top padding - */ - top?: number; - - /** - * Bottom padding - */ - bottom?: number; - -} - /** * Dictionary object of parameters for the property that describes * position and length of the selected text. @@ -61474,7 +62886,6 @@ interface textFieldSelectedParams { length?: number; } - /** * Dictionary object of parameters for the that describes the padding */ @@ -61500,7 +62911,6 @@ interface TextFieldPadding { bottom?: number; } - /** * A pair of coordinates used to describe the location of a . */ @@ -61516,7 +62926,6 @@ interface Point { y?: number | string; } - /** * A simple object defining a color gradient. */ @@ -61562,7 +62971,6 @@ interface Gradient { backfillEnd?: boolean; } - /** * A simple object consisting of a color and an offset. */ @@ -61578,7 +62986,6 @@ interface GradientColorRef { offset?: number; } - /** * A simple object consisting of the position and size measurements. */ @@ -61604,7 +63011,6 @@ interface Dimension { y?: number; } - /** * Optional parameter to enable animation to [hide](Titanium.UI.View.hide) and [show](Titanium.UI.View.show). */ @@ -61615,7 +63021,111 @@ interface AnimationOption { 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. + */ + url?: string; + +} /** * Dictionary of options for the method. */ @@ -61696,7 +63206,6 @@ interface openWindowParams { activityExitAnimation?: number; } - /** * Dictionary of options for the method. */ @@ -61722,7 +63231,6 @@ interface windowToolbarParam { tintColor?: string; } - /** * Dictionary of options for the method. */ @@ -61743,7 +63251,6 @@ interface closeWindowParams { activityExitAnimation?: number; } - /** * Dictionary of options for the property. */ @@ -61764,7 +63271,6 @@ interface titleAttributesParams { shadow?: shadowDict; } - /** * Dictionary describing the shadow effect for text. */ @@ -61786,7 +63292,6 @@ interface shadowDict { offset?: any; } - /** * Object of options for . */ @@ -61819,7 +63324,6 @@ interface ShortcutParams { userInfo?: any; } - /** * Dictionary to specify a boundary identifier for . */ @@ -61840,7 +63344,6 @@ interface BoundaryIdentifier { point2?: Point; } - /** * Dictionary to specify edge insets for . */ @@ -61866,7 +63369,6 @@ interface ReferenceInsets { bottom?: number; } - /** * Simple object for defining a single image in a cover flow view. */ @@ -61887,7 +63389,6 @@ interface CoverFlowImageType { height?: number; } - /** * A simple object for specifying options when showing or dismissing a . */ @@ -61903,7 +63404,6 @@ interface DocumentViewerOptions { view?: Titanium.UI.View; } - /** * Dictionary of options for showing a menu popup with . */ @@ -61924,7 +63424,6 @@ interface MenuPopupShowParams { arrowDirection?: number; } - /** * Dictionary of options for hiding a menu popup with . */ @@ -61935,7 +63434,6 @@ interface MenuPopupHideParams { animated?: boolean; } - /** * Optional parameter for [setShowMasterInPortrait](Titanium.UI.iOS.SplitWindow.setShowMasterInPortrait) and * [setMasterIsOverlayed](Titanium.UI.iOS.SplitWindow.setMasterIsOverlayed) methods. @@ -61947,7 +63445,6 @@ interface animationOption { animated?: boolean; } - /** * Object describing a button bar or tabbed bar item. */ @@ -61978,7 +63475,26 @@ interface BarItemType { 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. */ @@ -61999,7 +63515,6 @@ interface transitionAnimationParam { transitionTo?: Titanium.UI.Animation; } - /** * Dictionary of options for and . */ @@ -62021,7 +63536,6 @@ interface PopoverParams { view: Titanium.UI.View; } - /** * Reply message received from watch app. */ @@ -62047,7 +63561,6 @@ interface MessageReply { code?: number; } - /** * Properties passed to a yql callback to report a success or failure. */ From a536e12b4125bd404c1b620edb1fcfcde7f7a26b Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Tue, 9 Apr 2019 11:31:00 +0100 Subject: [PATCH 2/2] add back comment about not being an npm package --- types/titanium/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/titanium/index.d.ts b/types/titanium/index.d.ts index 25e41927b7..b9ad563ad3 100644 --- a/types/titanium/index.d.ts +++ b/types/titanium/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Titanium 8.0 +// Type definitions for non-npm package Titanium 8.0 // Project: https://github.com/appcelerator/titanium_mobile // Definitions by: Axway Appcelerator // Jan Vennemann