From 1b0812447cb9a69ef4ba7592cbc47238e83082a2 Mon Sep 17 00:00:00 2001 From: hansemannn Date: Fri, 10 Aug 2018 14:37:38 +0200 Subject: [PATCH] Update for Titanium 7.3 --- types/titanium/index.d.ts | 6101 +++++++++--------------------- types/titanium/titanium-tests.ts | 41 +- 2 files changed, 1711 insertions(+), 4431 deletions(-) diff --git a/types/titanium/index.d.ts b/types/titanium/index.d.ts index b191fd2766..e26d4aecb4 100644 --- a/types/titanium/index.d.ts +++ b/types/titanium/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Titanium 7.1 +// Type definitions for Titanium 7.3 // Project: https://github.com/appcelerator/titanium_mobile // Definitions by: Axway Appcelerator // Jan Vennemann @@ -998,20 +998,30 @@ declare namespace Titanium { const AUTOFILL_TYPE_CARD_EXPIRATION_DATE: string; /** - * Specifies the expectation of a card expectation day. + * Specifies the expectation of a card expiration day. */ const AUTOFILL_TYPE_CARD_EXPIRATION_DAY: string; /** - * Specifies the expectation of a card expectation month. + * Specifies the expectation of a card expiration month. */ const AUTOFILL_TYPE_CARD_EXPIRATION_MONTH: string; /** - * Specifies the expectation of a card expectation year. + * Specifies the expectation of a card expiration year. */ const AUTOFILL_TYPE_CARD_EXPIRATION_YEAR: string; + /** + * Specifies the expectation of a new password. + */ + const AUTOFILL_TYPE_NEW_PASSWORD: string; + + /** + * Specifies the expectation of a single-factor SMS login code. + */ + const AUTOFILL_TYPE_ONE_TIME_CODE: string; + /** * Converts strings formatted as addresses into clickable links. */ @@ -2332,6 +2342,11 @@ declare namespace Titanium { */ hiddenBehavior: number; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -2409,7 +2424,7 @@ declare namespace Titanium { softKeyboardOnFocus: number; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -2458,6 +2473,11 @@ declare namespace Titanium { */ transitionName: string; + /** + * Adds a vertical parallax effect to the view + */ + verticalMotionEffect: any; + /** * Determines the blur radius used to create the shadow. */ @@ -2865,6 +2885,16 @@ declare namespace Titanium { */ setHiddenBehavior(hiddenBehavior: number): void; + /** + * Gets the value of the property. + */ + getHorizontalMotionEffect(): any; + + /** + * Sets the value of the property. + */ + setHorizontalMotionEffect(horizontalMotionEffect: any): void; + /** * Gets the value of the property. */ @@ -3125,6 +3155,16 @@ declare namespace Titanium { */ setTransitionName(transitionName: string): void; + /** + * Gets the value of the property. + */ + getVerticalMotionEffect(): any; + + /** + * Sets the value of the property. + */ + setVerticalMotionEffect(verticalMotionEffect: any): void; + /** * Gets the value of the property. */ @@ -3361,6 +3401,11 @@ declare namespace Titanium { */ hiddenBehavior: number; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -3438,7 +3483,7 @@ declare namespace Titanium { softKeyboardOnFocus: number; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -3487,6 +3532,11 @@ declare namespace Titanium { */ transitionName: string; + /** + * Adds a vertical parallax effect to the view + */ + verticalMotionEffect: any; + /** * Determines the blur radius used to create the shadow. */ @@ -3894,6 +3944,16 @@ declare namespace Titanium { */ setHiddenBehavior(hiddenBehavior: number): void; + /** + * Gets the value of the property. + */ + getHorizontalMotionEffect(): any; + + /** + * Sets the value of the property. + */ + setHorizontalMotionEffect(horizontalMotionEffect: any): void; + /** * Gets the value of the property. */ @@ -4154,6 +4214,16 @@ declare namespace Titanium { */ setTransitionName(transitionName: string): void; + /** + * Gets the value of the property. + */ + getVerticalMotionEffect(): any; + + /** + * Sets the value of the property. + */ + setVerticalMotionEffect(verticalMotionEffect: any): void; + /** * Gets the value of the property. */ @@ -4749,6 +4819,11 @@ declare namespace Titanium { */ cancel: number; + /** + * Setting this to true requires the end-user to click a dialog button to close the dialog. + */ + buttonClickRequired: boolean; + /** * When this is set to `true`, the dialog is canceled when touched outside the window's bounds. */ @@ -4922,6 +4997,16 @@ declare namespace Titanium { */ setCancel(cancel: number): void; + /** + * Gets the value of the property. + */ + getButtonClickRequired(): boolean; + + /** + * Sets the value of the property. + */ + setButtonClickRequired(buttonClickRequired: boolean): void; + /** * Gets the value of the property. */ @@ -5612,6 +5697,11 @@ declare namespace Titanium { * A button widget that has four states: normal, disabled, focused and selected. */ interface Button extends Titanium.UI.View { + /** + * Specify an attributed string for the label. + */ + attributedString: Titanium.UI.AttributedString; + /** * Default button text color, as a color name or hex triplet. */ @@ -5688,6 +5778,16 @@ declare namespace Titanium { */ verticalAlign: number | string; + /** + * Gets the value of the property. + */ + getAttributedString(): Titanium.UI.AttributedString; + + /** + * Sets the value of the property. + */ + setAttributedString(attributedString: Titanium.UI.AttributedString): void; + /** * Gets the value of the property. */ @@ -5944,11 +6044,6 @@ declare namespace Titanium { */ center: Point; - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - /** * View's clipping behavior. */ @@ -5959,6 +6054,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -6001,7 +6101,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -6020,6 +6120,11 @@ declare namespace Titanium { */ 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. */ @@ -6065,21 +6170,6 @@ declare namespace Titanium { */ labels: string[] | BarItemType[]; - /** - * Style of the button bar. - */ - style: number; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - /** * Animates this view. */ @@ -6101,21 +6191,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Makes this view visible. */ @@ -6317,11 +6392,6 @@ declare namespace Titanium { */ setCenter(center: Point): void; - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - /** * Gets the value of the property. */ @@ -6347,6 +6417,16 @@ declare namespace Titanium { */ 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. */ @@ -6477,6 +6557,16 @@ declare namespace Titanium { */ 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. */ @@ -6577,16 +6667,6 @@ declare namespace Titanium { */ setLabels(labels: ReadonlyArray): void; - /** - * Gets the value of the property. - */ - getStyle(): number; - - /** - * Sets the value of the property. - */ - setStyle(style: number): void; - } /** @@ -6679,11 +6759,6 @@ declare namespace Titanium { */ center: Point; - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - /** * View's clipping behavior. */ @@ -6694,6 +6769,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -6736,7 +6816,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -6755,6 +6835,11 @@ declare namespace Titanium { */ 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. */ @@ -6800,16 +6885,6 @@ declare namespace Titanium { */ selected: number; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - /** * Animates this view. */ @@ -6831,21 +6906,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Makes this view visible. */ @@ -7067,11 +7127,6 @@ declare namespace Titanium { */ setCenter(center: Point): void; - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - /** * Gets the value of the property. */ @@ -7097,6 +7152,16 @@ declare namespace Titanium { */ 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. */ @@ -7227,6 +7292,16 @@ declare namespace Titanium { */ 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. */ @@ -7520,6 +7595,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -7562,7 +7642,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -7581,6 +7661,11 @@ declare namespace Titanium { */ 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. */ @@ -7641,16 +7726,6 @@ declare namespace Titanium { */ wobble: boolean; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - /** * Animates this view. */ @@ -7672,21 +7747,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Makes this view visible. */ @@ -7928,6 +7988,16 @@ declare namespace Titanium { */ 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. */ @@ -8058,6 +8128,16 @@ declare namespace Titanium { */ 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. */ @@ -8374,7 +8454,7 @@ declare namespace Titanium { enableZoomControls: boolean; /** - * Set to `true` to prevent scaling of 2x-resolution remote images for Retina + * Set to `true` to prevent scaling of 2x/3x-resolution remote images for retina * displays. */ hires: boolean; @@ -8596,7 +8676,7 @@ declare namespace Titanium { } /** - * A text label, with optional background image. + * A text label, with an optional background image. */ interface Label extends Titanium.UI.View { /** @@ -9396,7 +9476,7 @@ declare namespace Titanium { separatorColor: string; /** - * The insets for list view separators (applies to all cells). This property is applicable on iOS 7 and greater. + * The insets for list view separators (applies to all cells). */ separatorInsets: any; @@ -9411,17 +9491,17 @@ declare namespace Titanium { style: number; /** - * The insets for the table view header and footer. This property is applicable on iOS 7 and greater. + * The insets for the table view header and footer. */ tableSeparatorInsets: any; /** - * The insets for the list view header and footer. This property is applicable on iOS 7 and greater. + * The insets for the list view header and footer. */ listSeparatorInsets: any; /** - * The insets for list view cells (applies to all cells). This property is applicable on iOS 7 and greater. + * The insets for list view cells (applies to all cells). */ rowSeparatorInsets: any; @@ -9966,203 +10046,7 @@ declare namespace Titanium { /** * A control that displays an image composited with a background image or color. */ - interface MaskedImage extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * 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. This property is applicable on iOS 7 and greater. - */ - 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; - - /** - * 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 MaskedImage extends Titanium.UI.View { /** * Image drawn as the background image. */ @@ -10183,488 +10067,6 @@ declare namespace Titanium { */ tint: string; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - - /** - * Makes this view visible. - */ - show(options?: AnimationOption): void; - - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - 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. - */ - 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. */ @@ -10711,262 +10113,6 @@ declare namespace Titanium { * A toast notification. */ interface Notification 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; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * Disabled background color of the view, as a color name or hex triplet. - */ - backgroundDisabledColor: string; - - /** - * Disabled background image for the view, specified as a local file path or URL. - */ - backgroundDisabledImage: string; - - /** - * Focused background color of the view, as a color name or hex triplet. - */ - backgroundFocusedColor: string; - - /** - * Focused background image for the view, specified as a local file path or URL. - */ - backgroundFocusedImage: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Selected background color of the view, as a color name or hex triplet. - */ - backgroundSelectedColor: string; - - /** - * Selected background image url for the view, specified as a local file path or URL. - */ - backgroundSelectedImage: string; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * Base elevation of the view relative to its parent in pixels. - */ - elevation: number; - - /** - * Whether view should be focusable while navigating with the trackball. - */ - focusable: boolean; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * Sets the behavior when hiding an object to release or keep the free space - */ - hiddenBehavior: number; - - /** - * View's left position, in platform-specific units. - */ - left: number | string; - - /** - * Specifies how the view positions its children. - * One of: 'composite', 'vertical', or 'horizontal'. - */ - layout: string; - - /** - * Opacity of this view, from 0.0 (transparent) to 1.0 (opaque). - */ - opacity: number; - - /** - * When on, animate call overrides current animation if applicable. - */ - overrideCurrentAnimation: boolean; - - /** - * View's right position, in platform-specific units. - */ - right: number | string; - - /** - * The bounding box of the view relative to its parent, in system units. - */ - readonly rect: Dimension; - - /** - * Clockwise 2D rotation of the view in degrees. - */ - rotation: number; - - /** - * Clockwise rotation of the view in degrees (x-axis). - */ - rotationX: number; - - /** - * Clockwise rotation of the view in degrees (y-axis). - */ - rotationY: number; - - /** - * Scaling of the view in x-axis in pixels. - */ - scaleX: number; - - /** - * Scaling of the view in y-axis in pixels. - */ - scaleY: number; - - /** - * The size of the view in system units. - */ - readonly size: Dimension; - - /** - * Determines keyboard behavior when this view is focused. - */ - softKeyboardOnFocus: number; - - /** - * The view's top position. - */ - top: number | string; - - /** - * Determines whether view should receive touch events. - */ - touchEnabled: boolean; - - /** - * A material design visual construct that provides an instantaneous visual confirmation of touch point. - */ - touchFeedback: boolean; - - /** - * Optional touch feedback ripple color. This has no effect unless `touchFeedback` is true. - */ - touchFeedbackColor: string; - - /** - * Transformation matrix to apply to the view. - */ - transform: Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Horizontal location of the view relative to its left position in pixels. - */ - translationX: number; - - /** - * Vertical location of the view relative to its top position in pixels. - */ - translationY: number; - - /** - * Depth of the view relative to its elevation in pixels. - */ - translationZ: number; - - /** - * A name to identify this view in activity transition. - */ - transitionName: string; - - /** - * Determines whether the view is visible. - */ - visible: boolean; - - /** - * View's width, in platform-specific units. - */ - width: number | string; - - /** - * Determines whether the layout has wrapping behavior. - */ - horizontalWrap: boolean; - - /** - * Z-index stack order position, relative to other sibling views. - */ - zIndex: number; - - /** - * Determines whether to keep the device screen on. - */ - keepScreenOn: boolean; - /** * Notification text to display. */ @@ -11002,612 +10148,10 @@ declare namespace Titanium { */ verticalMargin: number; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Show the notification. */ - 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. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledColor(backgroundDisabledColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundDisabledImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundDisabledImage(backgroundDisabledImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedColor(backgroundFocusedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundFocusedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundFocusedImage(backgroundFocusedImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedColor(backgroundSelectedColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundSelectedImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundSelectedImage(backgroundSelectedImage: string): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getElevation(): number; - - /** - * Sets the value of the property. - */ - setElevation(elevation: number): void; - - /** - * Gets the value of the property. - */ - getFocusable(): boolean; - - /** - * Sets the value of the property. - */ - setFocusable(focusable: boolean): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getHiddenBehavior(): number; - - /** - * Sets the value of the property. - */ - setHiddenBehavior(hiddenBehavior: number): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getOverrideCurrentAnimation(): boolean; - - /** - * Sets the value of the property. - */ - setOverrideCurrentAnimation(overrideCurrentAnimation: boolean): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getRotation(): number; - - /** - * Sets the value of the property. - */ - setRotation(rotation: number): void; - - /** - * Gets the value of the property. - */ - getRotationX(): number; - - /** - * Sets the value of the property. - */ - setRotationX(rotationX: number): void; - - /** - * Gets the value of the property. - */ - getRotationY(): number; - - /** - * Sets the value of the property. - */ - setRotationY(rotationY: number): void; - - /** - * Gets the value of the property. - */ - getScaleX(): number; - - /** - * Sets the value of the property. - */ - setScaleX(scaleX: number): void; - - /** - * Gets the value of the property. - */ - getScaleY(): number; - - /** - * Sets the value of the property. - */ - setScaleY(scaleY: number): void; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getSoftKeyboardOnFocus(): number; - - /** - * Sets the value of the property. - */ - setSoftKeyboardOnFocus(softKeyboardOnFocus: number): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedback(): boolean; - - /** - * Sets the value of the property. - */ - setTouchFeedback(touchFeedback: boolean): void; - - /** - * Gets the value of the property. - */ - getTouchFeedbackColor(): string; - - /** - * Sets the value of the property. - */ - setTouchFeedbackColor(touchFeedbackColor: string): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - getTranslationX(): number; - - /** - * Sets the value of the property. - */ - setTranslationX(translationX: number): void; - - /** - * Gets the value of the property. - */ - getTranslationY(): number; - - /** - * Sets the value of the property. - */ - setTranslationY(translationY: number): void; - - /** - * Gets the value of the property. - */ - getTranslationZ(): number; - - /** - * Sets the value of the property. - */ - setTranslationZ(translationZ: number): void; - - /** - * Gets the value of the property. - */ - getTransitionName(): string; - - /** - * Sets the value of the property. - */ - setTransitionName(transitionName: string): void; - - /** - * Gets the value of the property. - */ - getVisible(): boolean; - - /** - * Sets the value of the property. - */ - setVisible(visible: boolean): void; - - /** - * Gets the value of the property. - */ - getWidth(): number | string; - - /** - * Sets the value of the property. - */ - setWidth(width: number): void; - - /** - * Sets the value of the property. - */ - setWidth(width: string): void; - - /** - * Gets the value of the property. - */ - getHorizontalWrap(): boolean; - - /** - * Sets the value of the property. - */ - setHorizontalWrap(horizontalWrap: boolean): void; - - /** - * Gets the value of the property. - */ - getZIndex(): number; - - /** - * Sets the value of the property. - */ - setZIndex(zIndex: number): void; - - /** - * Gets the value of the property. - */ - getKeepScreenOn(): boolean; - - /** - * Sets the value of the property. - */ - setKeepScreenOn(keepScreenOn: boolean): void; + show(): void; /** * Gets the value of the property. @@ -12136,7 +10680,7 @@ declare namespace Titanium { /** * A picker column, representing a selectable group of items in a . */ - interface PickerColumn extends Titanium.UI.View { + interface PickerColumn extends Titanium.Proxy { /** * Number of rows in this column. */ @@ -12363,7 +10907,7 @@ declare namespace Titanium { /** * The RefreshControl is a representation of the native iOS - * [UIRefreshControl](https://developer.apple.com/library/ios/documentation/uikit/reference/UIRefreshControl_class/Reference/Reference.html) + * [UIRefreshControl](https://developer.apple.com/documentation/uikit/uirefreshcontrol) * and Android [SwipeRefreshLayout](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html). */ interface RefreshControl extends Titanium.Proxy { @@ -13078,6 +11622,16 @@ declare namespace Titanium { */ color: string; + /** + * Background image of the text field, specified as a local file path or URL. + */ + fieldBackgroundImage: string; + + /** + * Background image of the text field in disabled state, specified as a local file path or URL. + */ + fieldBackgroundDisabledImage: string; + /** * Text to show when the search bar field is not focused. */ @@ -13200,6 +11754,26 @@ declare namespace Titanium { */ setColor(color: string): void; + /** + * Gets the value of the property. + */ + getFieldBackgroundImage(): string; + + /** + * Sets the value of the property. + */ + setFieldBackgroundImage(fieldBackgroundImage: string): void; + + /** + * Gets the value of the property. + */ + getFieldBackgroundDisabledImage(): string; + + /** + * Sets the value of the property. + */ + setFieldBackgroundDisabledImage(fieldBackgroundDisabledImage: string): void; + /** * Gets the value of the property. */ @@ -13916,12 +12490,12 @@ declare namespace Titanium { iconInsets: TabIconInsets; /** - * Defines if the icon property of the tab must be used as a mask. This property is applicable on iOS 7 and greater. + * Defines if the icon property of the tab must be used as a mask. */ iconIsMask: boolean; /** - * Defines if the active icon property of the tab must be used as a mask. This property is applicable on iOS 7 and greater. + * Defines if the active icon property of the tab must be used as a mask. */ activeIconIsMask: boolean; @@ -14582,11 +13156,6 @@ declare namespace Titanium { */ center: Point; - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - /** * View's clipping behavior. */ @@ -14597,6 +13166,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -14639,7 +13213,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -14658,6 +13232,11 @@ declare namespace Titanium { */ 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. */ @@ -14708,16 +13287,6 @@ declare namespace Titanium { */ style: number; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - /** * Animates this view. */ @@ -14739,21 +13308,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Makes this view visible. */ @@ -14955,11 +13509,6 @@ declare namespace Titanium { */ setCenter(center: Point): void; - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - /** * Gets the value of the property. */ @@ -14985,6 +13534,16 @@ declare namespace Titanium { */ 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. */ @@ -15115,6 +13674,16 @@ declare namespace Titanium { */ 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. */ @@ -15411,17 +13980,17 @@ declare namespace Titanium { separatorColor: string; /** - * The insets for table view separators (applies to all cells). This property is applicable on iOS 7 and greater. + * The insets for table view separators (applies to all cells). */ separatorInsets: any; /** - * The insets for the table view header and footer. This property is applicable on iOS 7 and greater. + * The insets for the table view header and footer. */ tableSeparatorInsets: any; /** - * The insets for table view cells (applies to all cells). This property is applicable on iOS 7 and greater. + * The insets for table view cells (applies to all cells). */ rowSeparatorInsets: any; @@ -15441,6 +14010,27 @@ declare namespace Titanium { */ style: number; + /** + * The background color of the search results (iOS-only). + */ + resultsBackgroundColor: string; + + /** + * Separator line color between rows inside search results, + * as a color name or hex triplet (iOS-only). + */ + resultsSeparatorColor: string; + + /** + * The separator style of the search results (iOS-only). + */ + resultsSeparatorStyle: number; + + /** + * The insets for search results separators (applies to all cells & iOS-only). + */ + resultsSeparatorInsets: any; + /** * Appends a single row or an array of rows to the end of the table. */ @@ -15954,6 +14544,46 @@ declare namespace Titanium { */ setStyle(style: number): void; + /** + * Gets the value of the property. + */ + getResultsBackgroundColor(): string; + + /** + * Sets the value of the property. + */ + setResultsBackgroundColor(resultsBackgroundColor: string): void; + + /** + * Gets the value of the property. + */ + getResultsSeparatorColor(): string; + + /** + * Sets the value of the property. + */ + setResultsSeparatorColor(resultsSeparatorColor: string): void; + + /** + * Gets the value of the property. + */ + getResultsSeparatorStyle(): number; + + /** + * Sets the value of the property. + */ + setResultsSeparatorStyle(resultsSeparatorStyle: number): void; + + /** + * Gets the value of the property. + */ + getResultsSeparatorInsets(): any; + + /** + * Sets the value of the property. + */ + setResultsSeparatorInsets(resultsSeparatorInsets: any): void; + } /** @@ -16473,11 +15103,21 @@ declare namespace Titanium { */ keyboardType: number; + /** + * Number of lines tall the text area height will be, if set. + */ + lines: number; + /** * Maximum length of text field input. */ maxLength: number; + /** + * Maximum line count of text field input. + */ + maxLines: number; + /** * Sets the left and right padding of this TextArea. The text will always be vertically centered. */ @@ -16784,6 +15424,16 @@ declare namespace Titanium { */ setKeyboardType(keyboardType: number): void; + /** + * Gets the value of the property. + */ + getLines(): number; + + /** + * Sets the value of the property. + */ + setLines(lines: number): void; + /** * Gets the value of the property. */ @@ -16794,6 +15444,16 @@ declare namespace Titanium { */ setMaxLength(maxLength: number): void; + /** + * Gets the value of the property. + */ + getMaxLines(): number; + + /** + * Sets the value of the property. + */ + setMaxLines(maxLines: number): void; + /** * Gets the value of the property. */ @@ -17079,6 +15739,11 @@ declare namespace Titanium { */ passwordMask: boolean; + /** + * Set password rules that should be used for this text field. + */ + passwordRules: string; + /** * Specifies the text to display on the keyboard `Return` key when this field is focused. */ @@ -17500,6 +16165,16 @@ declare namespace Titanium { */ setPasswordMask(passwordMask: boolean): void; + /** + * Gets the value of the property. + */ + getPasswordRules(): string; + + /** + * Sets the value of the property. + */ + setPasswordRules(passwordRules: string): void; + /** * Gets the value of the property. */ @@ -18044,6 +16719,11 @@ declare namespace Titanium { */ requestHeaders: any; + /** + * Manage the zoom-level of the current page. + */ + zoomLevel: number; + /** * Sets the value of [html](Titanium.UI.WebView.html) property. */ @@ -18355,6 +17035,16 @@ declare namespace Titanium { */ setRequestHeaders(requestHeaders: any): void; + /** + * Gets the value of the property. + */ + getZoomLevel(): number; + + /** + * Sets the value of the property. + */ + setZoomLevel(zoomLevel: number): void; + } /** @@ -18396,7 +17086,7 @@ declare namespace Titanium { exitOnClose: boolean; /** - * An array of supported values specified using the EXTEND_EDGE constants in . Valid on iOS 7 and greater. + * An array of supported values specified using the EXTEND_EDGE constants in . */ extendEdges: number[]; @@ -18406,12 +17096,12 @@ declare namespace Titanium { flagSecure: boolean; /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). Valid on iOS 7 and greater. + * 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. Valid on iOS 7 and greater. + * Specifies whether or not the view controller should automatically adjust its scroll view insets. */ autoAdjustScrollViewInsets: boolean; @@ -18426,6 +17116,11 @@ declare namespace Titanium { */ 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. */ @@ -18446,6 +17141,11 @@ declare namespace Titanium { */ 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. */ @@ -18477,10 +17177,15 @@ declare namespace Titanium { navBarHidden: boolean; /** - * The tintColor to apply to the navigation bar. This property is applicable on iOS 7 and greater. + * The tintColor to apply to the navigation bar. */ navTintColor: string; + /** + * The instance hosting this window. + */ + readonly navigationWindow: Titanium.UI.iOS.NavigationWindow; + /** * Callback function that overrides the default behavior when the user presses the **Back** * button. @@ -18826,6 +17531,16 @@ declare namespace Titanium { */ 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. */ @@ -18866,6 +17581,16 @@ declare namespace Titanium { */ 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. */ @@ -18936,6 +17661,11 @@ declare namespace Titanium { */ setNavTintColor(navTintColor: string): void; + /** + * Gets the value of the property. + */ + getNavigationWindow(): Titanium.UI.iOS.NavigationWindow; + /** * Gets the value of the property. */ @@ -19925,7 +18655,7 @@ declare namespace Titanium { function createSearchView(parameters?: any): Titanium.UI.Android.SearchView; /** - * An elevated view with rounded corners. + * CardView provides a layout container with rounded corners and a shadow indicating the view is elevated. */ interface CardView extends Titanium.Proxy { /** @@ -19973,21 +18703,6 @@ declare namespace Titanium { */ backgroundFocusedImage: string; - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - /** * Selected background color of the view, as a color name or hex triplet. */ @@ -19998,11 +18713,6 @@ declare namespace Titanium { */ backgroundSelectedImage: string; - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - /** * Corner radius for CardView. */ @@ -20448,36 +19158,6 @@ declare namespace Titanium { */ setBackgroundFocusedImage(backgroundFocusedImage: string): void; - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - /** * Gets the value of the property. */ @@ -20498,16 +19178,6 @@ declare namespace Titanium { */ setBackgroundSelectedImage(backgroundSelectedImage: string): void; - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - /** * Gets the value of the property. */ @@ -22832,6 +21502,11 @@ declare namespace Titanium { */ hintText: string; + /** + * Color of hint text that displays when field is empty. + */ + hintTextColor: string; + /** * Value of the search view. */ @@ -23479,6 +22154,16 @@ declare namespace Titanium { */ setHintText(hintText: string): void; + /** + * Gets the value of the property. + */ + getHintTextColor(): string; + + /** + * Sets the value of the property. + */ + setHintTextColor(hintTextColor: string): void; + /** * Gets the value of the property. */ @@ -24188,26 +22873,6 @@ declare namespace Titanium { */ const COLLISION_MODE_ITEM: number; - /** - * Returns the iOS system texture used to render the background on a group table view. - */ - const COLOR_GROUP_TABLEVIEW_BACKGROUND: string; - - /** - * Returns the iOS system texture used to render the area behind scrollable content. - */ - const COLOR_SCROLLVIEW_BACKGROUND: string; - - /** - * Returns the iOS system texture used for the back side of a view while it is being flipped. - */ - const COLOR_VIEW_FLIPSIDE_BACKGROUND: string; - - /** - * Returns the iOS system texture used to render the background of a page. - */ - const COLOR_UNDER_PAGE_BACKGROUND: string; - /** * Determines if the 3D-Touch capability "Force Touch" is supported (`true`) or not (`false`) by the device. */ @@ -24302,6 +22967,16 @@ declare namespace Titanium { */ let MODAL_PRESENTATION_CURRENT_CONTEXT: number; + /** + * View presented over its parent window. + */ + let MODAL_PRESENTATION_OVER_CURRENT_CONTEXT: number; + + /** + * Presented view covers the screen. + */ + let MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN: number; + /** * Window width and height are smaller than those of the screen and the view is centered on * the screen. @@ -24412,12 +23087,12 @@ declare namespace Titanium { const KEYBOARD_DISMISS_MODE_INTERACTIVE: number; /** - * Use with to change the search bar style. + * Use with to change the search bar style. */ const SEARCH_BAR_STYLE_PROMINENT: number; /** - * Use with to change the search bar style. + * Use with to change the search bar style. */ const SEARCH_BAR_STYLE_MINIMAL: number; @@ -24808,6 +23483,16 @@ declare namespace Titanium { */ function setMODAL_PRESENTATION_CURRENT_CONTEXT(MODAL_PRESENTATION_CURRENT_CONTEXT: number): void; + /** + * Sets the value of the property. + */ + function setMODAL_PRESENTATION_OVER_CURRENT_CONTEXT(MODAL_PRESENTATION_OVER_CURRENT_CONTEXT: number): void; + + /** + * Sets the value of the property. + */ + function setMODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN(MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN: number): void; + /** * Gets the value of the property. */ @@ -25213,6 +23898,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -25255,7 +23945,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -25274,6 +23964,11 @@ declare namespace Titanium { */ 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. */ @@ -25596,6 +24291,16 @@ declare namespace Titanium { */ 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. */ @@ -25726,6 +24431,16 @@ declare namespace Titanium { */ 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. */ @@ -26124,7 +24839,7 @@ declare namespace Titanium { * A object gives you an easy way implement some complex visual effects. * The blur effect is applied to every view the blur view is added to by default. You can also place the * blur view above other views and all visible views layered under the blur view are blurred as well. - * For more information on BlurView, please refer to the official [Apple documentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIVisualEffectView/). + * For more information on BlurView, please refer to the official [Apple documentation](https://developer.apple.com/documentation/uikit/uivisualeffectview). * Note: Apple introduced two new constants and in * iOS 10. These are internally mapped to and . */ @@ -26229,6 +24944,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -26271,7 +24991,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -26290,6 +25010,11 @@ declare namespace Titanium { */ 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. */ @@ -26607,6 +25332,16 @@ declare namespace Titanium { */ 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. */ @@ -26737,6 +25472,16 @@ declare namespace Titanium { */ 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. */ @@ -27010,11 +25755,6 @@ declare namespace Titanium { */ center: Point; - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - /** * View's clipping behavior. */ @@ -27025,6 +25765,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -27067,7 +25812,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -27086,6 +25831,11 @@ declare namespace Titanium { */ 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. */ @@ -27131,16 +25881,6 @@ declare namespace Titanium { */ selected: number; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - /** * Animates this view. */ @@ -27162,21 +25902,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Makes this view visible. */ @@ -27398,11 +26123,6 @@ declare namespace Titanium { */ setCenter(center: Point): void; - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - /** * Gets the value of the property. */ @@ -27428,6 +26148,16 @@ declare namespace Titanium { */ 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. */ @@ -27558,6 +26288,16 @@ declare namespace Titanium { */ 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. */ @@ -27675,202 +26415,6 @@ declare namespace Titanium { * local system. */ interface DocumentViewer extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * 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. This property is applicable on iOS 7 and greater. - */ - 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; - - /** - * 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; - /** * Name of the file (without the path). */ @@ -27881,488 +26425,16 @@ declare namespace Titanium { */ url: string; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - /** * Dismisses the document viewer. */ hide(options?: DocumentViewerOptions): void; - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Displays the document viewer over the current view. */ show(options?: DocumentViewerOptions): void; - /** - * Starts a batch update of this view's layout properties. - */ - startLayout(): void; - - /** - * Returns an image of the rendered view, as a Blob. - */ - toImage(callback?: (param0: Titanium.Blob) => any, honorScaleFactor?: boolean): Titanium.Blob; - - /** - * Performs a batch update of all supplied layout properties and schedules a layout pass after - * they have been updated. - */ - updateLayout(params: any): void; - - /** - * Translates a point from this view's coordinate system to another view's coordinate system. - */ - convertPointToView(point: Point, destinationView: any): Point; - - /** - * Returns the matching view of a given view ID. - */ - getViewById(id: string): Titanium.UI.View; - - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - 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. - */ - 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. */ @@ -28811,6 +26883,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -28853,7 +26930,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -28872,6 +26949,11 @@ declare namespace Titanium { */ 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. */ @@ -29204,6 +27286,16 @@ declare namespace Titanium { */ 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. */ @@ -29334,6 +27426,16 @@ declare namespace Titanium { */ 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. */ @@ -29435,7 +27537,7 @@ declare namespace Titanium { * A menu popup provides the ability to create custom tooltip options using the `items` property * covering the native `UIMenuController` class. * See also: - * * [iOS Developer Library: UIMenuController](https://developer.apple.com/library/prerelease/ios/documentation/iPhone/Reference/UIMenuController_Class/index.html) + * * [iOS Developer Library: UIMenuController](https://developer.apple.com/documentation/uikit/uimenucontroller) */ interface MenuPopup extends Titanium.Proxy { /** @@ -29575,6 +27677,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * Window's left position, in platform-specific units. */ @@ -29617,7 +27724,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -29636,6 +27743,11 @@ declare namespace Titanium { */ 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. */ @@ -29672,17 +27784,17 @@ declare namespace Titanium { zIndex: number; /** - * An array of supported values specified using the EXTEND_EDGE constants in . Valid on iOS 7 and greater. + * An array of supported values specified using the EXTEND_EDGE constants in . */ extendEdges: number[]; /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). Valid on iOS 7 and greater. + * 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. Valid on iOS 7 and greater. + * Specifies whether or not the view controller should automatically adjust its scroll view insets. */ autoAdjustScrollViewInsets: boolean; @@ -29697,6 +27809,11 @@ declare namespace Titanium { */ 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. */ @@ -29712,6 +27829,11 @@ declare namespace Titanium { */ 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. */ @@ -29732,6 +27854,11 @@ declare namespace Titanium { */ modal: boolean; + /** + * The instance hosting this window. + */ + readonly navigationWindow: Titanium.UI.iOS.NavigationWindow; + /** * Array of supported orientation modes, specified using the orientation * constants defined in . @@ -30080,6 +28207,16 @@ declare namespace Titanium { */ 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. */ @@ -30210,6 +28347,16 @@ declare namespace Titanium { */ 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. */ @@ -30335,6 +28482,16 @@ declare namespace Titanium { */ 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. */ @@ -30365,6 +28522,16 @@ declare namespace Titanium { */ 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. */ @@ -30405,6 +28572,11 @@ declare namespace Titanium { */ setModal(modal: boolean): void; + /** + * Gets the value of the property. + */ + getNavigationWindow(): Titanium.UI.iOS.NavigationWindow; + /** * Gets the value of the property. */ @@ -30859,6 +29031,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * Window's left position, in platform-specific units. */ @@ -30901,7 +29078,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -30920,6 +29097,11 @@ declare namespace Titanium { */ 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. */ @@ -30976,17 +29158,17 @@ declare namespace Titanium { barImage: string; /** - * An array of supported values specified using the EXTEND_EDGE constants in . Valid on iOS 7 and greater. + * An array of supported values specified using the EXTEND_EDGE constants in . */ extendEdges: number[]; /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). Valid on iOS 7 and greater. + * 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. Valid on iOS 7 and greater. + * Specifies whether or not the view controller should automatically adjust its scroll view insets. */ autoAdjustScrollViewInsets: boolean; @@ -31001,6 +29183,11 @@ declare namespace Titanium { */ 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. */ @@ -31021,6 +29208,11 @@ declare namespace Titanium { */ 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. */ @@ -31052,10 +29244,15 @@ declare namespace Titanium { navBarHidden: boolean; /** - * The tintColor to apply to the navigation bar. This property is applicable on iOS 7 and greater. + * The tintColor to apply to the navigation bar. */ navTintColor: string; + /** + * The instance hosting this window. + */ + readonly navigationWindow: Titanium.UI.iOS.NavigationWindow; + /** * Array of supported orientation modes, specified using the orientation * constants defined in . @@ -31143,14 +29340,14 @@ declare namespace Titanium { url: string; /** - * View for the detail view section of the SplitWindow. + * Window for the detail view section of the SplitWindow. */ - detailView: Titanium.UI.View; + detailView: Titanium.UI.Window; /** - * View for the master view section of the SplitWindow. + * Window for the master view section of the SplitWindow. */ - masterView: Titanium.UI.View; + masterView: Titanium.UI.Window; /** * Determines whether to show the master view in portrait orientation. @@ -31494,6 +29691,16 @@ declare namespace Titanium { */ 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. */ @@ -31624,6 +29831,16 @@ declare namespace Titanium { */ 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. */ @@ -31794,6 +30011,16 @@ declare namespace Titanium { */ 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. */ @@ -31834,6 +30061,16 @@ declare namespace Titanium { */ 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. */ @@ -31904,6 +30141,11 @@ declare namespace Titanium { */ setNavTintColor(navTintColor: string): void; + /** + * Gets the value of the property. + */ + getNavigationWindow(): Titanium.UI.iOS.NavigationWindow; + /** * Gets the value of the property. */ @@ -32072,22 +30314,22 @@ declare namespace Titanium { /** * Gets the value of the property. */ - getDetailView(): Titanium.UI.View; + getDetailView(): Titanium.UI.Window; /** * Sets the value of the property. */ - setDetailView(detailView: any): void; + setDetailView(detailView: Titanium.UI.Window): void; /** * Gets the value of the property. */ - getMasterView(): Titanium.UI.View; + getMasterView(): Titanium.UI.Window; /** * Sets the value of the property. */ - setMasterView(masterView: any): void; + setMasterView(masterView: Titanium.UI.Window): void; /** * Gets the value of the property. @@ -32220,11 +30462,6 @@ declare namespace Titanium { */ center: Point; - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - /** * View's clipping behavior. */ @@ -32235,6 +30472,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -32296,6 +30538,11 @@ declare namespace Titanium { */ 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. */ @@ -32355,9 +30602,9 @@ declare namespace Titanium { autorepeat: boolean; /** - * If YES, incrementing beyond sets value to . likewise, decrementing below - * sets value to . If NO, the stepper does not increment beyond nor - * does it decrement below but rather holds at those values. + * If YES, incrementing beyond sets value to . likewise, decrementing below + * sets value to . If NO, the stepper does not increment beyond nor + * does it decrement below but rather holds at those values. * The default value is NO. */ wraps: boolean; @@ -32408,16 +30655,6 @@ declare namespace Titanium { */ incrementDisabledImage: string; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - /** * Animates this view. */ @@ -32439,21 +30676,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Makes this view visible. */ @@ -32655,11 +30877,6 @@ declare namespace Titanium { */ setCenter(center: Point): void; - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - /** * Gets the value of the property. */ @@ -32685,6 +30902,16 @@ declare namespace Titanium { */ 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. */ @@ -32815,6 +31042,16 @@ declare namespace Titanium { */ 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. */ @@ -33101,11 +31338,6 @@ declare namespace Titanium { */ center: Point; - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - /** * View's clipping behavior. */ @@ -33116,6 +31348,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -33158,7 +31395,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -33177,6 +31414,11 @@ declare namespace Titanium { */ 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. */ @@ -33227,16 +31469,6 @@ declare namespace Titanium { */ style: number; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - /** * Animates this view. */ @@ -33258,21 +31490,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Makes this view visible. */ @@ -33474,11 +31691,6 @@ declare namespace Titanium { */ setCenter(center: Point): void; - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - /** * Gets the value of the property. */ @@ -33504,6 +31716,16 @@ declare namespace Titanium { */ 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. */ @@ -33634,6 +31856,16 @@ declare namespace Titanium { */ 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. */ @@ -33815,11 +32047,6 @@ declare namespace Titanium { */ center: Point; - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - /** * View's clipping behavior. */ @@ -33830,6 +32057,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * View's left position, in platform-specific units. */ @@ -33866,7 +32098,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -33885,6 +32117,11 @@ declare namespace Titanium { */ 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. */ @@ -33940,16 +32177,6 @@ declare namespace Titanium { */ translucent: boolean; - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - /** * Animates this view. */ @@ -33971,21 +32198,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Makes this view visible. */ @@ -34147,11 +32359,6 @@ declare namespace Titanium { */ setCenter(center: Point): void; - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - /** * Gets the value of the property. */ @@ -34177,6 +32384,16 @@ declare namespace Titanium { */ 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. */ @@ -34297,6 +32514,16 @@ declare namespace Titanium { */ 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. */ @@ -34963,7 +33190,7 @@ declare namespace Titanium { const GREY: number; /** - * Status bar style to use with dark backgrounds. Valid on iOS 7 and above. + * Status bar style to use with dark backgrounds. */ const LIGHT_CONTENT: number; @@ -35669,674 +33896,16 @@ declare namespace Titanium { * local system. */ interface DocumentViewer extends Titanium.Proxy { - /** - * Whether the view should be "hidden" from (i.e., ignored by) the accessibility service. - */ - accessibilityHidden: boolean; - - /** - * Briefly describes what performing an action (such as a click) on the view will do. - */ - accessibilityHint: string; - - /** - * A succint label identifying the view for the device's accessibility service. - */ - accessibilityLabel: string; - - /** - * A string describing the value (if any) of the view for the device's accessibility service. - */ - accessibilityValue: string; - - /** - * Coordinate of the view about which to pivot an animation. - */ - anchorPoint: Point; - - /** - * Current position of the view during an animation. - */ - readonly animatedCenter: Point; - - /** - * Background color of the view, as a color name or hex triplet. - */ - backgroundColor: string; - - /** - * A background gradient for the view. - */ - backgroundGradient: Gradient; - - /** - * Background image for the view, specified as a local file path or URL. - */ - backgroundImage: string; - - /** - * Determines whether to tile a background across a view. - */ - backgroundRepeat: boolean; - - /** - * Size of the left end cap. - */ - backgroundLeftCap: number; - - /** - * Size of the top end cap. - */ - backgroundTopCap: number; - - /** - * Border color of the view, as a color name or hex triplet. - */ - borderColor: string; - - /** - * Radius for the rounded corners of the view's border. - */ - borderRadius: number; - - /** - * Border width of the view. - */ - borderWidth: number; - - /** - * View's bottom position, in platform-specific units. - */ - bottom: number | string; - - /** - * View's center position, in the parent view's coordinates. - */ - center: Point; - - /** - * Array of this view's child views. - */ - readonly children: Titanium.UI.View[]; - - /** - * View's clipping behavior. - */ - clipMode: number; - - /** - * View height, in platform-specific units. - */ - height: number | string; - - /** - * 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; - - /** - * 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. This property is applicable on iOS 7 and greater. - */ - 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; - - /** - * 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; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any): void; - - /** - * Adds a child to this view's hierarchy. - */ - add(view: any[]): void; - - /** - * Animates this view. - */ - animate(animation: any, callback?: (param0: any) => any): void; - - /** - * Finishes a batch update of the View's layout properties and schedules a layout pass of the - * view tree. - */ - finishLayout(): void; - - /** - * Hides this view. - */ - hide(options?: AnimationOption): void; - - /** - * Inserts a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - insertAt(params: any): void; - - /** - * Removes a child view from this view's hierarchy. - */ - remove(view: any): void; - - /** - * Removes all child views from this view's hierarchy. - */ - removeAllChildren(): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Displays the document viewer over the current view. */ show(animated: boolean, view: any): 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; - /** * Sets the url of the document viewer. */ setUrl(url: string): void; - /** - * Gets the value of the property. - */ - getAccessibilityHidden(): boolean; - - /** - * Sets the value of the property. - */ - setAccessibilityHidden(accessibilityHidden: boolean): void; - - /** - * Gets the value of the property. - */ - getAccessibilityHint(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityHint(accessibilityHint: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityLabel(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityLabel(accessibilityLabel: string): void; - - /** - * Gets the value of the property. - */ - getAccessibilityValue(): string; - - /** - * Sets the value of the property. - */ - setAccessibilityValue(accessibilityValue: string): void; - - /** - * Gets the value of the property. - */ - getAnchorPoint(): Point; - - /** - * Sets the value of the property. - */ - setAnchorPoint(anchorPoint: Point): void; - - /** - * Gets the value of the property. - */ - getAnimatedCenter(): Point; - - /** - * Gets the value of the property. - */ - getBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setBackgroundColor(backgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundGradient(): Gradient; - - /** - * Sets the value of the property. - */ - setBackgroundGradient(backgroundGradient: Gradient): void; - - /** - * Gets the value of the property. - */ - getBackgroundImage(): string; - - /** - * Sets the value of the property. - */ - setBackgroundImage(backgroundImage: string): void; - - /** - * Gets the value of the property. - */ - getBackgroundRepeat(): boolean; - - /** - * Sets the value of the property. - */ - setBackgroundRepeat(backgroundRepeat: boolean): void; - - /** - * Gets the value of the property. - */ - getBackgroundLeftCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundLeftCap(backgroundLeftCap: number): void; - - /** - * Gets the value of the property. - */ - getBackgroundTopCap(): number; - - /** - * Sets the value of the property. - */ - setBackgroundTopCap(backgroundTopCap: number): void; - - /** - * Gets the value of the property. - */ - getBorderColor(): string; - - /** - * Sets the value of the property. - */ - setBorderColor(borderColor: string): void; - - /** - * Gets the value of the property. - */ - getBorderRadius(): number; - - /** - * Sets the value of the property. - */ - setBorderRadius(borderRadius: number): void; - - /** - * Gets the value of the property. - */ - getBorderWidth(): number; - - /** - * Sets the value of the property. - */ - setBorderWidth(borderWidth: number): void; - - /** - * Gets the value of the property. - */ - getBottom(): number | string; - - /** - * Sets the value of the property. - */ - setBottom(bottom: number): void; - - /** - * Sets the value of the property. - */ - setBottom(bottom: string): void; - - /** - * Gets the value of the property. - */ - getCenter(): Point; - - /** - * Sets the value of the property. - */ - setCenter(center: Point): void; - - /** - * Gets the value of the property. - */ - getChildren(): Titanium.UI.View[]; - - /** - * Gets the value of the property. - */ - getClipMode(): number; - - /** - * Sets the value of the property. - */ - setClipMode(clipMode: number): void; - - /** - * Gets the value of the property. - */ - getHeight(): number | string; - - /** - * Sets the value of the property. - */ - setHeight(height: number): void; - - /** - * Sets the value of the property. - */ - setHeight(height: string): void; - - /** - * Gets the value of the property. - */ - getLeft(): number | string; - - /** - * Sets the value of the property. - */ - setLeft(left: number): void; - - /** - * Sets the value of the property. - */ - setLeft(left: string): void; - - /** - * Gets the value of the property. - */ - getLayout(): string; - - /** - * Sets the value of the property. - */ - setLayout(layout: string): void; - - /** - * Gets the value of the property. - */ - getOpacity(): number; - - /** - * Sets the value of the property. - */ - setOpacity(opacity: number): void; - - /** - * Gets the value of the property. - */ - getPullBackgroundColor(): string; - - /** - * Sets the value of the property. - */ - setPullBackgroundColor(pullBackgroundColor: string): void; - - /** - * Gets the value of the property. - */ - getRight(): number | string; - - /** - * Sets the value of the property. - */ - setRight(right: number): void; - - /** - * Sets the value of the property. - */ - setRight(right: string): void; - - /** - * Gets the value of the property. - */ - getRect(): Dimension; - - /** - * Gets the value of the property. - */ - getSize(): Dimension; - - /** - * Gets the value of the property. - */ - getTintColor(): string; - - /** - * Sets the value of the property. - */ - setTintColor(tintColor: string): void; - - /** - * Gets the value of the property. - */ - getTop(): number | string; - - /** - * Sets the value of the property. - */ - setTop(top: number): void; - - /** - * Sets the value of the property. - */ - setTop(top: string): void; - - /** - * Gets the value of the property. - */ - getTouchEnabled(): boolean; - - /** - * Sets the value of the property. - */ - setTouchEnabled(touchEnabled: boolean): void; - - /** - * Gets the value of the property. - */ - getTransform(): Titanium.UI.Matrix2D | Titanium.UI.Matrix3D; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix2D): void; - - /** - * Sets the value of the property. - */ - setTransform(transform: Titanium.UI.Matrix3D): void; - - /** - * Gets the value of the property. - */ - 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; - } /** @@ -36353,6 +33922,16 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + + /** + * Adds a vertical parallax effect to the view + */ + verticalMotionEffect: any; + /** * Width of the popover. */ @@ -36388,16 +33967,6 @@ declare namespace Titanium { */ title: string; - /** - * Adds a child to the popover. - */ - add(view: any): void; - - /** - * Adds a child to the popover. - */ - add(view: any[]): void; - /** * Finishes a batch update of the View's layout properties and schedules a layout pass of the * view tree. @@ -36414,16 +33983,6 @@ declare namespace Titanium { */ insertAt(params: any): void; - /** - * Removes a child from the popover. - */ - remove(view: any): void; - - /** - * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array. - */ - replaceAt(params: any): void; - /** * Displays the popover. */ @@ -36470,6 +34029,26 @@ declare namespace Titanium { */ setHeight(height: string): void; + /** + * Gets the value of the property. + */ + getHorizontalMotionEffect(): any; + + /** + * Sets the value of the property. + */ + setHorizontalMotionEffect(horizontalMotionEffect: any): void; + + /** + * Gets the value of the property. + */ + getVerticalMotionEffect(): any; + + /** + * Sets the value of the property. + */ + setVerticalMotionEffect(verticalMotionEffect: any): void; + /** * Gets the value of the property. */ @@ -36652,6 +34231,11 @@ declare namespace Titanium { */ height: number | string; + /** + * Adds a horizontal parallax effect to the view + */ + horizontalMotionEffect: any; + /** * Window's left position, in platform-specific units. */ @@ -36689,7 +34273,7 @@ declare namespace Titanium { readonly size: Dimension; /** - * The view's tintColor. This property is applicable on iOS 7 and greater. + * The view's tintColor */ tintColor: string; @@ -36708,6 +34292,11 @@ declare namespace Titanium { */ 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. */ @@ -36764,17 +34353,17 @@ declare namespace Titanium { barImage: string; /** - * An array of supported values specified using the EXTEND_EDGE constants in . Valid on iOS 7 and greater. + * An array of supported values specified using the EXTEND_EDGE constants in . */ extendEdges: number[]; /** - * Specifies if the edges should extend beyond opaque bars (navigation bar, tab bar, toolbar). Valid on iOS 7 and greater. + * 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. Valid on iOS 7 and greater. + * Specifies whether or not the view controller should automatically adjust its scroll view insets. */ autoAdjustScrollViewInsets: boolean; @@ -36789,6 +34378,11 @@ declare namespace Titanium { */ 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. */ @@ -36809,6 +34403,11 @@ declare namespace Titanium { */ 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. */ @@ -36840,10 +34439,15 @@ declare namespace Titanium { navBarHidden: boolean; /** - * The tintColor to apply to the navigation bar. This property is applicable on iOS 7 and greater. + * The tintColor to apply to the navigation bar. */ navTintColor: string; + /** + * The instance hosting this window. + */ + readonly navigationWindow: Titanium.UI.iOS.NavigationWindow; + /** * Array of supported orientation modes, specified using the orientation * constants defined in . @@ -37257,6 +34861,16 @@ declare namespace Titanium { */ 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. */ @@ -37377,6 +34991,16 @@ declare namespace Titanium { */ 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. */ @@ -37547,6 +35171,16 @@ declare namespace Titanium { */ 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. */ @@ -37587,6 +35221,16 @@ declare namespace Titanium { */ 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. */ @@ -37657,6 +35301,11 @@ declare namespace Titanium { */ setNavTintColor(navTintColor: string): void; + /** + * Gets the value of the property. + */ + getNavigationWindow(): Titanium.UI.iOS.NavigationWindow; + /** * Gets the value of the property. */ @@ -37930,16 +35579,6 @@ declare namespace Titanium { */ let appSupportsShakeToEdit: boolean; - /** - * Determines whether the status bar is hidden. - */ - const statusBarHidden: boolean; - - /** - * Determines the status bar color style. - */ - const statusBarStyle: number; - /** * Adds the specified callback as an event listener for the named event. */ @@ -37960,16 +35599,6 @@ declare namespace Titanium { */ function applyProperties(props: any): void; - /** - * Hides the status bar. - */ - function hideStatusBar(params?: hideStatusBarParams): void; - - /** - * Shows the status bar. - */ - function showStatusBar(params?: showStatusBarParams): void; - /** * Gets the value of the property. */ @@ -38005,16 +35634,6 @@ declare namespace Titanium { */ function setAppSupportsShakeToEdit(appSupportsShakeToEdit: boolean): void; - /** - * Gets the value of the property. - */ - function getStatusBarHidden(): boolean; - - /** - * Gets the value of the property. - */ - function getStatusBarStyle(): number; - /** * 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 @@ -38584,103 +36203,6 @@ declare namespace Titanium { } - /** - * A set of constants for the status bar style. - */ - namespace StatusBar { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * No animation style, when the status bar is hidden or shown. - */ - const ANIMATION_STYLE_NONE: number; - - /** - * Slide animation style, when the status bar is hidden or shown. - */ - const ANIMATION_STYLE_SLIDE: number; - - /** - * Fade animation style, when the status bar is hidden or shown. - */ - const ANIMATION_STYLE_FADE: number; - - /** - * Default status bar style. - */ - const DEFAULT: number; - - /** - * Gray-colored status bar style. - */ - const GRAY: number; - - /** - * Gray-colored status bar style. - */ - const GREY: number; - - /** - * Status bar style to use with dark backgrounds. Valid on iOS 7 and above. - */ - const LIGHT_CONTENT: number; - - /** - * Opaque black-colored status bar style. - */ - const OPAQUE_BLACK: number; - - /** - * Translucent black-colored status bar style, which provides some degree of transparency to - * the device background. - */ - const TRANSLUCENT_BLACK: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - } - /** * A set of constants for creating standard iOS system buttons. */ @@ -39621,10 +37143,15 @@ declare namespace Titanium { let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; /** - * JSON representation of the last analytics event generated. + * JSON representation of the last Analytics event generated. */ const lastEvent: string; + /** + * Allows the user to opt out from Analytics during runtime to comply to GPDR. + */ + let optedOut: boolean; + /** * Sends a generic event for this application session. * **Not displayed in Analytics UI**. @@ -39637,7 +37164,7 @@ declare namespace Titanium { function featureEvent(name: string, data?: any): number; /** - * Sets a list of events that will not be sent to the analytics server. + * Sets a list of events that will not be sent to the Analytics server. */ function filterEvents(events: ReadonlyArray): void; @@ -39699,6 +37226,16 @@ declare namespace Titanium { */ function getLastEvent(): string; + /** + * Gets the value of the property. + */ + function getOptedOut(): boolean; + + /** + * Sets the value of the property. + */ + function setOptedOut(optedOut: boolean): void; + } /** @@ -39960,11 +37497,6 @@ declare namespace Titanium { */ const ACTION_PACKAGE_DATA_CLEARED: string; - /** - * Trigger the download and eventual installation of a package. - */ - const ACTION_PACKAGE_INSTALL: string; - /** * An existing application package has been removed from the device. */ @@ -40090,16 +37622,6 @@ declare namespace Titanium { */ const ACTION_UID_REMOVED: string; - /** - * The device has entered USB Mass Storage mode. - */ - const ACTION_UMS_CONNECTED: string; - - /** - * The device has exited USB Mass Storage mode. - */ - const ACTION_UMS_DISCONNECTED: string; - /** * Sent when the user is present after device wakes up. */ @@ -40387,7 +37909,7 @@ declare namespace Titanium { const FLAG_ACTIVITY_NO_HISTORY: number; /** - * Disables the [onUserLeaveHint()](http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()) callback. + * Disables the [onUserLeaveHint()](https://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()) callback. */ const FLAG_ACTIVITY_NO_USER_ACTION: number; @@ -41685,7 +39207,7 @@ declare namespace Titanium { /** * Get a boolean property from this Intent. */ - getBooleanExtra(name: string): boolean; + getBooleanExtra(name: string, defaultValue: boolean): boolean; /** * Get the Data URI from this `Intent`. @@ -41695,17 +39217,17 @@ declare namespace Titanium { /** * Get a double property from this `Intent`. */ - getDoubleExtra(name: string): number; + getDoubleExtra(name: string, defaultValue: number): number; /** * Get an integer property from this `Intent`. */ - getIntExtra(name: string): number; + getIntExtra(name: string, defaultValue: number): number; /** * Get a long property from this `Intent`. */ - getLongExtra(name: string): number; + getLongExtra(name: string, defaultValue: number): number; /** * Get a string property from this `Intent`. @@ -42718,6 +40240,16 @@ declare namespace Titanium { */ readonly serviceInstanceId: number; + /** + * Puts the service into the "background" state and removes its foreground notification. + */ + foregroundCancel(): void; + + /** + * Puts the service into the "foreground" state and displays a notification. + */ + foregroundNotify(id: number, notification: Titanium.Android.Notification): void; + /** * Starts the Service. */ @@ -42768,6 +40300,16 @@ declare namespace Titanium { */ getState(): number; + /** + * Returns the Tile's current label. + */ + getLabel(): string; + + /** + * Returns 'true' if the device is currently locked, 'false' otherwise. + */ + isLocked(): boolean; + /** * Returns 'true' if the device is in secure state, 'false' otherwise. */ @@ -42801,7 +40343,7 @@ declare namespace Titanium { } /** - * The Titanium binding of [Android RemoteViews](http://developer.android.com/reference/android/widget/RemoteViews.html). + * The Titanium binding of [Android RemoteViews](https://developer.android.com/reference/android/widget/RemoteViews.html). */ interface RemoteViews extends Titanium.Proxy { /** @@ -42817,7 +40359,7 @@ declare namespace Titanium { /** * Calls a method taking a single `boolean` argument on a view in the remote view * hierarchy. See Android's documentation for - * [setBoolean](http://developer.android.com/reference/android/widget/RemoteViews.html#setBoolean(int, java.lang.String, boolean)). + * [setBoolean](https://developer.android.com/reference/android/widget/RemoteViews.html#setBoolean(int, java.lang.String, boolean)). */ setBoolean(viewId: number, methodName: string, value: boolean): void; @@ -42922,6 +40464,16 @@ declare namespace Titanium { */ readonly serviceInstanceId: number; + /** + * Puts the service into the "background" state and removes its foreground notification. + */ + foregroundCancel(): void; + + /** + * Puts the service into the "foreground" state and displays a notification. + */ + foregroundNotify(id: number, notification: Titanium.Android.Notification): void; + /** * Starts the Service. */ @@ -43651,89 +41203,157 @@ declare namespace Titanium { /** * Animation resources. See - * [R.anim](http://developer.android.com/reference/android/R.anim.html) + * [R.anim](https://developer.android.com/reference/android/R.anim.html) * in the Android Developer Reference. */ const anim: any; /** - * Array resources. See [R.array](http://developer.android.com/reference/android/R.array.html) + * Animator resources. See + * [R.animator](https://developer.android.com/reference/android/R.animator.html) + * in the Android Developer Reference. + */ + const animator: any; + + /** + * Array resources. See [R.array](https://developer.android.com/reference/android/R.array.html) * in the Android Developer Reference. */ const array: any; /** * Attribute resources. See - * [R.attr](http://developer.android.com/reference/android/R.attr.html) + * [R.attr](https://developer.android.com/reference/android/R.attr.html) * in the Android Developer Reference. */ const attr: any; + /** + * Boolean resources. See + * [R.bool](https://developer.android.com/reference/android/R.bool.html) + * in the Android Developer Reference. + */ + const bool: any; + /** * Color resources. See - * [R.color](http://developer.android.com/reference/android/R.color.html) + * [R.color](https://developer.android.com/reference/android/R.color.html) * in the Android Developer Reference. */ const color: any; /** * Dimension resources. See - * [http://developer.android.com/reference/android/R.dimen.html](http://developer.android.com/reference/android/R.dimen.html) + * [https://developer.android.com/reference/android/R.dimen.html](https://developer.android.com/reference/android/R.dimen.html) * in the Android Developer Reference. */ const dimen: any; /** * Drawable resources. See - * [R.drawable](http://developer.android.com/reference/android/R.drawable.html) + * [R.drawable](https://developer.android.com/reference/android/R.drawable.html) * in the Android Developer Reference. - * Accessing drawables using Ti.Android.R.drawable is deprecated and not a recommended practice since the system provided - * drawables can be removed across Android versions. Prefer to copy the images to application res folder. */ const drawable: any; + /** + * Fraction resources. See + * [R.fraction](https://developer.android.com/reference/android/R.fraction.html) + * in the Android Developer Reference. + */ + const fraction: any; + /** * ID resources. See - * [R.id](http://developer.android.com/reference/android/R.id.html) + * [R.id](https://developer.android.com/reference/android/R.id.html) * in the Android Developer Reference. */ const id: any; /** * Integer resources. See - * [R.integer](http://developer.android.com/reference/android/R.integer.html) + * [R.integer](https://developer.android.com/reference/android/R.integer.html) * in the Android Developer Reference. */ const integer: any; + /** + * Interpolator resources. See + * [R.fraction](https://developer.android.com/reference/android/R.interpolator.html) + * in the Android Developer Reference. + */ + const interpolator: any; + /** * Layout resources. See - * [R.layout](http://developer.android.com/reference/android/R.layout.html) + * [R.layout](https://developer.android.com/reference/android/R.layout.html) * in the Android Developer Reference. */ const layout: any; + /** + * Menu resources. See + * [R.menu](https://developer.android.com/reference/android/R.menu.html) + * in the Android Developer Reference. + */ + const menu: any; + + /** + * Mipmap resources. See + * [R.mipmap](https://developer.android.com/reference/android/R.mipmap.html) + * in the Android Developer Reference. + */ + const mipmap: any; + + /** + * Plurals resources. See + * [R.plurals](https://developer.android.com/reference/android/R.plurals.html) + * in the Android Developer Reference. + */ + const plurals: any; + + /** + * Raw resources. See + * [R.raw](https://developer.android.com/reference/android/R.raw.html) + * in the Android Developer Reference. + */ + const raw: any; + /** * String resources. See - * [R.string](http://developer.android.com/reference/android/R.string.html) + * [R.string](https://developer.android.com/reference/android/R.string.html) * in the Android Developer Reference. */ const string: any; /** * Style resources. See - * [R.style](http://developer.android.com/reference/android/R.style.html) + * [R.style](https://developer.android.com/reference/android/R.style.html) * in the Android Developer Reference. */ const style: any; /** * Styleable reosurces. See - * [R.styleable](http://developer.android.com/reference/android/R.styleable.html) + * [R.styleable](https://developer.android.com/reference/android/R.styleable.html) * in the Android Developer Reference. */ const styleable: any; + /** + * Transition resources. See + * [R.transition](https://developer.android.com/reference/android/R.transition.html) + * in the Android Developer Reference. + */ + const transition: any; + + /** + * XML resources. See + * [R.xml](https://developer.android.com/reference/android/R.xml.html) + * in the Android Developer Reference. + */ + const xml: any; + /** * Adds the specified callback as an event listener for the named event. */ @@ -44425,7 +42045,25 @@ declare namespace Titanium { const USER_NOTIFICATION_TYPE_ALERT: number; /** - * The action will execute in background. Use with the + * The ability to play sounds for critical alerts. + * Use with the [types](UserNotificationSettings.types) property. + */ + const USER_NOTIFICATION_TYPE_CRITICAL_ALERT: number; + + /** + * The ability to post non-interrupting notifications provisionally to the Notification Center. + * Use with the [types](UserNotificationSettings.types) property. + */ + const USER_NOTIFICATION_TYPE_PROVISIONAL: number; + + /** + * An option indicating the system should display a button for in-app notification settings. + * Use with the [types](UserNotificationSettings.types) property. + */ + const USER_NOTIFICATION_TYPE_PROVIDES_APP_NOTIFICATION_SETTINGS: number; + + /** + * The action will execute in background. Use with the * [activationMode](Titanium.App.iOS.UserNotificationAction.activationMode) property. */ const USER_NOTIFICATION_ACTIVATION_MODE_BACKGROUND: number; @@ -44446,6 +42084,82 @@ declare namespace Titanium { */ const USER_NOTIFICATION_BEHAVIOR_TEXTINPUT: number; + /** + * The user has not yet made a choice regarding whether the application may post + * user notifications. + */ + const USER_NOTIFICATION_AUTHORIZATION_STATUS_NOT_DETERMINED: number; + + /** + * The application is authorized to post user notifications. + */ + const USER_NOTIFICATION_AUTHORIZATION_STATUS_AUTHORIZED: number; + + /** + * The application is not authorized to post user notifications. + */ + const USER_NOTIFICATION_AUTHORIZATION_STATUS_DENIED: number; + + /** + * The application is provisionally authorized to post non-interruptive user notifications. + */ + const USER_NOTIFICATION_AUTHORIZATION_STATUS_PROVISIONAL: number; + + /** + * The application does not support this notification type. + */ + const USER_NOTIFICATION_SETTING_NOT_SUPPORTED: number; + + /** + * The notification setting is turned on. + */ + const USER_NOTIFICATION_SETTING_ENABLED: number; + + /** + * The notification setting is turned off. + */ + const USER_NOTIFICATION_SETTING_DISABLED: number; + + /** + * No banner or alert dialog is presented when the notification is received. + */ + const USER_NOTIFICATION_ALERT_STYLE_NONE: number; + + /** + * A alert dialog is presented when the notification is received. + */ + const USER_NOTIFICATION_ALERT_STYLE_ALERT: number; + + /** + * A banner is presented when the notification is received. + */ + const USER_NOTIFICATION_ALERT_STYLE_BANNER: number; + + /** + * No options. + */ + const USER_NOTIFICATION_CATEGORY_OPTION_NONE: number; + + /** + * Send dismiss actions to the UNUserNotificationCenter object's delegate for handling. + */ + const USER_NOTIFICATION_CATEGORY_OPTION_CUSTOM_DISMISS_ACTION: number; + + /** + * Allow CarPlay to display notifications of this type. + */ + const USER_NOTIFICATION_CATEGORY_OPTION_ALLOW_IN_CARPLAY: number; + + /** + * Show the notification's title, even if the user has disabled notification previews for the app. + */ + const USER_NOTIFICATION_CATEGORY_OPTION_HIDEEN_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; + /** * Uniform type identifier for all text types. */ @@ -44613,14 +42327,12 @@ declare namespace Titanium { const UTTYPE_APPLE_PROTECTED_MPEG4_AUDIO: string; /** - * Notification types and user notification categories the application is registered to use - * (available on iOS 8 and later). + * Notification types and user notification categories the application is registered to use. */ const currentUserNotificationSettings: UserNotificationSettings; /** * Provides an Array of the NSUserActivityTypes keys defined within your Titanium project. - * (available on iOS 8 and later). */ const supportedUserActivityTypes: string[]; @@ -44675,8 +42387,7 @@ declare namespace Titanium { function registerBackgroundService(params: any): Titanium.App.iOS.BackgroundService; /** - * Registers the application to use the requested notification types and categories - * (for devices running iOS 8 or later). + * Registers the application to use the requested notification types and categories. */ function registerUserNotificationSettings(params: UserNotificationSettings): void; @@ -46729,13 +44440,112 @@ declare namespace Titanium { */ actionsForMinimalContext: Titanium.App.iOS.UserNotificationAction[]; + /** + * A format string for the summary description used when the system groups the category's notifications. + */ + categorySummaryFormat: string; + /** * Identifier for this category. */ identifier: string; + /** + * The intents related to notifications of this category. + */ + intentIdentifiers: string[]; + + /** + * The placeholder text to display when notification previews are disabled for the app. + */ + hiddenPreviewsBodyPlaceholder: string; + + /** + * Options for how to handle notifications of this type. + */ + options: number[]; + } + + /** + * 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. + */ + function getPendingNotifications(callback: (param0: UserNotificationCallbackResponse) => any): void; + + /** + * Fetches the delivered notifications asynchronously. + */ + function getDeliveredNotifications(callback: (param0: UserNotificationCallbackResponse) => any): void; + + /** + * 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; + + /** + * Removes the specified delivered notifications from the notification-center. + * If no notifications are specified, all delivered notifications will be removed. + */ + function removeDeliveredNotifications(): 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. + */ + function getApiName(): string; + + } } } @@ -47439,7 +45249,7 @@ declare namespace Titanium { readonly hidden: boolean; /** - * Identifier of this calendar. Available only in iOS 5.0 and above. + * Identifier of this calendar. */ readonly id: string; @@ -47631,12 +45441,7 @@ declare namespace Titanium { title: string; /** - * Recurrence rule associated with the event. (Available in iOS 4.0 through iOS 5.1.) - */ - recurrenceRule: Titanium.Calendar.RecurrenceRule; - - /** - * The recurrence rules for the calendar item. (Available in iOS 5.1 and above.) + * The recurrence rules for the calendar item. */ recurrenceRules: Titanium.Calendar.RecurrenceRule[]; @@ -47812,16 +45617,6 @@ declare namespace Titanium { */ setTitle(title: string): void; - /** - * Gets the value of the property. - */ - getRecurrenceRule(): Titanium.Calendar.RecurrenceRule; - - /** - * Sets the value of the property. - */ - setRecurrenceRule(recurrenceRule: Titanium.Calendar.RecurrenceRule): void; - /** * Gets the value of the property. */ @@ -48391,7 +46186,7 @@ declare namespace Titanium { name: string; /** - * Record identifier of the group. Single value. Deprecated for >= iOS9. + * Record identifier of the group. Single value. Deprecated for iOS 9 and later. */ recordId: number; @@ -49299,6 +47094,11 @@ declare namespace Titanium { */ function getFile(...paths: string[]): Titanium.Filesystem.File; + /** + * Returns a `File` object representing the file identified by the path arguments. + */ + function getFile(...paths: string[]): Titanium.Filesystem.File; + /** * Returns a `Blob` object representing the asset catalog image identified by the path arguments. */ @@ -49491,7 +47291,7 @@ declare namespace Titanium { /** * Creates a directory at the path identified by this file object. */ - createDirectory(): boolean; + createDirectory(recursive?: boolean): boolean; /** * Creates a file at the path identified by this file object. @@ -49503,6 +47303,11 @@ declare namespace Titanium { */ createTimestamp(): number; + /** + * Returns the creation Date for the file identified by this file object. + */ + createdAt(): Date; + /** * Deletes the directory identified by this file object. */ @@ -49556,6 +47361,11 @@ declare namespace Titanium { */ modificationTimestamp(): number; + /** + * Returns the last modification Date for the file identified by this file object. + */ + modifiedAt(): Date; + /** * Moves the file identified by this file object to another path. */ @@ -49923,17 +47733,17 @@ declare namespace Titanium { */ let preferredProvider: string; - /** - * Text to display in the permission dialog when requesting location - * services. - */ - let purpose: string; - /** * Determines whether the compass calibration UI is shown if needed. */ let showCalibration: boolean; + /** + * Specifies that an indicator be shown when the app makes use of continuous + * background location updates. + */ + let showBackgroundLocationIndicator: boolean; + /** * Indicates if the location changes should be updated only when a significant change * in location occurs. @@ -49946,12 +47756,12 @@ declare namespace Titanium { let allowsBackgroundLocationUpdates: boolean; /** - * The type of user activity to be associated with the location updates. Available in iOS 6.0 and later. + * The type of user activity to be associated with the location updates. */ let activityType: number; /** - * Indicates whether the location updates may be paused. Available in iOS 6.0 and later. + * Indicates whether the location updates may be paused. */ let pauseLocationUpdateAutomatically: boolean; @@ -50110,16 +47920,6 @@ declare namespace Titanium { */ function setPreferredProvider(preferredProvider: string): void; - /** - * Gets the value of the property. - */ - function getPurpose(): string; - - /** - * Sets the value of the property. - */ - function setPurpose(purpose: string): void; - /** * Gets the value of the property. */ @@ -50130,6 +47930,16 @@ declare namespace Titanium { */ function setShowCalibration(showCalibration: boolean): void; + /** + * Gets the value of the property. + */ + function getShowBackgroundLocationIndicator(): boolean; + + /** + * Sets the value of the property. + */ + function setShowBackgroundLocationIndicator(showBackgroundLocationIndicator: boolean): void; + /** * Gets the value of the property. */ @@ -50649,657 +48459,6 @@ declare namespace Titanium { } - /** - * The top level Map module. The Map module is used for creating in-application native maps. - */ - namespace Map { - /** - * Indicates if the proxy will bubble an event to its parent. - */ - let bubbleParent: boolean; - - /** - * The name of the API that this proxy corresponds to. - */ - const apiName: string; - - /** - * The Window or TabGroup whose Activity lifecycle should be triggered on the proxy. - */ - let lifecycleContainer: Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Used in the [pinchangedragstate](Titanium.Map.View.pinchangedragstate) event - * to indicate that the annotation is not being dragged. - */ - const ANNOTATION_DRAG_STATE_NONE: number; - - /** - * Used in the [pinchangedragstate](Titanium.Map.View.pinchangedragstate) event - * to indicate that the user started dragging the annotation. - */ - const ANNOTATION_DRAG_STATE_START: number; - - /** - * Used in the [pinchangedragstate](Titanium.Map.View.pinchangedragstate) event - * to indicate that the user moved the annotation. - */ - const ANNOTATION_DRAG_STATE_DRAG: number; - - /** - * Used in the [pinchangedragstate](Titanium.Map.View.pinchangedragstate) event - * to indicate that the user canceled the drag action. - */ - const ANNOTATION_DRAG_STATE_CANCEL: number; - - /** - * Used in the [pinchangedragstate](Titanium.Map.View.pinchangedragstate) event - * to indicate that the user finished moving the annotation. - */ - const ANNOTATION_DRAG_STATE_END: number; - - /** - * Color constant used to set a map annotation to green via the - * property. - */ - const ANNOTATION_GREEN: number; - - /** - * Color constant used to set a map annotation to purple via the - * property. - */ - const ANNOTATION_PURPLE: number; - - /** - * Color constant used to set a map annotation to red via the - * property. - */ - const ANNOTATION_RED: number; - - /** - * Used with [mapType](Titanium.Map.View.mapType) to display a satellite image of the area with road and road name information layered on top. - */ - const HYBRID_TYPE: number; - - /** - * Used with [mapType](Titanium.Map.View.mapType) to display satellite imagery of the area. - */ - const SATELLITE_TYPE: number; - - /** - * Used with [mapType](Titanium.Map.View.mapType) to display a street map that shows the position of all roads and some road names. - */ - const STANDARD_TYPE: number; - - /** - * Adds the specified callback as an event listener for the named event. - */ - function addEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Removes the specified callback as an event listener for the named event. - */ - function removeEventListener(name: string, callback: (param0: any) => any): void; - - /** - * Fires a synthesized event to any registered listeners. - */ - function fireEvent(name: string, event: any): void; - - /** - * Applies the properties to the proxy. - */ - function applyProperties(props: any): void; - - /** - * Creates and returns an instance of . - */ - function createAnnotation(parameters?: any): Titanium.Map.Annotation; - - /** - * Gets the value of the property. - */ - function getBubbleParent(): boolean; - - /** - * Sets the value of the property. - */ - function setBubbleParent(bubbleParent: boolean): void; - - /** - * Gets the value of the property. - */ - function getApiName(): string; - - /** - * Gets the value of the property. - */ - function getLifecycleContainer(): Titanium.UI.Window | Titanium.UI.TabGroup; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.Window): void; - - /** - * Sets the value of the property. - */ - function setLifecycleContainer(lifecycleContainer: Titanium.UI.TabGroup): void; - - /** - * Creates and returns an instance of . - */ - function createView(parameters?: any): Titanium.Map.View; - - /** - * Represents a labeled point of interest on the map that the user can click on. - */ - interface Annotation extends Titanium.Proxy { - /** - * Boolean to indicate whether the pin should animate when dropped. - */ - animate: boolean; - - /** - * Defines whether the annotation view is able to display extra information in a callout bubble. - */ - canShowCallout: boolean; - - /** - * Defines a center offset point for the annotation. - */ - centerOffset: Point; - - /** - * Defines a custom view to be used by the annotation. - */ - customView: Titanium.UI.View; - - /** - * Determines whether the pin can be dragged by the user. - */ - draggable: boolean; - - /** - * Image to use for the the pin. - */ - image: string | Titanium.Blob; - - /** - * Latitude of the annotation, in decimal degrees. - */ - latitude: number; - - /** - * Longitude of the annotation, in decimal degrees. - */ - longitude: number; - - /** - * Left button image on the annotation, specified as an image URL or an iOS - * button constant. - */ - leftButton: number | string; - - /** - * Left view that is displayed on the annotation. - */ - leftView: Titanium.UI.View; - - /** - * Image for the pin instead of the default image. - */ - pinImage: string; - - /** - * Pin color. Specify one of: , - * or . - */ - pincolor: number; - - /** - * Right button image on the annotation, specified as an image URL or an iOS - * button constant. - */ - rightButton: number | string; - - /** - * Right view that is displayed on the annotation. - */ - rightView: Titanium.UI.View; - - /** - * Secondary title of the annotation view. - */ - subtitle: string; - - /** - * Key in the locale file to use for the subtitle property. - */ - subtitleid: string; - - /** - * Primary title of the annotation view. - */ - title: string; - - /** - * Key in the locale file to use for the title property. - */ - titleid: string; - - /** - * Gets the value of the property. - */ - getAnimate(): boolean; - - /** - * Sets the value of the property. - */ - setAnimate(animate: boolean): void; - - /** - * Gets the value of the property. - */ - getCanShowCallout(): boolean; - - /** - * Sets the value of the property. - */ - setCanShowCallout(canShowCallout: boolean): void; - - /** - * Gets the value of the property. - */ - getCenterOffset(): Point; - - /** - * Sets the value of the property. - */ - setCenterOffset(centerOffset: Point): void; - - /** - * Gets the value of the property. - */ - getCustomView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setCustomView(customView: any): void; - - /** - * Gets the value of the property. - */ - getDraggable(): boolean; - - /** - * Sets the value of the property. - */ - setDraggable(draggable: boolean): void; - - /** - * Gets the value of the property. - */ - getImage(): string | Titanium.Blob; - - /** - * Sets the value of the property. - */ - setImage(image: string): void; - - /** - * Sets the value of the property. - */ - setImage(image: Titanium.Blob): void; - - /** - * Gets the value of the property. - */ - getLatitude(): number; - - /** - * Sets the value of the property. - */ - setLatitude(latitude: number): void; - - /** - * Gets the value of the property. - */ - getLongitude(): number; - - /** - * Sets the value of the property. - */ - setLongitude(longitude: number): void; - - /** - * Gets the value of the property. - */ - getLeftButton(): number | string; - - /** - * Sets the value of the property. - */ - setLeftButton(leftButton: number): void; - - /** - * Sets the value of the property. - */ - setLeftButton(leftButton: string): void; - - /** - * Gets the value of the property. - */ - getLeftView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setLeftView(leftView: any): void; - - /** - * Gets the value of the property. - */ - getPinImage(): string; - - /** - * Sets the value of the property. - */ - setPinImage(pinImage: string): void; - - /** - * Gets the value of the property. - */ - getPincolor(): number; - - /** - * Sets the value of the property. - */ - setPincolor(pincolor: number): void; - - /** - * Gets the value of the property. - */ - getRightButton(): number | string; - - /** - * Sets the value of the property. - */ - setRightButton(rightButton: number): void; - - /** - * Sets the value of the property. - */ - setRightButton(rightButton: string): void; - - /** - * Gets the value of the property. - */ - getRightView(): Titanium.UI.View; - - /** - * Sets the value of the property. - */ - setRightView(rightView: any): void; - - /** - * Gets the value of the property. - */ - getSubtitle(): string; - - /** - * Sets the value of the property. - */ - setSubtitle(subtitle: string): void; - - /** - * Gets the value of the property. - */ - getSubtitleid(): string; - - /** - * Sets the value of the property. - */ - setSubtitleid(subtitleid: 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. - */ - getTitleid(): string; - - /** - * Sets the value of the property. - */ - setTitleid(titleid: string): void; - - } - - /** - * Map view is used for embedding native mapping capabilities as a view in your application. - */ - interface View extends Titanium.UI.View { - /** - * An array of annotations to add to the map. - */ - annotations: Titanium.Map.Annotation[]; - - /** - * Hide the annotation when clicking in the map view outside of the annotation. - */ - hideAnnotationWhenTouchMap: boolean; - - /** - * Map type, either: , or . - */ - mapType: number; - - /** - * A dictionary specifying the location and zoom level of the map. - * On the iOS platform, this property can only be set after the map view is loaded. - * To ensure this property is set when the application starts, wait for the - * [complete][Titanium.UI.Map-event-complete] event. - */ - region: MapRegionType; - - /** - * Boolean indicating if the map region should be modified - * to fit the map view's aspect ratio. - */ - regionFit: boolean; - - /** - * Boolean indicating if the user's current device location should be shown on the - * map. - */ - userLocation: boolean; - - /** - * The amount of north-to-south distance displayed on the map, measured in decimal degrees. - */ - readonly latitudeDelta: number; - - /** - * The amount of east-to-west distance displayed on the map, measured in decimal degrees. - */ - readonly longitudeDelta: number; - - /** - * Adds a new annotation to the map. - */ - addAnnotation(annotation: any): void; - - /** - * Adds one or more new annotations to the map. - */ - addAnnotations(annotations: any): void; - - /** - * Adds a route to the map. - */ - addRoute(route: MapRouteType): void; - - /** - * Deselects the specified annotation, so the main annotation is hidden and only - * a pin image is shown. - */ - deselectAnnotation(annotation: string): void; - - /** - * Deselects the specified annotation, so the main annotation is hidden and only - * a pin image is shown. - */ - deselectAnnotation(annotation: Titanium.Map.Annotation): void; - - /** - * Removes all annotations from the map. - */ - removeAllAnnotations(): void; - - /** - * Removes an existing annotation from the map. - */ - removeAnnotation(annotation: string): void; - - /** - * Removes an existing annotation from the map. - */ - removeAnnotation(annotation: Titanium.Map.Annotation): void; - - /** - * Removes one or more existing annotations from the map. - */ - removeAnnotations(annotations: ReadonlyArray): void; - - /** - * Removes one or more existing annotations from the map. - */ - removeAnnotations(annotations: ReadonlyArray): void; - - /** - * Remove a previously added route. - */ - removeRoute(route: MapRouteType): void; - - /** - * Selects the annoation, showing the full annotation. - */ - selectAnnotation(annotation: string): void; - - /** - * Selects the annoation, showing the full annotation. - */ - selectAnnotation(annotation: Titanium.Map.Annotation): void; - - /** - * Sets the map location and zoom level. - */ - setLocation(location: MapLocationType): void; - - /** - * Sets the type of map (satellite, hybrid, or standard). - */ - setMapType(mapType: number): void; - - /** - * Zooms in or out of the map. - */ - zoom(level: number): void; - - /** - * Gets the value of the property. - */ - getAnimate(): boolean; - - /** - * Sets the value of the property. - */ - setAnimate(animate: boolean): void; - - /** - * Gets the value of the property. - */ - getAnnotations(): Titanium.Map.Annotation[]; - - /** - * Sets the value of the property. - */ - setAnnotations(annotations: ReadonlyArray): void; - - /** - * Gets the value of the property. - */ - getHideAnnotationWhenTouchMap(): boolean; - - /** - * Sets the value of the property. - */ - setHideAnnotationWhenTouchMap(hideAnnotationWhenTouchMap: boolean): void; - - /** - * Gets the value of the property. - */ - getMapType(): number; - - /** - * Sets the value of the property. - */ - setMapType(mapType: number): void; - - /** - * Gets the value of the property. - */ - getRegion(): MapRegionType; - - /** - * Sets the value of the property. - */ - setRegion(region: MapRegionType): void; - - /** - * Gets the value of the property. - */ - getRegionFit(): boolean; - - /** - * Sets the value of the property. - */ - setRegionFit(regionFit: boolean): void; - - /** - * Gets the value of the property. - */ - getUserLocation(): boolean; - - /** - * Sets the value of the property. - */ - setUserLocation(userLocation: boolean): void; - - /** - * Gets the value of the property. - */ - getLatitudeDelta(): number; - - /** - * Gets the value of the property. - */ - getLongitudeDelta(): number; - - } - - } - /** * The top-level Media module. */ @@ -51370,7 +48529,7 @@ declare namespace Titanium { const AUDIO_FORMAT_AAC: number; /** - * Audio format 8-bit aLaw encoding. + * Audio format 8-bit [aLaw encoding](https://en.wikipedia.org/wiki/A-law_algorithm). */ const AUDIO_FORMAT_ALAW: number; @@ -51380,7 +48539,7 @@ declare namespace Titanium { const AUDIO_FORMAT_APPLE_LOSSLESS: number; /** - * Audio format iLBC encoding. + * Audio format [iLBC encoding](https://en.wikipedia.org/wiki/Internet_Low_Bitrate_Codec). */ const AUDIO_FORMAT_ILBC: number; @@ -51390,12 +48549,12 @@ declare namespace Titanium { const AUDIO_FORMAT_IMA4: number; /** - * Audio format 16-bit, linear PCM encoding. + * Audio format 16-bit, [linear PCM encoding](https://en.wikipedia.org/wiki/Pulse-code_modulation). */ const AUDIO_FORMAT_LINEAR_PCM: number; /** - * Audio format 8-bit muLaw encoding. + * Audio format 8-bit [muLaw encoding](https://en.wikipedia.org/wiki/M-law_algorithm). */ const AUDIO_FORMAT_ULAW: number; @@ -51579,6 +48738,51 @@ declare namespace Titanium { */ const AUDIO_UNKNOWN: number; + /** + * Audio data is being buffered from the network. + */ + const AUDIO_STATE_BUFFERING: number; + + /** + * Audio playback is being initialized. + */ + const AUDIO_STATE_INITIALIZED: number; + + /** + * Playback is paused. + */ + const AUDIO_STATE_PAUSED: number; + + /** + * Audio playback is active. + */ + const AUDIO_STATE_PLAYING: number; + + /** + * Audio playback is starting. + */ + const AUDIO_STATE_STARTING: number; + + /** + * Audio playback is stopped. + */ + const AUDIO_STATE_STOPPED: number; + + /** + * Audio playback is stopping. + */ + const AUDIO_STATE_STOPPING: number; + + /** + * Player is waiting for audio data from the network. + */ + const AUDIO_STATE_WAITING_FOR_DATA: number; + + /** + * Player is waiting for audio data to fill the queue. + */ + const AUDIO_STATE_WAITING_FOR_QUEUE: number; + /** * Constant specifying to have the device determine to use the flash or not. */ @@ -52200,7 +49404,7 @@ declare namespace Titanium { function showCamera(options: CameraOptionsType): void; /** - * Returns `true` if the app has camera access. + * Returns `true` if the app has music library access. */ function hasMusicLibraryPermissions(): boolean; @@ -52615,6 +49819,28 @@ declare namespace Titanium { */ readonly idle: boolean; + /** + * Indicates whether or not audio output of the player is muted. + */ + muted: boolean; + + /** + * Indicates whether the player is currently playing video in "external playback" mode. + */ + readonly externalPlaybackActive: boolean; + + /** + * Indicates whether the player allows switching to "external playback" mode. + */ + allowsExternalPlayback: boolean; + + /** + * Indicates the desired rate of playback; 0.0 means "paused", 1.0 indicates a + * desire to play at the natural rate of the current item. In addition, 2.0 + * would mean that the audio plays twice as fast. + */ + rate: number; + /** * Boolean indicating if audio playback is paused. */ @@ -52651,7 +49877,7 @@ declare namespace Titanium { readonly waiting: boolean; /** - * Size of the buffer used for streaming, in bytes. + * Size of the buffer used for streaming, in milliseconds. */ bufferSize: number; @@ -52695,6 +49921,12 @@ declare namespace Titanium { */ setPaused(paused: boolean): void; + /** + * Moves the playback cursor and invokes the specified block when the seek + * operation has either been completed or been interrupted. + */ + seekToTime(time: number): void; + /** * Stops buffering audio data and releases audio resources. */ @@ -52710,6 +49942,11 @@ declare namespace Titanium { */ start(): void; + /** + * Restarts (stops and stars) audio playback. + */ + restart(): void; + /** * Converts a [state](Titanium.Media.AudioPlayer.state) value into a text description * suitable for display. @@ -52771,6 +50008,41 @@ declare namespace Titanium { */ getIdle(): boolean; + /** + * Gets the value of the property. + */ + getMuted(): boolean; + + /** + * Sets the value of the property. + */ + setMuted(muted: boolean): void; + + /** + * Gets the value of the property. + */ + getExternalPlaybackActive(): boolean; + + /** + * Gets the value of the property. + */ + getAllowsExternalPlayback(): boolean; + + /** + * Sets the value of the property. + */ + setAllowsExternalPlayback(allowsExternalPlayback: boolean): void; + + /** + * Gets the value of the property. + */ + getRate(): number; + + /** + * Sets the value of the property. + */ + setRate(rate: number): void; + /** * Gets the value of the property. */ @@ -53328,11 +50600,6 @@ declare namespace Titanium { */ shuffleMode: number; - /** - * Volume level for the music player from 0.0 (muted) to 1.0 (loudest). - */ - volume: number; - /** * Pauses playback of the current media item. */ @@ -53435,16 +50702,6 @@ declare namespace Titanium { */ setShuffleMode(shuffleMode: number): void; - /** - * Gets the value of the property. - */ - getVolume(): number; - - /** - * Sets the value of the property. - */ - setVolume(volume: number): void; - } /** @@ -53763,11 +51020,6 @@ declare namespace Titanium { */ mediaTypes: number; - /** - * Style of the media playback controls. - */ - movieControlMode: number; - /** * Returns the status of the movie player. */ @@ -53815,7 +51067,7 @@ declare namespace Titanium { scalingMode: number; /** - * Whether or not the receiver shows playback controls. Default is YES. + * Whether or not the receiver shows playback controls. Default is true. */ showsControls: boolean; @@ -53829,12 +51081,6 @@ declare namespace Titanium { */ url: string | string[]; - /** - * Indicates if the movie player should inherit the application's audio session - * instead of creating a new session. - */ - useApplicationAudioSession: boolean; - /** * Volume of the audio portion of the video. */ @@ -54005,16 +51251,6 @@ declare namespace Titanium { */ setMediaTypes(mediaTypes: number): void; - /** - * Gets the value of the property. - */ - getMovieControlMode(): number; - - /** - * Sets the value of the property. - */ - setMovieControlMode(movieControlMode: number): void; - /** * Gets the value of the property. */ @@ -54120,16 +51356,6 @@ declare namespace Titanium { */ setUrl(url: ReadonlyArray): void; - /** - * Gets the value of the property. - */ - getUseApplicationAudioSession(): boolean; - - /** - * Sets the value of the property. - */ - setUseApplicationAudioSession(useApplicationAudioSession: boolean): void; - /** * Gets the value of the property. */ @@ -54377,7 +51603,7 @@ declare namespace Titanium { const networkTypeName: string; /** - * Boolean value indicating if the device can reach the Internet. + * Boolean value indicating if the device is connected to the network. */ const online: boolean; @@ -54503,11 +51729,6 @@ declare namespace Titanium { */ function registerForPushNotifications(config: PushNotificationConfig): void; - /** - * Legacy method to remove a connectivity listener. - */ - function removeConnectivityListener(callback: (param0: any) => any): void; - /** * Unregisters the application for push notifications. */ @@ -55943,7 +53164,7 @@ declare namespace Titanium { /** * Opens this URL using the system's default application for its protocol. */ - function openURL(url: string): boolean; + function openURL(url: string, options: any, callback: () => any): boolean; /** * Returns whether the system settings are configured to show times in 24-hour format. @@ -57362,7 +54583,7 @@ declare namespace Titanium { /** * An interface extending with a set of attributes and methods for accessing character data in the DOM. - * Implements the [DOM Level 2 API](http://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. + * Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-FF21A306) on Android and iOS. For reasons of compatibility with the javascript engine, text is represented by UTF-8 instead of UTF-16 on Android and iOS. */ interface CharacterData extends Titanium.Proxy { /** @@ -57882,7 +55103,7 @@ declare namespace Titanium { } /** - * 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](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490) on Android and iOS. + * The interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490) on Android and iOS. */ interface DOMImplementation extends Titanium.Proxy { /** @@ -58696,7 +55917,7 @@ declare namespace Titanium { /** * 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](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-745549614) on Android and iOS with some non-standard extensions. + * Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-745549614) on Android and iOS with some non-standard extensions. */ interface Element extends Titanium.Proxy { /** @@ -58992,7 +56213,7 @@ declare namespace Titanium { /** * 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](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-527DCFF2) on Android and iOS. + * Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-527DCFF2) on Android and iOS. */ interface Entity extends Titanium.Proxy { /** @@ -59443,7 +56664,7 @@ declare namespace Titanium { /** * A key-value paired map that maps String objects to objects. - * Implements the [DOM Level 2 API](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1780488922) on Android and iOS. + * Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1780488922) on Android and iOS. */ interface NamedNodeMap extends Titanium.Proxy { /** @@ -59704,7 +56925,7 @@ declare namespace Titanium { } /** - * A list of objects. Implements the [DOM Level 2 API](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-536297177) on Android and iOS. + * A list of objects. Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-536297177) on Android and iOS. */ interface NodeList extends Titanium.Proxy { /** @@ -59725,7 +56946,7 @@ declare namespace Titanium { } /** - * Represents a notation declared in the DTD. Implements the [DOM Level 2 API](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-5431D1B9) on Android and iOS. + * Represents a notation declared in the DTD. Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-5431D1B9) on Android and iOS. */ interface Notation extends Titanium.Proxy { /** @@ -59751,7 +56972,7 @@ declare namespace Titanium { } /** - * A way to keep processor-specific information in the text of the document. Implements the [DOM Level 2 API](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1004215813) on Android and iOS. + * A way to keep processor-specific information in the text of the document. Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1004215813) on Android and iOS. */ interface ProcessingInstruction extends Titanium.Proxy { /** @@ -59782,7 +57003,7 @@ declare namespace Titanium { } /** - * Represents the textual content of an or Implements the [DOM Level 2 API](http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1312295772) on Android and iOS. + * Represents the textual content of an or Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1312295772) on Android and iOS. */ interface Text extends Titanium.Proxy { /** @@ -61132,7 +58353,7 @@ interface CloudPushSchedulesResponse { message?: string; /** - * Array of [schedules push notifications](http://docs.appcelerator.com/arrowdb/latest/#!/api/PushSchedules), if any exist. + * Array of [schedules push notifications](https://docs.appcelerator.com/arrowdb/latest/#!/api/PushSchedules), if any exist. */ push_schedules?: any[]; @@ -61542,13 +58763,175 @@ interface launchOptions { } +/** + * Response when receiving pending or local notifications + * in and + * . + */ +interface UserNotificationCallbackResponse { + /** + * An array of identifiers used to create notifications. + */ + notifications?: UserNotificationDictionary[]; + +} + +/** + * Dictionary of notification data used in the array of `notifications` + * when receiving pending or local notifications in + * and + * . + */ +interface UserNotificationDictionary { + /** + * Title of the notification. + */ + alertTitle?: string; + + /** + * Subtitle of the notification. + */ + alertSubtitle?: string; + + /** + * Alert button text ('Open', by default) or home text ('Press Home to unlock', by default) + * type: String + */ + alertAction?: string; + + /** + * Alert message. + */ + alertBody?: string; + + /** + * Image displayed instead of `Default.png` when launching the application. + */ + alertLaunchImage?: string; + + /** + * Application badge value. + */ + badge?: number; + + /** + * Date and time when the notification was configured to fire. + */ + date?: Date; + + /** + * Path to the sound file configured to play when the notification was fired. + */ + sound?: string; + + /** + * Timezone of the date when the notification was configured to fire. + */ + timezone?: string; + + /** + * Custom data object. + */ + userInfo?: any; + + /** + * Category identifier of the notification. + */ + category?: string; + + /** + * The notification identifier. + */ + identifier: string; + + /** + * Region of the notification. + */ + region?: any; + +} + +/** + * Dictionary object of parameters used to register the application with local notifications using + * the method. + */ +interface GetUserNotificationSettings { + /** + * Notification types to use. + */ + types?: number[]; + + /** + * Set of categories of user notification actions required by the applicaiton to use. + */ + categories?: Titanium.App.iOS.UserNotificationCategory[]; + + /** + * The current authorization status for using notifications. + */ + authorizationStatus?: number; + + /** + * The current sound settings. + */ + soundSetting?: number; + + /** + * The current badge settings. + */ + badgeSetting?: number; + + /** + * The current alert settings. + */ + alertSetting?: number; + + /** + * The current notication-center settings. + */ + notificationCenterSetting?: number; + + /** + * The current lock-screen settings. + */ + lockScreenSetting?: number; + + /** + * The current CarPlay settings. + */ + carPlaySetting?: number; + + /** + * The authorization status to play sounds for critical alerts. + * Available in Titanium SDK 7.4.0 and later. + */ + criticalAlertSetting?: number; + + /** + * A Boolean value indicating the system displays a button for in-app notification settings. + * Available in Titanium SDK 7.4.0 and later. + */ + providesAppNotificationSettings?: number; + + /** + * The current alert style used to display notifications. + */ + alertStyle?: number; + +} + /** * Dictionary object of parameters used to create a notification using * . */ interface NotificationParams { /** - * Alert button text ('Open', by default) or slider text ('slide to unlock...', by default) + * The notification identifier. + */ + identifier: string; + + /** + * Alert button text ('Open', by default) or home text ('Press Home to unlock', by default) * to display. */ alertAction?: string; @@ -61559,23 +58942,32 @@ interface NotificationParams { alertBody?: string; /** - * Alert title to display. Available since Titanium SDK 5.4.0. + * Alert title to display. */ alertTitle?: string; + /** + * Alert subtitle to display. + */ + alertSubtitle?: string; + /** * Image to display instead of `Default.png` when launching the application. */ alertLaunchImage?: string; + /** + * Notification attachments to display. + */ + attachments?: UserNotificationAttachment[]; + /** * Application badge value. */ badge?: number; /** - * String identifier of category of actions to be displayed for an interactive - * notification (only for iOS 8 and above). + * String identifier of category of actions to be displayed for an interactive notification. */ category?: string; @@ -61609,10 +59001,43 @@ interface NotificationParams { * - `latitude`: Latitude of the location center, in decimal degrees (required). * - `longitude`: Longitude of the location center, in decimal degrees (required). * - `triggersOnce`: Whether or not the notification will only fire once (optional, default: true). - * - `identifier`: Identifier of the region (optional). */ region?: any; + /** + * The string the notification adds to the category's summary format string. + */ + summaryArgument?: string; + + /** + * The number of items the notification adds to the category's summary format string. + */ + summaryArgumentCount?: string; + +} + +/** + * Provide at least the property `identifier` and `url` property to identify a local + * image, sound or video. If your media is invalid, the API will throw an error log and + * skip the invalid attachment. + */ +interface UserNotificationAttachment { + /** + * The identifier of this attachment. + */ + identifier: string; + + /** + * The URL to the attachment's data. If you have obtained this attachment from + * the notification-center then the URL will be security-scoped. + */ + url: string; + + /** + * An additional dictionary of options to provide. + */ + options?: any; + } /** @@ -61636,7 +59061,7 @@ interface LaunchOptionsType { * Dictionary object of parameters used to register the application with local notifications using * the method. * To retrieve the current notification settings, use the - * property. + * method. */ interface UserNotificationSettings { /** @@ -62076,7 +59501,7 @@ interface LocationCoordinates { timestamp?: number; /** - * The floor of the building on which the user is located. Available in iOS 8.0 and later. + * The floor of the building on which the user is located. */ floor?: LocationCoordinatesFloor; @@ -62084,7 +59509,6 @@ interface LocationCoordinates { /** * Simple object holding floor of the building on which the user is located. - * In places where floor information can be determined. */ interface LocationCoordinatesFloor { /** @@ -62400,111 +59824,6 @@ interface LocationAuthorizationResponse { } -/** - * Simple object representing a map location and zoom level. - */ -interface MapRegionType { - /** - * Longitude value for the center point of the map, in decimal degrees. - */ - longitude?: number; - - /** - * Latitude value for the center point of the map, in decimal degrees. - */ - latitude?: number; - - /** - * The amount of east-to-west distance displayed on the map, measured in decimal degrees. - */ - longitudeDelta?: number; - - /** - * The amount of north-to-south distance displayed on the map, measured in decimal degrees. - */ - latitudeDelta?: number; - -} - -/** - * Simple object used as an argument to [setLocation](Titanium.Map.View.setLocation). - */ -interface MapLocationType { - /** - * Longitude value for the center point of the map, in decimal degrees. - */ - longitude?: number; - - /** - * Latitude value for the center point of the map, in decimal degrees. - */ - latitude?: number; - - /** - * The amount of east-to-west distance displayed on the map, measured in decimal degrees. - */ - longitudeDelta?: number; - - /** - * The amount of north-to-south distance displayed on the map, measured in decimal degrees. - */ - latitudeDelta?: number; - - /** - * Set to `true` to animate the move to the new location. - */ - animate?: boolean; - - /** - * If `true`, the specified region is modified to fit the aspect ratio of the - * map view, while remaining centered on `latitude`,`longitude`. - */ - regionFit?: boolean; - -} - -/** - * Simple object defining a map route. - */ -interface MapRouteType { - /** - * Route name. - */ - name: string; - - /** - * Array of map points making up the route. - */ - points: MapPointType[]; - - /** - * Color to use when drawing the route, as a color name or hex triplet. - */ - color?: string; - - /** - * Line width to use when drawing the route. - */ - width?: number; - -} - -/** - * Simple object representing a point on the map. - */ -interface MapPointType { - /** - * Longitude value of the map point, in decimal degrees. - */ - longitude?: number; - - /** - * Latitude value of the map point, in decimal degrees. - */ - latitude?: number; - -} - /** * Simple object passed to the [scanMediaFiles](Titanium.Media.Android.scanMediaFiles) callback. */ @@ -62522,6 +59841,32 @@ interface MediaScannerResponse { } +/** + * An abstract type to represent a metadata item inside the `metadata` event (iOS only). + */ +interface TiMetadataItemType { + /** + * The key of the metadata item, e.g. "title". + */ + key?: string; + + /** + * The key-path of the metadata item. + */ + keySpace?: string; + + /** + * The value of the metadata item. Can be represented as various types. + */ + value?: string | number | boolean; + + /** + * A dictionary of the additional attributes. + */ + extraAttributes?: any; + +} + /** * Simple object for specifying options to [openMusicLibrary](Titanium.Media.openMusicLibrary). */ @@ -62841,10 +60186,11 @@ interface PhotoGalleryOptionsType { allowEditing?: boolean; /** - * Array of media type constants to allow. If you want to allow live photos with - * on iOS 9.1 and later, you also need to specify + * Array of media type constants to allow. + * Live photos is only supported on the iOS platform, starting with iOS 9.1. If you want + * to allow live photos with , you also need to specify * at least as a fallback. If you do not allow live - * photos, they still can be selected, but will be represented as a normal photo (static). + * photos, they still can be selected, but will be represented as a normal static photo. */ mediaTypes?: string[]; @@ -63176,12 +60522,12 @@ interface SecurityManagerProtocol { connectionDelegateForUrl(url: any): APSConnectionDelegate; /** - * Returns an array of objects implementing the [X509TrustManager](http://developer.android.com/reference/javax/net/ssl/X509TrustManager.html) protocol for the SSL Context. + * Returns an array of objects implementing the [X509TrustManager](https://developer.android.com/reference/javax/net/ssl/X509TrustManager.html) protocol for the SSL Context. */ getTrustManagers(proxy: any): any[]; /** - * Returns an array of objects implementing the [X509KeyManager](http://developer.android.com/reference/javax/net/ssl/X509KeyManager.html) protocol for the SSL Context. + * Returns an array of objects implementing the [X509KeyManager](https://developer.android.com/reference/javax/net/ssl/X509KeyManager.html) protocol for the SSL Context. */ getKeyManagers(proxy: any): any[]; @@ -64371,7 +61717,7 @@ interface windowToolbarParam { barColor?: string; /** - * The tintColor to apply to the tool bar. Applicable on iOS 7 and above. + * The tintColor to apply to the tool bar. */ tintColor?: string; @@ -64635,7 +61981,6 @@ interface BarItemType { /** * Dictionary specifying the transition animation used with the method. - * Only supported on iOS 7 and later. */ interface transitionAnimationParam { /** @@ -64677,38 +62022,6 @@ interface PopoverParams { } -/** - * Dictionary of options for the method. - */ -interface hideStatusBarParams { - /** - * Determines whether to animate the dialog as it is hidden. - */ - animated?: boolean; - - /** - * Style of the animation. - */ - animationStyle?: number; - -} - -/** - * Dictionary of options for the method. - */ -interface showStatusBarParams { - /** - * Determines whether to animate the dialog as it is shown. - */ - animated?: boolean; - - /** - * Style of the animation. - */ - animationStyle?: number; - -} - /** * Reply message received from watch app. */ diff --git a/types/titanium/titanium-tests.ts b/types/titanium/titanium-tests.ts index bc5f4794c2..4d546f1848 100644 --- a/types/titanium/titanium-tests.ts +++ b/types/titanium/titanium-tests.ts @@ -5,7 +5,7 @@ function test_window() { borderRadius: 10 }); - window.setBackgroundColor('blue'); + window.backgroundColor = 'blue'; window.opacity = 0.92; const matrix = Ti.UI.create2DMatrix().scale(1.1, 1); @@ -17,8 +17,8 @@ function test_window() { text: 'Simple label' }); label.textAlign = Ti.UI.TEXT_ALIGNMENT_LEFT; - label.setWidth(Ti.UI.SIZE); - label.setHeight(Ti.UI.SIZE); + label.width = Ti.UI.SIZE; + label.height = Ti.UI.SIZE; window.add(label); window.open(); } @@ -68,7 +68,7 @@ function test_fs() { } function test_network() { - const url = "http://www.appcelerator.com"; + const url = 'https://www.appcelerator.com'; const client = Ti.Network.createHTTPClient({ // function called when the response data is available onload: (e: SuccessResponse) => { @@ -85,36 +85,3 @@ function test_network() { // Send the request. client.send(); } - -function test_map() { - const win = Ti.UI.createWindow(); - const mountainView = Ti.Map.createAnnotation({ - animate: true, - leftButton: '../images/appcelerator_small.png', - myid: 1 - }); - mountainView.setLatitude(37.390749); - mountainView.setLongitude(-122.081651); - mountainView.setTitle('Appcelerator'); - mountainView.setSubtitle('Mountain View, CA'); - mountainView.setPincolor(Ti.Map.ANNOTATION_RED); - - const mapview = Ti.Map.createView({ - mapType: Ti.Map.STANDARD_TYPE, - region: { - latitude: 37.390749, longitude: -122.081651, - latitudeDelta: 0.01, longitudeDelta: 0.01 - }, - animate: true, - }); - mapview.regionFit = true; - mapview.userLocation = true; - mapview.annotations = [mountainView]; - mapview.addEventListener('click', event => { - if (event.clicksource === 'leftButton' || event.clicksource === 'leftPane') { - alert(event.title + ' left button clicked'); - } - }); - win.add(mapview); - win.open(); -}