diff --git a/apps/automated/package.json b/apps/automated/package.json index 1db831e3c..be49ef849 100644 --- a/apps/automated/package.json +++ b/apps/automated/package.json @@ -2,7 +2,7 @@ "nativescript": { "id": "org.nativescript.UnitTestApp", "tns-android": { - "version": "next" + "version": "6.5.3-20200708-01" }, "tns-ios": { "version": "6.5.2" diff --git a/nativescript-core/nativescript-core.d.ts b/nativescript-core/nativescript-core.d.ts new file mode 100644 index 000000000..206485d75 --- /dev/null +++ b/nativescript-core/nativescript-core.d.ts @@ -0,0 +1,8378 @@ +/** + * A layout that lets you specify exact locations (left/top coordinates) of its children. + */ +export declare class AbsoluteLayout extends LayoutBase { + /** + * Gets the value of the Left property from a given View. + */ + static getLeft(view: View): Length; + + /** + * Sets the value of the Left property from a given View. + */ + static setLeft(view: View, value: Length): void; + + /** + * Gets the value of the Top property from a given View. + */ + static getTop(view: View): Length; + + /** + * Sets the value of the Top property from a given View. + */ + static setTop(view: View, value: Length): void; +} + +/** + * Provides an abstraction over the ActionBar (android) and NavigationBar (iOS). + */ +export declare class ActionBar extends View { + /** + * Gets or sets the action bar title. + */ + title: string; + + /** + * Gets or sets the title view. When set - replaces the title with a custom view. + */ + titleView: View; + + /** + * Gets or sets the navigation button (a.k.a. the back button). + */ + navigationButton: NavigationButton; + + /** + * Removes the shadow/border at the bottom of the ActionBar and removes translucency on iOS. + * Default false. + */ + flat: boolean; + + /** + * Gets the collection of action items. + */ + actionItems: ActionItems; + + /** + * Gets the android specific options of the action bar. + */ + android: AndroidActionBarSettings; + + /** + * Gets the native iOS [UINavigationBar](https://developer.apple.com/documentation/uikit/uinavigationbar) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITabBarController */; + + /** + * Gets or set the UIImageRenderingMode of the action bar icons in iOS. Defaults to "alwaysOriginal" + * Valid values are: + * - automatic + * - alwaysOriginal + * - alwaysTemplate + */ + iosIconRenderingMode: 'automatic' | 'alwaysOriginal' | 'alwaysTemplate'; + + public effectiveContentInsetLeft: number; + public effectiveContentInsetRight: number; + + /** + * Updates the action bar. + */ + update(); + + //@private + /** + * @private + */ + _isEmpty(): boolean; + /** + * @private + */ + _getActualSize?: { width: number; height: number }; + //@endprivate +} + +/** + * Represents an action item in the action bar. + */ +export declare class ActionItem extends ViewBase { + /** + * Gets or sets the text of the action item. + */ + text: string; + + /** + * Gets or sets the icon of the action item. + */ + icon: string; + + /** + * Gets or sets the custom action view of the action item. + */ + actionView: View; + + /** + * Gets or sets the visibility of the action item. + */ + visibility: string; + + /** + * Gets the action bar that contains the action item. + */ + actionBar: ActionBar; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void); + + /** + * Raised when a tap event occurs. + */ + on(event: 'tap', callback: (args: EventData) => void); + + //@private + /** + * @private + */ + _raiseTap(): void; + //@endprivate + + /** + * Gets the iOS specific options of the action item. + */ + ios: IOSActionItemSettings; + + /** + * Gets the Android specific options of the action item. + */ + android: AndroidActionItemSettings; +} + +/** + * Represents a collection of ActionItems. + */ +export declare class ActionItems { + /** + * Adds an item to the collection. + * @param item - the item to be added + */ + addItem(item: ActionItem): void; + + /** + * Removes an item to the collection. + * @param item - The item to be removed. + */ + removeItem(item: ActionItem): void; + + /** + * Gets an array of the current action items in the collection. + */ + getItems(): Array; + + /** + * Gets an item at a specified index. + * @param index - The index. + */ + getItemAt(index: number): ActionItem; +} + +/** + * Represents a UI widget which displays a progress indicator hinting the user for some background operation running. + */ +export declare class ActivityIndicator extends View { + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/ProgressBar.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.ProgressBar */; + + /** + * Gets the native iOS [UIActivityIndicatorView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivityIndicatorView_Class/index.html) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UIActivityIndicatorView */; + + /** + * Gets or sets a value indicating whether the widget is currently displaying progress. + */ + busy: boolean; +} + +/** + * Module with android specific utilities. + */ +declare module ad { + /** + * Gets the native Android application instance. + */ + function getApplication(): any; /* android.app.Application */ + + /** + * Gets the Android application context. + */ + function getApplicationContext(): any; /* android.content.Context */ + + /** + * Gets the native Android input method manager. + */ + function getInputMethodManager(): any; /* android.view.inputmethod.InputMethodManager */ + + /** + * Hides the soft input method, usually a soft keyboard. + */ + function dismissSoftInput(nativeView?: any /* android.view.View */): void; + + /** + * Shows the soft input method, usually a soft keyboard. + */ + function showSoftInput(nativeView: any /* android.view.View */): void; + + /** + * Utility module dealing with some android collections. + */ + module collections { + /** + * Converts string array into a String [hash set](http://developer.android.com/reference/java/util/HashSet.html). + * @param str - An array of strings to convert. + */ + function stringArrayToStringSet(str: string[]): any; + + /** + * Converts string hash set into array of strings. + * @param stringSet - A string hash set to convert. + */ + function stringSetToStringArray(stringSet: any): string[]; + } + + /** + * Utility module related to android resources. + */ + module resources { + /** + * Gets the drawable id from a given name. + * @param name - Name of the resource. + */ + function getDrawableId(name); + + /** + * Gets the string id from a given name. + * @param name - Name of the resource. + */ + function getStringId(name); + + /** + * Gets the id from a given name. + * @param name - Name of the resource. + */ + function getId(name: string): number; + + /** + * [Obsolete - please use getPaletteColor] Gets a color from current theme. + * @param name - Name of the color + */ + function getPalleteColor(); + + /** + * Gets a color from the current theme. + * @param name - Name of the color resource. + */ + function getPaletteColor(name: string, context: any /* android.content.Context */): number; + } +} + +/** + * Defines an interface for adding arrays declared in xml. + */ +declare interface AddArrayFromBuilder { + /** + * A function that is called when an array declaration is found in xml. + * @param name - Name of the array. + * @param value - The actual value of the array. + */ + _addArrayFromBuilder(name: string, value: Array): void; +} + +/** + * Adds categories to existing categories the module will trace. + * @param categories The comma-separated list of categories. If not specified all messages from all categories will be traced. + */ +declare function addCategories(categories: string); + +/** + * Defines an interface for adding a child element declared in xml. + */ +declare interface AddChildFromBuilder { + /** + * Called for every child element declared in xml. + * This method will add a child element (value) to current element. + * @param name - Name of the element. + * @param value - Value of the element. + */ + _addChildFromBuilder(name: string, value: any): void; +} + +/** + * Adds new values to the application styles. + * @param cssText - A valid styles which will be added to the current application styles. + * @param attributeScoped - Whether the styles are attribute scoped. Adding attribute scoped styles will not perform a full application styling refresh. + */ +declare function addCss(cssText: string, attributeScoped?: boolean): void; + +/** + * Adds a TraceWriter instance to the trace module. + * @param writer The TraceWriter instance to add. + */ +declare function addWriter(writer: TraceWriter); + +declare type AlignContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch'; + +declare type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'; + +declare type AlignSelf = 'auto' | AlignItems; + +/** + * Represents Android specific options of the action bar. + */ +declare interface AndroidActionBarSettings { + /** + * Gets or sets the action bar icon. + */ + icon: string; + + /** + * Gets or sets the visibility of the action bar icon. + * The icon is visible by default in pre-lollipop (API level < 20) versions of android and is hidden in lollipop (API level >= 20) + * The possible values are: + * 1. auto - the default behavior. This is the default value. + * 2. always - the icon is always shown. + * 3. never - the icon is always hidden. + */ + iconVisibility: string; +} + +/** + * Represents Android specific options of the action item. + */ +declare interface AndroidActionItemSettings { + /** + * Gets or sets the position of the action item in the action bar. + * 1. actionBar - item is shown in the action bar. + * 2. actionBarIfRoom - item is shown in the action bar if there is room for it. Otherwise it is put in the popup menu. + * 3. popup - item is shown in the popup menu. + * Note: Property not applicable to NavigationButton + */ + position: 'actionBar' | 'actionBarIfRoom' | 'popup'; + + /** + * Gets or sets the name of the system drawable resource to be displayed. + * Use this property instead of ActionItem.icon if you want to diplsay a built-in Android system icon. + * The value should be a string such as 'ic_menu_search' if you want to display the built-in Android Menu Search icon for example. + * For a full list of Android drawable names, please visit http://androiddrawables.com + */ + systemIcon: string; +} + +/** + * Data for the Android activity back pressed event. + */ +export declare interface AndroidActivityBackPressedEventData extends AndroidActivityEventData { + /** + * In the event handler, set this value to true if you want to cancel the back navigation and do something else instead. + */ + cancel: boolean; +} + +/** + * Data for the Android activity events with bundle. + */ +export declare interface AndroidActivityBundleEventData extends AndroidActivityEventData { + /** + * The bundle. + */ + bundle: any /* android.os.Bundle */; +} + +/** + * Data for the Android activity events. + */ +export declare interface AndroidActivityEventData { + /** + * The activity. + */ + activity: any /* androidx.appcompat.app.AppCompatActivity */; + + /** + * The name of the event. + */ + eventName: string; + + /** + * The instance that has raised the event. + */ + object: any; +} + +/** + * Data for the Android activity newIntent event. + */ +export declare interface AndroidActivityNewIntentEventData extends AndroidActivityEventData { + /** + * The intent. + */ + intent: any /* android.content.Intent */; +} + +/** + * Data for the Android activity onRequestPermissions callback + */ +export declare interface AndroidActivityRequestPermissionsEventData extends AndroidActivityEventData { + /** + * The request code. + */ + requestCode: number; + + /** + * The Permissions. + */ + permissions: Array; + + /** + * The Granted. + */ + grantResults: Array; +} + +/** + * Data for the Android activity result event. + */ +export declare interface AndroidActivityResultEventData extends AndroidActivityEventData { + /** + * The request code. + */ + requestCode: number; + + /** + * The result code. + */ + resultCode: number; + + /** + * The intent. + */ + intent: any /* android.content.Intent */; +} + +/** + * The abstraction of an Android-specific application object. + */ +export declare class AndroidApplication extends Observable { + /** + * The [android Application](http://developer.android.com/reference/android/app/Application.html) object instance provided to the init of the module. + */ + nativeApp: any /* android.app.Application */; + + /** + * The application's [android Context](http://developer.android.com/reference/android/content/Context.html) object instance. + */ + context: any /* android.content.Context */; + + /** + * The currently active (loaded) [android Activity](http://developer.android.com/reference/android/app/Activity.html). This property is automatically updated upon Activity events. + */ + foregroundActivity: any /* androidx.appcompat.app.AppCompatActivity */; + + /** + * The main (start) Activity for the application. + */ + startActivity: any /* androidx.appcompat.app.AppCompatActivity */; + + /** + * Gets the orientation of the application. + * Available values: "portrait", "landscape", "unknown". + */ + orientation: 'portrait' | 'landscape' | 'unknown'; + + /** + * Gets the system appearance. + * Available values: "dark", "light". + */ + systemAppearance: 'dark' | 'light'; + + /** + * The name of the application package. + */ + packageName: string; + + /** + * True if the main application activity is not running (suspended), false otherwise. + */ + paused: boolean; + + /** + * Initialized the android-specific application object with the native android.app.Application instance. + * This is useful when creating custom application types. + * @param nativeApp - the android.app.Application instance that started the app. + */ + init: (nativeApp) => void; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: AndroidActivityEventData) => void, thisArg?: any); + + /** + * This event is raised on android application ActivityCreated. + */ + on(event: 'activityCreated', callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any); + + /** + * This event is raised on android application ActivityDestroyed. + */ + on(event: 'activityDestroyed', callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + /** + * This event is raised on android application ActivityStarted. + */ + on(event: 'activityStarted', callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + /** + * This event is raised on android application ActivityPaused. + */ + on(event: 'activityPaused', callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + /** + * This event is raised on android application ActivityResumed. + */ + on(event: 'activityResumed', callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + /** + * This event is raised on android application ActivityStopped. + */ + on(event: 'activityStopped', callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + /** + * This event is raised on android application SaveActivityState. + */ + on(event: 'saveActivityState', callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any); + + /** + * This event is raised on android application ActivityResult. + */ + on(event: 'activityResult', callback: (args: AndroidActivityResultEventData) => void, thisArg?: any); + + /** + * This event is raised on the back button is pressed in an android application. + */ + on(event: 'activityBackPressed', callback: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any); + + /** + * This event is raised when the Android app was launched by an Intent with data. + */ + on(event: 'activityNewIntent', callback: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any); + + /** + * This event is raised when the Android activity requests permissions. + */ + on(event: 'activityRequestPermissions', callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any); + + /** + * String value used when hooking to activityCreated event. + */ + public static activityCreatedEvent: string; + + /** + * String value used when hooking to activityDestroyed event. + */ + public static activityDestroyedEvent: string; + + /** + * String value used when hooking to activityStarted event. + */ + public static activityStartedEvent: string; + + /** + * String value used when hooking to activityPaused event. + */ + public static activityPausedEvent: string; + + /** + * String value used when hooking to activityResumed event. + */ + public static activityResumedEvent: string; + + /** + * String value used when hooking to activityStopped event. + */ + public static activityStoppedEvent: string; + + /** + * String value used when hooking to saveActivityState event. + */ + public static saveActivityStateEvent: string; + + /** + * String value used when hooking to activityResult event. + */ + public static activityResultEvent: string; + + /** + * String value used when hooking to activityBackPressed event. + */ + public static activityBackPressedEvent: string; + + /** + * String value used when hooking to activityNewIntent event. + */ + public static activityNewIntentEvent: string; + + /** + * String value used when hooking to requestPermissions event. + */ + public static activityRequestPermissionsEvent: string; + + /** + * Register a BroadcastReceiver to be run in the main activity thread. The receiver will be called with any broadcast Intent that matches filter, in the main application thread. + * For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#registerReceiver%28android.content.BroadcastReceiver,%20android.content.IntentFilter%29' + * @param intentFilter A string containing the intent filter. + * @param onReceiveCallback A callback function that will be called each time the receiver receives a broadcast. + */ + registerBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: any /* android.content.Context */, intent: any /* android.content.Intent */) => void): void; + + /** + * Unregister a previously registered BroadcastReceiver. + * For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#unregisterReceiver(android.content.BroadcastReceiver)' + * @param intentFilter A string containing the intent filter with which the receiver was originally registered. + */ + unregisterBroadcastReceiver(intentFilter: string): void; +} + +/** + * Represents the Android-specific Frame object, aggregated within the common Frame one. + * In Android there are two types of navigation - using new Activity instances or using Fragments within the main Activity. + * To start a new Activity, a new Frame instance should be created and navigated to the desired Page. + */ +declare interface AndroidFrame extends Observable { + /** + * Gets the native [android ViewGroup](http://developer.android.com/reference/android/view/ViewGroup.html) instance that represents the root layout part of the Frame. + */ + rootViewGroup: any /* android.view.ViewGroup */; + + /** + * Gets the native [android Activity](http://developer.android.com/reference/android/app/Activity.html) instance associated with this Frame. In case of nested Frame objects, this property points to the activity of the root Frame. + */ + activity: any /* androidx.appcompat.app.AppCompatActivity */; + + /** + * Gets the current (foreground) activity for the application. This property will recursively traverse all existing Frame objects and check for own Activity property. + */ + currentActivity: any /* androidx.appcompat.app.AppCompatActivity */; + + /** + * Gets the actionBar property of the currentActivity. + */ + actionBar: any /* android.app.ActionBar */; + + /** + * Determines whether the Activity associated with this Frame will display an action bar or not. + */ + showActionBar: boolean; + + /** + * Finds the native androidx.fragment.app.Fragment instance created for the specified Page. + * @param page The Page instance to search for. + */ + fragmentForPage(entry: BackstackEntry): any; +} + +/** + * Defines a animation set. + */ +export declare class Animation { + constructor(animationDefinitions: Array, playSequentially?: boolean); + public play: (resetOnFinish?: boolean) => AnimationPromise; + public cancel: () => void; + public isPlaying: boolean; + public _resolveAnimationCurve(curve: any): any; +} + +/** + * Defines animation options for the View.animate method. + */ +export declare interface AnimationDefinition { + /** + * The view whose property is to be animated. + */ + target?: View; + + /** + * Animates the opacity of the view. Value should be a number between 0.0 and 1.0 + */ + opacity?: number; + + /** + * Animates the backgroundColor of the view. + */ + backgroundColor?: Color; + + /** + * Animates the translate affine transform of the view. + */ + translate?: Pair; + + /** + * Animates the scale affine transform of the view. + */ + scale?: Pair; + + /** + * Animates the height of a view. + */ + height?: PercentLength | string; + + /** + * Animates the width of a view. + */ + width?: PercentLength | string; + + /** + * Animates the rotate affine transform of the view. Value should be a number specifying the rotation amount in degrees. + */ + rotate?: number | Point3D; + + /** + * The length of the animation in milliseconds. The default duration is 300 milliseconds. + */ + duration?: number; + + /** + * The amount of time, in milliseconds, to delay starting the animation. + */ + delay?: number; + + /** + * Specifies how many times the animation should be played. Default is 1. + * iOS animations support fractional iterations, i.e. 1.5. + * To repeat an animation infinitely, use Number.POSITIVE_INFINITY + */ + iterations?: number; + + /** + * An optional animation curve. Possible values are contained in the [AnimationCurve enumeration](../modules/_ui_enums_.animationcurve.html). + * Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android. + */ + curve?: any; +} + +/** + * A Promise that can cancel the animation. + */ +declare type AnimationPromise = Promise & Cancelable; + +export declare const Application: { + launchEvent: string; + displayedEvent: string; + uncaughtErrorEvent: string; + discardedErrorEvent: string; + suspendEvent: string; + resumeEvent: string; + exitEvent: string; + lowMemoryEvent: string; + orientationChangedEvent: string; + getMainEntry: typeof getMainEntry; + getRootView: typeof getRootView; + setResources: typeof setResources; + setCssFileName: typeof setCssFileName; + getCssFileName: typeof getCssFileName; + loadAppCss: typeof loadAppCss; + addCss: typeof addCss; + on: typeof on; + off: typeof off; + run: typeof run; + orientation: typeof orientation; + getNativeApplication: typeof getNativeApplication; + hasLaunched: typeof hasLaunched; + android: import('./application/application').AndroidApplication; + ios: import('./application/application').iOSApplication; +}; + +/** + * Event data containing information for the application events. + */ +export declare interface ApplicationEventData extends EventData { + /** + * Gets the native iOS event arguments. Valid only when running on iOS. + */ + ios?: any; + + /** + * Gets the native Android event arguments. Valid only when running on Android. + */ + android?: any; + + /** + * The name of the event. + */ + eventName: string; + + /** + * The instance that has raised the event. + */ + object: any; +} + +export declare const ApplicationSettings: { + clear: typeof clear; + flush: typeof flush; + hasKey: typeof hasKey; + remove: typeof remove; + setString: typeof setString; + getString: typeof getString; + getAllKeys: typeof getAllKeys; + getBoolean: typeof getBoolean; + setBoolean: typeof setBoolean; + getNumber: typeof getNumber; + setNumber: typeof setNumber; +}; + +declare type ARGB = number; + +declare type AutocapitalizationType = 'none' | 'words' | 'sentences' | 'allcharacters'; + +declare class Background { + public static default: Background; + public color: Color; + public image: string | LinearGradient; + public repeat: BackgroundRepeat; + public position: string; + public size: string; + public borderTopColor: Color; + public borderRightColor: Color; + public borderBottomColor: Color; + public borderLeftColor: Color; + public borderTopWidth: number; + public borderRightWidth: number; + public borderBottomWidth: number; + public borderLeftWidth: number; + public borderTopLeftRadius: number; + public borderTopRightRadius: number; + public borderBottomRightRadius: number; + public borderBottomLeftRadius: number; + public clipPath: string; + + public withColor(value: Color): Background; + public withImage(value: string | LinearGradient): Background; + public withRepeat(value: BackgroundRepeat): Background; + public withPosition(value: string): Background; + public withSize(value: string): Background; + public withBorderTopColor(value: Color): Background; + public withBorderRightColor(value: Color): Background; + public withBorderBottomColor(value: Color): Background; + public withBorderLeftColor(value: Color): Background; + public withBorderTopWidth(value: number): Background; + public withBorderRightWidth(value: number): Background; + public withBorderBottomWidth(value: number): Background; + public withBorderLeftWidth(value: number): Background; + public withBorderTopLeftRadius(value: number): Background; + public withBorderTopRightRadius(value: number): Background; + public withBorderBottomRightRadius(value: number): Background; + public withBorderBottomLeftRadius(value: number): Background; + public withClipPath(value: string): Background; + + public isEmpty(): boolean; + + public static equals(value1: Background, value2: Background): boolean; + + public hasBorderColor(): boolean; + public hasBorderWidth(): boolean; + public hasBorderRadius(): boolean; + public hasUniformBorderColor(): boolean; + public hasUniformBorderWidth(): boolean; + public hasUniformBorderRadius(): boolean; + public hasUniformBorder(): boolean; + public getUniformBorderColor(): Color; + public getUniformBorderWidth(): number; + public getUniformBorderRadius(): number; +} + +declare type BackgroundRepeat = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'; + +/** + * Represents an entry in the back stack of a Frame object. + */ +export declare interface BackstackEntry { + entry: NavigationEntry; + resolvedPage: Page; + + //@private + /** + * @private + */ + navDepth: number; + /** + * @private + */ + fragmentTag: string; + /** + * @private + */ + fragment?: any; + /** + * @private + */ + viewSavedState?: any; + /** + * @private + */ + frameId?: number; + /** + * @private + */ + recreated?: boolean; + //@endprivate +} + +/** + * The options object used in the Bindable.bind method. + */ +declare interface BindingOptions { + /** + * The property name of the source object (typically the ViewModel) to bind to. + */ + sourceProperty: string; + /** + * The property name of the target object (that is the Bindable instance) to bind the source property to. + */ + targetProperty: string; + /** + * True to establish a two-way binding, false otherwise. A two-way binding will synchronize both the source and the target property values regardless of which one initiated the change. + */ + twoWay?: boolean; + /** + * An expression used for calculations (convertions) based on the value of the property. + */ + expression?: string; +} + +/** + * Represents a tab navigation widget with static tabs at the bottom. + */ +export declare class BottomNavigation extends TabNavigationBase { + /** + * Gets or sets the items of the BottomNavigation. + */ + items: Array; + + /** + * Gets or sets the tab strip of the BottomNavigation. + */ + tabStrip: TabStrip; + + /** + * Gets or sets the selectedIndex of the BottomNavigation. + */ + selectedIndex: number; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.view.View */; //android.support.v4.view.ViewPager; + + /** + * Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITabBarController */; + + /** + * String value used when hooking to the selectedIndexChanged event. + */ + public static selectedIndexChangedEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when the selected index changes. + */ + on(event: 'selectedIndexChanged', callback: (args: SelectedIndexChangedEventData) => void, thisArg?: any); +} + +export declare class Builder { + /** + * Creates view from navigation entry + * @param entry NavigationEntry + */ + static createViewFromEntry(entry: NavigationEntry): View; + + static parse(value: string | Template, exports?: any): View; + + /** + * Creates an array of KeyedTemplates from string + * @param value The xml of the template to be parsed + * @param exports Current context of the template + */ + static parseMultipleTemplates(value: string, exports?: any): Array; + + /** + * Loads component from module with context + * @param moduleName the module name + * @param exports the context of the component to be loaded + */ + static load(moduleName: string, exports?: any): View; + + /** + * Loads component from options + * @param options Load options + */ + static load(options: LoadOptions): View; +} + +/** + * Represents a standard Button widget. + */ +export declare class Button extends TextBase { + /** + * String value used when hooking to tap event. + */ + public static tapEvent: string; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/Button.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.Button */; + + /** + * Gets the native [UIButton](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIButton_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UIButton */; + + /** + * Gets or sets whether the Button wraps text or not. + */ + textWrap: boolean; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when a tap event occurs. + */ + on(event: 'tap', callback: (args: EventData) => void, thisArg?: any); +} + +declare interface Cancelable { + cancel(): void; +} + +/** + * An enum that defines all predefined categories. + */ +declare module categories { + const VisualTreeEvents: string; + const Layout: string; + const Style: string; + const ViewHierarchy: string; + const NativeLifecycle: string; + const Debug: string; + const Navigation: string; + const Test: string; + const Binding: string; + const Error: string; + const Animation: string; + const Transition: string; + const Livesync: string; + const ModuleNameResolver: string; + + const separator: string; + const All: string; + + function concat(...categories: string[]): string; +} + +/** + * Event args for "changed" event. + */ +export declare interface ChangedData extends EventData { + /** + * Change type. + */ + action: string; + + /** + * Start index. + */ + index: number; + + /** + * Removed items. + */ + removed: Array; + + /** + * Number of added items. + */ + addedCount: number; +} + +/** + * Change types. + */ +export declare class ChangeType { + static Add: string; + static Delete: string; + static Update: string; + static Splice: string; +} + +/** + * Removes all values. + */ +declare function clear(): void; + +/** + * Clears all the writers from the trace module. + */ +declare function clearWriters(); /** */ + +/** + * Allows creating colors to be used when styling the UI. + * @module "color" + */ /** + * Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a [0..255] range. + */ +export declare class Color { + constructor(knownColor: string); + constructor(hex: string); + constructor(argb: number); + constructor(alpha: number, red: number, green: number, blue: number); + + /** + * Gets the Alpha component (in the [0, 255] range) of this color. This is a read-only property. + */ + public a: number; + + /** + * Gets the Red component (in the [0, 255] range) of this color. This is a read-only property. + */ + public r: number; + + /** + * Gets the Green component (in the [0, 255] range) of this color. This is a read-only property. + */ + public g: number; + + /** + * Gets the Blue component (in the [0, 255] range) of this color. This is a read-only property. + */ + public b: number; + + /** + * Gets the Hexadecimal string representation of this color. This is a read-only property. + */ + public hex: string; + + /** + * Gets the Argb Number representation of this color where each 8 bits represent a single color component. This is a read-only property. + */ + public argb: number; + + /** + * Gets the known name of this instance. Defined only if it has been constructed from a known color name - e.g. "red". This is a read-only property. + */ + public name: string; + + /** + * Gets the android-specific integer value representation. Same as the Argb one. This is a read-only property. + */ + android: number; + + /** + * Gets the iOS-specific UIColor value representation. This is a read-only property. + */ + ios: any /* UIColor */; + + /** + * Specifies whether this Color is equal to the Color parameter. + * @param value The Color to test. + */ + public equals(value: Color): boolean; + + /** + * Compares two Color instances. + * @param value1 A Color to compare. + * @param value2 A Color to compare. + */ + public static equals(value1: Color, value2: Color): boolean; + + /** + * Validates if a value can be converted to color. + * @param value Input string. + */ + public static isValid(value: any): boolean; + + /** + * Creates color from iOS-specific UIColor value representation. + */ + public static fromIosColor(value: any /* UIColor */): Color; +} + +declare interface ColorStop { + color: Color; + offset?: LengthPercentUnit; +} + +declare interface ColorStop_2 { + argb: ARGB; + offset?: LengthPercentage; +} + +export declare interface CommonLayoutParams { + width: number; + height: number; + + widthPercent: number; + heightPercent: number; + + leftMargin: number; + topMargin: number; + rightMargin: number; + bottomMargin: number; + + leftMarginPercent: number; + topMarginPercent: number; + rightMarginPercent: number; + bottomMarginPercent: number; + + horizontalAlignment: HorizontalAlignment; + verticalAlignment: VerticalAlignment; +} + +/** + * Defines the different connection types. + */ +declare enum connectionType { + /** + * Denotes no connection. + */ + none = 0, + + /** + * Denotes a WiFi connection. + */ + wifi = 1, + + /** + * Denotes a mobile connection, i.e. cellular network or WAN. + */ + mobile = 2, + + /** + * Denotes an ethernet connection + */ + ethernet = 3, + + /** + * Denotes a bluetooth connection + */ + bluetooth = 4, + + /** + * Denotes a vpn connection + */ + vpn = 5, +} + +export declare const Connectivity: { + connectionType: typeof connectionType; + getConnectionType: typeof getConnectionType; + startMonitoring: typeof startMonitoring; + stopMonitoring: typeof stopMonitoring; +}; + +/** + * Base class for all UI components that are containers. + */ +declare class ContainerView extends View { + /** + * Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true + */ + public iosOverflowSafeArea: boolean; +} + +/** + * Represents a View that has a single child - content. + * The View itself does not have visual representation and serves as a placeholder for its content in the logical tree. + */ +export declare class ContentView extends View implements AddChildFromBuilder { + /** + * Gets or sets the single child of the view. + */ + content: View; + + //@private + /** + * Called when the content property has changed. + * @private + * @param oldView The previous content. + * @param newView The new content. + */ + _onContentChanged(oldView: View, newView: View); + //@endprivate + + _addChildFromBuilder(name: string, value: any): void; + + layoutView: View; +} + +/** + * Event data containing information for creating a native view that will be added to the visual tree. + */ +export declare interface CreateViewEventData extends EventData { + /** + * The native view that should be added to the visual tree. + */ + view: any; + + /** + * An optional context for creating the view. + */ + context?: any; +} + +declare class CssAnimationProperty { + constructor(options: CssAnimationPropertyOptions); + + public readonly getDefault: symbol; + public readonly setNative: symbol; + + public readonly name: string; + public readonly cssName: string; + public readonly cssLocalName: string; + + readonly keyframe: string; + + public readonly defaultValue: U; + + public register(cls: { prototype: T }): void; + public isSet(instance: T): boolean; + + /** + * @private + */ + public _initDefaultNativeValue(target: T): void; + /** + * @private + */ + public _valueConverter?: (value: string) => any; + /** + * @private + */ + public static _getByCssName(name: string): CssAnimationProperty; + /** + * @private + */ + public static _getPropertyNames(): string[]; +} + +declare interface CssAnimationPropertyOptions { + readonly name: string; + readonly cssName?: string; + readonly defaultValue?: U; + readonly equalityComparer?: (x: U, y: U) => boolean; + readonly valueChanged?: (target: T, oldValue: U, newValue: U) => void; + readonly valueConverter?: (value: string) => U; +} + +/** + * Event data containing information about application css change. + */ +export declare interface CssChangedEventData extends EventData { + cssFile?: string; + cssText?: string; +} + +declare interface CSSComputedStyleProperty { + name: string; + value: string; +} + +declare class CssProperty { + constructor(options: CssPropertyOptions); + + public readonly getDefault: symbol; + public readonly setNative: symbol; + public readonly name: string; + public readonly cssName: string; + public readonly cssLocalName: string; + public readonly defaultValue: U; + public register(cls: { prototype: T }): void; + public isSet(instance: T): boolean; +} + +declare interface CssPropertyOptions extends PropertyOptions { + readonly cssName: string; +} + +/** + * Base class for all UI components that implement custom layouts. + */ +declare class CustomLayoutView extends ContainerView { + //@private + /** + * @private + */ + _updateNativeLayoutParams(child: View): void; + /** + * @private + */ + _setChildMinWidthNative(child: View, value: Length): void; + /** + * @private + */ + _setChildMinHeightNative(child: View, value: Length): void; + //@endprivate +} + +/** + * Represents an date picker. + */ +export declare class DatePicker extends View { + /** + * Gets the native [android.widget.DatePicker](http://developer.android.com/reference/android/widget/DatePicker.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.DatePicker */; + + /** + * Gets the native iOS [UIDatePicker](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UIDatePicker */; + + /** + * Gets or sets the year. + */ + year: number; + + /** + * Gets or sets the month. The months start from 1. + */ + month: number; + + /** + * Gets or sets the day. The days start from 1. + */ + day: number; + + /** + * Gets or sets the entire date. + */ + date: Date; + + /** + * Gets or sets the max date. + */ + maxDate: Date; + + /** + * Gets or sets the min date. + */ + minDate: Date; +} + +export declare class DefaultErrorHandler implements ErrorHandler { + handlerError(error); +} + +/** + * Gets the current device information. + */ +export declare const Device: Device_2; + +declare interface Device_2 { + /** + * Gets the manufacturer of the device. + * For example: "Apple" or "HTC" or "Samsung". + */ + manufacturer: string; + + /** + * Gets the model of the device. + * For example: "Nexus 5" or "iPhone". + */ + model: string; + + /** + * Gets the OS of the device. + * For example: "Android" or "iOS". + */ + os: string; + + /** + * Gets the OS version. + * For example: 4.4.4(android), 8.1(ios) + */ + osVersion: string; + + /** + * Gets the SDK version. + * For example: 19(android), 8.1(ios). + */ + sdkVersion: string; + + /** + * Gets the type of the current device. + * Available values: "Phone", "Tablet". + */ + deviceType: 'Phone' | 'Tablet'; + + /** + * Gets the uuid. + * On iOS this will return a new uuid if the application is re-installed on the device. + * If you need to receive the same uuid even after the application has been re-installed on the device, + * use this plugin: https://www.npmjs.com/package/nativescript-ios-uuid + */ + uuid: string; + + /** + * Gets the preferred language. For example "en" or "en-US". + */ + language: string; + + /** + * Gets the preferred region. For example "US". + */ + region: string; +} + +/** + * Denotes a length number that is in device independent pixel units. + */ +declare type dip = number; + +/** + * Disables profiling. + */ +declare function disable(): void; + +/** + * Disables the trace module. + */ +declare function disable_2(): void; + +/** + * Event data containing information about discarded application errors. + */ +export declare interface DiscardedErrorEventData extends ApplicationEventData { + error: NativeScriptError; +} + +/** + * Dispatches the passed function for execution on the main thread + * @param func The function to execute on the main thread. + */ +declare function dispatchToMainThread(func: Function); + +declare type Dock = 'left' | 'top' | 'right' | 'bottom'; + +/** + * A Layout that arranges its children at its outer edges, and allows its last child to take up the remaining space. + */ +export declare class DockLayout extends LayoutBase { + /** + * Gets the value of the Dock property from a given View. + */ + static getDock(view: View): Dock; + + /** + * Sets the value of the Dock property from a given View. + */ + static setDock(view: View, value: Dock): void; + + /** + * Gets or sets a value that indicates whether the last child element within a DockLayout stretches to fill the remaining available space. + * The default value is true. + */ + stretchLastChild: boolean; +} + +declare class DOMNode { + nodeId: any; + nodeType: any; + nodeName: any; + localName: any; + nodeValue: string; + attributes: string[]; + viewRef: WeakRef; + constructor(view: ViewBase); + loadAttributes(): void; + readonly children: DOMNode[]; + onChildAdded(childView: ViewBase): void; + onChildRemoved(view: ViewBase): void; + attributeModified(name: string, value: any): void; + attributeRemoved(name: string): void; + getComputedProperties(): CSSComputedStyleProperty[]; + dispose(): void; + toJSON(): string; +} + +/** + * Provides data for downloaded event. + */ +export declare interface DownloadedData extends EventData { + /** + * A string indentifier of the cached image. + */ + key: string; + /** + * Gets the cached image. + */ + image: ImageSource; +} + +/** + * Provides data for download error. + */ +export declare interface DownloadError extends EventData { + /** + * A string indentifier of the cached image. + */ + key: string; + /** + * Gets the error. + */ + error: Error; +} + +/** + * Represents a single download request. + */ +export declare interface DownloadRequest { + /** + * The url of the image. + */ + url: string; + /** + * The key used to cache the image. + */ + key: string; + /** + * An optional function to be called when the download is complete. + */ + completed?: (image: any, key: string) => void; + /** + * An optional function to be called if the download errors. + */ + error?: (key: string) => void; +} + +/** + * Prints the timer for all methods instrumented with profile decorator. + */ +declare function dumpProfiles(): void; + +/** + * Represents the base class for all editable text views. + */ +export declare class EditableTextBase extends TextBase { + public static blurEvent: string; + public static focusEvent: string; + public static textChangeEvent: string; + + /** + * Gets or sets the soft keyboard type. + */ + keyboardType: KeyboardType; + + /** + * Gets or sets the soft keyboard return key flavor. + */ + returnKeyType: ReturnKeyType; + + /** + * Gets or sets a value indicating when the text property will be updated. + */ + updateTextTrigger: UpdateTextTrigger; + + /** + * Gets or sets the autocapitalization type. + */ + autocapitalizationType: AutocapitalizationType; + + /** + * Gets or sets whether the instance is editable. + */ + editable: boolean; + + /** + * Enables or disables autocorrection. + */ + autocorrect: boolean; + + /** + * Gets or sets the placeholder text. + */ + hint: string; + + /** + * Limits input to a certain number of characters. + */ + maxLength: number; + + /** + * Hides the soft input method, ususally a soft keyboard. + */ + dismissSoftInput(): void; + + //@private + /** + * @private + */ + public _setInputType(inputType: number): void; + //@endprivate +} + +/** + * Enables profiling. + * + * Upon loading of the module it will cache the package.json of the app and check if there is a "profiling" key set, + * its value can be one of the options available for InstrumentationMode, and if set, + * enable() will be called in pre app start with the value in the package.json. + * + * An example for an `app/package.json` enabling the manual instrumentation profiling is: + * ``` + * { + * "main": "main.js", + * "profiling": "timeline" + * } + * ``` + * + * @param type Profiling mode to use. + * - "counters" - Accumulates method call counts and times until dumpProfiles is called and then prints aggregated statistic in the console. This is the default. + * - "timeline" - Outputs method names along start/end timestamps in the console on the go. + * - "lifecycle" - Outputs basic non-verbose times for startup, navigation, etc. + */ +declare function enable(type?: InstrumentationMode): void; /** */ + +/** + * Allows you to trace and print specific information based on categories. + * @module "trace" + */ /** + * Enables the trace module. + */ +declare function enable_2(): void; + +/** + * Defines the supported character encodings. + */ +export declare module encoding { + /** + * Denotes ISO-8859-1 character encoding. + */ + const ISO_8859_1: any; + + /** + * Denotes US_ASCII character encoding. + */ + const US_ASCII: any; + + /** + * Denotes UTF_16 character encoding. + */ + const UTF_16: any; + + /** + * Denotes UTF_16BE character encoding. + */ + const UTF_16BE: any; + + /** + * Denotes UTF_16LE character encoding. + */ + const UTF_16LE: any; + + /** + * Denotes UTF_8 character encoding. + */ + const UTF_8: any; +} + +/** + * Passes an error to the registered ErrorHandler + * @param error The error to be handled. + */ +declare function error(error: string | Error); + +/** + * An interface used to for handling trace error + */ +export declare interface ErrorHandler { + handlerError(error: Error); +} /** */ + +/** + * Contains the Observable class, which represents an observable object, or "data" in the model-view paradigm. + * @module "data/observable" + */ /** + * Base event data. + */ +export declare interface EventData { + /** + * The name of the event. + */ + eventName: string; + /** + * The Observable instance that has raised the event. + */ + object: Observable; +} + +/** + * Checks if the current thread is the main thread. Directly calls the passed function + * if it is, or dispatches it to the main thread otherwise. + * @param func The function to execute on the main thread. + */ +declare function executeOnMainThread(func: Function); + +/** + * Represents a File entity on the file system. + */ +export declare class File extends FileSystemEntity { + /** + * Checks whether a File with the specified path already exists. + * @param path The path to check for. + */ + static exists(path: string): boolean; + + /** + * Gets the extension of the file. + */ + extension: string; + + /** + * Gets the size in bytes of the file. + */ + size: number; + + /** + * Gets a value indicating whether the file is currently locked, meaning a background operation associated with this file is running. + */ + isLocked: boolean; + + /** + * Gets or creates a File entity at the specified path. + * @param path The path to get/create the file at. + */ + static fromPath(path: string): File; + + /** + * Reads the content of the file as a string using the specified encoding (defaults to UTF-8). + * @param encoding An optional value specifying the preferred encoding (defaults to UTF-8). + */ + readText(encoding?: string): Promise; + + /** + * Reads the content of the file as a string synchronously, using the specified encoding (defaults to UTF-8). + * @param onError An optional function to be called if some IO-error occurs. + * @param encoding An optional value specifying the preferred encoding (defaults to UTF-8). + */ + readTextSync(onError?: (error: any) => any, encoding?: string): string; + + /** + * Reads the binary content of the file asynchronously. + */ + read(): Promise; + + /** + * Reads the binary content of the file synchronously. + * @param onError An optional function to be called if some IO-error occurs. + */ + readSync(onError?: (error: any) => any): any; + + /** + * Writes the provided string to the file, using the specified encoding (defaults to UTF-8). + * @param content The content to be saved to the file. + * @param encoding An optional value specifying the preferred encoding (defaults to UTF-8). + */ + writeText(content: string, encoding?: string): Promise; + + /** + * Writes the provided string to the file synchronously, using the specified encoding (defaults to UTF-8). + * @param content The content to be saved to the file. + * @param onError An optional function to be called if some IO-error occurs. + * @param encoding An optional value specifying the preferred encoding (defaults to UTF-8). + */ + writeTextSync(content: string, onError?: (error: any) => any, encoding?: string): void; + + /** + * Writes the provided binary content to the file. + * @param content The binary content to be saved to the file. + */ + write(content: any): Promise; + + /** + * Writes the provided binary content to the file synchronously. + * @param content The binary content to be saved to the file. + * @param onError An optional function to be called if some IO-error occurs. + */ + writeSync(content: any, onError?: (error: any) => any): void; +} /** */ + +/** + * Provides high-level abstractions for file system entities such as files, folders, known folders, paths, separators, etc. + * @module "file-system" + */ /** + * Represents a single entity on the file system. + */ +export declare class FileSystemEntity { + /** + * Gets the Date object specifying the last time this entity was modified. + */ + lastModified: Date; + + /** + * Gets the name of the entity. + */ + name: string; + + /** + * Gets the fully-qualified path (including the extension for a File) of the entity. + */ + path: string; + + /** + * Gets the Folder object representing the parent of this entity. + * Will be null for a root folder like Documents or Temporary. + * This property is readonly. + */ + parent: Folder; + + /** + * Removes (deletes) the current Entity from the file system. + */ + remove(): Promise; + + /** + * Removes (deletes) the current Entity from the file system synchronously. + */ + removeSync(onError?: (error: any) => any): void; + + /** + * Renames the current entity using the specified name. + * @param newName The new name to be applied to the entity. + */ + rename(newName: string): Promise; + + /** + * Renames the current entity synchronously, using the specified name. + * @param newName The new name to be applied to the entity. + */ + renameSync(newName: string, onError?: (error: any) => any): void; +} + +export declare class FlexboxLayout extends LayoutBase { + public flexDirection: FlexDirection; + public flexWrap: FlexWrap; + public justifyContent: JustifyContent; + public alignItems: AlignItems; + public alignContent: AlignContent; + + public static setOrder(view: View, order: number); + public static getOrder(view: View): number; + + public static setFlexGrow(view: View, grow: number); + public static getFlexGrow(view: View); + + public static setFlexShrink(view: View, shrink: number); + public static getFlexShrink(view: View): number; + + public static setAlignSelf(view: View, align: AlignSelf); + public static getAlignSelf(view: View): AlignSelf; + + public static setFlexWrapBefore(view: View, wrap: boolean); + public static getFlexWrapBefore(view: View): boolean; +} + +declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'; + +/** + * A flex-grow number. Negative values are invalid. + */ +declare type FlexGrow = number; + +/** + * A flex-shrink number. Negative values are invalid. + */ +declare type FlexShrink = number; + +declare type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse'; + +/** + * A flex-wrap-before value. True, false or their string presentations "true" or "false". + */ +declare type FlexWrapBefore = boolean; + +/** + * Flush all changes to disk synchronously. + * @return boolean flag indicating if changes were saved successfully to disk. + */ +declare function flush(): boolean; + +/** + * Represents a Folder (directory) entity on the file system. + */ +export declare class Folder extends FileSystemEntity { + /** + * Determines whether this instance is a KnownFolder (accessed through the KnownFolders object). + */ + isKnown: boolean; + + /** + * Gets or creates a Folder entity at the specified path. + * @param path The path to get/create the folder at. + */ + static fromPath(path: string): Folder; + + /** + * Checks whether a Folder with the specified path already exists. + * @param path The path to check for. + */ + static exists(path: string): boolean; + + /** + * Checks whether this Folder contains an Entity with the specified name. + * The path of the folder is added to the name to resolve the complete path to check for. + * @param name The name of the entity to check for. + */ + contains(name: string): boolean; + + /** + * Deletes all the files and folders (recursively), contained within this Folder. + */ + clear(): Promise; + + /** + * Deletes all the files and folders (recursively), contained within this Folder synchronously. + * @param onError An optional function to be called if some error occurs. + */ + clearSync(onError?: (error: any) => void): void; + + /** + * Gets or creates a File entity with the specified name within this Folder. + * @param name The name of the file to get/create. + */ + getFile(name: string): File; + + /** + * Gets or creates a Folder entity with the specified name within this Folder. + * @param name The name of the folder to get/create. + */ + getFolder(name: string): Folder; + + /** + * Gets all the top-level entities residing within this folder. + */ + getEntities(): Promise>; + + /** + * Gets all the top-level entities residing within this folder synchronously. + * @param onError An optional function to be called if some error occurs. + */ + getEntitiesSync(onError?: (error: any) => any): Array; + + /** + * Enumerates all the top-level FileSystem entities residing within this folder. + * @param onEntity A callback that receives the current entity. If the callback returns false this will mean for the iteration to stop. + */ + eachEntity(onEntity: (entity: FileSystemEntity) => boolean); +} /** */ + +/** + * @module "ui/styling/font" + */ declare class Font { + public static default: Font; + + public fontFamily: string; + public fontStyle: FontStyle; + public fontWeight: FontWeight; + public fontSize: number; + + public isBold: boolean; + public isItalic: boolean; + + constructor(family: string, size: number, style: FontStyle, weight: FontWeight); + + public getAndroidTypeface(): any /* android.graphics.Typeface */; + public getUIFont(defaultFont: any /* UIFont */): any /* UIFont */; + + public withFontFamily(family: string): Font; + public withFontStyle(style: string): Font; + public withFontWeight(weight: string): Font; + public withFontSize(size: number): Font; + + public static equals(value1: Font, value2: Font): boolean; +} + +declare type FontStyle = 'normal' | 'italic'; + +declare namespace FontStyle { + const NORMAL: 'normal'; + const ITALIC: 'italic'; + function isValid(value: any): boolean; + function parse(value: string): FontStyle; +} + +declare type FontWeight = '100' | '200' | '300' | 'normal' | '400' | '500' | '600' | 'bold' | '700' | '800' | '900'; + +declare namespace FontWeight { + const THIN: '100'; + const EXTRA_LIGHT: '200'; + const LIGHT: '300'; + const NORMAL: 'normal'; + const MEDIUM: '500'; + const SEMI_BOLD: '600'; + const BOLD: 'bold'; + const EXTRA_BOLD: '800'; + const BLACK: '900'; + function isValid(value: any): boolean; + function parse(value: string): FontWeight; +} + +/** + * A class used to create a formatted (rich text) string. + */ +export declare class FormattedString extends ViewBase { + /** + * An observable collection of Span objects used to define common text properties. + */ + public spans: ObservableArray; + + /** + * A human readable representation of the formatted string. + */ + public toString(): string; + + /** + * Gets or sets the font family which will be used for all spans that doesn't have a specific value. + */ + public fontFamily: string; + + /** + * Gets or sets the font size which will be used for all spans that doesn't have a specific value. + */ + public fontSize: number; + + /** + * Gets or sets the font style which will be used for all spans that doesn't have a specific value. + */ + public fontStyle: FontStyle; + + /** + * Gets or sets the font weight which will be used for all spans that doesn't have a specific value. + */ + public fontWeight: FontWeight; + + /** + * Gets or sets text decorations which will be used for all spans that doesn't have a specific value. + */ + public textDecoration: TextDecoration; + + /** + * Gets or sets the font foreground color which will be used for all spans that doesn't have a specific value. + */ + public color: Color; + + /** + * Gets or sets the font background color which will be used for all spans that doesn't have a specific value. + */ + public backgroundColor: Color; +} + +/** + * Represents the logical View unit that is responsible for navigation within an application. + * Nested frames are supported, enabling hierarchical navigation scenarios. + */ +export declare class Frame extends View { + /** + * Gets a frame by id. + */ + static getFrameById(id: string): Frame; + + /** + * Gets the topmost frame in the frames stack. An application will typically has one frame instance. Multiple frames handle nested (hierarchical) navigation scenarios. + */ + static topmost(): Frame; + + /** + * Navigates back using the navigation hierarchy (if any). Updates the Frame stack as needed. + * This method will start from the topmost Frame and will recursively search for an instance that has the canGoBack operation available. + */ + static goBack(); + + /** + * @private + */ + static reloadPage(context?: ModuleContext): void; + + /** + * @private + */ + static _stack(): Array; + + /** + * Navigates to the previous entry (if any) in the back stack. + * @param to The backstack entry to navigate back to. + */ + goBack(to?: BackstackEntry); + + /** + * Checks whether the goBack operation is available. + */ + canGoBack(): boolean; + + /** + * Navigates to a Page instance as described by the module name. + * This method will require the module and will check for a Page property in the exports of the module. + * @param pageModuleName The name of the module to require starting from the application root. + * For example if you want to navigate to page called "myPage.js" in a folder called "subFolder" and your root folder is "app" you can call navigate method like this: + * const frames = require("@nativescript/core/ui/frame"); + * frames.topmost().navigate("app/subFolder/myPage"); + */ + navigate(pageModuleName: string); + + /** + * Creates a new Page instance using the provided callback and navigates to that Page. + * @param create The function to be used to create the new Page instance. + */ + navigate(create: () => Page); + + /** + * Navigates to a Page resolved by the provided NavigationEntry object. + * Since there are a couple of ways to specify a Page instance through an entry, there is a resolution priority: + * 1. entry.moduleName + * 2. entry.create() + * @param entry The NavigationEntry instance. + */ + navigate(entry: NavigationEntry); + + /** + * Used to control the visibility the Navigation Bar in iOS and the Action Bar in Android. + */ + public actionBarVisibility: 'auto' | 'never' | 'always'; + + /** + * Gets the back stack of this instance. + */ + backStack: Array; + + /** + * Gets the Page instance the Frame is currently navigated to. + */ + currentPage: Page; + + /** + * Gets the NavigationEntry instance the Frame is currently navigated to. + */ + currentEntry: NavigationEntry; + + /** + * Gets or sets if navigation transitions should be animated. + */ + animated: boolean; + + /** + * Gets or sets the default navigation transition for this frame. + */ + transition: NavigationTransition; + + /** + * Gets or sets if navigation transitions should be animated globally. + */ + static defaultAnimatedNavigation: boolean; + + /** + * Gets or sets the default NavigationTransition for all frames across the app. + */ + static defaultTransition: NavigationTransition; + + /** + * Gets the AndroidFrame object that represents the Android-specific APIs for this Frame. Valid when running on Android OS. + */ + android: AndroidFrame; + + /** + * Gets the iOSFrame object that represents the iOS-specific APIs for this Frame. Valid when running on iOS. + */ + ios: iOSFrame; + + //@private + /** + * @private + * @param entry to check + */ + isCurrent(entry: BackstackEntry): boolean; + + /** + * @private + * @param entry to set as current + * @param navigationType + */ + setCurrent(entry: BackstackEntry, navigationType: NavigationType): void; + /** + * @private + */ + navigationQueueIsEmpty(): boolean; + /** + * @private + */ + navigationBarHeight: number; + /** + * @private + */ + _animationInProgress: boolean; + /** + * @private + */ + _currentEntry: BackstackEntry; + /** + * @private + */ + _executingContext: NavigationContext; + /** + * @private + */ + _processNavigationQueue(page: Page); + /** + * @private + */ + _getIsAnimatedNavigation(entry: NavigationEntry): boolean; + /** + * @private + */ + _getNavigationTransition(entry: NavigationEntry): NavigationTransition; + /** + * @private + */ + _updateActionBar(page?: Page, disableNavBarAnimation?: boolean); + /** + * @private + * @param navigationContext + */ + public performNavigation(navigationContext: NavigationContext): void; + /** + * @private + */ + _getNavBarVisible(page: Page): boolean; + /** + * @private + */ + _findEntryForTag(fragmentTag: string): BackstackEntry; + /** + * @private + */ + _updateBackstack(entry: BackstackEntry, navigationType: NavigationType): void; + /** + * @private + */ + _pushInFrameStack(); + /** + * @private + */ + _pushInFrameStackRecursive(); + /** + * @private + */ + _removeFromFrameStack(); + //@endprivate + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (args: EventData) => void, thisArg?: any); +} + +/** + * An utility function that invokes garbage collection on the JavaScript side. + */ +declare function GC(); + +/** + * Provides gesture event data. + */ +export declare interface GestureEventData extends EventData { + /** + * Gets the type of the gesture. + */ + type: GestureTypes; + /** + * Gets the view which originates the gesture. + */ + view: View; + /** + * Gets the underlying native iOS specific [UIGestureRecognizer](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIGestureRecognizer_Class/). + */ + ios: any /* UIGestureRecognizer */; + /** + * Gets the underlying native android specific [gesture detector](http://developer.android.com/reference/android/view/GestureDetector.html). + */ + android: any; +} + +/** + * Provides gesture event data. + */ +export declare interface GestureEventDataWithState extends GestureEventData { + state: number; +} + +/** + * Provides options for the GesturesObserver. + */ +export declare class GesturesObserver { + /** + * Creates an instance of GesturesObserver class. + * @param target - The view for which the observer is created. + * @param callback - A function that will be executed when a gesture is received. + * @param context - default this argument for the callbacks. + */ + constructor(target: View, callback: (args: GestureEventData) => void, context: any); + + /** + * Registers a gesture observer to a view and gesture. + * @param type - Type of the gesture. + */ + observe(type: GestureTypes); + + /** + * Disconnects the gesture observer. + */ + disconnect(); + + /** + * Gesture type attached to the observer. + */ + type: GestureTypes; + + /** + * A function that will be executed when a gesture is received. + */ + callback: (args: GestureEventData) => void; + + /** + * A context which will be used as `this` in callback execution. + */ + context: any; + + /** + * An internal Android specific method used to pass the motion event to the correct gesture observer. + */ + androidOnTouchEvent: (motionEvent: any /* android.view.MotionEvent */) => void; +} + +/** + * Defines an enum with supported gesture states. + */ +export declare enum GestureStateTypes { + /** + * Gesture canceled. + */ + cancelled, + /** + * Gesture began. + */ + began, + /** + * Gesture changed. + */ + changed, + /** + * Gesture ended. + */ + ended, +} + +/** + * Defines an enum with supported gesture types. + */ +export declare enum GestureTypes { + /** + * Denotes tap (click) gesture. + */ + tap, + /** + * Denotes double tap gesture. + */ + doubleTap, + /** + * Denotes pinch gesture. + */ + pinch, + /** + * Denotes pan gesture. + */ + pan, + /** + * Denotes swipe gesture. + */ + swipe, + /** + * Denotes rotation gesture. + */ + rotation, + /** + * Denotes long press gesture. + */ + longPress, + /** + * Denotes touch action. + */ + touch, +} + +/** + * Get all stored keys + * @return Array containing all stored keys + */ +declare function getAllKeys(): Array; + +/** + * Gets a value (if existing) for a key as a Boolean Object. A default value can be provided in case there is no existing value. + * @param key The key to check for. + * @param defaultValue An optional value to be returned in case there is no existing value. + */ +declare function getBoolean(key: string, defaultValue?: boolean): boolean; /** */ + +/** + * Contains connectivity utility methods. + * @module "connectivity" + */ /** + * Gets the type of connection. + * Returns a value from the connectivity.connectionType enumeration. + * To use this method on Android you need to have the android.permission.ACCESS_NETWORK_STATE permission added to the AndroidManifest.xml file. + */ +declare function getConnectionType(): number; + +/** + * Gets css file name for the application. + */ +declare function getCssFileName(): string; + +/** + * Downloads the content from the specified URL and attempts to save it as file. + * @param url The URL to request from. + * @param destinationFilePath Optional. The downloaded file path. + */ +declare function getFile(url: string, destinationFilePath?: string): Promise; + +/** + * Downloads the content from the specified URL and attempts to save it as file. + * @param options An object that specifies various request options. + * @param destinationFilePath Optional. The downloaded file path. + */ +declare function getFile(options: HttpRequestOptions, destinationFilePath?: string): Promise; + +/** + * Downloads the content from the specified URL and attempts to decode it as an image. + * @param url The URL to request from. + */ +declare function getImage(url: string): Promise; + +/** + * Downloads the content from the specified URL and attempts to decode it as an image. + * @param options An object that specifies various request options. + */ +declare function getImage(options: HttpRequestOptions): Promise; + +/** + * Downloads the content from the specified URL as a string and returns its JSON.parse representation. + * @param url The URL to request from. + */ +declare function getJSON(url: string): Promise; + +/** + * Downloads the content from the specified URL as a string and returns its JSON.parse representation. + * @param options An object that specifies various request options. + */ +declare function getJSON(options: HttpRequestOptions): Promise; + +/** + * Get main entry specified when calling start function. + */ +declare function getMainEntry(): NavigationEntry; + +/** + * Gets module name from path. + * @param path The module path. + */ +declare function getModuleName(path: string): string; + +declare function getNativeApplication(): any; + +/** + * Gets a value (if existing) for a key as a Number Object. A default value can be provided in case there is no existing value. + * @param key The key to check for. + * @param defaultValue An optional value to be returned in case there is no existing value. + */ +declare function getNumber(key: string, defaultValue?: number): number; + +/** + * Get current application root view. + */ +declare function getRootView(): View; + +/** + * Gets a value (if existing) for a key as a String Object. A default value can be provided in case there is no existing value. + * @param key The key to check for. + * @param defaultValue An optional value to be returned in case there is no existing value. + */ +declare function getString(key: string, defaultValue?: string): string; + +/** + * Downloads the content from the specified URL as a string. + * @param url The URL to request from. + */ +declare function getString_2(url: string): Promise; + +/** + * Downloads the content from the specified URL as a string. + * @param options An object that specifies various request options. + */ +declare function getString_2(options: HttpRequestOptions): Promise; + +/** + * Defines a rectangular layout area that consists of columns and rows. + */ +export declare class GridLayout extends LayoutBase { + /** + * Gets the value of the Column attached property from a given View. + */ + static getColumn(view: View): number; + + /** + * Sets the value of the Column attached property to a given View. + */ + static setColumn(view: View, value: number): void; + + /** + * Gets the value of the ColumnSpan attached property from a given View. + */ + static getColumnSpan(view: View): number; + + /** + * Sets the value of the ColumnSpan attached property to a given View. + */ + static setColumnSpan(view: View, value: number): void; + + /** + * Gets the value of the Row attached property from a given View. + */ + static getRow(view: View): number; + + /** + * Sets the value of the Row attached property to a given View. + */ + static setRow(view: View, value: number): void; + + /** + * Gets the value of the RowSpan attached property from a given View. + */ + static getRowSpan(view: View): number; + + /** + * Sets the value of the RowSpan attached property to a given View. + */ + static setRowSpan(view: View, value: number): void; + + /** + * Adds a column specification to a GridLayout. + */ + public addColumn(itemSpec: ItemSpec): void; + + /** + * Adds a row specification to a GridLayout. + */ + public addRow(itemSpec: ItemSpec): void; + + /** + * Adds a child at specific cell in GridLayout. Optional rowSpan and columnSpan attributes + */ + public addChildAtCell(view: View, row: number, column: number, rowSpan?: number, columnSpan?: number): void; + + /** + * Removes a column specification from a GridLayout. + */ + public removeColumn(itemSpec: ItemSpec): void; + + /** + * Removes all column specifications from a GridLayout. + */ + public removeColumns(): void; + + /** + * Removes a row specification from a GridLayout. + */ + public removeRow(itemSpec: ItemSpec): void; + + /** + * Removes all row specifications from a GridLayout. + */ + public removeRows(): void; + + /** + * Gets array of column specifications defined on this instance of GridLayout. + */ + public getColumns(): Array; + + /** + * Gets array of row specifications defined on this instance of GridLayout. + */ + public getRows(): Array; + + //@private + /** + * @private + */ + public _onRowAdded(itemSpec: ItemSpec): void; + /** + * @private + */ + public _onColumnAdded(itemSpec: ItemSpec): void; + /** + * @private + */ + public _onRowRemoved(itemSpec: ItemSpec, index: number): void; + /** + * @private + */ + public _onColumnRemoved(itemSpec: ItemSpec, index: number): void; + //@endprivate +} + +export declare type GridUnitType = 'pixel' | 'star' | 'auto'; + +export declare namespace GridUnitType { + const PIXEL: 'pixel'; + const STAR: 'star'; + const AUTO: 'auto'; + export function isValid(value: any): boolean; + export function parse(value: string): GridUnitType; +} /** */ + +/** + * Allows you to save and restore any kind of information related to your application. + * @module "application-settings" + */ /** + * Checks whether such a key exists. + * @param key The key to check for. + */ +declare function hasKey(key: string): boolean; + +/** + * Indicates if the application is allready launched. See also the `application.on("launch", handler)` event. + */ +declare function hasLaunched(): boolean; + +export declare type Headers = { [key: string]: string | string[] }; + +declare type HorizontalAlignment = 'left' | 'center' | 'right' | 'stretch'; + +/** + * Represents a view with html content. Use this component instead WebView when you want to show just static HTML content. + * [iOS support](https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata) + * [android support](http://developer.android.com/reference/android/text/Html.html) + */ +export declare class HtmlView extends View { + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.TextView */; + + /** + * Gets the native [UITextView](https://developer.apple.com/documentation/uikit/uitextview) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITextView */; + + /** + * Gets or sets html string for the HtmlView. + */ + html: string; +} + +export declare const Http: { + getFile: typeof getFile; + getImage: typeof getImage; + getJSON: typeof getJSON; + getString: typeof getString_2; + request: typeof request; +}; + +/** + * Encapsulates the content of an HttpResponse. + */ +export declare interface HttpContent { + /** + * Gets the response body as raw data. + */ + raw: any; + + /** + * Gets the response body as ArrayBuffer + */ + toArrayBuffer: () => ArrayBuffer; + + /** + * Gets the response body as string. + */ + toString: (encoding?: HttpResponseEncoding) => string; + + /** + * Gets the response body as JSON object. + */ + toJSON: (encoding?: HttpResponseEncoding) => any; + + /** + * Gets the response body as ImageSource. + */ + toImage: () => Promise; + + /** + * Gets the response body as file. + */ + toFile: (destinationFilePath?: string) => File; +} + +/** + * Provides options for the http requests. + */ +export declare interface HttpRequestOptions { + /** + * Gets or sets the request url. + */ + url: string; + + /** + * Gets or sets the request method. + */ + method: string; + + /** + * Gets or sets the request headers in JSON format. + */ + headers?: any; + + /** + * Gets or sets the request body. + */ + content?: string | FormData | ArrayBuffer; + + /** + * Gets or sets the request timeout in milliseconds. + */ + timeout?: number; + + /** + * Gets or sets wether to *not* follow server's redirection responses. + */ + dontFollowRedirects?: boolean; +} + +/** + * Encapsulates HTTP-response information from an HTTP-request. + */ +export declare interface HttpResponse { + /** + * Gets the response status code. + */ + statusCode: number; + + /** + * Gets the response headers. + */ + headers: Headers; + + /** + * Gets the response content. + */ + content?: HttpContent; +} + +export declare enum HttpResponseEncoding { + UTF8, + GBK, +} + +/** + * Represents a class that provides functionality for loading and streching image(s). + */ +export declare class Image extends View { + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/ImageView.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.ImageView */; + + /** + * Gets the native iOS [UIImageView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImageView_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UIImageView */; + + /** + * Gets or sets the image source of the image. + */ + imageSource: ImageSource; + + /** + * Gets or sets the source of the Image. This can be either an URL string or a native image instance. + */ + src: any; + + /** + * Gets a value indicating if the image is currently loading. + */ + readonly isLoading: boolean; + + /** + * Gets or sets the image stretch mode. + */ + stretch: Stretch; + + /** + * Gets or sets the loading strategy for images on the local file system: + * - **sync** - blocks the UI if necessary to display immediately, good for small icons. + * - **async** *(default)* - will load in the background, may appear with short delay, good for large images. + * When loading images from web they are always loaded **async** no matter of loadMode value. + */ + loadMode: 'sync' | 'async'; + + /** + * A color used to tint template images. + */ + tintColor: Color; + + /** + * Gets or sets the desired decode height of the image. + * This property is Android specific. + */ + decodeHeight: Length; + + /** + * Gets or sets the desired decode width of the image. + * This property is Android specific. + */ + decodeWidth: Length; +} + +export declare class ImageAsset extends Observable { + constructor(asset: any); + getImageAsync(callback: (image: any, error: any) => void); //UIImage for iOS and android.graphics.Bitmap for Android + ios: any; //PHAsset + nativeImage: any; //UIImage for iOS and android.graphics.Bitmap for Android + android: any; + options: ImageAssetOptions; +} + +export declare interface ImageAssetOptions { + width?: number; + height?: number; + keepAspectRatio?: boolean; + autoScaleFactor?: boolean; +} + +/** + * Represents a class that stores handles image download requests and caches the already downloaded images. + */ +export declare class ImageCache extends Observable { + /** + * String value used when hooking to downloaded event. + */ + public static downloadedEvent: string; + /** + * String value used when hooking to download error event. + */ + public static downloadErrorEvent: string; + /** + * The image to be used to notify for a pending download request - e.g. loading indicator. + */ + placeholder: ImageSource; + /** + * The maximum number of simultaneous download requests. Defaults to 5. + */ + maxRequests: number; + + /** + * Enables previously suspended download requests. + */ + enableDownload(): void; + /** + * Temporary disables download requests. + */ + disableDownload(): void; + + /** + * Adds a new download request at the top of the download queue. This will be the next immediate download to start. + */ + push(request: DownloadRequest); + /** + * Adds a new download request at the end of the download queue. This will be the last download to start. + */ + enqueue(request: DownloadRequest); + + /** + * Gets the image for the specified key. May be undefined if the key is not present in the cache. + */ + get(key: string): any; + /** + * Sets the image for the specified key. + */ + set(key: string, image: any): void; + /** + * Removes the cache for the specified key. + */ + remove(key: string): void; + /** + * Removes all the previously cached images. + */ + clear(): void; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (args: EventData) => void, thisArg?: any); + + /** + * Raised when the image has been downloaded. + */ + on(event: 'downloaded', callback: (args: DownloadedData) => void, thisArg?: any); + + /** + * Raised if the image download errors. + */ + on(event: 'downloadError', callback: (args: DownloadError) => void, thisArg?: any); + + //@private + /** + * @private + */ + _downloadCore(request: DownloadRequest); + /** + * @private + */ + _onDownloadCompleted(key: string, image: any); + //@endprivate + /** + * @private + */ + _onDownloadError(key: string, err: Error); + //@endprivate +} + +/** + * Encapsulates the common abstraction behind a platform specific object (typically a Bitmap) that is used as a source for images. + */ +export declare class ImageSource { + /** + * Gets the height of this instance. This is a read-only property. + */ + height: number; + + /** + * Gets the width of this instance. This is a read-only property. + */ + width: number; + + /** + * Gets or sets the rotation angle that should be applied to the image. (Used in android) + */ + rotationAngle: number; + + /** + * The iOS-specific [UIImage](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/) instance. Will be undefined when running on Android. + */ + ios: any /* UIImage */; + + /** + * The Android-specific [image](http://developer.android.com/reference/android/graphics/Bitmap.html) instance. Will be undefined when running on iOS. + */ + android: any /* android.graphics.Bitmap */; + + /** + * Loads this instance from the specified asset asynchronously. + * @param asset The ImageAsset instance used to create ImageSource. + */ + static fromAsset(asset: ImageAsset): Promise; + + /** + * Downloads the image from the provided Url and creates a new ImageSource instance from it. + * @param url The link to the remote image object. This operation will download and decode the image. + */ + static fromUrl(url: string): Promise; + + /** + * Loads this instance from the specified resource name. + * @param name The name of the resource (without its extension). + */ + static fromResourceSync(name: string): ImageSource; + + /** + * Loads this instance from the specified resource name asynchronously. + * @param name The name of the resource (without its extension). + */ + static fromResource(name: string): Promise; + + /** + * Loads this instance from the specified file. + * @param path The location of the file on the file system. + */ + static fromFileSync(path: string): ImageSource; + + /** + * Loads this instance from the specified file asynchronously. + * @param path The location of the file on the file system. + */ + static fromFile(path: string): Promise; + + /** + * Creates a new ImageSource instance and loads it from the specified local file or resource (if specified with the "res://" prefix). + * @param path The location of the file on the file system. + */ + static fromFileOrResourceSync(path: string): ImageSource; + + /** + * Loads this instance from the specified native image data. + * @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS. + */ + static fromDataSync(data: any): ImageSource; + + /** + * Loads this instance from the specified native image data asynchronously. + * @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS. + */ + static fromData(data: any): Promise; + + /** + * Loads this instance from the specified base64 encoded string. + * @param source The Base64 string to load the image from. + */ + static fromBase64Sync(source: string): ImageSource; + + /** + * Loads this instance from the specified base64 encoded string asynchronously. + * @param source The Base64 string to load the image from. + */ + static fromBase64(source: string): Promise; + + /** + * Creates a new ImageSource instance and loads it from the specified font icon code. + * @param source The hex font icon code string + * @param font The font for the corresponding font icon code + * @param color The color of the generated icon image + */ + static fromFontIconCodeSync(source: string, font: Font, color: Color): ImageSource; + + /** + * Creates a new ImageSource instance and sets the provided native source object (typically a Bitmap). + * The native source object will update either the android or ios properties, depending on the target os. + * @param nativeSource The native image object. Will be either a Bitmap for Android or a UIImage for iOS. + */ + constructor(nativeSource?: any); + + /** + * @deprecated Use ImageSource.fromAsset() instead. + * Loads this instance from the specified asset asynchronously. + * @param asset The ImageAsset instance used to create ImageSource. + */ + fromAsset(asset: ImageAsset): Promise; + + /** + * @deprecated Use ImageSource.fromResourceSync() instead. + * Loads this instance from the specified resource name. + * @param name The name of the resource (without its extension). + */ + loadFromResource(name: string): boolean; + + /** + * @deprecated Use ImageSource.fromResource() instead. + * Loads this instance from the specified resource name asynchronously. + * @param name The name of the resource (without its extension). + */ + fromResource(name: string): Promise; + + /** + * @deprecated Use ImageSource.fromFileSync() instead. + * Loads this instance from the specified file. + * @param path The location of the file on the file system. + */ + loadFromFile(path: string): boolean; + + /** + * @deprecated Use ImageSource.fromFile() instead. + * Loads this instance from the specified file asynchronously. + * @param path The location of the file on the file system. + */ + fromFile(path: string): Promise; + + /** + * @deprecated Use ImageSource.fromDataSync() instead. + * Loads this instance from the specified native image data. + * @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS. + */ + loadFromData(data: any): boolean; + + /** + * @deprecated Use ImageSource.fromData() instead. + * Loads this instance from the specified native image data asynchronously. + * @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS. + */ + fromData(data: any): Promise; + + /** + * @deprecated Use ImageSource.fromBase64Sync() instead. + * Loads this instance from the specified base64 encoded string. + * @param source The Base64 string to load the image from. + */ + loadFromBase64(source: string): boolean; + + /** + * @deprecated Use ImageSource.fromBase64() instead. + * Loads this instance from the specified base64 encoded string asynchronously. + * @param source The Base64 string to load the image from. + */ + fromBase64(source: string): Promise; + + /** + * @deprecated Use ImageSource.fromFontIconCode() instead. + * Loads this instance from the specified font icon code. + * @param source The hex font icon code string + * @param font The font for the corresponding font icon code + * @param color The color of the generated icon image + */ + loadFromFontIconCode(source: string, font: Font, color: Color): boolean; + + /** + * Sets the provided native source object (typically a Bitmap or a UIImage). + * This will update either the android or ios properties, depending on the target os. + * @param nativeSource The native image object. Will be either a Bitmap for Android or a UIImage for iOS. + */ + setNativeSource(nativeSource: any): void; + + /** + * Saves this instance to the specified file, using the provided image format and quality. + * @param path The path of the file on the file system to save to. + * @param format The format (encoding) of the image. + * @param quality Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100. + */ + saveToFile(path: string, format: 'png' | 'jpeg' | 'jpg', quality?: number): boolean; + + /** + * Converts the image to base64 encoded string, using the provided image format and quality. + * @param format The format (encoding) of the image. + * @param quality Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100. + */ + toBase64String(format: 'png' | 'jpeg' | 'jpg', quality?: number): string; + + /** + * Returns a new ImageSource that is a resized version of this image with the same aspect ratio, but the max dimension set to the provided maxSize. + * @param maxSize The maximum pixel dimension of the resulting image. + * @param options Optional parameter, Only used for android, options.filter is a boolean which + * determines whether or not bilinear filtering should be used when scaling the bitmap. + * If this is true then bilinear filtering will be used when scaling which has + * better image quality at the cost of worse performance. If this is false then + * nearest-neighbor scaling is used instead which will have worse image quality + * but is faster. Recommended default is to set filter to 'true' as the cost of + * bilinear filtering is typically minimal and the improved image quality is significant. + */ + resize(maxSize: number, options?: any): ImageSource; +} + +/** + * Profiling mode to use. + * - `counters` Accumulates method call counts and times until dumpProfiles is called and then prints aggregated statistic in the console. This is the default. + * - `timeline` Outputs method names along start/end timestamps in the console on the go. + * - `lifecycle` Outputs basic non-verbose times for startup, navigation, etc. + */ +export declare type InstrumentationMode = 'counters' | 'timeline' | 'lifecycle'; + +/** + * Module with ios specific utilities. + */ +declare module ios { + // Common properties between UILabel, UITextView and UITextField + interface TextUIView { + font: any; + textAlignment: number; + textColor: any; + text: string; + attributedText: any; + lineBreakMode: number; + numberOfLines: number; + } + + /** + * Utility module dealing with some iOS collections. + */ + module collections { + /** + * Converts JavaScript array to [NSArray](https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/). + * @param str - JavaScript string array to convert. + */ + function jsArrayToNSArray(str: string[]): any; + + /** + * Converts NSArray to JavaScript array. + * @param a - NSArray to convert. + */ + function nsArrayToJSArray(a: any): string[]; + } + + /** + * @deprecated use application.orientation instead + * + * Gets an information about if current mode is Landscape. + */ + function isLandscape(): boolean; + + /** + * Gets the iOS device major version (for 8.1 will return 8). + */ + const MajorVersion: number; + + /** + * Opens file with associated application. + * @param filePath The file path. + */ + function openFile(filePath: string): boolean; + + /** + * Joins an array of file paths. + * @param paths An array of paths. + * Returns the joined path. + */ + function joinPaths(...paths: string[]): string; + + /** + * Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps. + * iOS - this folder is read-only and contains the app and all its resources. + */ + function getCurrentAppPath(): string; + + /** + * Gets the currently visible(topmost) UIViewController. + * @param rootViewController The root UIViewController instance to start searching from (normally window.rootViewController). + * Returns the visible UIViewController. + */ + function getVisibleViewController(rootViewController: any /* UIViewController*/): any; /* UIViewController*/ +} + +/** + * Represents iOS specific options of the action item. + */ +declare interface IOSActionItemSettings { + /** + * Gets or sets the position of the action item in the action bar. + * 1. left - items is shown at the left part of the navigation bar. This is the default value. + * 2. right - items is shown at the right part of the navigation bar. + * Note: Property not applicable to NavigationButton + */ + position: 'left' | 'right'; + + /** + * Gets or sets a number representing the iOS system item to be displayed. + * Use this property instead of ActionItem.icon if you want to diplsay a built-in iOS system icon. + * Note: Property not applicable to NavigationButton + * The value should be a number from the UIBarButtonSystemItem enumeration + * (https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/#//apple_ref/c/tdef/UIBarButtonSystemItem) + * 0: Done + * 1: Cancel + * 2: Edit + * 3: Save + * 4: Add + * 5: FlexibleSpace + * 6: FixedSpace + * 7: Compose + * 8: Reply + * 9: Action + * 10: Organize + * 11: Bookmarks + * 12: Search + * 13: Refresh + * 14: Stop + * 15: Camera + * 16: Trash + * 17: Play + * 18: Pause + * 19: Rewind + * 20: FastForward + * 21: Undo + * 22: Redo + * 23: PageCurl + */ + systemIcon: number; +} + +/** + * The abstraction of an iOS-specific application object. + */ +export declare class iOSApplication { + /* tslint:enable */ + /** + * The root view controller for the application. + */ + rootController: any /* UIViewController */; + + /* tslint:enable */ + /** + * The key window. + */ + window: any /* UIWindow */; + + /** + * The [UIApplicationDelegate](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html) class. + */ + delegate: any /* typeof UIApplicationDelegate */; + + /** + * Gets or sets the orientation of the application. + * Available values: "portrait", "landscape", "unknown". + */ + orientation: 'portrait' | 'landscape' | 'unknown'; + + /** + * Gets the system appearance. + * Available values: "dark", "light", null. + * Null for iOS <= 11. + */ + systemAppearance: 'dark' | 'light' | null; + + /** + * The [UIApplication](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html). + */ + nativeApp: any /* UIApplication */; + + /** + * Adds an observer to the default notification center for the specified notification. + * For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/#//apple_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:' + * @param notificationName A string containing the name of the notification. + * @param onReceiveCallback A callback function that will be called each time the observer receives a notification. + */ + addNotificationObserver(notificationName: string, onReceiveCallback: (notification: any /* NSNotification */) => void): any; + + /** + * Removes the observer for the specified notification from the default notification center. + * For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/#//apple_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:' + * @param observer The observer that was returned from the addNotificationObserver method. + * @param notificationName A string containing the name of the notification. + * @param onReceiveCallback A callback function that will be called each time the observer receives a notification. + */ + removeNotificationObserver(observer: any, notificationName: string): void; +} + +/** + * Represents the iOS-specific Frame object, aggregated within the common Frame one. + * In iOS the native controller, associated with a Frame object is UINavigationController. + * The navigation controller will automatically hide/show its navigation bar depending on the back stack of the Frame. + */ +declare interface iOSFrame { + /** + * Gets the native [UINavigationController](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UINavigationController_Class/index.html) instance associated with this Frame. + */ + controller: any /* UINavigationController */; + + /** + * Gets or sets the visibility of navigationBar. + * Use NavBarVisibility enumeration - auto, never, always + */ + navBarVisibility: 'auto' | 'never' | 'always'; + + //@private + /** + * @private + */ + _disableNavBarAnimation: boolean; + //@endprivate +} + +/** + * IOS Alignment of the Tabs TabStrip to use. + * - `leading` - tab items are aligned to the left + * - `justified` - tab strip is split equally to all the tab items + * - `center` - tabs items are aligned in the center + * - `centerSelected` - tab items move to make the selected tab in the center + */ +export declare type IOSTabBarItemsAlignment = 'leading' | 'justified' | 'center' | 'centerSelected'; + +/** + * Gets a value indicating if the app is running on the Android platform. + */ +export declare const isAndroid: boolean; + +/** + * Returns true if the specified URI is data URI (http://en.wikipedia.org/wiki/Data_URI_scheme). + * @param uri The URI. + */ +declare function isDataURI(uri: string): boolean; + +/** + * A function that returns whether the tracer is enabled and there is a point in writing messages. + * Check this to avoid writing complex string templates. + * Send error messages even if tracing is disabled. + */ +declare function isEnabled(): boolean; + +/** + * Returns true if the specified path points to a resource or local file. + * @param path The path. + */ +declare function isFileOrResourcePath(path: string): boolean; + +/** + * Returns true if the specified URI is a font icon URI like "fontIcon://". + * @param uri The URI. + */ +declare function isFontIconURI(uri: string): boolean; + +/** + * Gets a value indicating if the app is running on the iOS platform. + */ +export declare const isIOS: boolean; + +/** + * @returns Boolean value indicating whether the current thread is the main thread + */ +declare function isMainThread(): boolean; + +/** + * Checks whether the application is running on real device and not on simulator/emulator. + */ +declare function isRealDevice(): boolean; + +/** + * Returns true if a timer is currently running. + * @param name Name of the timer. + * @returns true is the timer is currently running. + */ +declare function isRunning(name: string): boolean; + +/** + * Event data containing information for the index and the view associated to a list view item. + */ +export declare interface ItemEventData extends EventData { + /** + * The index of the item, for which the event is raised. + */ + index: number; + + /** + * The view that is associated to the item, for which the event is raised. + */ + view: View; + + /** + * Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/) that represents the user interface where the view is hosted. Valid only when running on iOS. + */ + ios: any /* UITableViewCell */; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/view/ViewGroup.html) that represents the user interface where the view is hosted. Valid only when running on Android OS. + */ + android: any /* android.view.ViewGroup */; +} + +/** + * Defines row/column specific properties that apply to GridLayout elements. + */ +declare class ItemSpec { + constructor(); + constructor(value: number, type: GridUnitType); + + /** + * Gets the actual length of an ItemSpec. + */ + actualLength: number; + + /** + * Returns unit type of this ItemSpec instance. + */ + gridUnitType: GridUnitType; + + /** + * Returns true if this ItemSpec instance holds + * an absolute (pixel) value. + */ + isAbsolute: boolean; + + /** + * Returns true if this GridLength instance is + * automatic (not specified). + */ + isAuto: boolean; + + /** + * Returns true if this ItemSpec instance holds weighted proportion + * of available space. + */ + isStar: boolean; + + /** + * Returns value part of this ItemSpec instance. + */ + value: number; +} + +export declare interface ItemsSource { + length: number; + getItem(index: number): any; +} + +declare interface ItemsSource_2 { + length: number; + getItem(index: number): any; +} + +declare type JustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'; + +declare type KeyboardType = 'datetime' | 'phone' | 'number' | 'url' | 'email' | 'integer'; + +/** + * Defines an interface for Template with a key. + */ +export declare interface KeyedTemplate { + /** + * The unique key of the template. + */ + key: string; + + /** + * The function that creates the view. + */ + createView: Template; +} + +/** + * Defines animation options for the View.animate method. + */ +declare class KeyframeAnimationInfo { + /** + * Return animation keyframes. + */ + keyframes: Array; + + /** + * The animation name. + */ + name?: string; + + /** + * The length of the animation in milliseconds. The default duration is 300 milliseconds. + */ + duration?: number; + + /** + * The amount of time, in milliseconds, to delay starting the animation. + */ + delay?: number; + + /** + * Specifies how many times the animation should be played. Default is 1. + * iOS animations support fractional iterations, i.e. 1.5. + * To repeat an animation infinitely, use Number.POSITIVE_INFINITY + */ + iterations?: number; + + /** + * An optional animation curve. Possible values are contained in the [AnimationCurve enumeration](../modules/_ui_enums_.animationcurve.html). + * Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android. + */ + curve?: any; + + /** + * Determines whether the animation values will be applied on the animated object after the animation finishes. + */ + isForwards: boolean; + + /** + * If true the animation will be played backwards. + */ + isReverse?: boolean; +} + +declare interface KeyframeDeclaration { + property: string; + value: any; +} + +declare interface KeyframeInfo { + duration: number; + declarations: Array; + curve?: any; +} + +/** + * Provides access to the top-level Folders instances that are accessible from the application. Use these as entry points to access the FileSystem. + */ +export declare module knownFolders { + /** + * Gets the Documents folder available for the current application. This Folder is private for the application and not accessible from Users/External apps. + */ + export function documents(): Folder; + + /** + * Gets the Temporary (Caches) folder available for the current application. This Folder is private for the application and not accessible from Users/External apps. + */ + export function temp(): Folder; + + /** + * Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps. + * iOS - this folder is read-only and contains the app and all its resources. + */ + export function currentApp(): Folder; + + /** + * Contains iOS-specific known folders. + */ + export module ios { + /** + * Gets the NSLibraryDirectory. Note that the folder will not be created if it did not exist. + */ + export function library(): Folder; + + /** + * Gets the NSDeveloperDirectory. Note that the folder will not be created if it did not exist. + */ + export function developer(): Folder; + + /** + * Gets the NSDesktopDirectory. Note that the folder will not be created if it did not exist. + */ + export function desktop(): Folder; + + /** + * Gets the NSDownloadsDirectory. Note that the folder will not be created if it did not exist. + */ + export function downloads(): Folder; + + /** + * Gets the NSMoviesDirectory. Note that the folder will not be created if it did not exist. + */ + export function movies(): Folder; + + /** + * Gets the NSMusicDirectory. Note that the folder will not be created if it did not exist. + */ + export function music(): Folder; + + /** + * Gets the NSPicturesDirectory. Note that the folder will not be created if it did not exist. + */ + export function pictures(): Folder; + + /** + * Gets the NSSharedPublicDirectory. Note that the folder will not be created if it did not exist. + */ + export function sharedPublic(): Folder; + } +} + +/** + * Represents a text label. + */ +export declare class Label extends TextBase { + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.TextView */; + + /** + * Gets the native [UILabel](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UILabel */; + + /** + * Gets or sets whether the Label wraps text or not. + */ + textWrap: boolean; +} + +/** + * Event data containing information for launch event. + */ +export declare interface LaunchEventData extends ApplicationEventData { + /** + * The root view for this Window on iOS or Activity for Android. + * If not set a new Frame will be created as a root view in order to maintain backwards compatibility. + */ + root?: View; + + savedInstanceState?: any /* android.os.Bundle */; +} + +/** + * Utility module related to layout. + */ +declare module layout { + /** + * Bits that provide the actual measured size. + */ + const MEASURED_HEIGHT_STATE_SHIFT: number; + const MEASURED_SIZE_MASK: number; + const MEASURED_STATE_MASK: number; + const MEASURED_STATE_TOO_SMALL: number; + const UNSPECIFIED: number; + const EXACTLY: number; + const AT_MOST: number; + + /** + * Gets layout mode from a given specification as string. + * @param mode - The measure specification mode. + */ + function getMode(mode: number): string; + + /** + * Gets measure specification mode from a given specification. + * @param spec - The measure specification. + */ + function getMeasureSpecMode(spec: number): number; + + /** + * Gets measure specification size from a given specification. + * @param spec - The measure specification. + */ + function getMeasureSpecSize(spec: number): number; + + /** + * Creates measure specification size from size and mode. + * @param size - The size component of measure specification. + * @param mode - The mode component of measure specification. + */ + function makeMeasureSpec(px: number, mode: number): number; + + /** + * Gets display density for the current device. + */ + function getDisplayDensity(): number; + + /** + * Convert device independent pixels to device pixels - dip to px. + * @param value - The pixel to convert. + */ + function toDevicePixels(value: dip): px; + + /** + * Convert device pixels to device independent pixels - px to dip. + * @param value - The pixel to convert. + */ + function toDeviceIndependentPixels(value: px): dip; + + /** + * Rounds value used in layout. + * @param px to round. + */ + function round(px: px): px; + + /** + * Converts device pixels to device independent pixes and measure the nativeView. + * Returns the desired size of the nativeView in device pixels. + * @param nativeView the nativeView to measure (UIView or android.view.View) + * @param width the available width + * @param widthMode width mode - UNSPECIFIED, EXACTLY or AT_MOST + * @param height the available hegiht + * @param heightMode height mode - UNSPECIFIED, EXACTLY or AT_MOST + */ + function measureNativeView(nativeView: any /* UIView or android.view.View */, width: number, widthMode: number, height: number, heightMode: number): { width: number; height: number }; + + /** + * Prints user friendly version of the measureSpec. + * @param measureSpec the spec to print + */ + function measureSpecToString(measureSpec: number): string; +} + +/** + * Base class for all views that supports children positioning. + */ +export declare class LayoutBase extends CustomLayoutView { + /** + * Returns the number of children in this Layout. + */ + getChildrenCount(): number; + + /** + * Returns the view at the specified position. + * @param index The position at which to get the child from. + */ + getChildAt(index: number): View; + + /** + * Returns the position of the child view + * @param child The child view that we are looking for. + */ + getChildIndex(child: View): number; + + /** + * Adds the view to children array. + * @param view The view to be added to the end of the children array. + */ + addChild(view: View): void; + + /** + * Inserts the view to children array at the specified index. + * @param view The view to be added to the end of the children array. + * @param atIndex The insertion index. + */ + insertChild(child: View, atIndex: number): void; + + /** + * Removes the specified view from the children array. + * @param view The view to remove from the children array. + */ + removeChild(view: View): void; + + /** + * Removes all views in this layout. + */ + removeChildren(): void; + + /** + * INTERNAL. Used by the layout system. + */ + _registerLayoutChild(child: View): void; + + /** + * INTERNAL. Used by the layout system. + */ + _unregisterLayoutChild(child: View): void; + + /** + * Calls the callback for each child that should be laid out. + * @param callback The callback + */ + eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; + + /** + * Gets or sets padding style property. + */ + padding: string | Length; + + /** + * Specify the bottom padding of this layout. + */ + paddingBottom: Length; + + /** + * Specify the left padding of this layout. + */ + paddingLeft: Length; + + /** + * Specify the right padding of this layout. + */ + paddingRight: Length; + + /** + * Specify the top padding of this layout. + */ + paddingTop: Length; + + /** + * Gets or sets a value indicating whether to clip the content of this layout. + */ + clipToBounds: boolean; + + /** + * Gets or sets a value indicating whether touch event should pass through to a parent view of the + * layout container in case an interactive child view did not handle it. + * Default value of this property is false. This does not affect the appearance of the view. + */ + isPassThroughParentEnabled: boolean; +} + +declare type Length = 'auto' | dip | LengthDipUnit | LengthPxUnit; + +declare namespace Length { + function parse(text: string): Length; + function equals(a: Length, b: Length): boolean; + /** + * Converts Length unit to device pixels. + * @param length The Length to convert. + * @param auto Value to use for conversion of "auto". By default is Math.NaN. + */ + function toDevicePixels(length: Length, auto?: number): number; + function convertToString(length: Length): string; +} + +declare type Length_2 = Unit<'px' | 'dip'>; + +declare type LengthDipUnit = { readonly unit: 'dip'; readonly value: dip }; + +declare type LengthPercentage = Length_2 | Percentage; + +declare type LengthPercentUnit = { readonly unit: '%'; readonly value: percent }; + +declare type LengthPxUnit = { readonly unit: 'px'; readonly value: px }; + +declare class LinearGradient { + public angle: number; + public colorStops: ColorStop[]; + + public static parse(value: LinearGradient_2): LinearGradient_2; + + public static equals(first: LinearGradient_2, second: LinearGradient_2): boolean; +} + +declare interface LinearGradient_2 { + angle: number; + colors: ColorStop_2[]; +} + +/** + * Represents an list picker. + */ +export declare class ListPicker extends View { + /** + * Gets the native [android.widget.NumberPicker](http://developer.android.com/reference/android/widget/NumberPicker.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.NumberPicker */; + + /** + * Gets the native iOS [UIPickerView](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UIPickerView */; + + /** + * Gets or sets the selected index. + */ + selectedIndex: number; + + /** + * Gets or set the items collection of the ListPicker. + * The items property can be set to an array or an object defining length and getItem(index) method. + */ + items: any; +} + +/** + * Represents a view that shows items in a vertically scrolling list. + */ +export declare class ListView extends View { + /** + * String value used when hooking to itemLoading event. + */ + public static itemLoadingEvent: string; + /** + * String value used when hooking to itemTap event. + */ + public static itemTapEvent: string; + /** + * String value used when hooking to loadMoreItems event. + */ + public static loadMoreItemsEvent: string; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/ListView.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.ListView */; + + /** + * Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableView_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITableView */; + + /** + * Gets or set the items collection of the ListView. + * The items property can be set to an array or an object defining length and getItem(index) method. + */ + items: any[] | ItemsSource; + + /** + * Gets or set the item template of the ListView. + */ + itemTemplate: string | Template; + + /** + * Gets or set the list of item templates for the item template selector + */ + itemTemplates: string | Array; + + /** + * A function that returns the appropriate ket template based on the data item. + */ + itemTemplateSelector: string | ((item: any, index: number, items: any) => string); + + /** + * Item id generator + */ + itemIdGenerator: (item: any, index: number, items: any) => number; + + /** + * Gets or set the items separator line color of the ListView. + */ + separatorColor: Color; + + /** + * Gets or set row height of the ListView. + */ + rowHeight: Length; + + /** + * Gets or set the estimated height of rows in the ListView. + * The default value is 44px. + */ + iosEstimatedRowHeight: Length; + + /** + * Forces the ListView to reload all its items. + */ + refresh(); + + /** + * Scrolls the specified item with index into view. + * [iOS](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableView_Class/#//apple_ref/occ/instm/UITableView/scrollToRowAtIndexPath:atScrollPosition:animated:) + * [Android](http://developer.android.com/reference/android/widget/ListView.html#setSelection(int)) + * @param index - Item index. + */ + scrollToIndex(index: number); + + /** + * Scrolls the specified item with index into view with animation. + * [iOS](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableView_Class/#//apple_ref/occ/instm/UITableView/scrollToRowAtIndexPath:atScrollPosition:animated:) + * [Android](https://developer.android.com/reference/android/widget/ListView.html#smoothScrollToPosition(int)) + * @param index - Item index. + */ + scrollToIndexAnimated(index: number); + + /** + * Checks if Specified item with index is visible. + * @param index - Item index. + */ + isItemAtIndexVisible(index: number): boolean; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when a View for the data at the specified index should be created. + * The result should be returned trough the view property of the event data. + * Note, that the view property of the event data can be pre-initialized with + * an old instance of a view, so that it can be reused. + */ + on(event: 'itemLoading', callback: (args: ItemEventData) => void, thisArg?: any); + + /** + * Raised when an item inside the ListView is tapped. + */ + on(event: 'itemTap', callback: (args: ItemEventData) => void, thisArg?: any); + + /** + * Raised when the ListView is scrolled so that its last item is visible. + */ + on(event: 'loadMoreItems', callback: (args: EventData) => void, thisArg?: any); +} + +/** + * Loads immediately the app.css. + * By default the app.css file is loaded shortly after "loaded". + * For the Android snapshot the CSS can be parsed during the snapshot generation, + * as the CSS does not depend on runtime APIs, and loadAppCss will be called explicitly. + */ +declare function loadAppCss(); + +export declare interface LoadAppCSSEventData extends EventData { + cssFile: string; +} + +/** + * Event data containing information for the loading events of a WebView. + */ +declare interface LoadEventData extends EventData { + /** + * Gets the url of the web-view. + */ + url: string; + + /** + * Gets the navigation type of the web-view. + */ + navigationType: NavigationType_2; + + /** + * Gets the error (if any). + */ + error: string; +} + +export declare interface LoadOptions { + path: string; + name: string; + attributes?: any; + exports?: any; + page?: Page; +} + +/** + * Returns a function wrapper which executes the supplied function on the main thread. + * The wrapper behaves like the original function and passes all of its arguments BUT + * discards its return value. + * @param func The function to execute on the main thread + * @returns The wrapper function which schedules execution to the main thread + */ +declare function mainThreadify(func: Function): (...args: any[]) => void; + +/** + * An enum that defines all predefined message types. + */ +declare module messageType { + const log: number; + const info: number; + const warn: number; + const error: number; +} + +/** + * Defines the data for the page navigation events. + */ +export declare interface NavigatedData extends EventData { + /** + * The navigation context (optional, may be undefined) passed to the page navigation events method. + */ + context: any; + + /** + * Represents if a navigation is forward or backward. + */ + isBackNavigation: boolean; +} + +/** + * Represents the navigation (a.k.a. "back") button. + */ +export declare class NavigationButton extends ActionItem { + //@private + /** + * @private + */ + _navigationItem?: any; + //@endprivate +} + +/** + * Represents a context passed to navigation methods. + */ +export declare interface NavigationContext { + entry: BackstackEntry; + isBackNavigation: boolean; + navigationType: NavigationType; +} + +/** + * Represents an entry in passed to navigate method. + */ +export declare interface NavigationEntry extends ViewEntry { + /** + * An object passed to the onNavigatedTo callback of the Page. Typically this is used to pass some data among pages. Optional. + */ + context?: any; + + /** + * An object to become the binding context of the page navigating to. Optional. + */ + bindingContext?: any; + + /** + * True to navigate to the new Page using animated transitions, false otherwise. + */ + animated?: boolean; + + /** + * Specifies an optional navigation transition for all platforms. If not specified, the default platform transition will be used. + */ + transition?: NavigationTransition; + + /** + * Specifies an optional navigation transition for iOS. If not specified, the default platform transition will be used. + */ + transitioniOS?: NavigationTransition; + + /** + * Specifies an optional navigation transition for Android. If not specified, the default platform transition will be used. + */ + transitionAndroid?: NavigationTransition; + + /** + * True to record the navigation in the backstack, false otherwise. + * If the parameter is set to false then the Page will be displayed but once navigated from it will not be able to be navigated back to. + */ + backstackVisible?: boolean; + + /** + * True to clear the navigation history, false otherwise. Very useful when navigating away from login pages. + */ + clearHistory?: boolean; +} + +/** + * Represents an object specifying a page navigation transition. + */ +export declare interface NavigationTransition { + /** + * Can be one of the built-in transitions: + * - curl (same as curlUp) (iOS only) + * - curlUp (iOS only) + * - curlDown (iOS only) + * - explode (Android Lollipop(21) and up only) + * - fade + * - flip (same as flipRight) + * - flipRight + * - flipLeft + * - slide (same as slideLeft) + * - slideLeft + * - slideRight + * - slideTop + * - slideBottom + */ + name?: string; + + /** + * An user-defined instance of the "ui/transition".Transition class. + */ + instance?: Transition; + + /** + * The length of the transition in milliseconds. If you do not specify this, the default platform transition duration will be used. + */ + duration?: number; + + /** + * An optional transition animation curve. Possible values are contained in the [AnimationCurve enumeration](https://docs.nativescript.org/api-reference/modules/_ui_enums_.animationcurve.html). + * Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android. + */ + curve?: any; +} + +declare enum NavigationType { + back, + forward, + replace, +} + +/** + * Represents navigation type + */ +declare type NavigationType_2 = 'linkClicked' | 'formSubmitted' | 'backForward' | 'reload' | 'formResubmitted' | 'other' | undefined; + +/** + * Observable is used when you want to be notified when a change occurs. Use on/off methods to add/remove listener. + */ +export declare class Observable { + /** + * Please note that should you be using the `new Observable({})` constructor, it is **obsolete** since v3.0, + * and you have to migrate to the "data/observable" `fromObject({})` or the `fromObjectRecursive({})` functions. + */ + constructor(); + + /** + * String value used when hooking to propertyChange event. + */ + public static propertyChangeEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when a propertyChange occurs. + */ + on(event: 'propertyChange', callback: (data: EventData) => void, thisArg?: any); + + /** + * Adds one-time listener function for the event named `event`. + * @param event Name of the event to attach to. + * @param callback A function to be called when the specified event is raised. + * @param thisArg An optional parameter which when set will be used as "this" in callback method call. + */ + once(event: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Shortcut alias to the removeEventListener method. + */ + off(eventNames: string, callback?: any, thisArg?: any); + + /** + * Adds a listener for the specified event name. + * @param eventNames Comma delimited names of the events to attach the listener to. + * @param callback A function to be called when some of the specified event(s) is raised. + * @param thisArg An optional parameter which when set will be used as "this" in callback method call. + */ + addEventListener(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Removes listener(s) for the specified event name. + * @param eventNames Comma delimited names of the events the specified listener is associated with. + * @param callback An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. + * @param thisArg An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. + */ + removeEventListener(eventNames: string, callback?: any, thisArg?: any); + + /** + * Updates the specified property with the provided value. + */ + set(name: string, value: any): void; + + /** + * Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. + */ + setProperty(name: string, value: any): void; + + /** + * Gets the value of the specified property. + */ + get(name: string): any; + + /** + * Notifies all the registered listeners for the event provided in the data.eventName. + * @param data The data associated with the event. + */ + notify(data: T): void; + + /** + * Notifies all the registered listeners for the property change event. + */ + notifyPropertyChange(propertyName: string, value: any, oldValue?: any): void; + + /** + * Checks whether a listener is registered for the specified event name. + * @param eventName The name of the event to check for. + */ + hasListeners(eventName: string): boolean; + + //@private + /** + * This method is intended to be overriden by inheritors to provide additional implementation. + * @private + */ + _createPropertyChangeData(name: string, value: any, oldValue?: any): PropertyChangeData; + + //@private + /** + * Filed to use instead of instanceof ViewBase. + * @private + */ + public _isViewBase: boolean; + + /** + * @private + */ + _emit(eventNames: string); + //@endprivate +} + +/** + * Advanced array like class used when you want to be notified when a change occurs. + */ +export declare class ObservableArray extends Observable { + /** + * String value used when hooking to change event. + */ + public static changeEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when a change occurs. + */ + on(event: 'change', callback: (args: ChangedData) => void, thisArg?: any); + + /** + * Create ObservableArray with specified length. + */ + constructor(arrayLength?: number); + + /** + * Create ObservableArray from source Array. + */ + constructor(items: T[]); + + /** + * Create ObservableArray from T items. + */ + constructor(...items: T[]); + + /** + * Returns item at specified index. + */ + getItem(index: number): T; + /** + * Sets item at specified index. + */ + setItem(index: number, value: T): void; + /** + * Returns a string representation of an array. + */ + toString(): string; + toLocaleString(): string; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: U[]): T[]; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: T[]): T[]; + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + /** + * Removes the last element from an array and returns it. + */ + pop(): T; + /** + * Appends new elements to an array, and returns the new length of the array. + * @param items New elements of the Array. + */ + push(items: T[]): number; + /** + * Appends new elements to an array, and returns the new length of the array. + * @param items New elements of the Array. + */ + push(...items: T[]): number; + + /** + * Reverses the elements in an Array. + */ + reverse(): T[]; + /** + * Removes the first element from an array and returns it. + */ + shift(): T; + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): T[]; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: T, b: T) => number): T[]; + + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + */ + splice(start: number): T[]; + + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the array in place of the deleted elements. + */ + splice(start: number, deleteCount: number, ...items: T[]): T[]; + + /** + * Inserts new elements at the start of an array. + * @param items Elements to insert at the start of the Array. + */ + unshift(...items: T[]): number; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. + */ + indexOf(searchElement: T, fromIndex?: number): number; + + /** + * Returns the index of the last occurrence of a specified value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. + */ + lastIndexOf(searchElement: T, fromIndex?: number): number; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; + + /** + * Calls a defined callback function on each element of an array, and returns an array that contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[]; + + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + + /** + * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array. + */ + length: number; +} + +/** + * Removes listener for the specified event name. + */ +declare function off(eventNames: string, callback?: any, thisArg?: any); + +/** + * Shortcut alias to the removeEventListener method. + * @param eventNames - String corresponding to events (e.g. "onLaunch"). + * @param callback - Callback function which will be removed. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ +declare function off(eventNames: string, callback?: any, thisArg?: any); + +/** + * This event is raised when application css is changed. + */ +declare function on(event: 'cssChanged', callback: (args: CssChangedEventData) => void, thisArg?: any); + +/** + * Event raised then livesync operation is performed. + */ +declare function on(event: 'livesync', callback: (args: EventData) => void); + +/** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "onLaunch"). Optionally could be used more events separated by `,` (e.g. "onLaunch", "onSuspend"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ +declare function on(eventNames: string, callback: (data: any) => void, thisArg?: any); + +/** + * This event is raised on application launchEvent. + */ +declare function on(event: 'launch', callback: (args: LaunchEventData) => void, thisArg?: any); + +/** + * This event is raised after the application has performed most of its startup actions. + * Its intent is to be suitable for measuring app startup times. + * @experimental + */ +declare function on(event: 'displayed', callback: (args: EventData) => void, thisArg?: any); + +/** + * This event is raised when the Application is suspended. + */ +declare function on(event: 'suspend', callback: (args: ApplicationEventData) => void, thisArg?: any); + +/** + * This event is raised when the Application is resumed after it has been suspended. + */ +declare function on(event: 'resume', callback: (args: ApplicationEventData) => void, thisArg?: any); + +/** + * This event is raised when the Application is about to exit. + */ +declare function on(event: 'exit', callback: (args: ApplicationEventData) => void, thisArg?: any); + +/** + * This event is raised when there is low memory on the target device. + */ +declare function on(event: 'lowMemory', callback: (args: ApplicationEventData) => void, thisArg?: any); + +/** + * This event is raised when an uncaught error occurs while the application is running. + */ +declare function on(event: 'uncaughtError', callback: (args: UnhandledErrorEventData) => void, thisArg?: any); + +/** + * This event is raised when an discarded error occurs while the application is running. + */ +declare function on(event: 'discardedError', callback: (args: DiscardedErrorEventData) => void, thisArg?: any); + +/** + * This event is raised when the orientation of the application changes. + */ +declare function on(event: 'orientationChanged', callback: (args: OrientationChangedEventData) => void, thisArg?: any); + +/** + * This event is raised when the operating system appearance changes + * between light and dark theme (for Android); + * between light and dark mode (for iOS) and vice versa. + */ +declare function on(event: 'systemAppearanceChanged', callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any); + +/** + * Opens file. + * @param filePath The file. + */ +declare function openFile(filePath: string): boolean; + +/** + * Opens url. + * @param url The url. + */ +declare function openUrl(url: string): boolean; + +/** + * A flex order integer. + */ +declare type Order = number; + +declare type Orientation = 'horizontal' | 'vertical'; + +/** + * Gets the orientation of the application. + * Available values: "portrait", "landscape", "unknown". + */ +declare function orientation(): 'portrait' | 'landscape' | 'unknown'; + +declare type Orientation_2 = 'horizontal' | 'vertical'; + +declare type Orientation_3 = 'horizontal' | 'vertical'; + +/** + * Event data containing information for orientation changed event. + */ +export declare interface OrientationChangedEventData extends ApplicationEventData { + /** + * New orientation value. + */ + newValue: 'portrait' | 'landscape' | 'unknown'; +} + +/** + * Represents a logical unit for navigation (inside Frame). + */ +export declare class Page extends ContentView { + /** + * String value used when hooking to navigatingTo event. + */ + public static navigatingToEvent: string; + + /** + * String value used when hooking to navigatedTo event. + */ + public static navigatedToEvent: string; + + /** + * String value used when hooking to navigatingFrom event. + */ + public static navigatingFromEvent: string; + + /** + * String value used when hooking to navigatedFrom event. + */ + public static navigatedFromEvent: string; + + /** + * Gets or sets whether page background spans under status bar. + */ + public backgroundSpanUnderStatusBar: boolean; + + /** + * Gets or sets the style of the status bar. + */ + public statusBarStyle: 'light' | 'dark'; + + /** + * Gets or sets the color of the status bar in Android. + */ + public androidStatusBarBackground: Color; + + /** + * Used to hide the Navigation Bar in iOS and the Action Bar in Android. + */ + public actionBarHidden: boolean; + + /** + * Used to control if swipe back navigation in iOS is enabled. This property is iOS specific. Default value: true + */ + public enableSwipeBackNavigation: boolean; + + /** + * Returns a CSS keyframe animation with the specified name, if it exists. + */ + public getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo; + + /** + * A property that is used to pass a data from another page (while navigate to). + */ + public navigationContext: any; + + /** + * Gets the Frame object controlling this instance. + */ + public frame: Frame; + + /** + * Gets the ActionBar for this page. + */ + public actionBar: ActionBar; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + public on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void; + + /** + * Raised when navigation to the page has started. + */ + public on(event: 'navigatingTo', callback: (args: NavigatedData) => void, thisArg?: any): void; + + /** + * Raised when navigation to the page has finished. + */ + public on(event: 'navigatedTo', callback: (args: NavigatedData) => void, thisArg?: any): void; + + /** + * Raised when navigation from the page has started. + */ + public on(event: 'navigatingFrom', callback: (args: NavigatedData) => void, thisArg?: any): void; + + /** + * Raised when navigation from the page has finished. + */ + public on(event: 'navigatedFrom', callback: (args: NavigatedData) => void, thisArg?: any): void; + //@private + + /** + * @private + */ + hasActionBar: boolean; + /** + * @private + */ + _frame: Frame; + + /** + * A method called before navigating to the page. + * @private + * @param context - The data passed to the page through the NavigationEntry.context property. + * @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise. + * @param bindingContext - An object to become the binding context of the page navigating to. Optional. + */ + public onNavigatingTo(context: any, isBackNavigation: boolean, bindingContext?: any): void; + + /** + * A method called after navigated to the page. + * @private + * @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise. + */ + public onNavigatedTo(isBackNavigation: boolean): void; + + /** + * A method called before navigating from the page. + * @private + * @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise. + */ + public onNavigatingFrom(isBackNavigation: boolean): void; + + /** + * A method called after navigated from the page. + * @private + * @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise. + */ + public onNavigatedFrom(isBackNavigation: boolean): void; + //@endprivate +} + +/** + * Defines a pair of values (horizontal and vertical) for translate and scale animations. + */ +declare interface Pair { + x: number; + y: number; +} + +/** + * Provides gesture event data for pan gesture. + */ +export declare interface PanGestureEventData extends GestureEventDataWithState { + deltaX: number; + deltaY: number; +} + +/** + * Provides information for a parser event. + */ +export declare interface ParserEvent { + /** + * Returns the type of the parser event. This is one of the ParserEventType static members. + */ + eventType: string; + + /** + * Get the position in the xml string where the event was generated. + */ + position: Position; + + /** + * If namespace processing is enabled, returns the prefix of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement. + */ + prefix?: string; + + /** + * If namespace processing is enabled, returns the namespace of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement. + */ + namespace?: string; + + /** + * Returns the name of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement. + */ + elementName?: string; + + /** + * Returns a JSON object with the attributes of an element in case the eventType is ParserEventType.StartElement. + */ + attributes?: Object; + + /** + * Returns the relevant data in case the eventType is ParserEventType.Text, ParserEventType.CDATA or ParserEventType.Comment. + */ + data?: string; + + /** + * Returns a JSON string representation of this instance. + */ + toString(): string; +} /** */ + +/** + * Contains the XmlParser class, which is a SAX parser using the easysax implementation. + * @module "xml" + */ /** + * Specifies the type of parser event. + */ +export declare class ParserEventType { + /** + * Specifies the StartElement event type. + */ + static StartElement: string; + + /** + * Specifies the EndElement event type. + */ + static EndElement: string; + + /** + * Specifies the Text event type. + */ + static Text: string; + + /** + * Specifies the CDATA event type. + */ + static CDATA: string; + + /** + * Specifies the Comment event type. + */ + static Comment: string; +} + +/** + * Enables path-specific operations like join, extension, etc. + */ +export declare module path { + /** + * Normalizes a path, taking care of occurrances like ".." and "//". + * @param path The path to be normalized. + */ + export function normalize(path: string): string; + + /** + * Joins all the provided string components, forming a valid and normalized path. + * @param paths An array of string components to be joined. + */ + export function join(...paths: string[]): string; + + /** + * Gets the string used to separate file paths. + */ + const separator: string; +} + +/** + * Denotes a normalized percent number. + * 0% is represented as 0 + * 50% is represented as 0.5 + * 100% is represented as 1 + */ +declare type percent = number; + +declare type Percentage = Unit<'%'>; + +declare type PercentLength = 'auto' | dip | LengthDipUnit | LengthPxUnit | LengthPercentUnit; + +declare namespace PercentLength { + function parse(text: string): PercentLength; + function equals(a: PercentLength, b: PercentLength): boolean; + /** + * Converts PercentLength unit to device pixels. + * @param length The PercentLength to convert. + * @param auto Value to use for conversion of "auto". By default is Math.NaN. + * @param parentAvailableWidth Value to use as base when converting percent unit. By default is Math.NaN. + */ + function toDevicePixels(length: PercentLength, auto?: number, parentAvailableWidth?: px): number; + function convertToString(length: PercentLength): string; +} + +/** + * Provides gesture event data for pinch gesture. + */ +export declare interface PinchGestureEventData extends GestureEventDataWithState { + scale: number; + + getFocusX(): number; + getFocusY(): number; +} + +/** + * Represents a Placeholder, which is used to add a native view to the visual tree. + */ +export declare class Placeholder extends View { + /** + * String value used when hooking to creatingView event. + */ + public static creatingViewEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (args: EventData) => void); + + /** + * Raised when a creatingView event occurs. + */ + on(event: 'creatingView', callback: (args: CreateViewEventData) => void); +} + +/** + * The Point interface describes a two dimensional location. + * It has two properties x and y, representing the x and y coordinate of the location. + */ +declare interface Point { + /** + * Represents the x coordinate of the location. + */ + x: number; + + /** + * Represents the y coordinate of the location. + */ + y: number; + + /** + * Represents the z coordinate of the location. + */ + z?: number; +} + +/** + * Defines a point in 3d space (x, y and z) for rotation in 3d animations. + */ +declare interface Point3D { + x: number; + y: number; + z: number; +} + +/** + * Pointer is an object representing a finger (or other object) that is touching the screen. + */ +declare interface Pointer { + /** + * The id of the pointer. + */ + android: any; + + /** + * The UITouch object associated to the touch + */ + ios: any; + + /** + * Gets the X coordinate of the pointer inside the view that triggered the event. + */ + getX(): number; + + /** + * Gets the Y coordinate of the pointer inside the view that triggered the event. + */ + getY(): number; + + /** + * Gests the X coordinate of the pointer inside the view that triggered the event. + * @returns The X coordinate in _Device Pixels_. + */ + getXPixels(): number; + + /** + * Gets the X coordinate of the pointer inside the view that triggered the event. + * @returns The X coordinate in _Device Independent Pixels_. + */ + getXDIP(): number; + + /** + * Gests the Y coordinate of the pointer inside the view that triggered the event. + * @returns The Y coordinate in _Device Pixels_. + */ + getYPixels(): number; + + /** + * Gets the Y coordinate of the pointer inside the view that triggered the event. + * @returns The Y coordinate in _Device Independent Pixels_. + */ + getYDIP(): number; +} + +/** + * Defines a position within string, in line and column form. + */ +declare interface Position { + /** + * The line number. The first line is at index 1. + */ + line: number; + + /** + * The column number. The first character is at index 1. + */ + column: number; +} + +/** + * Method decorator factory. It will intercept the method call and start and pause a timer before and after the method call. + * Works only if profiling is enabled. + * @param name Name of the timer which will be used for method calls. If not provided - the name of the method will be used. + */ +declare function profile(name?: string): MethodDecorator; + +/** + * Function factory. It will intercept the function call and start and pause a timer before and after the function call. Works only if profiling is enabled. + * Works only if profiling is enabled. + * @param fn The function to wrap. Uses the function name to track the times. + */ +declare function profile(fn: F): F; + +/** + * Function factory. It will intercept the function call and start and pause a timer before and after the function call. Works only if profiling is enabled. + * @param name The name used to track calls and times. + * @param fn The function to wrap. + */ +declare function profile(name: string, fn: F): F; + +/** + * Method decorator. It will intercept the method calls and start and pause a timer before and after the method call. Works only if profiling is enabled. + */ +declare function profile(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor | void; + +declare function profile(): any; + +export declare const Profiling: { + enable: typeof enable; + disable: typeof disable; + time: typeof time; + uptime: typeof uptime; + start: typeof start; + stop: typeof stop; + isRunning: typeof isRunning; + dumpProfiles: typeof dumpProfiles; + resetProfiles: typeof resetProfiles; + profile: typeof profile; + startCPUProfile: typeof startCPUProfile; + stopCPUProfile: typeof stopCPUProfile; +}; + +/** + * Represents a progress component. + */ +export declare class Progress extends View { + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/ProgressBar.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.ProgressBar */; + + /** + * Gets the native iOS [UIProgressView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIProgressView_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UIProgressView */; + + /** + * Gets or sets a progress current value. + */ + value: number; + + /** + * Gets or sets a progress max value. + */ + maxValue: number; +} + +declare class Property { + constructor(options: PropertyOptions); + + public readonly getDefault: symbol; + public readonly setNative: symbol; + public readonly defaultValue: U; + public register(cls: { prototype: T }): void; + public nativeValueChange(owner: T, value: U): void; + public isSet(instance: T): boolean; +} + +declare interface Property extends TypedPropertyDescriptor {} + +declare interface PropertyBag { + [property: string]: string; +} + +declare interface PropertyBagClass { + new (): PropertyBag; + prototype: PropertyBag; +} + +/** + * Data for the "propertyChange" event. + */ +export declare interface PropertyChangeData extends EventData { + /** + * The name of the property that has changed. + */ + propertyName: string; + /** + * The new value of the property. + */ + value: any; + /** + * The previous value of the property. + */ + oldValue?: any; +} + +declare interface PropertyOptions { + readonly name: string; + readonly defaultValue?: U; + readonly affectsLayout?: boolean; + readonly equalityComparer?: (x: U, y: U) => boolean; + readonly valueChanged?: (target: T, oldValue: U, newValue: U) => void; + readonly valueConverter?: (value: string) => U; +} + +export declare class ProxyViewContainer extends LayoutBase {} + +/** + * Denotes a length number that is in physical device pixels. + */ +declare type px = number; + +/** + * Releases the reference to the wrapped native object + * @param object The Java/Objective-C object to release. + */ +declare function releaseNativeObject(object: any /*java.lang.Object | NSObject*/); + +/** + * Removes a value (if existing) for a key. + * @param key The key to check for. + */ +declare function remove(key: string): void; + +/** + * Removes a TraceWriter instance from the trace module. + * @param writer The TraceWriter instance to remove. + */ +declare function removeWriter(writer: TraceWriter); + +/** + * Represents a UI Repeater component. + */ +export declare class Repeater extends CustomLayoutView { + /** + * Gets or set the items collection of the Repeater. + * The items property can be set to an array or an object defining length and getItem(index) method. + */ + items: any[] | ItemsSource_2; + + /** + * Gets or set the item template of the Repeater. + */ + itemTemplate: string | Template; + + /** + * Gets or set the items layout of the Repeater. Default value is StackLayout with orientation="vertical". + */ + itemsLayout: LayoutBase; + + /** + * Forces the Repeater to reload all its items. + */ + refresh(); +} + +/** + * Makes a generic http request using the provided options and returns a HttpResponse Object. + * @param options An object that specifies various request options. + */ +declare function request(options: HttpRequestOptions): Promise; + +/** + * Resets the timers for all methods instrumented with profile decorator. + */ +declare function resetProfiles(): void; + +declare type ReturnKeyType = 'done' | 'next' | 'go' | 'search' | 'send'; + +/** + * Provides gesture event data for rotation gesture. + */ +export declare interface RotationGestureEventData extends GestureEventDataWithState { + rotation: number; +} + +/** + * Call this method to run the application. Important: All code after this method call will not be executed! + * Compared to start this method won't create Frame as root view. + */ +declare function run(entry?: NavigationEntry | string); + +/** + * An object describing general information about a display. + */ +export declare module Screen { + /** + * Gets information about the main screen of the current device. + */ + const mainScreen: ScreenMetrics; +} + +/** + * An object containing screen information. + */ +declare interface ScreenMetrics { + /** + * Gets the absolute width of the screen in pixels. + */ + widthPixels: number; + + /** + * Gets the absolute height of the screen in pixels. + */ + heightPixels: number; + + /** + * Gets the absolute width of the screen in density independent pixels. + */ + widthDIPs: number; + + /** + * Gets the absolute height of the screen in density independent pixels. + */ + heightDIPs: number; + + /** + * The logical density of the display. This is a scaling factor for the Density Independent Pixel unit. + */ + scale: number; +} + +export declare interface ScrollEventData extends EventData { + scrollX: number; + scrollY: number; +} + +/** + * Represents a scrollable area that can have content that is larger than its bounds. + */ +export declare class ScrollView extends ContentView { + /** + * String value used when hooking to scroll event. + */ + public static scrollEvent: string; + + /** + * Gets or sets a value indicating whether scroll is enabled. + */ + isScrollEnabled: boolean; + + /** + * Gets a value that contains the vertical offset of the scrolled content. + */ + verticalOffset: number; + + /** + * Gets a value that contains the horizontal offset of the scrolled content. + */ + horizontalOffset: number; + + /** + * Gets the maximum value for the verticalOffset. + */ + scrollableHeight: number; + + /** + * Gets the maximum value for the horizontalOffset. + */ + scrollableWidth: number; + + /** + * Toggles scrollbar indicator visibility + */ + scrollBarIndicatorVisible: boolean; + + /** + * Scrolls the content the specified vertical offset position. + * @param value The offset value + * @param animated true for animated scroll, false for immediate scroll. + */ + scrollToVerticalOffset(value: number, animated: boolean); + + /** + * Scrolls the content the specified horizontal offset position. + * @param value The offset value + * @param animated true for animated scroll, false for immediate scroll. + */ + scrollToHorizontalOffset(value: number, animated: boolean); + + /** + * Gets or sets direction in which the content can be scrolled. + */ + orientation: Orientation; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when a scroll event occurs. + */ + on(event: 'scroll', callback: (args: ScrollEventData) => void, thisArg?: any); + + _onOrientationChanged(); +} + +/** + * Represents a search bar component. + */ +export declare class SearchBar extends View { + /** + * String value used when hooking to submit event. + */ + public static submitEvent: string; + + /** + * String value used when hooking to clear event. + */ + public static clearEvent: string; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/SearchView.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.SearchView */; + + /** + * Gets the native iOS [UISearchBar](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISearchBar_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UISearchBar */; + + /** + * Gets or sets a search bar text. + */ + text: string; + + /** + * Gets or sets the text of the search bar text field hint/placeholder. + */ + hint: string; + + /** + * Gets or sets the TextField background color of the SearchBar component. + */ + textFieldBackgroundColor: Color; + + /** + * Gets or sets the TextField Hint color of the SearchBar component. + */ + textFieldHintColor: Color; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when a search bar search is submitted. + */ + on(event: 'submit', callback: (args: EventData) => void, thisArg?: any); + + /** + * Raised when a search bar search is closed. + */ + on(event: 'close', callback: (args: EventData) => void, thisArg?: any); + + /** + * Hides the soft input method, usually a soft keyboard. + */ + dismissSoftInput(): void; +} + +/** + * Represents a UI SegmentedBar component. + */ +export declare class SegmentedBar extends View implements AddChildFromBuilder, AddArrayFromBuilder { + /** + * Gets or sets the selected index of the SegmentedBar component. + */ + selectedIndex: number; + + /** + * Gets or sets the selected background color of the SegmentedBar component. + */ + selectedBackgroundColor: Color; + + /** + * Gets or sets the items of the SegmentedBar. + */ + items: Array; + + /** + * String value used when hooking to the selectedIndexChanged event. + */ + public static selectedIndexChangedEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when the selected index changes. + */ + on(event: 'selectedIndexChanged', callback: (args: SelectedIndexChangedEventData_3) => void, thisArg?: any); + + /** + * Called for every child element declared in xml. + * @param name - Name of the element. + * @param value - Value of the element. + */ + public _addChildFromBuilder(name: string, value: any): void; + public _addArrayFromBuilder(name: string, value: Array): void; +} + +/** + * Represents a SegmentedBar item. + */ +export declare class SegmentedBarItem extends ViewBase { + /** + * Gets or sets the title of the SegmentedBarItem. + */ + public title: string; +} + +/** + * Defines the data for the TabView.selectedIndexChanged event. + */ +export declare interface SelectedIndexChangedEventData extends EventData { + /** + * The old selected index. + */ + oldIndex: number; + + /** + * The new selected index. + */ + newIndex: number; +} + +/** + * Defines the data for the tab navigation selectedIndexChanged event. + */ +declare interface SelectedIndexChangedEventData_2 extends EventData { + /** + * The old selected index. + */ + oldIndex: number; + + /** + * The new selected index. + */ + newIndex: number; +} + +/** + * Defines the data for the SegmentedBar.selectedIndexChanged event. + */ +declare interface SelectedIndexChangedEventData_3 extends EventData { + /** + * The old selected index. + */ + oldIndex: number; + + /** + * The new selected index. + */ + newIndex: number; +} + +/** + * Defines the data for the TabView.selectedIndexChanged event. + */ +declare interface SelectedIndexChangedEventData_4 extends EventData { + /** + * The old selected index. + */ + oldIndex: number; + + /** + * The new selected index. + */ + newIndex: number; +} + +/** + * Sets a Boolean Object for a key. + * @param key The key. + * @param value The value. + */ +declare function setBoolean(key: string, value: boolean): void; + +/** + * Sets the categories the module will trace. + * @param categories The comma-separated list of categories. If not specified all messages from all categories will be traced. + */ +declare function setCategories(categories: string); + +/** + * Sets css file name for the application. + */ +declare function setCssFileName(cssFile: string): void; + +declare function setErrorHandler(handler: ErrorHandler); + +/** + * Sets a Number Object for a key. + * @param key The key. + * @param value The value. + */ +declare function setNumber(key: string, value: number): void; + +/** + * Set application level static resources. + */ +declare function setResources(resources: any): void; + +/** + * Sets a String Object for a key. + * @param key The key. + * @param value The value. + */ +declare function setString(key: string, value: string): void; + +export declare interface ShowModalOptions { + /** + * Any context you want to pass to the modally shown view. This same context will be available in the arguments of the shownModally event handler. + */ + context: any; + + /** + * A function that will be called when the view is closed. Any arguments provided when calling ShownModallyData.closeCallback will be available here. + */ + closeCallback: Function; + + /** + * An optional parameter specifying whether to show the modal view in full-screen mode. + */ + fullscreen?: boolean; + + /** + * An optional parameter specifying whether to show the modal view with animation. + */ + animated?: boolean; + + /** + * An optional parameter specifying whether to stretch the modal view when not in full-screen mode. + */ + stretched?: boolean; + + /** + * An optional parameter that specify options specific to iOS as an object. + */ + ios?: { + /** + * The UIModalPresentationStyle to be used when showing the dialog in iOS . + */ + presentationStyle?: any /* UIModalPresentationStyle */; + /** + * width of the popup dialog + */ + width?: number; + /** + * height of the popup dialog + */ + height?: number; + }; + android?: { + /** + * @deprecated Use ShowModalOptions.cancelable instead. + * An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode. + */ + cancelable?: boolean; + }; + /** + * An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode. + */ + cancelable?: boolean; +} + +/** + * Defines the data for the shownModally event. + */ +export declare interface ShownModallyData extends EventData { + /** + * The context (optional, may be undefined) passed to the view when shown modally. + */ + context?: any; + + /** + * A callback to call when you want to close the modally shown view. + * Pass in any kind of arguments and you will receive when the callback parameter + * of View.showModal is executed. + */ + closeCallback?: Function; +} + +/** + * The Size interface describes abstract dimensions in two dimensional space. + * It has two properties width and height, representing the width and height values of the size. + */ +declare interface Size { + /** + * Represents the width of the size. + */ + width: number; + + /** + * Represents the height of the size. + */ + height: number; +} + +/** + * Represents a slider component. + */ +export declare class Slider extends View { + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/SeekBar.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.SeekBar */; + + /** + * Gets the native iOS [UISlider](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISlider_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UISlider */; + + /** + * Gets or sets a slider current value. The default value is 0. + */ + value: number; + + /** + * Gets or sets a slider min value. The default value is 0. + */ + minValue: number; + + /** + * Gets or sets a slider max value. The default value is 100. + */ + maxValue: number; +} + +/** + * A class used to create a single part of formatted string with a common text properties. + */ +export declare class Span extends ViewBase { + /** + * Gets or sets the font family of the span. + */ + public fontFamily: string; + + /** + * Gets or sets the font size of the span. + */ + public fontSize: number; + + /** + * Gets or sets the font style of the span. + */ + public fontStyle: FontStyle; + + /** + * Gets or sets the font weight of the span. + */ + public fontWeight: FontWeight; + + /** + * Gets or sets text decorations for the span. + */ + public textDecoration: TextDecoration; + + /** + * Gets or sets the font foreground color of the span. + */ + public color: Color; + + /** + * Gets or sets the font background color of the span. + */ + public backgroundColor: Color; + + /** + * Gets or sets the text for the span. + */ + public text: string; + /** + * String value used when hooking to linkTap event. + */ + public static linkTapEvent: string; + + /** + * Gets if the span is tappable or not. + */ + public readonly tappable: boolean; + + //@private + /** + * @private + */ + _setTextInternal(value: string): void; + //@endprivate +} + +/** + * A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property. + */ +export declare class StackLayout extends LayoutBase { + /** + * Gets or sets if layout should be horizontal or vertical. + * The default value is vertical. + */ + orientation: Orientation_2; +} + +/** + * Starts a timer with a specific name. + * Works only if profiling is enabled. + * @param name Name of the timer. + */ +declare function start(name: string): void; + +/** + * Starts android cpu profiling. + * @param name Name of the cpu profiling session. + */ +declare function startCPUProfile(name: string): void; + +/** + * Starts monitoring the connection type. + * @param connectionTypeChangedCallback A function that will be called when the connection type changes. + */ +declare function startMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void; + +/** + * Pauses a timer with a specific name. This will increase call count and accumulate time. + * Works only if profiling is enabled. + * @param name Name of the timer. + * @returns TimerInfo for the paused timer. + */ +declare function stop(name: string): TimerInfo; + +/** + * Stops android cpu profiling. + * @param name Name of the cpu profiling session. + */ +declare function stopCPUProfile(name: string): void; + +/** + * Stops monitoring the connection type. + */ +declare function stopMonitoring(): void; + +declare type Stretch = 'none' | 'aspectFill' | 'aspectFit' | 'fill'; + +export declare class Style extends Observable { + public fontInternal: Font; + public backgroundInternal: Background; + + public rotate: number; + public rotateX: number; + public rotateY: number; + public perspective: number; + public scaleX: number; + public scaleY: number; + public translateX: dip; + public translateY: dip; + + public clipPath: string; + public color: Color; + public tintColor: Color; + public placeholderColor: Color; + + public background: string; + public backgroundColor: Color; + public backgroundImage: string | LinearGradient; + public backgroundRepeat: BackgroundRepeat; + public backgroundSize: string; + public backgroundPosition: string; + + public borderColor: string | Color; + public borderTopColor: Color; + public borderRightColor: Color; + public borderBottomColor: Color; + public borderLeftColor: Color; + public borderWidth: string | Length; + public borderTopWidth: Length; + public borderRightWidth: Length; + public borderBottomWidth: Length; + public borderLeftWidth: Length; + public borderRadius: string | Length; + public borderTopLeftRadius: Length; + public borderTopRightRadius: Length; + public borderBottomRightRadius: Length; + public borderBottomLeftRadius: Length; + + public fontSize: number; + public fontFamily: string; + public fontStyle: FontStyle; + public fontWeight: FontWeight; + public font: string; + + public androidElevation: number; + public androidDynamicElevationOffset: number; + public zIndex: number; + public opacity: number; + public visibility: Visibility; + + public letterSpacing: number; + public lineHeight: number; + public textAlignment: TextAlignment; + public textDecoration: TextDecoration; + public textTransform: TextTransform; + public whiteSpace: WhiteSpace; + + public minWidth: Length; + public minHeight: Length; + public width: PercentLength; + public height: PercentLength; + public margin: string | PercentLength; + public marginLeft: PercentLength; + public marginTop: PercentLength; + public marginRight: PercentLength; + public marginBottom: PercentLength; + public padding: string | Length; + public paddingLeft: Length; + public paddingTop: Length; + public paddingRight: Length; + public paddingBottom: Length; + public horizontalAlignment: HorizontalAlignment; + public verticalAlignment: VerticalAlignment; + + // TabView-specific props + public tabTextFontSize: number; + public tabTextColor: Color; + public tabBackgroundColor: Color; + public selectedTabTextColor: Color; + public androidSelectedTabHighlightColor: Color; + + // ListView-specific props + public separatorColor: Color; + + // SegmentedBar-specific props + public selectedBackgroundColor: Color; + + // Page-specific props + public statusBarStyle: 'light' | 'dark'; + public androidStatusBarBackground: Color; + + // Android ActionBar specific props + + /** + * Gets or sets the content inset for the android actionbar. + * The content inset affects the valid area for ActionBar content; insets can be used to effectively align ActionBar content along well-known gridlines. + * + * This property is effective on Android API level 21 or later. + */ + public androidContentInset: string | Length; + + /** + * Gets or sets the left content inset for the android actionbar. + * The content inset affects the valid area for ActionBar content; insets can be used to effectively align ActionBar content along well-known gridlines. + * + * This property is effective on Android API level 21 or later. + */ + public androidContentInsetLeft: Length; + + /** + * Gets or sets the right content inset for the android actionbar. + * The content inset affects the valid area for ActionBar content; insets can be used to effectively align ActionBar content along well-known gridlines. + * + * This property is effective on Android API level 21 or later. + */ + public androidContentInsetRight: Length; + + constructor(ownerView: ViewBase | WeakRef); + public viewRef: WeakRef; + + /** + * @deprecated use `viewRef` instead. + * + * The `ViewBase` object associated with the Style! + */ + public view: ViewBase; + + //flexbox layout properties + public flexDirection: FlexDirection; + public flexWrap: FlexWrap; + public justifyContent: JustifyContent; + public alignItems: AlignItems; + public alignContent: AlignContent; + public order: Order; + public flexGrow: FlexGrow; + public flexShrink: FlexShrink; + public flexWrapBefore: FlexWrapBefore; + public alignSelf: AlignSelf; + + /** + * The property bag is a simple class that is paired with the Style class. + * Setting regular css properties on the PropertyBag should simply preserve their values. + * Setting shorthand css properties on the PropertyBag should decompose the provided value, and set each of the shorthand composite properties. + * The shorthand properties are defined as non-enumerable so it should be safe to for-in the keys that are set in the bag. + */ + public readonly PropertyBag: PropertyBagClass; + + /** + * Set a scoped css-value. These are css-variables set from CssState + */ + public setScopedCssVariable(varName: string, value: string): void; + + /** + * Set a unscoped css-value. These are css-variables set on view.style + */ + public setUnscopedCssVariable(varName: string, value: string): void; + + /** + * Get value of the css-variable. + * If the value is not set on this style-object, try the parent view. + */ + public getCssVariable(varName: string): string | null; + + /** + * Remove all scoped css-variables + */ + public resetScopedCssVariables(): void; + + /** + * Remove all unscoped css-variables + */ + public resetUnscopedCssVariables(): void; +} + +/** + * Defines an enum for swipe gesture direction. + */ +export declare enum SwipeDirection { + /** + * Denotes right direction for swipe gesture. + */ + right, + /** + * Denotes left direction for swipe gesture. + */ + left, + /** + * Denotes up direction for swipe gesture. + */ + up, + /** + * Denotes down direction for swipe gesture. + */ + down, +} + +/** + * Provides gesture event data for swipe gesture. + */ +export declare interface SwipeGestureEventData extends GestureEventData { + direction: SwipeDirection; +} + +/** + * Represents a switch component. + */ +export declare class Switch extends View { + public static checkedChangeEvent: string; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/Switch.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.Switch */; + + /** + * Gets the native iOS [UISwitch](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISwitch_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UISwitch */; + + /** + * Gets or sets if a switch is checked or not. + */ + checked: boolean; + + /** + * Gets or sets the background color of the Switch when it is turned off. + */ + offBackgroundColor: Color; +} + +/** + * Event data containing information for system appearance changed event. + */ +declare interface SystemAppearanceChangedEventData extends ApplicationEventData { + /** + * New system appearance value. + */ + newValue: 'light' | 'dark'; +} + +/** + * Represents a tab navigation content entry. + */ +export declare class TabContentItem extends ContentView { + /** + * @private + */ + canBeLoaded?: boolean; +} + +/** + * Serves as a base class for tab navigation. + */ +export declare class TabNavigationBase extends View { + /** + * Gets or sets the items of the tab navigation. + */ + items: Array; + + /** + * Gets or sets the tab strip of the tab navigation. + */ + tabStrip: TabStrip; + + /** + * Gets or sets the selectedIndex of the tab navigation. + */ + selectedIndex: number; + + /** + * Gets the native android widget that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.view.View */; //android.support.v4.view.ViewPager; + + /** + * Gets the native iOS widget that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITabBarController */; + + /** + * String value used when hooking to the selectedIndexChanged event. + */ + public static selectedIndexChangedEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when the selected index changes. + */ + on(event: 'selectedIndexChanged', callback: (args: SelectedIndexChangedEventData_2) => void, thisArg?: any); + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + onItemsChanged(oldItems: TabContentItem[], newItems: TabContentItem[]): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + onSelectedIndexChanged(oldIndex: number, newIndex: number): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarBackgroundColor(): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarBackgroundArgbColor(): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarBackgroundColor(value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarColor(): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarColor(value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarFontInternal(): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarFontInternal(value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarTextTransform(): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarTextTransform(value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarHighlightColor(): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarHighlightColor(value: any); + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarSelectedItemColor(): Color; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarSelectedItemColor(value: Color); + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarUnSelectedItemColor(): Color; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarUnSelectedItemColor(value: Color); + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarItemTitle(tabStripItem: TabStripItem, value: any): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarItemBackgroundColor(tabStripItem: TabStripItem): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarItemBackgroundColor(tabStripItem: TabStripItem, value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarItemColor(tabStripItem: TabStripItem): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarItemColor(tabStripItem: TabStripItem, value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarIconColor(tabStripItem: TabStripItem, value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarIconSource(tabStripItem: TabStripItem, value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarItemFontSize(tabStripItem: TabStripItem): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarItemFontSize(tabStripItem: TabStripItem, value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarItemFontInternal(tabStripItem: TabStripItem): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarItemFontInternal(tabStripItem: TabStripItem, value: any): void; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + getTabBarItemTextTransform(tabStripItem: TabStripItem): any; + + /** + * @private + * Method is intended to be overridden by inheritors and used as "protected" + */ + setTabBarItemTextTransform(tabStripItem: TabStripItem, value: any): void; +} + +/** + * Represents a swipeable tabs view. + */ +export declare class Tabs extends TabNavigationBase { + /** + * Gets or sets the items of the Tabs. + */ + items: Array; + + /** + * Gets or sets the tab strip of the Tabs. + */ + tabStrip: TabStrip; + + /** + * Gets or sets the selectedIndex of the Tabs. + */ + selectedIndex: number; + + /** + * Gets or sets the swipe enabled state of the Tabs. + */ + swipeEnabled: boolean; + + /** + * Gets or sets the number of offscreen preloaded tabs of the Tabs. + */ + offscreenTabLimit: number; + + /** + * Gets or sets the position state of the Tabs. + */ + tabsPosition: 'top' | 'bottom'; + + /** + * Gets or set the MDCTabBarAlignment of the tab bar icons in iOS. Defaults to "justified" + * Valid values are: + * - leading + * - justified + * - center + * - centerSelected + */ + iOSTabBarItemsAlignment: IOSTabBarItemsAlignment; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.view.View */; //android.support.v4.view.ViewPager; + + /** + * Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITabBarController */; + + /** + * String value used when hooking to the selectedIndexChanged event. + */ + public static selectedIndexChangedEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when the selected index changes. + */ + on(event: 'selectedIndexChanged', callback: (args: SelectedIndexChangedEventData_2) => void, thisArg?: any); +} + +/** + * Represents a tab strip. + */ +export declare class TabStrip extends View { + /** + * Gets or sets the items of the tab strip. + */ + items: Array; + + /** + * Gets or sets whether icon size should be fixed based on specs or use the actual size. Defaults to true(fixed). + */ + isIconSizeFixed: boolean; + + /** + * Gets or sets the icon rendering mode on iOS + */ + iosIconRenderingMode: 'automatic' | 'alwaysOriginal' | 'alwaysTemplate'; + + /** + * Gets or sets the color that marks the selected tab of the tab strip. Works for Tabs component only. + */ + highlightColor: Color; + + /** + * Gets or sets the color of the selected item in the tab strip. + */ + selectedItemColor: Color; + + /** + * Gets or sets the color of the non-selected items in the tab strip. + */ + unSelectedItemColor: Color; + + /** + * @private + */ + _hasImage: boolean; + + /** + * @private + */ + _hasTitle: boolean; + + /** + * String value used when hooking to itemTap event. + */ + public static itemTapEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when an TabStripItem is tapped. + */ + on(event: 'itemTap', callback: (args: TabStripItemEventData) => void, thisArg?: any); +} + +/** + * Represents a tab strip entry. + */ +export declare class TabStripItem extends View { + /** + * Gets or sets the title of the tab strip entry. + */ + title: string; + + /** + * Gets or sets the CSS class name of the icon in the tab strip entry. + */ + iconClass: string; + + /** + * Gets or sets the icon source of the tab strip entry. + */ + iconSource: string; + + /** + * Gets or sets the label of the tab strip entry. + */ + label: Label; + + /** + * Gets or sets the image of the tab strip entry. + */ + image: Image; + + /** + * String value used when hooking to the tap event. + */ + public static tapEvent: string; + + //@private + + /** + * @private + */ + _index: number; + + /** + * @private + */ + static selectEvent: string; + + /** + * @private + */ + static unselectEvent: string; + //@endprivate + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void); + + /** + * Raised when a tap event occurs. + */ + on(event: 'tap', callback: (args: EventData) => void); +} + +/** + * Event data containing information for the TabStripItem's index. + */ +export declare interface TabStripItemEventData extends EventData { + /** + * The index of the TabStripItem. + */ + index: number; +} + +/** + * Represents a tab view. + */ +export declare class TabView extends View { + /** + * Gets or sets the items of the TabView. + */ + items: Array; + + /** + * Gets or sets the selectedIndex of the TabView. + */ + selectedIndex: number; + + /** + * Gets or sets the font size of the tabs titles. + */ + tabTextFontSize: number; + + /** + * Gets or sets the text color of the tabs titles. + */ + tabTextColor: Color; + + /** + * Gets or sets the background color of the tabs. + */ + tabBackgroundColor: Color; + + /** + * Gets or sets the text color of the selected tab title. + */ + selectedTabTextColor: Color; + + /** + * Gets or sets the color of the horizontal line drawn below the currently selected tab on Android. + */ + androidSelectedTabHighlightColor: Color; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.view.View */; //androidx.core.view.ViewPager; + + /** + * Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITabBarController */; + + /** + * Gets or set the UIImageRenderingMode of the tab icons in iOS. Defaults to "automatic" + * Valid values are: + * - automatic + * - alwaysOriginal + * - alwaysTemplate + */ + iosIconRenderingMode: 'automatic' | 'alwaysOriginal' | 'alwaysTemplate'; + + /** + * Gets or sets the number of tabs that should be retained to either side of the current tab in the view hierarchy in an idle state. + * Tabs beyond this limit will be recreated from the TabView when needed. + */ + androidOffscreenTabLimit: number; + + /** + * Gets or set the tabs vertical position. + * Valid values are: + * - top + * - bottom + */ + androidTabsPosition: 'top' | 'bottom'; + + /** + * Gets or sets a value indicating whether swipe gesture is enabled for Android. + */ + androidSwipeEnabled: boolean; + + /** + * String value used when hooking to the selectedIndexChanged event. + */ + public static selectedIndexChangedEvent: string; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when the selected index changes. + */ + on(event: 'selectedIndexChanged', callback: (args: SelectedIndexChangedEventData_4) => void, thisArg?: any); +} + +/** + * Represents a tab view entry. + */ +export declare class TabViewItem extends ViewBase { + /** + * Gets or sets the title of the TabViewItem. + */ + public title: string; + + /** + * Gets or sets the view of the TabViewItem. + */ + public view: View; + + /** + * Gets or sets the icon source of the TabViewItem. This could either be a a file name or resource id. + */ + public iconSource: string; + + /** + * Gets or sets the text transform of the tab titles. + */ + textTransform: TextTransform; + + /** + * @private + */ + canBeLoaded?: boolean; +} + +/** + * Provides gesture event data. + */ +export declare interface TapGestureEventData extends GestureEventData { + /** + * Gets the number of pointers in the event. + */ + getPointerCount(): number; + /** + * Gets the X coordinate of this event inside the view that triggered the event + */ + getX(): number; + /** + * Gets the Y coordinate of the event inside the view that triggered the event. + */ + getY(): number; +} + +/** + * Defines an interface for a View factory function. + * Commonly used to specify the visualization of data objects. + */ +export declare interface Template { + /** + * Call signature of the factory function. + * Returns a new View instance. + */ + (): View; +} + +export declare interface TemplatedItemsView { + items: any[] | ItemsSource; + itemTemplate: string | Template; + itemTemplates?: string | Array; + refresh(): void; + on(event: 'itemLoading', callback: (args: ItemEventData) => void, thisArg?: any); + off(event: 'itemLoading', callback: (args: EventData) => void, thisArg?: any); +} + +declare type TextAlignment = 'initial' | 'left' | 'center' | 'right'; + +export declare class TextBase extends View implements AddChildFromBuilder { + /** + * Gets of the text widget. In some cases(android TextInputLayout) the TextView is made of 2 views: the layout and the text view + * So we need a different getter for the layout and text functions + */ + public readonly nativeTextViewProtected: any; + + /** + * Gets or sets the text. + */ + text: string; + + /** + * Gets or sets a formatted string. + */ + formattedText: FormattedString; + + /** + * Gets or sets font-size style property. + */ + fontSize: number; + + /** + * Gets or sets letterSpace style property. + */ + letterSpacing: number; + + /** + * Gets or sets lineHeight style property. + */ + lineHeight: number; + + /** + * Gets or sets text-alignment style property. + */ + textAlignment: TextAlignment; + + /** + * Gets or sets text decorations style property. + */ + textDecoration: TextDecoration; + + /** + * Gets or sets text transform style property. + */ + textTransform: TextTransform; + + /** + * Gets or sets white space style property. + */ + whiteSpace: WhiteSpace; + + /** + * Gets or sets padding style property. + */ + padding: string | Length; + + /** + * Specify the bottom padding of this layout. + */ + paddingBottom: Length; + + /** + * Specify the left padding of this layout. + */ + paddingLeft: Length; + + /** + * Specify the right padding of this layout. + */ + paddingRight: Length; + + /** + * Specify the top padding of this layout. + */ + paddingTop: Length; + + /** + * Called for every child element declared in xml. + * This method will add a child element (value) to current element. + * @private + * @param name - Name of the element. + * @param value - Value of the element. + */ + _addChildFromBuilder(name: string, value: any): void; + + //@private + /** + * Called when the text property is changed to request layout. + * @private + */ + _requestLayoutOnTextChanged(): void; + + /** + * @private + */ + _setNativeText(reset?: boolean): void; + + /** + * @private + */ + _isSingleLine: boolean; + //@endprivate +} + +declare type TextDecoration = 'none' | 'underline' | 'line-through' | 'underline line-through'; + +/** + * Represents an editable text field. + */ +export declare class TextField extends EditableTextBase { + public static returnPressEvent: string; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.EditText */; + + /** + * Gets the native iOS [UITextField](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextField_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITextField */; + + /** + * Gets or sets if a text field is for password entry. + */ + secure: boolean; + + /** + * Gets or sets if a text field should dismiss on return. + */ + closeOnReturn: boolean; + + /** + * iOS only (to avoid 12+ auto suggested strong password handling) + */ + secureWithoutAutofill: boolean; +} + +declare type TextTransform = 'initial' | 'none' | 'capitalize' | 'uppercase' | 'lowercase'; + +/** + * Represents an editable multiline text view. + */ +export declare class TextView extends EditableTextBase { + /** + * Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.EditText */; + + /** + * Gets the native iOS [UITextView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextView_Class/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UITextView */; + + /** + * Limits input to a certain number of lines. + */ + maxLines: number; +} + +/** + * Gets accurate system timestamp in ms. + */ +declare function time(): number; + +/** + * Represents an time picker. + */ +export declare class TimePicker extends View { + /** + * Gets the native [android.widget.TimePicker](http://developer.android.com/reference/android/widget/TimePicker.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.widget.TimePicker */; + + /** + * Gets the native iOS [UIDatePicker](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* UIDatePicker */; + + /** + * Gets or sets the time hour. + */ + hour: number; + + /** + * Gets or sets the time minute. + */ + minute: number; + + /** + * Gets or sets the time. + */ + time: Date; + + /** + * Gets or sets the max time hour. + */ + maxHour: number; + + /** + * Gets or sets the max time minute. + */ + maxMinute: number; + + /** + * Gets or sets the min time hour. + */ + minHour: number; + + /** + * Gets or sets the min time minute. + */ + minMinute: number; + + /** + * Gets or sets the minute interval. + */ + minuteInterval: number; +} /** */ + +/** + * Contains contains utility methods for profiling. + * All methods in this module are experimental and may be changed in a non-major version. + * @module "profiling" + */ export declare interface TimerInfo { + totalTime: number; + count: number; +} + +/** + * Provides gesture event data. + */ +export declare interface TouchGestureEventData extends TapGestureEventData { + /** + * Gets action of the touch. Possible values: 'up', 'move', 'down', 'cancel' + */ + action: 'up' | 'move' | 'down' | 'cancel'; + /** + * Gets the pointers that triggered the event. + * Note: In Android there is aways only one active pointer. + */ + getActivePointers(): Array; + + /** + * Gets all pointers. + */ + getAllPointers(): Array; +} + +export declare const Trace: { + messageType: typeof messageType; + categories: typeof categories; + setCategories: typeof setCategories; + addCategories: typeof addCategories; + addWriter: typeof addWriter; + removeWriter: typeof removeWriter; + clearWriters: typeof clearWriters; + setErrorHandler: typeof setErrorHandler; + write: typeof write; + error: typeof error; + enable: typeof enable_2; + disable: typeof disable_2; + isEnabled: typeof isEnabled; +}; + +/** + * An interface used to define a writer used by trace to print (log). + */ +export declare interface TraceWriter { + write(message: any, category: string, type?: number); +} + +export declare class Transition { + constructor(duration: number, nativeCurve: any); + public getDuration(): number; + public getCurve(): any; + public animateIOSTransition(containerView: any, fromView: any, toView: any, operation: any, completion: (finished: boolean) => void): void; + public createAndroidAnimator(transitionType: string): any; + public toString(): string; +} + +/** + * Event data containing information about unhandled application errors. + */ +export declare interface UnhandledErrorEventData extends ApplicationEventData { + ios?: NativeScriptError; + android?: NativeScriptError; + error: NativeScriptError; +} + +declare interface Unit { + value: number; + unit: string; +} + +declare type UpdateTextTrigger = 'focusLost' | 'textChanged'; + +/** + * Gets the uptime of the current process in milliseconds. + */ +declare function uptime(): number; + +export declare const Utils: { + GC: typeof GC; + isFontIconURI: typeof isFontIconURI; + isDataURI: typeof isDataURI; + isFileOrResourcePath: typeof isFileOrResourcePath; + executeOnMainThread: typeof executeOnMainThread; + mainThreadify: typeof mainThreadify; + isMainThread: typeof isMainThread; + dispatchToMainThread: typeof dispatchToMainThread; + releaseNativeObject: typeof releaseNativeObject; + getModuleName: typeof getModuleName; + openFile: typeof openFile; + openUrl: typeof openUrl; + isRealDevice: typeof isRealDevice; + layout: typeof layout; + android: typeof ad; + ios: typeof ios; +}; + +declare type VerticalAlignment = 'top' | 'middle' | 'bottom' | 'stretch'; + +/** + * This class is the base class for all UI components. + * A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within. + */ +export declare abstract class View extends ViewBase { + /** + * String value used when hooking to layoutChanged event. + */ + public static layoutChangedEvent: string; + /** + * String value used when hooking to showingModally event. + */ + public static showingModallyEvent: string; + + /** + * String value used when hooking to shownModally event. + */ + public static shownModallyEvent: string; + + /** + * Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. + */ + public android: any; + + /** + * Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. + */ + public ios: any; + + /** + * Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. + */ + bindingContext: any; + + /** + * Gets or sets the border color of the view. + */ + borderColor: string | Color; + + /** + * Gets or sets the top border color of the view. + */ + borderTopColor: Color; + + /** + * Gets or sets the right border color of the view. + */ + borderRightColor: Color; + + /** + * Gets or sets the bottom border color of the view. + */ + borderBottomColor: Color; + + /** + * Gets or sets the left border color of the view. + */ + borderLeftColor: Color; + + /** + * Gets or sets the border width of the view. + */ + borderWidth: string | Length; + + /** + * Gets or sets the top border width of the view. + */ + borderTopWidth: Length; + + /** + * Gets or sets the right border width of the view. + */ + borderRightWidth: Length; + + /** + * Gets or sets the bottom border width of the view. + */ + borderBottomWidth: Length; + + /** + * Gets or sets the left border width of the view. + */ + borderLeftWidth: Length; + + /** + * Gets or sets the border radius of the view. + */ + borderRadius: string | Length; + + /** + * Gets or sets the top left border radius of the view. + */ + borderTopLeftRadius: Length; + + /** + * Gets or sets the top right border radius of the view. + */ + borderTopRightRadius: Length; + + /** + * Gets or sets the bottom right border radius of the view. + */ + borderBottomRightRadius: Length; + + /** + * Gets or sets the bottom left border radius of the view. + */ + borderBottomLeftRadius: Length; + + /** + * Gets or sets the color of the view. + */ + color: Color; + + /** + * Gets or sets the elevation of the android view. + */ + androidElevation: number; + + /** + * Gets or sets the dynamic elevation offset of the android view. + */ + androidDynamicElevationOffset: number; + + /** + * Gets or sets the background style property. + */ + background: string; + + /** + * Gets or sets the background color of the view. + */ + backgroundColor: string | Color; + + /** + * Gets or sets the background image of the view. + */ + backgroundImage: string | LinearGradient; + + /** + * Gets or sets the minimum width the view may grow to. + */ + minWidth: Length; + + /** + * Gets or sets the minimum height the view may grow to. + */ + minHeight: Length; + + /** + * Gets or sets the desired width of the view. + */ + width: PercentLength; + + /** + * Gets or sets the desired height of the view. + */ + height: PercentLength; + + /** + * Gets or sets margin style property. + */ + margin: string | PercentLength; + + /** + * Specifies extra space on the left side of this view. + */ + marginLeft: PercentLength; + + /** + * Specifies extra space on the top side of this view. + */ + marginTop: PercentLength; + + /** + * Specifies extra space on the right side of this view. + */ + marginRight: PercentLength; + + /** + * Specifies extra space on the bottom side of this view. + */ + marginBottom: PercentLength; + + /** + * Gets or sets the alignment of this view within its parent along the Horizontal axis. + */ + horizontalAlignment: HorizontalAlignment; + + /** + * Gets or sets the alignment of this view within its parent along the Vertical axis. + */ + verticalAlignment: VerticalAlignment; + + /** + * Gets or sets the visibility of the view. + */ + visibility: Visibility; + + /** + * Gets or sets the opacity style property. + */ + opacity: number; + + /** + * Gets or sets the rotate affine transform of the view along the Z axis. + */ + rotate: number; + + /** + * Gets or sets the rotate affine transform of the view along the X axis. + */ + rotateX: number; + + /** + * Gets or sets the rotate affine transform of the view along the Y axis. + */ + rotateY: number; + + /** + * Gets or sets the distance of the camera form the view perspective. + * Usually needed when rotating the view over the X or Y axis. + */ + perspective: number; + + /** + * Gets or sets the translateX affine transform of the view in device independent pixels. + */ + translateX: dip; + + /** + * Gets or sets the translateY affine transform of the view in device independent pixels. + */ + translateY: dip; + + /** + * Gets or sets the scaleX affine transform of the view. + */ + scaleX: number; + + /** + * Gets or sets the scaleY affine transform of the view. + */ + scaleY: number; + + //END Style property shortcuts + + /** + * Gets or sets the automation text of the view. + */ + automationText: string; + + /** + * Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. + */ + originX: number; + + /** + * Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. + */ + originY: number; + + /** + * Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. + */ + isEnabled: boolean; + + /** + * Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. + */ + isUserInteractionEnabled: boolean; + + /** + * Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false + */ + iosOverflowSafeArea: boolean; + + /** + * Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true + */ + iosOverflowSafeAreaEnabled: boolean; + + /** + * Gets is layout is valid. This is a read-only property. + */ + isLayoutValid: boolean; + + /** + * Gets the CSS fully qualified type name. + * Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. + */ + cssType: string; + + cssClasses: Set; + cssPseudoClasses: Set; + + /** + * This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. + * The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. + * @param widthMeasureSpec Horizontal space requirements as imposed by the parent + * @param heightMeasureSpec Vertical space requirements as imposed by the parent + */ + public measure(widthMeasureSpec: number, heightMeasureSpec: number): void; + + /** + * Assign a size and position to a view and all of its descendants + * This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). + * Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. + * @param l Left position, relative to parent + * @param t Top position, relative to parent + * @param r Right position, relative to parent + * @param b Bottom position, relative to parent + */ + public layout(left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; + + /** + * Returns the raw width component. + */ + public getMeasuredWidth(): number; + + /** + * Returns the raw height component. + */ + public getMeasuredHeight(): number; + + public getMeasuredState(): number; + + /** + * Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. + * When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). + * @param widthMeasureSpec horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. + * @param heightMeasureSpec vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. + */ + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + + /** + * Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. + * @param left Left position, relative to parent + * @param top Top position, relative to parent + * @param right Right position, relative to parent + * @param bottom Bottom position, relative to parent + */ + public onLayout(left: number, top: number, right: number, bottom: number): void; + + /** + * This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. + * @param measuredWidth The measured width of this view. May be a complex bit mask as defined by MEASURED_SIZE_MASK and MEASURED_STATE_TOO_SMALL. + * @param measuredHeight The measured height of this view. May be a complex bit mask as defined by MEASURED_SIZE_MASK and MEASURED_STATE_TOO_SMALL. + */ + public setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; + + /** + * Called from onLayout when native view position is about to be changed. + * @param left Left position, relative to parent + * @param top Top position, relative to parent + * @param right Right position, relative to parent + * @param bottom Bottom position, relative to parent + */ + public layoutNativeView(left: number, top: number, right: number, bottom: number): void; + + /** + * Measure a child by taking into account its margins and a given measureSpecs. + * @param parent This parameter is not used. You can pass null. + * @param child The view to be measured. + * @param measuredWidth The measured width that the parent layout specifies for this view. + * @param measuredHeight The measured height that the parent layout specifies for this view. + */ + public static measureChild(parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredWidth: number; measuredHeight: number }; + + /** + * Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. + * @param parent This parameter is not used. You can pass null. + * @param left Left position, relative to parent + * @param top Top position, relative to parent + * @param right Right position, relative to parent + * @param bottom Bottom position, relative to parent + */ + public static layoutChild(parent: View, child: View, left: number, top: number, right: number, bottom: number): void; + + /** + * Utility to reconcile a desired size and state, with constraints imposed + * by a MeasureSpec. Will take the desired size, unless a different size + * is imposed by the constraints. The returned value is a compound integer, + * with the resolved size in the MEASURED_SIZE_MASK bits and + * optionally the bit MEASURED_STATE_TOO_SMALL set if the resulting + * size is smaller than the size the view wants to be. + */ + public static resolveSizeAndState(size: number, specSize: number, specMode: number, childMeasuredState: number): number; + + public static combineMeasuredStates(curState: number, newState): number; + + /** + * Tries to focus the view. + * Returns a value indicating whether this view or one of its descendants actually took focus. + */ + public focus(): boolean; + + public getGestureObservers(type: GestureTypes): Array; + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change") or you can use gesture types. + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string | GestureTypes, callback: (args: EventData) => void, thisArg?: any); + + /** + * Removes listener(s) for the specified event name. + * @param eventNames Comma delimited names of the events or gesture types the specified listener is associated with. + * @param callback An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. + * @param thisArg An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. + */ + off(eventNames: string | GestureTypes, callback?: (args: EventData) => void, thisArg?: any); + + /** + * Raised when a loaded event occurs. + */ + on(event: 'loaded', callback: (args: EventData) => void, thisArg?: any); + + /** + * Raised when an unloaded event occurs. + */ + on(event: 'unloaded', callback: (args: EventData) => void, thisArg?: any); + + /** + * Raised when a back button is pressed. + * This event is raised only for android. + */ + on(event: 'androidBackPressed', callback: (args: EventData) => void, thisArg?: any); + + /** + * Raised before the view is shown as a modal dialog. + */ + on(event: 'showingModally', callback: (args: ShownModallyData) => void, thisArg?: any): void; + + /** + * Raised after the view is shown as a modal dialog. + */ + on(event: 'shownModally', callback: (args: ShownModallyData) => void, thisArg?: any); + + /** + * Returns the current modal view that this page is showing (is parent of), if any. + */ + modal: View; + + /** + * Animates one or more properties of the view based on the supplied options. + */ + public animate(options: AnimationDefinition): AnimationPromise; + + /** + * Creates an Animation object based on the supplied options. + */ + public createAnimation(options: AnimationDefinition): Animation; + + /** + * Returns the iOS safe area insets of this view. + */ + public getSafeAreaInsets(): { left; top; right; bottom }; + + /** + * Returns the location of this view in the window coordinate system. + */ + public getLocationInWindow(): Point; + + /** + * Returns the location of this view in the screen coordinate system. + */ + public getLocationOnScreen(): Point; + + /** + * Returns the location of this view in the otherView's coordinate system. + */ + public getLocationRelativeTo(otherView: View): Point; + + /** + * Returns the actual size of the view in device-independent pixels. + */ + public getActualSize(): Size; + + /** + * Derived classes can override this method to handle Android back button press. + */ + onBackPressed(): boolean; + + /** + * @private + * A valid css string which will be applied for all nested UI components (based on css rules). + */ + css: string; + + /** + * @private + * Adds a new values to current css. + * @param cssString - A valid css which will be added to current css. + */ + addCss(cssString: string): void; + + /** + * @private + * Adds the content of the file to the current css. + * @param cssFileName - A valid file name (from the application root) which contains a valid css. + */ + addCssFile(cssFileName: string): void; + + /** + * @private + * Changes the current css to the content of the file. + * @param cssFileName - A valid file name (from the application root) which contains a valid css. + */ + changeCssFile(cssFileName: string): void; + + // Lifecycle events + _getNativeViewsCount(): number; + + /** + * Internal method: + * Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. + */ + _closeAllModalViewsInternal(): boolean; + + /** + * Internal method: + * Gets all modal views of the current view. + */ + _getRootModalViews(): Array; + + _eachLayoutView(callback: (View) => void): void; + + /** + * Iterates over children of type View. + * @param callback Called for each child of type View. Iteration stops if this method returns falsy value. + */ + public eachChildView(callback: (view: View) => boolean): void; + + //@private + /** + * @private + */ + _modalParent?: View; + /** + * @private + */ + isLayoutRequired: boolean; + /** + * @private + */ + _gestureObservers: any; + /** + * @private + * androidx.fragment.app.FragmentManager + */ + _manager: any; + /** + * @private + */ + _setNativeClipToBounds(): void; + /** + * Called by measure method to cache measureSpecs. + * @private + */ + _setCurrentMeasureSpecs(widthMeasureSpec: number, heightMeasureSpec: number): boolean; + /** + * Called by layout method to cache view bounds. + * @private + */ + _setCurrentLayoutBounds(left: number, top: number, right: number, bottom: number): { boundsChanged: boolean; sizeChanged: boolean }; + /** + * Return view bounds. + * @private + */ + _getCurrentLayoutBounds(): { left: number; top: number; right: number; bottom: number }; + /** + * @private + */ + _goToVisualState(state: string); + /** + * @private + */ + _setNativeViewFrame(nativeView: any, frame: any): void; + // _onStylePropertyChanged(property: dependencyObservable.Property): void; + /** + * @private + */ + _updateEffectiveLayoutValues(parentWidthMeasureSize: number, parentWidthMeasureMode: number, parentHeightMeasureSize: number, parentHeightMeasureMode: number): void; + /** + * @private + */ + _currentWidthMeasureSpec: number; + /** + * @private + */ + _currentHeightMeasureSpec: number; + /** + * @private + */ + _setMinWidthNative(value: Length): void; + /** + * @private + */ + _setMinHeightNative(value: Length): void; + /** + * @private + */ + _redrawNativeBackground(value: any): void; + /** + * @private + */ + _removeAnimation(animation: Animation): boolean; + /** + * @private + */ + _onLivesync(context?: { type: string; path: string }): boolean; + /** + * @private + */ + _getFragmentManager(): any; /* androidx.fragment.app.FragmentManager */ + _handleLivesync(context?: { type: string; path: string }): boolean; + + /** + * Updates styleScope or create new styleScope. + * @param cssFileName + * @param cssString + * @param css + */ + _updateStyleScope(cssFileName?: string, cssString?: string, css?: string): void; + + /** + * Called in android when native view is attached to window. + */ + _onAttachedToWindow(): void; + + /** + * Called in android when native view is dettached from window. + */ + _onDetachedFromWindow(): void; + + /** + * Checks whether the current view has specific view for an ancestor. + */ + _hasAncestorView(ancestorView: View): boolean; + //@endprivate + + /** + * __Obsolete:__ There is a new property system that does not rely on _getValue. + */ + _getValue(property: any): never; + + /** + * __Obsolete:__ There is a new property system that does not rely on _setValue. + */ + _setValue(property: any, value: any): never; +} + +export declare abstract class ViewBase extends Observable { + // Dynamic properties. + left: Length; + top: Length; + effectiveLeft: number; + effectiveTop: number; + dock: 'left' | 'top' | 'right' | 'bottom'; + row: number; + col: number; + /** + * Setting `column` property is the same as `col` + */ + column: number; + rowSpan: number; + colSpan: number; + /** + * Setting `columnSpan` property is the same as `colSpan` + */ + columnSpan: number; + domNode: DOMNode; + + order: Order; + flexGrow: FlexGrow; + flexShrink: FlexShrink; + flexWrapBefore: FlexWrapBefore; + alignSelf: AlignSelf; + + /** + * @private + * Module name when the view is a module root. Otherwise, it is undefined. + */ + _moduleName?: string; + + //@private + /** + * @private + */ + _oldLeft: number; + /** + * @private + */ + _oldTop: number; + /** + * @private + */ + _oldRight: number; + /** + * @private + */ + _oldBottom: number; + /** + * @private + */ + _defaultPaddingTop: number; + /** + * @private + */ + _defaultPaddingRight: number; + /** + * @private + */ + _defaultPaddingBottom: number; + /** + * @private + */ + _defaultPaddingLeft: number; + + /** + * A property bag holding suspended native updates. + * Native setters that had to execute while there was no native view, + * or the view was detached from the visual tree etc. will accumulate in this object, + * and will be applied when all prerequisites are met. + * @private + */ + _suspendedUpdates: { [propertyName: string]: Property | CssProperty | CssAnimationProperty }; + //@endprivate + + /** + * Shows the View contained in moduleName as a modal view. + * @param moduleName - The name of the module to load starting from the application root. + * @param modalOptions - A ShowModalOptions instance + */ + showModal(moduleName: string, modalOptions: ShowModalOptions): ViewBase; + + /** + * Shows the view passed as parameter as a modal view. + * @param view - View instance to be shown modally. + * @param modalOptions - A ShowModalOptions instance + */ + showModal(view: ViewBase, modalOptions: ShowModalOptions): ViewBase; + + /** + * Closes the current modal view that this page is showing. + * @param context - Any context you want to pass back to the host when closing the modal view. + */ + closeModal(context?: any): void; + + public effectiveMinWidth: number; + public effectiveMinHeight: number; + public effectiveWidth: number; + public effectiveHeight: number; + public effectiveMarginTop: number; + public effectiveMarginRight: number; + public effectiveMarginBottom: number; + public effectiveMarginLeft: number; + public effectivePaddingTop: number; + public effectivePaddingRight: number; + public effectivePaddingBottom: number; + public effectivePaddingLeft: number; + public effectiveBorderTopWidth: number; + public effectiveBorderRightWidth: number; + public effectiveBorderBottomWidth: number; + public effectiveBorderLeftWidth: number; + + /** + * String value used when hooking to loaded event. + */ + public static loadedEvent: string; + + /** + * String value used when hooking to unloaded event. + */ + public static unloadedEvent: string; + + public ios: any; + public android: any; + + /** + * returns the native UIViewController. + */ + public viewController: any; + + /** + * read-only. If you want to set out-of-band the nativeView use the setNativeView method. + */ + public nativeViewProtected: any; + public nativeView: any; + public bindingContext: any; + + /** + * Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". + */ + public typeName: string; + + /** + * Gets the parent view. This property is read-only. + */ + public readonly parent: ViewBase; + + /** + * Gets the template parent or the native parent. Sets the template parent. + */ + public parentNode: ViewBase; + + /** + * Gets or sets the id for this view. + */ + public id: string; + + /** + * Gets or sets the CSS class name for this view. + */ + public className: string; + + /** + * Gets owner page. This is a read-only property. + */ + public readonly page: Page; + + /** + * Gets the style object associated to this view. + */ + public readonly style: Style; + + /** + * Returns true if visibility is set to 'collapse'. + * Readonly property + */ + public isCollapsed: boolean; + public readonly isLoaded: boolean; + + /** + * Returns the child view with the specified id. + */ + public getViewById(id: string): T; + + /** + * Load view. + * @param view to load. + */ + public loadView(view: ViewBase): void; + + /** + * Unload view. + * @param view to unload. + */ + public unloadView(view: ViewBase): void; + + public onLoaded(): void; + public onUnloaded(): void; + public onResumeNativeUpdates(): void; + + public bind(options: BindingOptions, source?: Object): void; + public unbind(property: string): void; + + /** + * Invalidates the layout of the view and triggers a new layout pass. + */ + public requestLayout(): void; + + /** + * Iterates over children of type ViewBase. + * @param callback Called for each child of type ViewBase. Iteration stops if this method returns falsy value. + */ + public eachChild(callback: (child: ViewBase) => boolean): void; + + public _addView(view: ViewBase, atIndex?: number): void; + /** + * Method is intended to be overridden by inheritors and used as "protected" + */ + public _addViewCore(view: ViewBase, atIndex?: number): void; + + public _removeView(view: ViewBase): void; + /** + * Method is intended to be overridden by inheritors and used as "protected" + */ + public _removeViewCore(view: ViewBase): void; + public _parentChanged(oldParent: ViewBase): void; + /** + * Method is intended to be overridden by inheritors and used as "protected" + */ + public _dialogClosed(): void; + /** + * Method is intended to be overridden by inheritors and used as "protected" + */ + public _onRootViewReset(): void; + + _domId: number; + + _cssState: any /* "ui/styling/style-scope" */; + /** + * @private + * Notifies each child's css state for change, recursively. + * Either the style scope, className or id properties were changed. + */ + _onCssStateChange(): void; + + public cssClasses: Set; + public cssPseudoClasses: Set; + + public _goToVisualState(state: string): void; + + public setInlineStyle(style: string): void; + + _context: any /* android.content.Context */; + + /** + * Setups the UI for ViewBase and all its children recursively. + * This method should *not* be overridden by derived views. + */ + _setupUI(context: any /* android.content.Context */, atIndex?: number): void; + + /** + * Tears down the UI for ViewBase and all its children recursively. + * This method should *not* be overridden by derived views. + */ + _tearDownUI(force?: boolean): void; + + /** + * Creates a native view. + * Returns either android.view.View or UIView. + */ + createNativeView(): Object; + + /** + * Initializes properties/listeners of the native view. + */ + initNativeView(): void; + + /** + * Clean up references to the native view. + */ + disposeNativeView(): void; + + /** + * Resets properties/listeners set to the native view. + */ + resetNativeView(): void; + + /** + * Set the nativeView field performing extra checks and updates to the native properties on the new view. + * Use in cases where the createNativeView is not suitable. + * As an example use in item controls where the native parent view will create the native views for child items. + */ + setNativeView(view: any): void; + + _isAddedToNativeVisualTree: boolean; + + /** + * Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. + */ + _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; + _removeViewFromNativeVisualTree(view: ViewBase): void; + _childIndexToNativeChildIndex(index?: number): number; + + /** + * @protected + * @unstable + * A widget can call this method to add a matching css pseudo class. + */ + public addPseudoClass(name: string): void; + + /** + * @protected + * @unstable + * A widget can call this method to discard matching css pseudo class. + */ + public deletePseudoClass(name: string): void; + + /** + * @unstable + * Ensures a dom-node for this view. + */ + public ensureDomNode(); + + //@private + /** + * @private + */ + public recycleNativeView: 'always' | 'never' | 'auto'; + + /** + * @private + */ + public _isPaddingRelative: boolean; + + /** + * @private + */ + public _ignoreFlexMinWidthHeightReset: boolean; + + public _styleScope: any; + + /** + * @private + */ + public _automaticallyAdjustsScrollViewInsets: boolean; + /** + * @private + */ + _isStyleScopeHost: boolean; + + /** + * @private + */ + public _layoutParent(): void; + + /** + * Determines the depth of suspended updates. + * When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. + * If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. + * Do not set this field, the _batchUpdate method is responsible to keep the count up to date, + * as well as adding/rmoving the view to/from the visual tree. + */ + public _suspendNativeUpdatesCount: number; + + /** + * Allow multiple updates to be performed on the instance at once. + */ + public _batchUpdate(callback: () => T): T; + /** + * @private + */ + _setupAsRootView(context: any): void; + + /** + * When returning true the callLoaded method will be run in setTimeout + * Method is intended to be overridden by inheritors and used as "protected" + */ + _shouldDelayLayout(): boolean; + + /** + * @private + */ + _inheritStyleScope(styleScope: any /* StyleScope */): void; + + /** + * @private + */ + callLoaded(): void; + + /** + * @private + */ + callUnloaded(): void; + //@endprivate +} + +/** + * Represents an entry to be used to create a view or load it form file + */ +export declare interface ViewEntry { + /** + * The name of the module containing the View instance to load. Optional. + */ + moduleName?: string; + + /** + * A function used to create the View instance. Optional. + */ + create?: () => View; +} + +declare type Visibility = 'visible' | 'hidden' | 'collapse'; + +/** + * Represents a standard WebView widget. + */ +export declare class WebView extends View { + /** + * String value used when hooking to loadStarted event. + */ + public static loadStartedEvent: string; + + /** + * String value used when hooking to loadFinished event. + */ + public static loadFinishedEvent: string; + + /** + * Gets the native [android widget](http://developer.android.com/reference/android/webkit/WebView.html) that represents the user interface for this component. Valid only when running on Android OS. + */ + android: any /* android.webkit.WebView */; + + /** + * Gets the native [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview/) that represents the user interface for this component. Valid only when running on iOS. + */ + ios: any /* WKWebView */; + + /** + * Gets or sets the url, local file path or HTML string. + */ + src: string; + + /** + * Gets a value indicating whether the WebView can navigate back. + */ + canGoBack: boolean; + + /** + * Gets a value indicating whether the WebView can navigate forward. + */ + canGoForward: boolean; + + /** + * Stops loading the current content (if any). + */ + stopLoading(): void; + + /** + * Navigates back. + */ + goBack(); + + /** + * Navigates forward. + */ + goForward(); + + /** + * Reloads the current url. + */ + reload(); + + /** + * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). + * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). + * @param callback - Callback function which will be executed when event is raised. + * @param thisArg - An optional parameter which will be used as `this` context for callback execution. + */ + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + /** + * Raised when a loadFinished event occurs. + */ + on(event: 'loadFinished', callback: (args: LoadEventData) => void, thisArg?: any); + + /** + * Raised when a loadStarted event occurs. + */ + on(event: 'loadStarted', callback: (args: LoadEventData) => void, thisArg?: any); +} + +declare type WhiteSpace = 'initial' | 'normal' | 'nowrap'; + +/** + * WrapLayout position children in rows or columns depending on orientation property + * until space is filled and then wraps them on new row or column. + */ +export declare class WrapLayout extends LayoutBase { + /** + * Gets or sets the flow direction. Default value is horizontal. + * If orientation is horizontal items are arranged in rows, else items are arranged in columns. + */ + orientation: Orientation_3; + + /** + * Gets or sets the width used to measure and layout each child. + * Default value is Number.NaN which does not restrict children. + */ + itemWidth: Length; + + /** + * Gets or sets the height used to measure and layout each child. + * Default value is Number.NaN which does not restrict children. + */ + itemHeight: Length; +} + +/** + * Writes a message using the available writers. + * @param message The message to be written. + * @param category The category of the message. + * @param type Optional, the type of the message - info, warning, error. + */ +declare function write(message: any, category: string, type?: number); + +/** + * A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14 + */ +export declare class XmlParser { + /** + * Creates a new instance of the XmlParser class. + * @param onEvent The callback to execute when a parser event occurs. The 'event' parameter contains information about the event. + * @param onError The callback to execute when a parser error occurs. The 'error' parameter contains the error. + * @param processNamespaces Specifies whether namespaces should be processed. + */ + constructor(onEvent: (event: ParserEvent) => void, onError?: (error: Error, position: Position) => void, processNamespaces?: boolean, angularSyntax?: boolean); + + /** + * Parses the supplied xml string. + * @param xmlString The string containing the xml to parse. + */ + parse(xmlString: string): void; +} + +export {}; diff --git a/nativescript-core/temp/NativeScript.api.json b/nativescript-core/temp/NativeScript.api.json new file mode 100644 index 000000000..9a9b09402 --- /dev/null +++ b/nativescript-core/temp/NativeScript.api.json @@ -0,0 +1,48467 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.6.1", + "schemaVersion": 1003, + "oldestForwardsCompatibleVersion": 1001 + }, + "kind": "Package", + "canonicalReference": "NativeScript!", + "docComment": "", + "name": "NativeScript", + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "NativeScript!", + "name": "", + "members": [ + { + "kind": "Class", + "canonicalReference": "NativeScript!AbsoluteLayout:class", + "docComment": "/**\n * A layout that lets you specify exact locations (left/top coordinates) of its children.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class AbsoluteLayout extends " + }, + { + "kind": "Reference", + "text": "LayoutBase", + "canonicalReference": "NativeScript!LayoutBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "AbsoluteLayout", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!AbsoluteLayout.getLeft:member(1)", + "docComment": "/**\n * Gets the value of the Left property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getLeft(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getLeft" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AbsoluteLayout.getTop:member(1)", + "docComment": "/**\n * Gets the value of the Top property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getTop(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getTop" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AbsoluteLayout.setLeft:member(1)", + "docComment": "/**\n * Sets the value of the Left property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static setLeft(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setLeft" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AbsoluteLayout.setTop:member(1)", + "docComment": "/**\n * Sets the value of the Top property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static setTop(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTop" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ActionBar:class", + "docComment": "/**\n * Provides an abstraction over the ActionBar (android) and NavigationBar (iOS).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ActionBar extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ActionBar", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#_getActualSize:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getActualSize?: " + }, + { + "kind": "Content", + "text": "{ width: number, height: number }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_getActualSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionBar#_isEmpty:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_isEmpty(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_isEmpty" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#actionItems:member", + "docComment": "/**\n * Gets the collection of action items.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "actionItems: " + }, + { + "kind": "Reference", + "text": "ActionItems", + "canonicalReference": "NativeScript!ActionItems:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "actionItems", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#android:member", + "docComment": "/**\n * Gets the android specific options of the action bar.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Reference", + "text": "AndroidActionBarSettings", + "canonicalReference": "NativeScript!AndroidActionBarSettings:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#effectiveContentInsetLeft:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveContentInsetLeft: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveContentInsetLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#effectiveContentInsetRight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveContentInsetRight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveContentInsetRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#flat:member", + "docComment": "/**\n * Removes the shadow/border at the bottom of the ActionBar and removes translucency on iOS. Default false.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "flat: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flat", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#ios:member", + "docComment": "/**\n * Gets the native iOS [UINavigationBar](https://developer.apple.com/documentation/uikit/uinavigationbar) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITabBarController */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#iosIconRenderingMode:member", + "docComment": "/**\n * Gets or set the UIImageRenderingMode of the action bar icons in iOS. Defaults to \"alwaysOriginal\" Valid values are: - automatic - alwaysOriginal - alwaysTemplate\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iosIconRenderingMode: " + }, + { + "kind": "Content", + "text": "\"automatic\" | \"alwaysOriginal\" | \"alwaysTemplate\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iosIconRenderingMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#navigationButton:member", + "docComment": "/**\n * Gets or sets the navigation button (a.k.a. the back button).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "navigationButton: " + }, + { + "kind": "Reference", + "text": "NavigationButton", + "canonicalReference": "NativeScript!NavigationButton:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navigationButton", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#title:member", + "docComment": "/**\n * Gets or sets the action bar title.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "title: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "title", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionBar#titleView:member", + "docComment": "/**\n * Gets or sets the title view. When set - replaces the title with a custom view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "titleView: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "titleView", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionBar#update:member(1)", + "docComment": "/**\n * Updates the action bar.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "update();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "update" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ActionItem:class", + "docComment": "/**\n * Represents an action item in the action bar.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ActionItem extends " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ActionItem", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionItem#_raiseTap:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_raiseTap(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_raiseTap" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionItem#actionBar:member", + "docComment": "/**\n * Gets the action bar that contains the action item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "actionBar: " + }, + { + "kind": "Reference", + "text": "ActionBar", + "canonicalReference": "NativeScript!ActionBar:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "actionBar", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionItem#actionView:member", + "docComment": "/**\n * Gets or sets the custom action view of the action item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "actionView: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "actionView", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionItem#android:member", + "docComment": "/**\n * Gets the Android specific options of the action item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Reference", + "text": "AndroidActionItemSettings", + "canonicalReference": "NativeScript!AndroidActionItemSettings:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionItem#icon:member", + "docComment": "/**\n * Gets or sets the icon of the action item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "icon: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "icon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionItem#ios:member", + "docComment": "/**\n * Gets the iOS specific options of the action item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Reference", + "text": "IOSActionItemSettings", + "canonicalReference": "NativeScript!IOSActionItemSettings:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionItem#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionItem#on:member(2)", + "docComment": "/**\n * Raised when a tap event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"tap\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionItem#text:member", + "docComment": "/**\n * Gets or sets the text of the action item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "text: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "text", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActionItem#visibility:member", + "docComment": "/**\n * Gets or sets the visibility of the action item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "visibility: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "visibility", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ActionItems:class", + "docComment": "/**\n * Represents a collection of ActionItems.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ActionItems " + } + ], + "releaseTag": "Public", + "name": "ActionItems", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionItems#addItem:member(1)", + "docComment": "/**\n * Adds an item to the collection.\n *\n * @param item - the item to be added\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addItem(item: " + }, + { + "kind": "Reference", + "text": "ActionItem", + "canonicalReference": "NativeScript!ActionItem:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "addItem" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionItems#getItemAt:member(1)", + "docComment": "/**\n * Gets an item at a specified index.\n *\n * @param index - The index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getItemAt(index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ActionItem", + "canonicalReference": "NativeScript!ActionItem:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getItemAt" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionItems#getItems:member(1)", + "docComment": "/**\n * Gets an array of the current action items in the collection.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getItems(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ActionItem", + "canonicalReference": "NativeScript!ActionItem:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getItems" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ActionItems#removeItem:member(1)", + "docComment": "/**\n * Removes an item to the collection.\n *\n * @param item - The item to be removed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeItem(item: " + }, + { + "kind": "Reference", + "text": "ActionItem", + "canonicalReference": "NativeScript!ActionItem:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "removeItem" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ActivityIndicator:class", + "docComment": "/**\n * Represents a UI widget which displays a progress indicator hinting the user for some background operation running.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ActivityIndicator extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ActivityIndicator", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!ActivityIndicator#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/ProgressBar.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.ProgressBar */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActivityIndicator#busy:member", + "docComment": "/**\n * Gets or sets a value indicating whether the widget is currently displaying progress.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "busy: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "busy", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ActivityIndicator#ios:member", + "docComment": "/**\n * Gets the native iOS [UIActivityIndicatorView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivityIndicatorView_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIActivityIndicatorView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!AndroidActivityBackPressedEventData:interface", + "docComment": "/**\n * Data for the Android activity back pressed event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface AndroidActivityBackPressedEventData extends " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "AndroidActivityBackPressedEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityBackPressedEventData#cancel:member", + "docComment": "/**\n * In the event handler, set this value to true if you want to cancel the back navigation and do something else instead.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "cancel: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cancel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!AndroidActivityBundleEventData:interface", + "docComment": "/**\n * Data for the Android activity events with bundle.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface AndroidActivityBundleEventData extends " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "AndroidActivityBundleEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityBundleEventData#bundle:member", + "docComment": "/**\n * The bundle.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "bundle: " + }, + { + "kind": "Content", + "text": "any /* android.os.Bundle */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "bundle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface", + "docComment": "/**\n * Data for the Android activity events.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface AndroidActivityEventData " + } + ], + "releaseTag": "Public", + "name": "AndroidActivityEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityEventData#activity:member", + "docComment": "/**\n * The activity.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "activity: " + }, + { + "kind": "Content", + "text": "any /* androidx.appcompat.app.AppCompatActivity */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityEventData#eventName:member", + "docComment": "/**\n * The name of the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "eventName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "eventName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityEventData#object:member", + "docComment": "/**\n * The instance that has raised the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "object: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "object", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!AndroidActivityNewIntentEventData:interface", + "docComment": "/**\n * Data for the Android activity newIntent event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface AndroidActivityNewIntentEventData extends " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "AndroidActivityNewIntentEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityNewIntentEventData#intent:member", + "docComment": "/**\n * The intent.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "intent: " + }, + { + "kind": "Content", + "text": "any /* android.content.Intent */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "intent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!AndroidActivityRequestPermissionsEventData:interface", + "docComment": "/**\n * Data for the Android activity onRequestPermissions callback\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface AndroidActivityRequestPermissionsEventData extends " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "AndroidActivityRequestPermissionsEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityRequestPermissionsEventData#grantResults:member", + "docComment": "/**\n * The Granted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "grantResults: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "grantResults", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityRequestPermissionsEventData#permissions:member", + "docComment": "/**\n * The Permissions.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "permissions: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "permissions", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityRequestPermissionsEventData#requestCode:member", + "docComment": "/**\n * The request code.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "requestCode: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "requestCode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!AndroidActivityResultEventData:interface", + "docComment": "/**\n * Data for the Android activity result event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface AndroidActivityResultEventData extends " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "AndroidActivityResultEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityResultEventData#intent:member", + "docComment": "/**\n * The intent.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "intent: " + }, + { + "kind": "Content", + "text": "any /* android.content.Intent */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "intent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityResultEventData#requestCode:member", + "docComment": "/**\n * The request code.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "requestCode: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "requestCode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AndroidActivityResultEventData#resultCode:member", + "docComment": "/**\n * The result code.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "resultCode: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "resultCode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!AndroidApplication:class", + "docComment": "/**\n * The abstraction of an Android-specific application object.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class AndroidApplication extends " + }, + { + "kind": "Reference", + "text": "Observable", + "canonicalReference": "NativeScript!Observable:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "AndroidApplication", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityBackPressedEvent:member", + "docComment": "/**\n * String value used when hooking to activityBackPressed event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityBackPressedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityBackPressedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityCreatedEvent:member", + "docComment": "/**\n * String value used when hooking to activityCreated event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityCreatedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityCreatedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityDestroyedEvent:member", + "docComment": "/**\n * String value used when hooking to activityDestroyed event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityDestroyedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityDestroyedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityNewIntentEvent:member", + "docComment": "/**\n * String value used when hooking to activityNewIntent event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityNewIntentEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityNewIntentEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityPausedEvent:member", + "docComment": "/**\n * String value used when hooking to activityPaused event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityPausedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityPausedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityRequestPermissionsEvent:member", + "docComment": "/**\n * String value used when hooking to requestPermissions event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityRequestPermissionsEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityRequestPermissionsEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityResultEvent:member", + "docComment": "/**\n * String value used when hooking to activityResult event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityResultEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityResultEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityResumedEvent:member", + "docComment": "/**\n * String value used when hooking to activityResumed event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityResumedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityResumedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityStartedEvent:member", + "docComment": "/**\n * String value used when hooking to activityStarted event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityStartedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityStartedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.activityStoppedEvent:member", + "docComment": "/**\n * String value used when hooking to activityStopped event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static activityStoppedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "activityStoppedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#context:member", + "docComment": "/**\n * The application's [android Context](http://developer.android.com/reference/android/content/Context.html) object instance.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context: " + }, + { + "kind": "Content", + "text": "any /* android.content.Context */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#foregroundActivity:member", + "docComment": "/**\n * The currently active (loaded) [android Activity](http://developer.android.com/reference/android/app/Activity.html). This property is automatically updated upon Activity events.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "foregroundActivity: " + }, + { + "kind": "Content", + "text": "any /* androidx.appcompat.app.AppCompatActivity */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "foregroundActivity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#init:member", + "docComment": "/**\n * Initialized the android-specific application object with the native android.app.Application instance. This is useful when creating custom application types.\n *\n * @param nativeApp - the android.app.Application instance that started the app.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "init: " + }, + { + "kind": "Content", + "text": "(nativeApp) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "init", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#nativeApp:member", + "docComment": "/**\n * The [android Application](http://developer.android.com/reference/android/app/Application.html) object instance provided to the init of the module.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "nativeApp: " + }, + { + "kind": "Content", + "text": "any /* android.app.Application */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "nativeApp", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(10)", + "docComment": "/**\n * This event is raised on the back button is pressed in an android application.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityBackPressed\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityBackPressedEventData", + "canonicalReference": "NativeScript!AndroidActivityBackPressedEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 10, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(11)", + "docComment": "/**\n * This event is raised when the Android app was launched by an Intent with data.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityNewIntent\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityNewIntentEventData", + "canonicalReference": "NativeScript!AndroidActivityNewIntentEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 11, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(12)", + "docComment": "/**\n * This event is raised when the Android activity requests permissions.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityRequestPermissions\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityRequestPermissionsEventData", + "canonicalReference": "NativeScript!AndroidActivityRequestPermissionsEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 12, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(2)", + "docComment": "/**\n * This event is raised on android application ActivityCreated.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityCreated\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityBundleEventData", + "canonicalReference": "NativeScript!AndroidActivityBundleEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(3)", + "docComment": "/**\n * This event is raised on android application ActivityDestroyed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityDestroyed\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(4)", + "docComment": "/**\n * This event is raised on android application ActivityStarted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityStarted\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 4, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(5)", + "docComment": "/**\n * This event is raised on android application ActivityPaused.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityPaused\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 5, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(6)", + "docComment": "/**\n * This event is raised on android application ActivityResumed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityResumed\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 6, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(7)", + "docComment": "/**\n * This event is raised on android application ActivityStopped.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityStopped\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityEventData", + "canonicalReference": "NativeScript!AndroidActivityEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 7, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(8)", + "docComment": "/**\n * This event is raised on android application SaveActivityState.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"saveActivityState\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityBundleEventData", + "canonicalReference": "NativeScript!AndroidActivityBundleEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 8, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#on:member(9)", + "docComment": "/**\n * This event is raised on android application ActivityResult.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"activityResult\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "AndroidActivityResultEventData", + "canonicalReference": "NativeScript!AndroidActivityResultEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 9, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#orientation:member", + "docComment": "/**\n * Gets the orientation of the application. Available values: \"portrait\", \"landscape\", \"unknown\".\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "orientation: " + }, + { + "kind": "Content", + "text": "\"portrait\" | \"landscape\" | \"unknown\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "orientation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#packageName:member", + "docComment": "/**\n * The name of the application package.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "packageName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "packageName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#paused:member", + "docComment": "/**\n * True if the main application activity is not running (suspended), false otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paused: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paused", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#registerBroadcastReceiver:member(1)", + "docComment": "/**\n * Register a BroadcastReceiver to be run in the main activity thread. The receiver will be called with any broadcast Intent that matches filter, in the main application thread. For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#registerReceiver%28android.content.BroadcastReceiver,%20android.content.IntentFilter%29'\n *\n * @param - intentFilter A string containing the intent filter.\n *\n * @param - onReceiveCallback A callback function that will be called each time the receiver receives a broadcast.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "registerBroadcastReceiver(intentFilter: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", onReceiveCallback: " + }, + { + "kind": "Content", + "text": "(context: any /* android.content.Context */, intent: any /* android.content.Intent */) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "intentFilter", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "onReceiveCallback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "registerBroadcastReceiver" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication.saveActivityStateEvent:member", + "docComment": "/**\n * String value used when hooking to saveActivityState event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static saveActivityStateEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "saveActivityStateEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#startActivity:member", + "docComment": "/**\n * The main (start) Activity for the application.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "startActivity: " + }, + { + "kind": "Content", + "text": "any /* androidx.appcompat.app.AppCompatActivity */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "startActivity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!AndroidApplication#systemAppearance:member", + "docComment": "/**\n * Gets the system appearance. Available values: \"dark\", \"light\".\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "systemAppearance: " + }, + { + "kind": "Content", + "text": "\"dark\" | \"light\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "systemAppearance", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!AndroidApplication#unregisterBroadcastReceiver:member(1)", + "docComment": "/**\n * Unregister a previously registered BroadcastReceiver. For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#unregisterReceiver(android.content.BroadcastReceiver)'\n *\n * @param - intentFilter A string containing the intent filter with which the receiver was originally registered.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "unregisterBroadcastReceiver(intentFilter: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "intentFilter", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "unregisterBroadcastReceiver" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Animation:class", + "docComment": "/**\n * Defines a animation set.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Animation " + } + ], + "releaseTag": "Public", + "name": "Animation", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!Animation#_resolveAnimationCurve:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _resolveAnimationCurve(curve: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "curve", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_resolveAnimationCurve" + }, + { + "kind": "Constructor", + "canonicalReference": "NativeScript!Animation:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Animation` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(animationDefinitions: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "AnimationDefinition", + "canonicalReference": "NativeScript!AnimationDefinition:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", playSequentially?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "animationDefinitions", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "parameterName": "playSequentially", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + } + } + ] + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Animation#cancel:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public cancel: " + }, + { + "kind": "Content", + "text": "() => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cancel", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Animation#isPlaying:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public isPlaying: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isPlaying", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Animation#play:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public play: " + }, + { + "kind": "Content", + "text": "(resetOnFinish?: boolean) => " + }, + { + "kind": "Reference", + "text": "AnimationPromise", + "canonicalReference": "NativeScript!AnimationPromise:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "play", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!AnimationDefinition:interface", + "docComment": "/**\n * Defines animation options for the View.animate method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface AnimationDefinition " + } + ], + "releaseTag": "Public", + "name": "AnimationDefinition", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#backgroundColor:member", + "docComment": "/**\n * Animates the backgroundColor of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "backgroundColor?: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#curve:member", + "docComment": "/**\n * An optional animation curve. Possible values are contained in the [AnimationCurve enumeration](../modules/_ui_enums_.animationcurve.html). Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "curve?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "curve", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#delay:member", + "docComment": "/**\n * The amount of time, in milliseconds, to delay starting the animation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "delay?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "delay", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#duration:member", + "docComment": "/**\n * The length of the animation in milliseconds. The default duration is 300 milliseconds.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "duration?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "duration", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#height:member", + "docComment": "/**\n * Animates the height of a view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "height?: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": " | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "height", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#iterations:member", + "docComment": "/**\n * Specifies how many times the animation should be played. Default is 1. iOS animations support fractional iterations, i.e. 1.5. To repeat an animation infinitely, use Number.POSITIVE_INFINITY\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iterations?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iterations", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#opacity:member", + "docComment": "/**\n * Animates the opacity of the view. Value should be a number between 0.0 and 1.0\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "opacity?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "opacity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#rotate:member", + "docComment": "/**\n * Animates the rotate affine transform of the view. Value should be a number specifying the rotation amount in degrees.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotate?: " + }, + { + "kind": "Content", + "text": "number | " + }, + { + "kind": "Reference", + "text": "Point3D", + "canonicalReference": "NativeScript!Point3D:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#scale:member", + "docComment": "/**\n * Animates the scale affine transform of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scale?: " + }, + { + "kind": "Reference", + "text": "Pair", + "canonicalReference": "NativeScript!Pair:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scale", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#target:member", + "docComment": "/**\n * The view whose property is to be animated.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "target?: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "target", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#translate:member", + "docComment": "/**\n * Animates the translate affine transform of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "translate?: " + }, + { + "kind": "Reference", + "text": "Pair", + "canonicalReference": "NativeScript!Pair:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "translate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!AnimationDefinition#width:member", + "docComment": "/**\n * Animates the width of a view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "width?: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": " | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "width", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!Application:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Application: " + }, + { + "kind": "Content", + "text": "{\n launchEvent: string;\n displayedEvent: string;\n uncaughtErrorEvent: string;\n discardedErrorEvent: string;\n suspendEvent: string;\n resumeEvent: string;\n exitEvent: string;\n lowMemoryEvent: string;\n orientationChangedEvent: string;\n getMainEntry: typeof " + }, + { + "kind": "Reference", + "text": "getMainEntry", + "canonicalReference": "NativeScript!getMainEntry:function" + }, + { + "kind": "Content", + "text": ";\n getRootView: typeof " + }, + { + "kind": "Reference", + "text": "getRootView", + "canonicalReference": "NativeScript!getRootView:function" + }, + { + "kind": "Content", + "text": ";\n setResources: typeof " + }, + { + "kind": "Reference", + "text": "setResources", + "canonicalReference": "NativeScript!setResources:function" + }, + { + "kind": "Content", + "text": ";\n setCssFileName: typeof " + }, + { + "kind": "Reference", + "text": "setCssFileName", + "canonicalReference": "NativeScript!setCssFileName:function" + }, + { + "kind": "Content", + "text": ";\n getCssFileName: typeof " + }, + { + "kind": "Reference", + "text": "getCssFileName", + "canonicalReference": "NativeScript!getCssFileName:function" + }, + { + "kind": "Content", + "text": ";\n loadAppCss: typeof " + }, + { + "kind": "Reference", + "text": "loadAppCss", + "canonicalReference": "NativeScript!loadAppCss:function" + }, + { + "kind": "Content", + "text": ";\n addCss: typeof " + }, + { + "kind": "Reference", + "text": "addCss", + "canonicalReference": "NativeScript!addCss:function" + }, + { + "kind": "Content", + "text": ";\n on: typeof " + }, + { + "kind": "Reference", + "text": "on", + "canonicalReference": "NativeScript!on:function" + }, + { + "kind": "Content", + "text": ";\n off: typeof " + }, + { + "kind": "Reference", + "text": "off", + "canonicalReference": "NativeScript!off:function" + }, + { + "kind": "Content", + "text": ";\n run: typeof " + }, + { + "kind": "Reference", + "text": "run", + "canonicalReference": "NativeScript!run:function" + }, + { + "kind": "Content", + "text": ";\n orientation: typeof " + }, + { + "kind": "Reference", + "text": "orientation", + "canonicalReference": "NativeScript!orientation:function" + }, + { + "kind": "Content", + "text": ";\n getNativeApplication: typeof " + }, + { + "kind": "Reference", + "text": "getNativeApplication", + "canonicalReference": "NativeScript!getNativeApplication:function" + }, + { + "kind": "Content", + "text": ";\n hasLaunched: typeof " + }, + { + "kind": "Reference", + "text": "hasLaunched", + "canonicalReference": "NativeScript!hasLaunched:function" + }, + { + "kind": "Content", + "text": ";\n android: import(\"./application/application\")." + }, + { + "kind": "Reference", + "text": "AndroidApplication", + "canonicalReference": "NativeScript!AndroidApplication:class" + }, + { + "kind": "Content", + "text": ";\n ios: import(\"./application/application\")." + }, + { + "kind": "Reference", + "text": "iOSApplication", + "canonicalReference": "NativeScript!iOSApplication:class" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "releaseTag": "Public", + "name": "Application", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 32 + } + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ApplicationEventData:interface", + "docComment": "/**\n * Event data containing information for the application events.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ApplicationEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ApplicationEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ApplicationEventData#android:member", + "docComment": "/**\n * Gets the native Android event arguments. Valid only when running on Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ApplicationEventData#eventName:member", + "docComment": "/**\n * The name of the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "eventName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "eventName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ApplicationEventData#ios:member", + "docComment": "/**\n * Gets the native iOS event arguments. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ApplicationEventData#object:member", + "docComment": "/**\n * The instance that has raised the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "object: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "object", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!ApplicationSettings:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "ApplicationSettings: " + }, + { + "kind": "Content", + "text": "{\n clear: typeof " + }, + { + "kind": "Reference", + "text": "clear", + "canonicalReference": "NativeScript!clear:function" + }, + { + "kind": "Content", + "text": ";\n flush: typeof " + }, + { + "kind": "Reference", + "text": "flush", + "canonicalReference": "NativeScript!flush:function" + }, + { + "kind": "Content", + "text": ";\n hasKey: typeof " + }, + { + "kind": "Reference", + "text": "hasKey", + "canonicalReference": "NativeScript!hasKey:function" + }, + { + "kind": "Content", + "text": ";\n remove: typeof " + }, + { + "kind": "Reference", + "text": "remove", + "canonicalReference": "NativeScript!remove:function" + }, + { + "kind": "Content", + "text": ";\n setString: typeof " + }, + { + "kind": "Reference", + "text": "setString", + "canonicalReference": "NativeScript!setString:function" + }, + { + "kind": "Content", + "text": ";\n getString: typeof " + }, + { + "kind": "Reference", + "text": "getString", + "canonicalReference": "NativeScript!getString:function" + }, + { + "kind": "Content", + "text": ";\n getAllKeys: typeof " + }, + { + "kind": "Reference", + "text": "getAllKeys", + "canonicalReference": "NativeScript!getAllKeys:function" + }, + { + "kind": "Content", + "text": ";\n getBoolean: typeof " + }, + { + "kind": "Reference", + "text": "getBoolean", + "canonicalReference": "NativeScript!getBoolean:function" + }, + { + "kind": "Content", + "text": ";\n setBoolean: typeof " + }, + { + "kind": "Reference", + "text": "setBoolean", + "canonicalReference": "NativeScript!setBoolean:function" + }, + { + "kind": "Content", + "text": ";\n getNumber: typeof " + }, + { + "kind": "Reference", + "text": "getNumber", + "canonicalReference": "NativeScript!getNumber:function" + }, + { + "kind": "Content", + "text": ";\n setNumber: typeof " + }, + { + "kind": "Reference", + "text": "setNumber", + "canonicalReference": "NativeScript!setNumber:function" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "releaseTag": "Public", + "name": "ApplicationSettings", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 24 + } + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!BackstackEntry:interface", + "docComment": "/**\n * Represents an entry in the back stack of a Frame object.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface BackstackEntry " + } + ], + "releaseTag": "Public", + "name": "BackstackEntry", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!BackstackEntry#entry:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "entry: " + }, + { + "kind": "Reference", + "text": "NavigationEntry", + "canonicalReference": "NativeScript!NavigationEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "entry", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!BackstackEntry#fragment:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fragment?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fragment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!BackstackEntry#fragmentTag:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fragmentTag: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fragmentTag", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!BackstackEntry#frameId:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "frameId?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "frameId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!BackstackEntry#navDepth:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "navDepth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navDepth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!BackstackEntry#recreated:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "recreated?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "recreated", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!BackstackEntry#resolvedPage:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "resolvedPage: " + }, + { + "kind": "Reference", + "text": "Page", + "canonicalReference": "NativeScript!Page:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "resolvedPage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!BackstackEntry#viewSavedState:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "viewSavedState?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "viewSavedState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!BottomNavigation:class", + "docComment": "/**\n * Represents a tab navigation widget with static tabs at the bottom.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class BottomNavigation extends " + }, + { + "kind": "Reference", + "text": "TabNavigationBase", + "canonicalReference": "NativeScript!TabNavigationBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "BottomNavigation", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!BottomNavigation#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.view.View */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!BottomNavigation#ios:member", + "docComment": "/**\n * Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITabBarController */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!BottomNavigation#items:member", + "docComment": "/**\n * Gets or sets the items of the BottomNavigation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TabContentItem", + "canonicalReference": "NativeScript!TabContentItem:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!BottomNavigation#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!BottomNavigation#on:member(2)", + "docComment": "/**\n * Raised when the selected index changes.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"selectedIndexChanged\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "SelectedIndexChangedEventData", + "canonicalReference": "NativeScript!SelectedIndexChangedEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!BottomNavigation#selectedIndex:member", + "docComment": "/**\n * Gets or sets the selectedIndex of the BottomNavigation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!BottomNavigation.selectedIndexChangedEvent:member", + "docComment": "/**\n * String value used when hooking to the selectedIndexChanged event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static selectedIndexChangedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndexChangedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!BottomNavigation#tabStrip:member", + "docComment": "/**\n * Gets or sets the tab strip of the BottomNavigation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tabStrip: " + }, + { + "kind": "Reference", + "text": "TabStrip", + "canonicalReference": "NativeScript!TabStrip:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabStrip", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Builder:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Builder " + } + ], + "releaseTag": "Public", + "name": "Builder", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!Builder.createViewFromEntry:member(1)", + "docComment": "/**\n * Creates view from navigation entry\n *\n * @param - entry NavigationEntry\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static createViewFromEntry(entry: " + }, + { + "kind": "Reference", + "text": "NavigationEntry", + "canonicalReference": "NativeScript!NavigationEntry:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "entry", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "createViewFromEntry" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Builder.load:member(1)", + "docComment": "/**\n * Loads component from module with context\n *\n * @param - moduleName the module name\n *\n * @param - exports the context of the component to be loaded\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static load(moduleName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", exports?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "moduleName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "exports", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "load" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Builder.load:member(2)", + "docComment": "/**\n * Loads component from options\n *\n * @param - options Load options\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static load(options: " + }, + { + "kind": "Reference", + "text": "LoadOptions", + "canonicalReference": "NativeScript!LoadOptions:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "load" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Builder.parse:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static parse(value: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Template", + "canonicalReference": "NativeScript!Template:interface" + }, + { + "kind": "Content", + "text": ", exports?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "parameterName": "exports", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + } + } + ], + "name": "parse" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Builder.parseMultipleTemplates:member(1)", + "docComment": "/**\n * Creates an array of KeyedTemplates from string\n *\n * @param - value The xml of the template to be parsed\n *\n * @param - exports Current context of the template\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static parseMultipleTemplates(value: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", exports?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "KeyedTemplate", + "canonicalReference": "NativeScript!KeyedTemplate:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "exports", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "parseMultipleTemplates" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Button:class", + "docComment": "/**\n * Represents a standard Button widget.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Button extends " + }, + { + "kind": "Reference", + "text": "TextBase", + "canonicalReference": "NativeScript!TextBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Button", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Button#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/Button.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.Button */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Button#ios:member", + "docComment": "/**\n * Gets the native [UIButton](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIButton_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIButton */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Button#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Button#on:member(2)", + "docComment": "/**\n * Raised when a tap event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"tap\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Button.tapEvent:member", + "docComment": "/**\n * String value used when hooking to tap event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static tapEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tapEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Button#textWrap:member", + "docComment": "/**\n * Gets or sets whether the Button wraps text or not.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textWrap: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textWrap", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ChangedData:interface", + "docComment": "/**\n * Event args for \"changed\" event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ChangedData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "ChangedData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ChangedData#action:member", + "docComment": "/**\n * Change type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "action: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "action", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ChangedData#addedCount:member", + "docComment": "/**\n * Number of added items.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addedCount: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "addedCount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ChangedData#index:member", + "docComment": "/**\n * Start index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "index", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ChangedData#removed:member", + "docComment": "/**\n * Removed items.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removed: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "removed", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ChangeType:class", + "docComment": "/**\n * Change types.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ChangeType " + } + ], + "releaseTag": "Public", + "name": "ChangeType", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!ChangeType.Add:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Add: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "Add", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ChangeType.Delete:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Delete: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "Delete", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ChangeType.Splice:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Splice: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "Splice", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ChangeType.Update:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Update: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "Update", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Color:class", + "docComment": "/**\n * Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a [0..255] range.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Color " + } + ], + "releaseTag": "Public", + "name": "Color", + "members": [ + { + "kind": "Constructor", + "canonicalReference": "NativeScript!Color:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Color` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(knownColor: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "knownColor", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Constructor", + "canonicalReference": "NativeScript!Color:constructor(2)", + "docComment": "/**\n * Constructs a new instance of the `Color` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(hex: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "hex", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Constructor", + "canonicalReference": "NativeScript!Color:constructor(3)", + "docComment": "/**\n * Constructs a new instance of the `Color` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(argb: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "argb", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Constructor", + "canonicalReference": "NativeScript!Color:constructor(4)", + "docComment": "/**\n * Constructs a new instance of the `Color` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(alpha: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", red: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", green: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", blue: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 4, + "parameters": [ + { + "parameterName": "alpha", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "red", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "green", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "blue", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ] + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#a:member", + "docComment": "/**\n * Gets the Alpha component (in the [0, 255] range) of this color. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public a: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "a", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#android:member", + "docComment": "/**\n * Gets the android-specific integer value representation. Same as the Argb one. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#argb:member", + "docComment": "/**\n * Gets the Argb Number representation of this color where each 8 bits represent a single color component. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public argb: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "argb", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#b:member", + "docComment": "/**\n * Gets the Blue component (in the [0, 255] range) of this color. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public b: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "b", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Color#equals:member(1)", + "docComment": "/**\n * Specifies whether this Color is equal to the Color parameter.\n *\n * @param - value The Color to test.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public equals(value: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "equals" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Color.equals:member(1)", + "docComment": "/**\n * Compares two Color instances.\n *\n * @param - value1 A Color to compare.\n *\n * @param - value2 A Color to compare.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static equals(value1: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ", value2: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value1", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value2", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "equals" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Color.fromIosColor:member(1)", + "docComment": "/**\n * Creates color from iOS-specific UIColor value representation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static fromIosColor(value: " + }, + { + "kind": "Content", + "text": "any /* UIColor */" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromIosColor" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#g:member", + "docComment": "/**\n * Gets the Green component (in the [0, 255] range) of this color. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public g: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "g", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#hex:member", + "docComment": "/**\n * Gets the Hexadecimal string representation of this color. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public hex: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "hex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#ios:member", + "docComment": "/**\n * Gets the iOS-specific UIColor value representation. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIColor */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Color.isValid:member(1)", + "docComment": "/**\n * Validates if a value can be converted to color.\n *\n * @param - value Input string.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static isValid(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "isValid" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#name:member", + "docComment": "/**\n * Gets the known name of this instance. Defined only if it has been constructed from a known color name - e.g. \"red\". This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Color#r:member", + "docComment": "/**\n * Gets the Red component (in the [0, 255] range) of this color. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public r: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "r", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!CommonLayoutParams:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface CommonLayoutParams " + } + ], + "releaseTag": "Public", + "name": "CommonLayoutParams", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#bottomMargin:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "bottomMargin: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "bottomMargin", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#bottomMarginPercent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "bottomMarginPercent: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "bottomMarginPercent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#height:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "height: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "height", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#heightPercent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "heightPercent: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "heightPercent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#horizontalAlignment:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "horizontalAlignment: " + }, + { + "kind": "Reference", + "text": "HorizontalAlignment", + "canonicalReference": "NativeScript!HorizontalAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "horizontalAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#leftMargin:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "leftMargin: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "leftMargin", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#leftMarginPercent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "leftMarginPercent: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "leftMarginPercent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#rightMargin:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rightMargin: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rightMargin", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#rightMarginPercent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rightMarginPercent: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rightMarginPercent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#topMargin:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "topMargin: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "topMargin", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#topMarginPercent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "topMarginPercent: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "topMarginPercent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#verticalAlignment:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "verticalAlignment: " + }, + { + "kind": "Reference", + "text": "VerticalAlignment", + "canonicalReference": "NativeScript!VerticalAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "verticalAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#width:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "width: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "width", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CommonLayoutParams#widthPercent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "widthPercent: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "widthPercent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!Connectivity:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Connectivity: " + }, + { + "kind": "Content", + "text": "{\n connectionType: typeof " + }, + { + "kind": "Reference", + "text": "connectionType", + "canonicalReference": "NativeScript!connectionType:enum" + }, + { + "kind": "Content", + "text": ";\n getConnectionType: typeof " + }, + { + "kind": "Reference", + "text": "getConnectionType", + "canonicalReference": "NativeScript!getConnectionType:function" + }, + { + "kind": "Content", + "text": ";\n startMonitoring: typeof " + }, + { + "kind": "Reference", + "text": "startMonitoring", + "canonicalReference": "NativeScript!startMonitoring:function" + }, + { + "kind": "Content", + "text": ";\n stopMonitoring: typeof " + }, + { + "kind": "Reference", + "text": "stopMonitoring", + "canonicalReference": "NativeScript!stopMonitoring:function" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "releaseTag": "Public", + "name": "Connectivity", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 10 + } + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ContentView:class", + "docComment": "/**\n * Represents a View that has a single child - content. The View itself does not have visual representation and serves as a placeholder for its content in the logical tree.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ContentView extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + }, + { + "kind": "Content", + "text": "implements " + }, + { + "kind": "Reference", + "text": "AddChildFromBuilder", + "canonicalReference": "NativeScript!AddChildFromBuilder:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ContentView", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!ContentView#_addChildFromBuilder:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_addChildFromBuilder(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_addChildFromBuilder" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ContentView#_onContentChanged:member(1)", + "docComment": "/**\n * Called when the content property has changed. @private\n *\n * @param - oldView The previous content.\n *\n * @param - newView The new content.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_onContentChanged(oldView: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", newView: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "oldView", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "newView", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_onContentChanged" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ContentView#content:member", + "docComment": "/**\n * Gets or sets the single child of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "content: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "content", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ContentView#layoutView:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "layoutView: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "layoutView", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [ + { + "startIndex": 4, + "endIndex": 6 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!CreateViewEventData:interface", + "docComment": "/**\n * Event data containing information for creating a native view that will be added to the visual tree.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface CreateViewEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "CreateViewEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CreateViewEventData#context:member", + "docComment": "/**\n * An optional context for creating the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CreateViewEventData#view:member", + "docComment": "/**\n * The native view that should be added to the visual tree.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "view: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "view", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!CssChangedEventData:interface", + "docComment": "/**\n * Event data containing information about application css change.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface CssChangedEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "CssChangedEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CssChangedEventData#cssFile:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cssFile?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cssFile", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!CssChangedEventData#cssText:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cssText?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cssText", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!DatePicker:class", + "docComment": "/**\n * Represents an date picker.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class DatePicker extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "DatePicker", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!DatePicker#android:member", + "docComment": "/**\n * Gets the native [android.widget.DatePicker](http://developer.android.com/reference/android/widget/DatePicker.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.DatePicker */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!DatePicker#date:member", + "docComment": "/**\n * Gets or sets the entire date.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "date: " + }, + { + "kind": "Reference", + "text": "Date", + "canonicalReference": "!Date:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "date", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!DatePicker#day:member", + "docComment": "/**\n * Gets or sets the day. The days start from 1.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "day: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "day", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!DatePicker#ios:member", + "docComment": "/**\n * Gets the native iOS [UIDatePicker](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIDatePicker */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!DatePicker#maxDate:member", + "docComment": "/**\n * Gets or sets the max date.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "maxDate: " + }, + { + "kind": "Reference", + "text": "Date", + "canonicalReference": "!Date:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "maxDate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!DatePicker#minDate:member", + "docComment": "/**\n * Gets or sets the min date.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "minDate: " + }, + { + "kind": "Reference", + "text": "Date", + "canonicalReference": "!Date:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minDate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!DatePicker#month:member", + "docComment": "/**\n * Gets or sets the month. The months start from 1.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "month: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "month", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!DatePicker#year:member", + "docComment": "/**\n * Gets or sets the year.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "year: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "year", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!DefaultErrorHandler:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class DefaultErrorHandler implements " + }, + { + "kind": "Reference", + "text": "ErrorHandler", + "canonicalReference": "NativeScript!ErrorHandler:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "DefaultErrorHandler", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!DefaultErrorHandler#handlerError:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "handlerError(error);" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "handlerError" + } + ], + "implementsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!Device:var", + "docComment": "/**\n * Gets the current device information.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "device: " + }, + { + "kind": "Reference", + "text": "Device", + "canonicalReference": "NativeScript!Device:interface" + } + ], + "releaseTag": "Public", + "name": "Device", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!DiscardedErrorEventData:interface", + "docComment": "/**\n * Event data containing information about discarded application errors.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface DiscardedErrorEventData extends " + }, + { + "kind": "Reference", + "text": "ApplicationEventData", + "canonicalReference": "NativeScript!ApplicationEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "DiscardedErrorEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DiscardedErrorEventData#error:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "error: " + }, + { + "kind": "Reference", + "text": "NativeScriptError", + "canonicalReference": "!NativeScriptError:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "error", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!DockLayout:class", + "docComment": "/**\n * A Layout that arranges its children at its outer edges, and allows its last child to take up the remaining space.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class DockLayout extends " + }, + { + "kind": "Reference", + "text": "LayoutBase", + "canonicalReference": "NativeScript!LayoutBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "DockLayout", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!DockLayout.getDock:member(1)", + "docComment": "/**\n * Gets the value of the Dock property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getDock(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Dock", + "canonicalReference": "NativeScript!Dock:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getDock" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!DockLayout.setDock:member(1)", + "docComment": "/**\n * Sets the value of the Dock property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static setDock(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "Dock", + "canonicalReference": "NativeScript!Dock:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setDock" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!DockLayout#stretchLastChild:member", + "docComment": "/**\n * Gets or sets a value that indicates whether the last child element within a DockLayout stretches to fill the remaining available space. The default value is true.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stretchLastChild: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "stretchLastChild", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!DownloadedData:interface", + "docComment": "/**\n * Provides data for downloaded event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface DownloadedData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "DownloadedData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DownloadedData#image:member", + "docComment": "/**\n * Gets the cached image.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "image: " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "image", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DownloadedData#key:member", + "docComment": "/**\n * A string indentifier of the cached image.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "key", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!DownloadError:interface", + "docComment": "/**\n * Provides data for download error.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface DownloadError extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "DownloadError", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DownloadError#error:member", + "docComment": "/**\n * Gets the error.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "error: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "error", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DownloadError#key:member", + "docComment": "/**\n * A string indentifier of the cached image.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "key", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!DownloadRequest:interface", + "docComment": "/**\n * Represents a single download request.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface DownloadRequest " + } + ], + "releaseTag": "Public", + "name": "DownloadRequest", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DownloadRequest#completed:member", + "docComment": "/**\n * An optional function to be called when the download is complete.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "completed?: " + }, + { + "kind": "Content", + "text": "(image: any, key: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "completed", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DownloadRequest#error:member", + "docComment": "/**\n * An optional function to be called if the download errors.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "error?: " + }, + { + "kind": "Content", + "text": "(key: string) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "error", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DownloadRequest#key:member", + "docComment": "/**\n * The key used to cache the image.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "key", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!DownloadRequest#url:member", + "docComment": "/**\n * The url of the image.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "url: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "url", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!EditableTextBase:class", + "docComment": "/**\n * Represents the base class for all editable text views.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class EditableTextBase extends " + }, + { + "kind": "Reference", + "text": "TextBase", + "canonicalReference": "NativeScript!TextBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "EditableTextBase", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!EditableTextBase#_setInputType:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _setInputType(inputType: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "inputType", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_setInputType" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase#autocapitalizationType:member", + "docComment": "/**\n * Gets or sets the autocapitalization type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "autocapitalizationType: " + }, + { + "kind": "Reference", + "text": "AutocapitalizationType", + "canonicalReference": "NativeScript!AutocapitalizationType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "autocapitalizationType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase#autocorrect:member", + "docComment": "/**\n * Enables or disables autocorrection.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "autocorrect: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "autocorrect", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase.blurEvent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static blurEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "blurEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!EditableTextBase#dismissSoftInput:member(1)", + "docComment": "/**\n * Hides the soft input method, ususally a soft keyboard.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "dismissSoftInput(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "dismissSoftInput" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase#editable:member", + "docComment": "/**\n * Gets or sets whether the instance is editable.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "editable: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "editable", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase.focusEvent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static focusEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "focusEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase#hint:member", + "docComment": "/**\n * Gets or sets the placeholder text.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "hint: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "hint", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase#keyboardType:member", + "docComment": "/**\n * Gets or sets the soft keyboard type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "keyboardType: " + }, + { + "kind": "Reference", + "text": "KeyboardType", + "canonicalReference": "NativeScript!KeyboardType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "keyboardType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase#maxLength:member", + "docComment": "/**\n * Limits input to a certain number of characters.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "maxLength: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "maxLength", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase#returnKeyType:member", + "docComment": "/**\n * Gets or sets the soft keyboard return key flavor.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "returnKeyType: " + }, + { + "kind": "Reference", + "text": "ReturnKeyType", + "canonicalReference": "NativeScript!ReturnKeyType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "returnKeyType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase.textChangeEvent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static textChangeEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textChangeEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!EditableTextBase#updateTextTrigger:member", + "docComment": "/**\n * Gets or sets a value indicating when the text property will be updated.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "updateTextTrigger: " + }, + { + "kind": "Reference", + "text": "UpdateTextTrigger", + "canonicalReference": "NativeScript!UpdateTextTrigger:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "updateTextTrigger", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Namespace", + "canonicalReference": "NativeScript!encoding:namespace", + "docComment": "/**\n * Defines the supported character encodings.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export module encoding " + } + ], + "releaseTag": "Public", + "name": "encoding", + "members": [ + { + "kind": "Variable", + "canonicalReference": "NativeScript!encoding.ISO_8859_1:var", + "docComment": "/**\n * Denotes ISO-8859-1 character encoding.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ISO_8859_1: " + }, + { + "kind": "Content", + "text": "any" + } + ], + "releaseTag": "Public", + "name": "ISO_8859_1", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!encoding.US_ASCII:var", + "docComment": "/**\n * Denotes US_ASCII character encoding.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "US_ASCII: " + }, + { + "kind": "Content", + "text": "any" + } + ], + "releaseTag": "Public", + "name": "US_ASCII", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!encoding.UTF_16:var", + "docComment": "/**\n * Denotes UTF_16 character encoding.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "UTF_16: " + }, + { + "kind": "Content", + "text": "any" + } + ], + "releaseTag": "Public", + "name": "UTF_16", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!encoding.UTF_16BE:var", + "docComment": "/**\n * Denotes UTF_16BE character encoding.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "UTF_16BE: " + }, + { + "kind": "Content", + "text": "any" + } + ], + "releaseTag": "Public", + "name": "UTF_16BE", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!encoding.UTF_16LE:var", + "docComment": "/**\n * Denotes UTF_16LE character encoding.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "UTF_16LE: " + }, + { + "kind": "Content", + "text": "any" + } + ], + "releaseTag": "Public", + "name": "UTF_16LE", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!encoding.UTF_8:var", + "docComment": "/**\n * Denotes UTF_8 character encoding.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "UTF_8: " + }, + { + "kind": "Content", + "text": "any" + } + ], + "releaseTag": "Public", + "name": "UTF_8", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ErrorHandler:interface", + "docComment": "/**\n * An interface used to for handling trace error\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ErrorHandler " + } + ], + "releaseTag": "Public", + "name": "ErrorHandler", + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!ErrorHandler#handlerError:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "handlerError(error: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "error", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "handlerError" + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!EventData:interface", + "docComment": "/**\n * Base event data.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface EventData " + } + ], + "releaseTag": "Public", + "name": "EventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!EventData#eventName:member", + "docComment": "/**\n * The name of the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "eventName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "eventName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!EventData#object:member", + "docComment": "/**\n * The Observable instance that has raised the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "object: " + }, + { + "kind": "Reference", + "text": "Observable", + "canonicalReference": "NativeScript!Observable:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "object", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!File:class", + "docComment": "/**\n * Represents a File entity on the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class File extends " + }, + { + "kind": "Reference", + "text": "FileSystemEntity", + "canonicalReference": "NativeScript!FileSystemEntity:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "File", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!File.exists:member(1)", + "docComment": "/**\n * Checks whether a File with the specified path already exists.\n *\n * @param - path The path to check for.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static exists(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "exists" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!File#extension:member", + "docComment": "/**\n * Gets the extension of the file.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "extension: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "extension", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File.fromPath:member(1)", + "docComment": "/**\n * Gets or creates a File entity at the specified path.\n *\n * @param - path The path to get/create the file at.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromPath(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "File", + "canonicalReference": "NativeScript!File:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromPath" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!File#isLocked:member", + "docComment": "/**\n * Gets a value indicating whether the file is currently locked, meaning a background operation associated with this file is running.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isLocked: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isLocked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File#read:member(1)", + "docComment": "/**\n * Reads the binary content of the file asynchronously.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "read(): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "read" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File#readSync:member(1)", + "docComment": "/**\n * Reads the binary content of the file synchronously.\n *\n * @param - onError An optional function to be called if some IO-error occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readSync(onError?: " + }, + { + "kind": "Content", + "text": "(error: any) => any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "readSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File#readText:member(1)", + "docComment": "/**\n * Reads the content of the file as a string using the specified encoding (defaults to UTF-8).\n *\n * @param - encoding An optional value specifying the preferred encoding (defaults to UTF-8).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readText(encoding?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "encoding", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "readText" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File#readTextSync:member(1)", + "docComment": "/**\n * Reads the content of the file as a string synchronously, using the specified encoding (defaults to UTF-8).\n *\n * @param - onError An optional function to be called if some IO-error occurs.\n *\n * @param - encoding An optional value specifying the preferred encoding (defaults to UTF-8).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readTextSync(onError?: " + }, + { + "kind": "Content", + "text": "(error: any) => any" + }, + { + "kind": "Content", + "text": ", encoding?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "encoding", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "readTextSync" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!File#size:member", + "docComment": "/**\n * Gets the size in bytes of the file.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "size: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "size", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File#write:member(1)", + "docComment": "/**\n * Writes the provided binary content to the file.\n *\n * @param - content The binary content to be saved to the file.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "write(content: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "content", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "write" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File#writeSync:member(1)", + "docComment": "/**\n * Writes the provided binary content to the file synchronously.\n *\n * @param - content The binary content to be saved to the file.\n *\n * @param - onError An optional function to be called if some IO-error occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "writeSync(content: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", onError?: " + }, + { + "kind": "Content", + "text": "(error: any) => any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "content", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "writeSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File#writeText:member(1)", + "docComment": "/**\n * Writes the provided string to the file, using the specified encoding (defaults to UTF-8).\n *\n * @param - content The content to be saved to the file.\n *\n * @param - encoding An optional value specifying the preferred encoding (defaults to UTF-8).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "writeText(content: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", encoding?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "content", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "encoding", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "writeText" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!File#writeTextSync:member(1)", + "docComment": "/**\n * Writes the provided string to the file synchronously, using the specified encoding (defaults to UTF-8).\n *\n * @param - content The content to be saved to the file.\n *\n * @param - onError An optional function to be called if some IO-error occurs.\n *\n * @param - encoding An optional value specifying the preferred encoding (defaults to UTF-8).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "writeTextSync(content: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", onError?: " + }, + { + "kind": "Content", + "text": "(error: any) => any" + }, + { + "kind": "Content", + "text": ", encoding?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "content", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "encoding", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "writeTextSync" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!FileSystemEntity:class", + "docComment": "/**\n * Represents a single entity on the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class FileSystemEntity " + } + ], + "releaseTag": "Public", + "name": "FileSystemEntity", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!FileSystemEntity#lastModified:member", + "docComment": "/**\n * Gets the Date object specifying the last time this entity was modified.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "lastModified: " + }, + { + "kind": "Reference", + "text": "Date", + "canonicalReference": "!Date:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "lastModified", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FileSystemEntity#name:member", + "docComment": "/**\n * Gets the name of the entity.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FileSystemEntity#parent:member", + "docComment": "/**\n * Gets the Folder object representing the parent of this entity. Will be null for a root folder like Documents or Temporary. This property is readonly.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "parent: " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "parent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FileSystemEntity#path:member", + "docComment": "/**\n * Gets the fully-qualified path (including the extension for a File) of the entity.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "path", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FileSystemEntity#remove:member(1)", + "docComment": "/**\n * Removes (deletes) the current Entity from the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "remove(): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "remove" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FileSystemEntity#removeSync:member(1)", + "docComment": "/**\n * Removes (deletes) the current Entity from the file system synchronously.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeSync(onError?: " + }, + { + "kind": "Content", + "text": "(error: any) => any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "removeSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FileSystemEntity#rename:member(1)", + "docComment": "/**\n * Renames the current entity using the specified name.\n *\n * @param - newName The new name to be applied to the entity.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rename(newName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "newName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "rename" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FileSystemEntity#renameSync:member(1)", + "docComment": "/**\n * Renames the current entity synchronously, using the specified name.\n *\n * @param - newName The new name to be applied to the entity.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "renameSync(newName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", onError?: " + }, + { + "kind": "Content", + "text": "(error: any) => any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "newName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "renameSync" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!FlexboxLayout:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class FlexboxLayout extends " + }, + { + "kind": "Reference", + "text": "LayoutBase", + "canonicalReference": "NativeScript!LayoutBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "FlexboxLayout", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!FlexboxLayout#alignContent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public alignContent: " + }, + { + "kind": "Reference", + "text": "AlignContent", + "canonicalReference": "NativeScript!AlignContent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "alignContent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FlexboxLayout#alignItems:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public alignItems: " + }, + { + "kind": "Reference", + "text": "AlignItems", + "canonicalReference": "NativeScript!AlignItems:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "alignItems", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FlexboxLayout#flexDirection:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public flexDirection: " + }, + { + "kind": "Reference", + "text": "FlexDirection", + "canonicalReference": "NativeScript!FlexDirection:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexDirection", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FlexboxLayout#flexWrap:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public flexWrap: " + }, + { + "kind": "Reference", + "text": "FlexWrap", + "canonicalReference": "NativeScript!FlexWrap:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexWrap", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.getAlignSelf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static getAlignSelf(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "AlignSelf", + "canonicalReference": "NativeScript!AlignSelf:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getAlignSelf" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.getFlexGrow:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static getFlexGrow(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getFlexGrow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.getFlexShrink:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static getFlexShrink(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getFlexShrink" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.getFlexWrapBefore:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static getFlexWrapBefore(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getFlexWrapBefore" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.getOrder:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static getOrder(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getOrder" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FlexboxLayout#justifyContent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public justifyContent: " + }, + { + "kind": "Reference", + "text": "JustifyContent", + "canonicalReference": "NativeScript!JustifyContent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "justifyContent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.setAlignSelf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static setAlignSelf(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", align: " + }, + { + "kind": "Reference", + "text": "AlignSelf", + "canonicalReference": "NativeScript!AlignSelf:type" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "align", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setAlignSelf" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.setFlexGrow:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static setFlexGrow(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", grow: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "grow", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setFlexGrow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.setFlexShrink:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static setFlexShrink(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", shrink: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "shrink", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setFlexShrink" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.setFlexWrapBefore:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static setFlexWrapBefore(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", wrap: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "wrap", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setFlexWrapBefore" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FlexboxLayout.setOrder:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static setOrder(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", order: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "order", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setOrder" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Folder:class", + "docComment": "/**\n * Represents a Folder (directory) entity on the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Folder extends " + }, + { + "kind": "Reference", + "text": "FileSystemEntity", + "canonicalReference": "NativeScript!FileSystemEntity:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Folder", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder#clear:member(1)", + "docComment": "/**\n * Deletes all the files and folders (recursively), contained within this Folder.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clear(): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "clear" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder#clearSync:member(1)", + "docComment": "/**\n * Deletes all the files and folders (recursively), contained within this Folder synchronously.\n *\n * @param - onError An optional function to be called if some error occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearSync(onError?: " + }, + { + "kind": "Content", + "text": "(error: any) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "clearSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder#contains:member(1)", + "docComment": "/**\n * Checks whether this Folder contains an Entity with the specified name. The path of the folder is added to the name to resolve the complete path to check for.\n *\n * @param - name The name of the entity to check for.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "contains(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "contains" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder#eachEntity:member(1)", + "docComment": "/**\n * Enumerates all the top-level FileSystem entities residing within this folder.\n *\n * @param - onEntity A callback that receives the current entity. If the callback returns false this will mean for the iteration to stop.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "eachEntity(onEntity: " + }, + { + "kind": "Content", + "text": "(entity: " + }, + { + "kind": "Reference", + "text": "FileSystemEntity", + "canonicalReference": "NativeScript!FileSystemEntity:class" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "onEntity", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + } + ], + "name": "eachEntity" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder.exists:member(1)", + "docComment": "/**\n * Checks whether a Folder with the specified path already exists.\n *\n * @param - path The path to check for.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static exists(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "exists" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder.fromPath:member(1)", + "docComment": "/**\n * Gets or creates a Folder entity at the specified path.\n *\n * @param - path The path to get/create the folder at.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromPath(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromPath" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder#getEntities:member(1)", + "docComment": "/**\n * Gets all the top-level entities residing within this folder.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getEntities(): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "FileSystemEntity", + "canonicalReference": "NativeScript!FileSystemEntity:class" + }, + { + "kind": "Content", + "text": ">>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getEntities" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder#getEntitiesSync:member(1)", + "docComment": "/**\n * Gets all the top-level entities residing within this folder synchronously.\n *\n * @param - onError An optional function to be called if some error occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getEntitiesSync(onError?: " + }, + { + "kind": "Content", + "text": "(error: any) => any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "FileSystemEntity", + "canonicalReference": "NativeScript!FileSystemEntity:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getEntitiesSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder#getFile:member(1)", + "docComment": "/**\n * Gets or creates a File entity with the specified name within this Folder.\n *\n * @param - name The name of the file to get/create.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getFile(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "File", + "canonicalReference": "NativeScript!File:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getFile" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Folder#getFolder:member(1)", + "docComment": "/**\n * Gets or creates a Folder entity with the specified name within this Folder.\n *\n * @param - name The name of the folder to get/create.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getFolder(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getFolder" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Folder#isKnown:member", + "docComment": "/**\n * Determines whether this instance is a KnownFolder (accessed through the KnownFolders object).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isKnown: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isKnown", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!FormattedString:class", + "docComment": "/**\n * A class used to create a formatted (rich text) string.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class FormattedString extends " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "FormattedString", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!FormattedString#backgroundColor:member", + "docComment": "/**\n * Gets or sets the font background color which will be used for all spans that doesn't have a specific value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FormattedString#color:member", + "docComment": "/**\n * Gets or sets the font foreground color which will be used for all spans that doesn't have a specific value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public color: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "color", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FormattedString#fontFamily:member", + "docComment": "/**\n * Gets or sets the font family which will be used for all spans that doesn't have a specific value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontFamily: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontFamily", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FormattedString#fontSize:member", + "docComment": "/**\n * Gets or sets the font size which will be used for all spans that doesn't have a specific value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FormattedString#fontStyle:member", + "docComment": "/**\n * Gets or sets the font style which will be used for all spans that doesn't have a specific value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontStyle: " + }, + { + "kind": "Reference", + "text": "FontStyle", + "canonicalReference": "NativeScript!FontStyle:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontStyle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FormattedString#fontWeight:member", + "docComment": "/**\n * Gets or sets the font weight which will be used for all spans that doesn't have a specific value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontWeight: " + }, + { + "kind": "Reference", + "text": "FontWeight", + "canonicalReference": "NativeScript!FontWeight:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontWeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FormattedString#spans:member", + "docComment": "/**\n * An observable collection of Span objects used to define common text properties.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public spans: " + }, + { + "kind": "Reference", + "text": "ObservableArray", + "canonicalReference": "NativeScript!ObservableArray:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Span", + "canonicalReference": "NativeScript!Span:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "spans", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!FormattedString#textDecoration:member", + "docComment": "/**\n * Gets or sets text decorations which will be used for all spans that doesn't have a specific value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public textDecoration: " + }, + { + "kind": "Reference", + "text": "TextDecoration", + "canonicalReference": "NativeScript!TextDecoration:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textDecoration", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!FormattedString#toString:member(1)", + "docComment": "/**\n * A human readable representation of the formatted string.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "toString" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Frame:class", + "docComment": "/**\n * Represents the logical View unit that is responsible for navigation within an application. Nested frames are supported, enabling hierarchical navigation scenarios.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Frame extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Frame", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#_animationInProgress:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_animationInProgress: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_animationInProgress", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#_currentEntry:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_currentEntry: " + }, + { + "kind": "Reference", + "text": "BackstackEntry", + "canonicalReference": "NativeScript!BackstackEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_currentEntry", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#_executingContext:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_executingContext: " + }, + { + "kind": "Reference", + "text": "NavigationContext", + "canonicalReference": "NativeScript!NavigationContext:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_executingContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_findEntryForTag:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_findEntryForTag(fragmentTag: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "BackstackEntry", + "canonicalReference": "NativeScript!BackstackEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "fragmentTag", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_findEntryForTag" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_getIsAnimatedNavigation:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getIsAnimatedNavigation(entry: " + }, + { + "kind": "Reference", + "text": "NavigationEntry", + "canonicalReference": "NativeScript!NavigationEntry:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "entry", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_getIsAnimatedNavigation" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_getNavBarVisible:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getNavBarVisible(page: " + }, + { + "kind": "Reference", + "text": "Page", + "canonicalReference": "NativeScript!Page:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "page", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_getNavBarVisible" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_getNavigationTransition:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getNavigationTransition(entry: " + }, + { + "kind": "Reference", + "text": "NavigationEntry", + "canonicalReference": "NativeScript!NavigationEntry:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "NavigationTransition", + "canonicalReference": "NativeScript!NavigationTransition:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "entry", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_getNavigationTransition" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_processNavigationQueue:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_processNavigationQueue(page: " + }, + { + "kind": "Reference", + "text": "Page", + "canonicalReference": "NativeScript!Page:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "page", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_processNavigationQueue" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_pushInFrameStack:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_pushInFrameStack();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_pushInFrameStack" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_pushInFrameStackRecursive:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_pushInFrameStackRecursive();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_pushInFrameStackRecursive" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_removeFromFrameStack:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_removeFromFrameStack();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_removeFromFrameStack" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame._stack:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static _stack(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Frame", + "canonicalReference": "NativeScript!Frame:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_stack" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_updateActionBar:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_updateActionBar(page?: " + }, + { + "kind": "Reference", + "text": "Page", + "canonicalReference": "NativeScript!Page:class" + }, + { + "kind": "Content", + "text": ", disableNavBarAnimation?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "page", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "disableNavBarAnimation", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_updateActionBar" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#_updateBackstack:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_updateBackstack(entry: " + }, + { + "kind": "Reference", + "text": "BackstackEntry", + "canonicalReference": "NativeScript!BackstackEntry:interface" + }, + { + "kind": "Content", + "text": ", navigationType: " + }, + { + "kind": "Reference", + "text": "NavigationType", + "canonicalReference": "NativeScript!NavigationType:enum" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "entry", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "navigationType", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_updateBackstack" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#actionBarVisibility:member", + "docComment": "/**\n * Used to control the visibility the Navigation Bar in iOS and the Action Bar in Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public actionBarVisibility: " + }, + { + "kind": "Content", + "text": "\"auto\" | \"never\" | \"always\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "actionBarVisibility", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#android:member", + "docComment": "/**\n * Gets the AndroidFrame object that represents the Android-specific APIs for this Frame. Valid when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Reference", + "text": "AndroidFrame", + "canonicalReference": "NativeScript!AndroidFrame:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#animated:member", + "docComment": "/**\n * Gets or sets if navigation transitions should be animated.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "animated: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "animated", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#backStack:member", + "docComment": "/**\n * Gets the back stack of this instance.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "backStack: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "BackstackEntry", + "canonicalReference": "NativeScript!BackstackEntry:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backStack", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#canGoBack:member(1)", + "docComment": "/**\n * Checks whether the goBack operation is available.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "canGoBack(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "canGoBack" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#currentEntry:member", + "docComment": "/**\n * Gets the NavigationEntry instance the Frame is currently navigated to.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "currentEntry: " + }, + { + "kind": "Reference", + "text": "NavigationEntry", + "canonicalReference": "NativeScript!NavigationEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "currentEntry", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#currentPage:member", + "docComment": "/**\n * Gets the Page instance the Frame is currently navigated to.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "currentPage: " + }, + { + "kind": "Reference", + "text": "Page", + "canonicalReference": "NativeScript!Page:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "currentPage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame.defaultAnimatedNavigation:member", + "docComment": "/**\n * Gets or sets if navigation transitions should be animated globally.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static defaultAnimatedNavigation: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "defaultAnimatedNavigation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame.defaultTransition:member", + "docComment": "/**\n * Gets or sets the default NavigationTransition for all frames across the app.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static defaultTransition: " + }, + { + "kind": "Reference", + "text": "NavigationTransition", + "canonicalReference": "NativeScript!NavigationTransition:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "defaultTransition", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame.getFrameById:member(1)", + "docComment": "/**\n * Gets a frame by id.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getFrameById(id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Frame", + "canonicalReference": "NativeScript!Frame:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getFrameById" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#goBack:member(1)", + "docComment": "/**\n * Navigates to the previous entry (if any) in the back stack.\n *\n * @param - to The backstack entry to navigate back to.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "goBack(to?: " + }, + { + "kind": "Reference", + "text": "BackstackEntry", + "canonicalReference": "NativeScript!BackstackEntry:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "to", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "goBack" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame.goBack:member(1)", + "docComment": "/**\n * Navigates back using the navigation hierarchy (if any). Updates the Frame stack as needed. This method will start from the topmost Frame and will recursively search for an instance that has the canGoBack operation available.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static goBack();" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "goBack" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#ios:member", + "docComment": "/**\n * Gets the iOSFrame object that represents the iOS-specific APIs for this Frame. Valid when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Reference", + "text": "iOSFrame", + "canonicalReference": "NativeScript!iOSFrame:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#isCurrent:member(1)", + "docComment": "/**\n * @private\n *\n * @param - entry to check\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isCurrent(entry: " + }, + { + "kind": "Reference", + "text": "BackstackEntry", + "canonicalReference": "NativeScript!BackstackEntry:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "entry", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "isCurrent" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#navigate:member(1)", + "docComment": "/**\n * Navigates to a Page instance as described by the module name. This method will require the module and will check for a Page property in the exports of the module.\n *\n * @param - pageModuleName The name of the module to require starting from the application root. For example if you want to navigate to page called \"myPage.js\" in a folder called \"subFolder\" and your root folder is \"app\" you can call navigate method like this: const frames = require(\"@nativescript/core/ui/frame\"); frames.topmost().navigate(\"app/subFolder/myPage\");\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "navigate(pageModuleName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "pageModuleName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "navigate" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#navigate:member(2)", + "docComment": "/**\n * Creates a new Page instance using the provided callback and navigates to that Page.\n *\n * @param - create The function to be used to create the new Page instance.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "navigate(create: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Page", + "canonicalReference": "NativeScript!Page:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "create", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + } + ], + "name": "navigate" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#navigate:member(3)", + "docComment": "/**\n * Navigates to a Page resolved by the provided NavigationEntry object. Since there are a couple of ways to specify a Page instance through an entry, there is a resolution priority: 1. entry.moduleName 2. entry.create()\n *\n * @param - entry The NavigationEntry instance.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "navigate(entry: " + }, + { + "kind": "Reference", + "text": "NavigationEntry", + "canonicalReference": "NativeScript!NavigationEntry:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "entry", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "navigate" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#navigationBarHeight:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "navigationBarHeight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navigationBarHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#navigationQueueIsEmpty:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "navigationQueueIsEmpty(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "navigationQueueIsEmpty" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#performNavigation:member(1)", + "docComment": "/**\n * @private\n *\n * @param - navigationContext\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public performNavigation(navigationContext: " + }, + { + "kind": "Reference", + "text": "NavigationContext", + "canonicalReference": "NativeScript!NavigationContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "navigationContext", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "performNavigation" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame.reloadPage:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static reloadPage(context?: " + }, + { + "kind": "Reference", + "text": "ModuleContext", + "canonicalReference": "!ModuleContext:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "reloadPage" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame#setCurrent:member(1)", + "docComment": "/**\n * @private\n *\n * @param - entry to set as current\n *\n * @param - navigationType\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setCurrent(entry: " + }, + { + "kind": "Reference", + "text": "BackstackEntry", + "canonicalReference": "NativeScript!BackstackEntry:interface" + }, + { + "kind": "Content", + "text": ", navigationType: " + }, + { + "kind": "Reference", + "text": "NavigationType", + "canonicalReference": "NativeScript!NavigationType:enum" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "entry", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "navigationType", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setCurrent" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Frame.topmost:member(1)", + "docComment": "/**\n * Gets the topmost frame in the frames stack. An application will typically has one frame instance. Multiple frames handle nested (hierarchical) navigation scenarios.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static topmost(): " + }, + { + "kind": "Reference", + "text": "Frame", + "canonicalReference": "NativeScript!Frame:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "topmost" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Frame#transition:member", + "docComment": "/**\n * Gets or sets the default navigation transition for this frame.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "transition: " + }, + { + "kind": "Reference", + "text": "NavigationTransition", + "canonicalReference": "NativeScript!NavigationTransition:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "transition", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!GestureEventData:interface", + "docComment": "/**\n * Provides gesture event data.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface GestureEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "GestureEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!GestureEventData#android:member", + "docComment": "/**\n * Gets the underlying native android specific [gesture detector](http://developer.android.com/reference/android/view/GestureDetector.html).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!GestureEventData#ios:member", + "docComment": "/**\n * Gets the underlying native iOS specific [UIGestureRecognizer](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIGestureRecognizer_Class/).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIGestureRecognizer */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!GestureEventData#type:member", + "docComment": "/**\n * Gets the type of the gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "GestureTypes", + "canonicalReference": "NativeScript!GestureTypes:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!GestureEventData#view:member", + "docComment": "/**\n * Gets the view which originates the gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "view", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!GestureEventDataWithState:interface", + "docComment": "/**\n * Provides gesture event data.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface GestureEventDataWithState extends " + }, + { + "kind": "Reference", + "text": "GestureEventData", + "canonicalReference": "NativeScript!GestureEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "GestureEventDataWithState", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!GestureEventDataWithState#state:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "state: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "state", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!GesturesObserver:class", + "docComment": "/**\n * Provides options for the GesturesObserver.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class GesturesObserver " + } + ], + "releaseTag": "Public", + "name": "GesturesObserver", + "members": [ + { + "kind": "Constructor", + "canonicalReference": "NativeScript!GesturesObserver:constructor(1)", + "docComment": "/**\n * Creates an instance of GesturesObserver class.\n *\n * @param target - The view for which the observer is created.\n *\n * @param callback - A function that will be executed when a gesture is received.\n *\n * @param context - default this argument for the callbacks.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(target: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "GestureEventData", + "canonicalReference": "NativeScript!GestureEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", context: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "target", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ] + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!GesturesObserver#androidOnTouchEvent:member", + "docComment": "/**\n * An internal Android specific method used to pass the motion event to the correct gesture observer.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "androidOnTouchEvent: " + }, + { + "kind": "Content", + "text": "(motionEvent: any /* android.view.MotionEvent */) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidOnTouchEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!GesturesObserver#callback:member", + "docComment": "/**\n * A function that will be executed when a gesture is received.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "GestureEventData", + "canonicalReference": "NativeScript!GestureEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "callback", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!GesturesObserver#context:member", + "docComment": "/**\n * A context which will be used as `this` in callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GesturesObserver#disconnect:member(1)", + "docComment": "/**\n * Disconnects the gesture observer.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "disconnect();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "disconnect" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GesturesObserver#observe:member(1)", + "docComment": "/**\n * Registers a gesture observer to a view and gesture.\n *\n * @param type - Type of the gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "observe(type: " + }, + { + "kind": "Reference", + "text": "GestureTypes", + "canonicalReference": "NativeScript!GestureTypes:enum" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "type", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "observe" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!GesturesObserver#type:member", + "docComment": "/**\n * Gesture type attached to the observer.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "GestureTypes", + "canonicalReference": "NativeScript!GestureTypes:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Enum", + "canonicalReference": "NativeScript!GestureStateTypes:enum", + "docComment": "/**\n * Defines an enum with supported gesture states.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export enum GestureStateTypes " + } + ], + "releaseTag": "Public", + "name": "GestureStateTypes", + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureStateTypes.began:member", + "docComment": "/**\n * Gesture began.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "began" + } + ], + "releaseTag": "Public", + "name": "began", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureStateTypes.cancelled:member", + "docComment": "/**\n * Gesture canceled.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "cancelled" + } + ], + "releaseTag": "Public", + "name": "cancelled", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureStateTypes.changed:member", + "docComment": "/**\n * Gesture changed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "changed" + } + ], + "releaseTag": "Public", + "name": "changed", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureStateTypes.ended:member", + "docComment": "/**\n * Gesture ended.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ended" + } + ], + "releaseTag": "Public", + "name": "ended", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ] + }, + { + "kind": "Enum", + "canonicalReference": "NativeScript!GestureTypes:enum", + "docComment": "/**\n * Defines an enum with supported gesture types.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export enum GestureTypes " + } + ], + "releaseTag": "Public", + "name": "GestureTypes", + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureTypes.doubleTap:member", + "docComment": "/**\n * Denotes double tap gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "doubleTap" + } + ], + "releaseTag": "Public", + "name": "doubleTap", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureTypes.longPress:member", + "docComment": "/**\n * Denotes long press gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "longPress" + } + ], + "releaseTag": "Public", + "name": "longPress", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureTypes.pan:member", + "docComment": "/**\n * Denotes pan gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "pan" + } + ], + "releaseTag": "Public", + "name": "pan", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureTypes.pinch:member", + "docComment": "/**\n * Denotes pinch gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "pinch" + } + ], + "releaseTag": "Public", + "name": "pinch", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureTypes.rotation:member", + "docComment": "/**\n * Denotes rotation gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotation" + } + ], + "releaseTag": "Public", + "name": "rotation", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureTypes.swipe:member", + "docComment": "/**\n * Denotes swipe gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "swipe" + } + ], + "releaseTag": "Public", + "name": "swipe", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureTypes.tap:member", + "docComment": "/**\n * Denotes tap (click) gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tap" + } + ], + "releaseTag": "Public", + "name": "tap", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!GestureTypes.touch:member", + "docComment": "/**\n * Denotes touch action.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "touch" + } + ], + "releaseTag": "Public", + "name": "touch", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!GridLayout:class", + "docComment": "/**\n * Defines a rectangular layout area that consists of columns and rows.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class GridLayout extends " + }, + { + "kind": "Reference", + "text": "LayoutBase", + "canonicalReference": "NativeScript!LayoutBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "GridLayout", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#_onColumnAdded:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _onColumnAdded(itemSpec: " + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_onColumnAdded" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#_onColumnRemoved:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _onColumnRemoved(itemSpec: " + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": ", index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_onColumnRemoved" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#_onRowAdded:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _onRowAdded(itemSpec: " + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_onRowAdded" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#_onRowRemoved:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _onRowRemoved(itemSpec: " + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": ", index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_onRowRemoved" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#addChildAtCell:member(1)", + "docComment": "/**\n * Adds a child at specific cell in GridLayout. Optional rowSpan and columnSpan attributes\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public addChildAtCell(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", row: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", column: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", rowSpan?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", columnSpan?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "row", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "column", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "rowSpan", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + }, + { + "parameterName": "columnSpan", + "parameterTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + } + } + ], + "name": "addChildAtCell" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#addColumn:member(1)", + "docComment": "/**\n * Adds a column specification to a GridLayout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public addColumn(itemSpec: " + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "addColumn" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#addRow:member(1)", + "docComment": "/**\n * Adds a row specification to a GridLayout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public addRow(itemSpec: " + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "addRow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout.getColumn:member(1)", + "docComment": "/**\n * Gets the value of the Column attached property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getColumn(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getColumn" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#getColumns:member(1)", + "docComment": "/**\n * Gets array of column specifications defined on this instance of GridLayout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getColumns(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getColumns" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout.getColumnSpan:member(1)", + "docComment": "/**\n * Gets the value of the ColumnSpan attached property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getColumnSpan(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getColumnSpan" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout.getRow:member(1)", + "docComment": "/**\n * Gets the value of the Row attached property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getRow(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getRow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#getRows:member(1)", + "docComment": "/**\n * Gets array of row specifications defined on this instance of GridLayout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getRows(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getRows" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout.getRowSpan:member(1)", + "docComment": "/**\n * Gets the value of the RowSpan attached property from a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static getRowSpan(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getRowSpan" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#removeColumn:member(1)", + "docComment": "/**\n * Removes a column specification from a GridLayout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public removeColumn(itemSpec: " + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "removeColumn" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#removeColumns:member(1)", + "docComment": "/**\n * Removes all column specifications from a GridLayout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public removeColumns(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "removeColumns" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#removeRow:member(1)", + "docComment": "/**\n * Removes a row specification from a GridLayout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public removeRow(itemSpec: " + }, + { + "kind": "Reference", + "text": "ItemSpec", + "canonicalReference": "NativeScript!ItemSpec:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "itemSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "removeRow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout#removeRows:member(1)", + "docComment": "/**\n * Removes all row specifications from a GridLayout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public removeRows(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "removeRows" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout.setColumn:member(1)", + "docComment": "/**\n * Sets the value of the Column attached property to a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static setColumn(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setColumn" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout.setColumnSpan:member(1)", + "docComment": "/**\n * Sets the value of the ColumnSpan attached property to a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static setColumnSpan(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setColumnSpan" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout.setRow:member(1)", + "docComment": "/**\n * Sets the value of the Row attached property to a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static setRow(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setRow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!GridLayout.setRowSpan:member(1)", + "docComment": "/**\n * Sets the value of the RowSpan attached property to a given View.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static setRowSpan(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setRowSpan" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Namespace", + "canonicalReference": "NativeScript!GridUnitType:namespace", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export namespace GridUnitType " + } + ], + "releaseTag": "Public", + "name": "GridUnitType", + "members": [ + { + "kind": "Variable", + "canonicalReference": "NativeScript!GridUnitType.AUTO:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "AUTO: " + }, + { + "kind": "Content", + "text": "\"auto\"" + } + ], + "releaseTag": "Public", + "name": "AUTO", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!GridUnitType.isValid:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function isValid(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "isValid" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!GridUnitType.parse:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function parse(value: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "GridUnitType", + "canonicalReference": "NativeScript!GridUnitType:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "parse" + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!GridUnitType.PIXEL:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "PIXEL: " + }, + { + "kind": "Content", + "text": "\"pixel\"" + } + ], + "releaseTag": "Public", + "name": "PIXEL", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!GridUnitType.STAR:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "STAR: " + }, + { + "kind": "Content", + "text": "\"star\"" + } + ], + "releaseTag": "Public", + "name": "STAR", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "NativeScript!GridUnitType:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type GridUnitType = " + }, + { + "kind": "Content", + "text": "\"pixel\" | \"star\" | \"auto\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "GridUnitType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "NativeScript!Headers:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Headers = " + }, + { + "kind": "Content", + "text": "{ [key: string]: string | string[] }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "Headers", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!HtmlView:class", + "docComment": "/**\n * Represents a view with html content. Use this component instead WebView when you want to show just static HTML content. [iOS support](https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata) [android support](http://developer.android.com/reference/android/text/Html.html)\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class HtmlView extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "HtmlView", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!HtmlView#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.TextView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!HtmlView#html:member", + "docComment": "/**\n * Gets or sets html string for the HtmlView.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "html: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "html", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!HtmlView#ios:member", + "docComment": "/**\n * Gets the native [UITextView](https://developer.apple.com/documentation/uikit/uitextview) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITextView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!Http:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Http: " + }, + { + "kind": "Content", + "text": "{\n getFile: typeof " + }, + { + "kind": "Reference", + "text": "getFile", + "canonicalReference": "NativeScript!getFile:function" + }, + { + "kind": "Content", + "text": ";\n getImage: typeof " + }, + { + "kind": "Reference", + "text": "getImage", + "canonicalReference": "NativeScript!getImage:function" + }, + { + "kind": "Content", + "text": ";\n getJSON: typeof " + }, + { + "kind": "Reference", + "text": "getJSON", + "canonicalReference": "NativeScript!getJSON:function" + }, + { + "kind": "Content", + "text": ";\n getString: typeof " + }, + { + "kind": "Reference", + "text": "httpGetString", + "canonicalReference": "NativeScript!getString:function" + }, + { + "kind": "Content", + "text": ";\n request: typeof " + }, + { + "kind": "Reference", + "text": "request", + "canonicalReference": "NativeScript!request:function" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "releaseTag": "Public", + "name": "Http", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!HttpContent:interface", + "docComment": "/**\n * Encapsulates the content of an HttpResponse.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface HttpContent " + } + ], + "releaseTag": "Public", + "name": "HttpContent", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpContent#raw:member", + "docComment": "/**\n * Gets the response body as raw data.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "raw: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "raw", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpContent#toArrayBuffer:member", + "docComment": "/**\n * Gets the response body as ArrayBuffer\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toArrayBuffer: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "ArrayBuffer", + "canonicalReference": "!ArrayBuffer:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "toArrayBuffer", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpContent#toFile:member", + "docComment": "/**\n * Gets the response body as file.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toFile: " + }, + { + "kind": "Content", + "text": "(destinationFilePath?: string) => " + }, + { + "kind": "Reference", + "text": "File", + "canonicalReference": "NativeScript!File:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "toFile", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpContent#toImage:member", + "docComment": "/**\n * Gets the response body as ImageSource.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toImage: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "toImage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpContent#toJSON:member", + "docComment": "/**\n * Gets the response body as JSON object.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJSON: " + }, + { + "kind": "Content", + "text": "(encoding?: " + }, + { + "kind": "Reference", + "text": "HttpResponseEncoding", + "canonicalReference": "NativeScript!HttpResponseEncoding:enum" + }, + { + "kind": "Content", + "text": ") => any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "toJSON", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpContent#toString:member", + "docComment": "/**\n * Gets the response body as string.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString: " + }, + { + "kind": "Content", + "text": "(encoding?: " + }, + { + "kind": "Reference", + "text": "HttpResponseEncoding", + "canonicalReference": "NativeScript!HttpResponseEncoding:enum" + }, + { + "kind": "Content", + "text": ") => string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "toString", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!HttpRequestOptions:interface", + "docComment": "/**\n * Provides options for the http requests.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface HttpRequestOptions " + } + ], + "releaseTag": "Public", + "name": "HttpRequestOptions", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpRequestOptions#content:member", + "docComment": "/**\n * Gets or sets the request body.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "content?: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "FormData", + "canonicalReference": "!FormData:interface" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "ArrayBuffer", + "canonicalReference": "!ArrayBuffer:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "content", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpRequestOptions#dontFollowRedirects:member", + "docComment": "/**\n * Gets or sets wether to *not* follow server's redirection responses.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "dontFollowRedirects?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "dontFollowRedirects", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpRequestOptions#headers:member", + "docComment": "/**\n * Gets or sets the request headers in JSON format.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "headers?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "headers", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpRequestOptions#method:member", + "docComment": "/**\n * Gets or sets the request method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "method: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "method", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpRequestOptions#timeout:member", + "docComment": "/**\n * Gets or sets the request timeout in milliseconds.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "timeout?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "timeout", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpRequestOptions#url:member", + "docComment": "/**\n * Gets or sets the request url.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "url: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "url", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!HttpResponse:interface", + "docComment": "/**\n * Encapsulates HTTP-response information from an HTTP-request.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface HttpResponse " + } + ], + "releaseTag": "Public", + "name": "HttpResponse", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpResponse#content:member", + "docComment": "/**\n * Gets the response content.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "content?: " + }, + { + "kind": "Reference", + "text": "HttpContent", + "canonicalReference": "NativeScript!HttpContent:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "content", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpResponse#headers:member", + "docComment": "/**\n * Gets the response headers.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "headers: " + }, + { + "kind": "Reference", + "text": "Headers", + "canonicalReference": "NativeScript!Headers:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "headers", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!HttpResponse#statusCode:member", + "docComment": "/**\n * Gets the response status code.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "statusCode: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "statusCode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Enum", + "canonicalReference": "NativeScript!HttpResponseEncoding:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export enum HttpResponseEncoding " + } + ], + "releaseTag": "Public", + "name": "HttpResponseEncoding", + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!HttpResponseEncoding.GBK:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "GBK" + } + ], + "releaseTag": "Public", + "name": "GBK", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!HttpResponseEncoding.UTF8:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "UTF8" + } + ], + "releaseTag": "Public", + "name": "UTF8", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Image:class", + "docComment": "/**\n * Represents a class that provides functionality for loading and streching image(s).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Image extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Image", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/ImageView.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.ImageView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#decodeHeight:member", + "docComment": "/**\n * Gets or sets the desired decode height of the image. This property is Android specific.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "decodeHeight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "decodeHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#decodeWidth:member", + "docComment": "/**\n * Gets or sets the desired decode width of the image. This property is Android specific.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "decodeWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "decodeWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#imageSource:member", + "docComment": "/**\n * Gets or sets the image source of the image.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "imageSource: " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "imageSource", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#ios:member", + "docComment": "/**\n * Gets the native iOS [UIImageView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImageView_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIImageView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#isLoading:member", + "docComment": "/**\n * Gets a value indicating if the image is currently loading.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "readonly isLoading: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isLoading", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#loadMode:member", + "docComment": "/**\n * Gets or sets the loading strategy for images on the local file system: - **sync** - blocks the UI if necessary to display immediately, good for small icons. - **async** *(default)* - will load in the background, may appear with short delay, good for large images. When loading images from web they are always loaded **async** no matter of loadMode value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "loadMode: " + }, + { + "kind": "Content", + "text": "\"sync\" | \"async\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "loadMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#src:member", + "docComment": "/**\n * Gets or sets the source of the Image. This can be either an URL string or a native image instance.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "src: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "src", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#stretch:member", + "docComment": "/**\n * Gets or sets the image stretch mode.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stretch: " + }, + { + "kind": "Reference", + "text": "Stretch", + "canonicalReference": "NativeScript!Stretch:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "stretch", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Image#tintColor:member", + "docComment": "/**\n * A color used to tint template images.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tintColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tintColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ImageAsset:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ImageAsset extends " + }, + { + "kind": "Reference", + "text": "Observable", + "canonicalReference": "NativeScript!Observable:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ImageAsset", + "members": [ + { + "kind": "Constructor", + "canonicalReference": "NativeScript!ImageAsset:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `ImageAsset` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(asset: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "asset", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageAsset#android:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageAsset#getImageAsync:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getImageAsync(callback: " + }, + { + "kind": "Content", + "text": "(image: any, error: any) => void" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getImageAsync" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageAsset#ios:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageAsset#nativeImage:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "nativeImage: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "nativeImage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageAsset#options:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "options: " + }, + { + "kind": "Reference", + "text": "ImageAssetOptions", + "canonicalReference": "NativeScript!ImageAssetOptions:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "options", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ImageAssetOptions:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ImageAssetOptions " + } + ], + "releaseTag": "Public", + "name": "ImageAssetOptions", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ImageAssetOptions#autoScaleFactor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "autoScaleFactor?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "autoScaleFactor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ImageAssetOptions#height:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "height?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "height", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ImageAssetOptions#keepAspectRatio:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "keepAspectRatio?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "keepAspectRatio", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ImageAssetOptions#width:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "width?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "width", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ImageCache:class", + "docComment": "/**\n * Represents a class that stores handles image download requests and caches the already downloaded images.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Cache extends " + }, + { + "kind": "Reference", + "text": "Observable", + "canonicalReference": "NativeScript!Observable:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ImageCache", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#_downloadCore:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_downloadCore(request: " + }, + { + "kind": "Reference", + "text": "DownloadRequest", + "canonicalReference": "NativeScript!DownloadRequest:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "request", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_downloadCore" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#_onDownloadCompleted:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_onDownloadCompleted(key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", image: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "image", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_onDownloadCompleted" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#_onDownloadError:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_onDownloadError(key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", err: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "err", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_onDownloadError" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#clear:member(1)", + "docComment": "/**\n * Removes all the previously cached images.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clear(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "clear" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#disableDownload:member(1)", + "docComment": "/**\n * Temporary disables download requests.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "disableDownload(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "disableDownload" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageCache.downloadedEvent:member", + "docComment": "/**\n * String value used when hooking to downloaded event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static downloadedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "downloadedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageCache.downloadErrorEvent:member", + "docComment": "/**\n * String value used when hooking to download error event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static downloadErrorEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "downloadErrorEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#enableDownload:member(1)", + "docComment": "/**\n * Enables previously suspended download requests.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "enableDownload(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "enableDownload" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#enqueue:member(1)", + "docComment": "/**\n * Adds a new download request at the end of the download queue. This will be the last download to start.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "enqueue(request: " + }, + { + "kind": "Reference", + "text": "DownloadRequest", + "canonicalReference": "NativeScript!DownloadRequest:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "request", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "enqueue" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#get:member(1)", + "docComment": "/**\n * Gets the image for the specified key. May be undefined if the key is not present in the cache.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get(key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "get" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageCache#maxRequests:member", + "docComment": "/**\n * The maximum number of simultaneous download requests. Defaults to 5.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "maxRequests: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "maxRequests", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#on:member(2)", + "docComment": "/**\n * Raised when the image has been downloaded.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"downloaded\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "DownloadedData", + "canonicalReference": "NativeScript!DownloadedData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#on:member(3)", + "docComment": "/**\n * Raised if the image download errors.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"downloadError\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "DownloadError", + "canonicalReference": "NativeScript!DownloadError:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageCache#placeholder:member", + "docComment": "/**\n * The image to be used to notify for a pending download request - e.g. loading indicator.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "placeholder: " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "placeholder", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#push:member(1)", + "docComment": "/**\n * Adds a new download request at the top of the download queue. This will be the next immediate download to start.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "push(request: " + }, + { + "kind": "Reference", + "text": "DownloadRequest", + "canonicalReference": "NativeScript!DownloadRequest:interface" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "request", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "push" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#remove:member(1)", + "docComment": "/**\n * Removes the cache for the specified key.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "remove(key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "remove" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageCache#set:member(1)", + "docComment": "/**\n * Sets the image for the specified key.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "set(key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", image: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "key", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "image", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "set" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ImageSource:class", + "docComment": "/**\n * Encapsulates the common abstraction behind a platform specific object (typically a Bitmap) that is used as a source for images.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ImageSource " + } + ], + "releaseTag": "Public", + "name": "ImageSource", + "members": [ + { + "kind": "Constructor", + "canonicalReference": "NativeScript!ImageSource:constructor(1)", + "docComment": "/**\n * Creates a new ImageSource instance and sets the provided native source object (typically a Bitmap). The native source object will update either the android or ios properties, depending on the target os.\n *\n * @param - nativeSource The native image object. Will be either a Bitmap for Android or a UIImage for iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(nativeSource?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "nativeSource", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageSource#android:member", + "docComment": "/**\n * The Android-specific [image](http://developer.android.com/reference/android/graphics/Bitmap.html) instance. Will be undefined when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.graphics.Bitmap */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#fromAsset:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromAsset() instead. Loads this instance from the specified asset asynchronously.\n *\n * @param - asset The ImageAsset instance used to create ImageSource.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fromAsset(asset: " + }, + { + "kind": "Reference", + "text": "ImageAsset", + "canonicalReference": "NativeScript!ImageAsset:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "asset", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromAsset" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromAsset:member(1)", + "docComment": "/**\n * Loads this instance from the specified asset asynchronously.\n *\n * @param - asset The ImageAsset instance used to create ImageSource.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromAsset(asset: " + }, + { + "kind": "Reference", + "text": "ImageAsset", + "canonicalReference": "NativeScript!ImageAsset:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "asset", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromAsset" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#fromBase64:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromBase64() instead. Loads this instance from the specified base64 encoded string asynchronously.\n *\n * @param - source The Base64 string to load the image from.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fromBase64(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromBase64" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromBase64:member(1)", + "docComment": "/**\n * Loads this instance from the specified base64 encoded string asynchronously.\n *\n * @param - source The Base64 string to load the image from.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromBase64(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromBase64" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromBase64Sync:member(1)", + "docComment": "/**\n * Loads this instance from the specified base64 encoded string.\n *\n * @param - source The Base64 string to load the image from.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromBase64Sync(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromBase64Sync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#fromData:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromData() instead. Loads this instance from the specified native image data asynchronously.\n *\n * @param - data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fromData(data: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "data", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromData" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromData:member(1)", + "docComment": "/**\n * Loads this instance from the specified native image data asynchronously.\n *\n * @param - data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromData(data: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "data", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromData" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromDataSync:member(1)", + "docComment": "/**\n * Loads this instance from the specified native image data.\n *\n * @param - data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromDataSync(data: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "data", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromDataSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#fromFile:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromFile() instead. Loads this instance from the specified file asynchronously.\n *\n * @param - path The location of the file on the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fromFile(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromFile" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromFile:member(1)", + "docComment": "/**\n * Loads this instance from the specified file asynchronously.\n *\n * @param - path The location of the file on the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromFile(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromFile" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromFileOrResourceSync:member(1)", + "docComment": "/**\n * Creates a new ImageSource instance and loads it from the specified local file or resource (if specified with the \"res://\" prefix).\n *\n * @param - path The location of the file on the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromFileOrResourceSync(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromFileOrResourceSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromFileSync:member(1)", + "docComment": "/**\n * Loads this instance from the specified file.\n *\n * @param - path The location of the file on the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromFileSync(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromFileSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromFontIconCodeSync:member(1)", + "docComment": "/**\n * Creates a new ImageSource instance and loads it from the specified font icon code.\n *\n * @param - source The hex font icon code string\n *\n * @param - font The font for the corresponding font icon code\n *\n * @param - color The color of the generated icon image\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromFontIconCodeSync(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", font: " + }, + { + "kind": "Reference", + "text": "Font", + "canonicalReference": "NativeScript!Font:class" + }, + { + "kind": "Content", + "text": ", color: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "font", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "color", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "fromFontIconCodeSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#fromResource:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromResource() instead. Loads this instance from the specified resource name asynchronously.\n *\n * @param - name The name of the resource (without its extension).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fromResource(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromResource" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromResource:member(1)", + "docComment": "/**\n * Loads this instance from the specified resource name asynchronously.\n *\n * @param - name The name of the resource (without its extension).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromResource(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromResource" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromResourceSync:member(1)", + "docComment": "/**\n * Loads this instance from the specified resource name.\n *\n * @param - name The name of the resource (without its extension).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromResourceSync(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromResourceSync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource.fromUrl:member(1)", + "docComment": "/**\n * Downloads the image from the provided Url and creates a new ImageSource instance from it.\n *\n * @param - url The link to the remote image object. This operation will download and decode the image.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static fromUrl(url: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "url", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "fromUrl" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageSource#height:member", + "docComment": "/**\n * Gets the height of this instance. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "height: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "height", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageSource#ios:member", + "docComment": "/**\n * The iOS-specific [UIImage](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/) instance. Will be undefined when running on Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIImage */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#loadFromBase64:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromBase64Sync() instead. Loads this instance from the specified base64 encoded string.\n *\n * @param - source The Base64 string to load the image from.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "loadFromBase64(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "loadFromBase64" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#loadFromData:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromDataSync() instead. Loads this instance from the specified native image data.\n *\n * @param - data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "loadFromData(data: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "data", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "loadFromData" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#loadFromFile:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromFileSync() instead. Loads this instance from the specified file.\n *\n * @param - path The location of the file on the file system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "loadFromFile(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "loadFromFile" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#loadFromFontIconCode:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromFontIconCode() instead. Loads this instance from the specified font icon code.\n *\n * @param - source The hex font icon code string\n *\n * @param - font The font for the corresponding font icon code\n *\n * @param - color The color of the generated icon image\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "loadFromFontIconCode(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", font: " + }, + { + "kind": "Reference", + "text": "Font", + "canonicalReference": "NativeScript!Font:class" + }, + { + "kind": "Content", + "text": ", color: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "font", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "color", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "loadFromFontIconCode" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#loadFromResource:member(1)", + "docComment": "/**\n * @deprecated\n *\n * Use ImageSource.fromResourceSync() instead. Loads this instance from the specified resource name.\n *\n * @param - name The name of the resource (without its extension).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "loadFromResource(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "loadFromResource" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#resize:member(1)", + "docComment": "/**\n * Returns a new ImageSource that is a resized version of this image with the same aspect ratio, but the max dimension set to the provided maxSize.\n *\n * @param - maxSize The maximum pixel dimension of the resulting image.\n *\n * @param - options Optional parameter, Only used for android, options.filter is a boolean which determines whether or not bilinear filtering should be used when scaling the bitmap. If this is true then bilinear filtering will be used when scaling which has better image quality at the cost of worse performance. If this is false then nearest-neighbor scaling is used instead which will have worse image quality but is faster. Recommended default is to set filter to 'true' as the cost of bilinear filtering is typically minimal and the improved image quality is significant.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "resize(maxSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ImageSource", + "canonicalReference": "NativeScript!ImageSource:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "maxSize", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "resize" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageSource#rotationAngle:member", + "docComment": "/**\n * Gets or sets the rotation angle that should be applied to the image. (Used in android)\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotationAngle: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotationAngle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#saveToFile:member(1)", + "docComment": "/**\n * Saves this instance to the specified file, using the provided image format and quality.\n *\n * @param - path The path of the file on the file system to save to.\n *\n * @param - format The format (encoding) of the image.\n *\n * @param - quality Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "saveToFile(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", format: " + }, + { + "kind": "Content", + "text": "\"png\" | \"jpeg\" | \"jpg\"" + }, + { + "kind": "Content", + "text": ", quality?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "format", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "quality", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "saveToFile" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#setNativeSource:member(1)", + "docComment": "/**\n * Sets the provided native source object (typically a Bitmap or a UIImage). This will update either the android or ios properties, depending on the target os.\n *\n * @param - nativeSource The native image object. Will be either a Bitmap for Android or a UIImage for iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setNativeSource(nativeSource: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "nativeSource", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setNativeSource" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ImageSource#toBase64String:member(1)", + "docComment": "/**\n * Converts the image to base64 encoded string, using the provided image format and quality.\n *\n * @param - format The format (encoding) of the image.\n *\n * @param - quality Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toBase64String(format: " + }, + { + "kind": "Content", + "text": "\"png\" | \"jpeg\" | \"jpg\"" + }, + { + "kind": "Content", + "text": ", quality?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "format", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "quality", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "toBase64String" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ImageSource#width:member", + "docComment": "/**\n * Gets the width of this instance. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "width: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "width", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "NativeScript!InstrumentationMode:type", + "docComment": "/**\n * Profiling mode to use. - `counters` Accumulates method call counts and times until dumpProfiles is called and then prints aggregated statistic in the console. This is the default. - `timeline` Outputs method names along start/end timestamps in the console on the go. - `lifecycle` Outputs basic non-verbose times for startup, navigation, etc.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "type InstrumentationMode = " + }, + { + "kind": "Content", + "text": "\"counters\" | \"timeline\" | \"lifecycle\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "InstrumentationMode", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!iOSApplication:class", + "docComment": "/**\n * The abstraction of an iOS-specific application object.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class iOSApplication " + } + ], + "releaseTag": "Public", + "name": "iOSApplication", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!iOSApplication#addNotificationObserver:member(1)", + "docComment": "/**\n * Adds an observer to the default notification center for the specified notification. For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/#//apple_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:'\n *\n * @param - notificationName A string containing the name of the notification.\n *\n * @param - onReceiveCallback A callback function that will be called each time the observer receives a notification.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addNotificationObserver(notificationName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", onReceiveCallback: " + }, + { + "kind": "Content", + "text": "(notification: any /* NSNotification */) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "notificationName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "onReceiveCallback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "addNotificationObserver" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!iOSApplication#delegate:member", + "docComment": "/**\n * The [UIApplicationDelegate](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html) class.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "delegate: " + }, + { + "kind": "Content", + "text": "any /* typeof UIApplicationDelegate */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "delegate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!iOSApplication#nativeApp:member", + "docComment": "/**\n * The [UIApplication](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "nativeApp: " + }, + { + "kind": "Content", + "text": "any /* UIApplication */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "nativeApp", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!iOSApplication#orientation:member", + "docComment": "/**\n * Gets or sets the orientation of the application. Available values: \"portrait\", \"landscape\", \"unknown\".\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "orientation: " + }, + { + "kind": "Content", + "text": "\"portrait\" | \"landscape\" | \"unknown\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "orientation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!iOSApplication#removeNotificationObserver:member(1)", + "docComment": "/**\n * Removes the observer for the specified notification from the default notification center. For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/#//apple_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:'\n *\n * @param - observer The observer that was returned from the addNotificationObserver method.\n *\n * @param - notificationName A string containing the name of the notification.\n *\n * @param - onReceiveCallback A callback function that will be called each time the observer receives a notification.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeNotificationObserver(observer: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", notificationName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "observer", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "notificationName", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "removeNotificationObserver" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!iOSApplication#rootController:member", + "docComment": "/**\n * The root view controller for the application.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rootController: " + }, + { + "kind": "Content", + "text": "any /* UIViewController */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rootController", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!iOSApplication#systemAppearance:member", + "docComment": "/**\n * Gets the system appearance. Available values: \"dark\", \"light\", null. Null for iOS <= 11.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "systemAppearance: " + }, + { + "kind": "Content", + "text": "\"dark\" | \"light\" | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "systemAppearance", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!iOSApplication#window:member", + "docComment": "/**\n * The key window.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "window: " + }, + { + "kind": "Content", + "text": "any /* UIWindow */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "window", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "NativeScript!IOSTabBarItemsAlignment:type", + "docComment": "/**\n * IOS Alignment of the Tabs TabStrip to use. - `leading` - tab items are aligned to the left - `justified` - tab strip is split equally to all the tab items - `center` - tabs items are aligned in the center - `centerSelected` - tab items move to make the selected tab in the center\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type IOSTabBarItemsAlignment = " + }, + { + "kind": "Content", + "text": "\"leading\" | \"justified\" | \"center\" | \"centerSelected\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "IOSTabBarItemsAlignment", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!isAndroid:var", + "docComment": "/**\n * Gets a value indicating if the app is running on the Android platform.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isAndroid: " + }, + { + "kind": "Content", + "text": "boolean" + } + ], + "releaseTag": "Public", + "name": "isAndroid", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!isIOS:var", + "docComment": "/**\n * Gets a value indicating if the app is running on the iOS platform.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isIOS: " + }, + { + "kind": "Content", + "text": "boolean" + } + ], + "releaseTag": "Public", + "name": "isIOS", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ItemEventData:interface", + "docComment": "/**\n * Event data containing information for the index and the view associated to a list view item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ItemEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ItemEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ItemEventData#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/view/ViewGroup.html) that represents the user interface where the view is hosted. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.view.ViewGroup */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ItemEventData#index:member", + "docComment": "/**\n * The index of the item, for which the event is raised.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "index", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ItemEventData#ios:member", + "docComment": "/**\n * Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/) that represents the user interface where the view is hosted. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITableViewCell */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ItemEventData#view:member", + "docComment": "/**\n * The view that is associated to the item, for which the event is raised.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "view", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ItemsSource:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ItemsSource " + } + ], + "releaseTag": "Public", + "name": "ItemsSource", + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!ItemsSource#getItem:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getItem(index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getItem" + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ItemsSource#length:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "length: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "length", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!KeyedTemplate:interface", + "docComment": "/**\n * Defines an interface for Template with a key.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface KeyedTemplate " + } + ], + "releaseTag": "Public", + "name": "KeyedTemplate", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!KeyedTemplate#createView:member", + "docComment": "/**\n * The function that creates the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "createView: " + }, + { + "kind": "Reference", + "text": "Template", + "canonicalReference": "NativeScript!Template:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "createView", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!KeyedTemplate#key:member", + "docComment": "/**\n * The unique key of the template.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "key: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "key", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Namespace", + "canonicalReference": "NativeScript!knownFolders:namespace", + "docComment": "/**\n * Provides access to the top-level Folders instances that are accessible from the application. Use these as entry points to access the FileSystem.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export module knownFolders " + } + ], + "releaseTag": "Public", + "name": "knownFolders", + "members": [ + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.currentApp:function(1)", + "docComment": "/**\n * Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps. iOS - this folder is read-only and contains the app and all its resources.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function currentApp(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "currentApp" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.documents:function(1)", + "docComment": "/**\n * Gets the Documents folder available for the current application. This Folder is private for the application and not accessible from Users/External apps.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function documents(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "documents" + }, + { + "kind": "Namespace", + "canonicalReference": "NativeScript!knownFolders.ios:namespace", + "docComment": "/**\n * Contains iOS-specific known folders.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "module ios " + } + ], + "releaseTag": "Public", + "name": "ios", + "members": [ + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.ios.desktop:function(1)", + "docComment": "/**\n * Gets the NSDesktopDirectory. Note that the folder will not be created if it did not exist.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function desktop(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "desktop" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.ios.developer:function(1)", + "docComment": "/**\n * Gets the NSDeveloperDirectory. Note that the folder will not be created if it did not exist.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function developer(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "developer" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.ios.downloads:function(1)", + "docComment": "/**\n * Gets the NSDownloadsDirectory. Note that the folder will not be created if it did not exist.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function downloads(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "downloads" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.ios.library:function(1)", + "docComment": "/**\n * Gets the NSLibraryDirectory. Note that the folder will not be created if it did not exist.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function library(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "library" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.ios.movies:function(1)", + "docComment": "/**\n * Gets the NSMoviesDirectory. Note that the folder will not be created if it did not exist.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function movies(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "movies" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.ios.music:function(1)", + "docComment": "/**\n * Gets the NSMusicDirectory. Note that the folder will not be created if it did not exist.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function music(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "music" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.ios.pictures:function(1)", + "docComment": "/**\n * Gets the NSPicturesDirectory. Note that the folder will not be created if it did not exist.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function pictures(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "pictures" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.ios.sharedPublic:function(1)", + "docComment": "/**\n * Gets the NSSharedPublicDirectory. Note that the folder will not be created if it did not exist.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function sharedPublic(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "sharedPublic" + } + ] + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!knownFolders.temp:function(1)", + "docComment": "/**\n * Gets the Temporary (Caches) folder available for the current application. This Folder is private for the application and not accessible from Users/External apps.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function temp(): " + }, + { + "kind": "Reference", + "text": "Folder", + "canonicalReference": "NativeScript!Folder:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "temp" + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Label:class", + "docComment": "/**\n * Represents a text label.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Label extends " + }, + { + "kind": "Reference", + "text": "TextBase", + "canonicalReference": "NativeScript!TextBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Label", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Label#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.TextView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Label#ios:member", + "docComment": "/**\n * Gets the native [UILabel](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UILabel */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Label#textWrap:member", + "docComment": "/**\n * Gets or sets whether the Label wraps text or not.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textWrap: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textWrap", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!LaunchEventData:interface", + "docComment": "/**\n * Event data containing information for launch event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface LaunchEventData extends " + }, + { + "kind": "Reference", + "text": "ApplicationEventData", + "canonicalReference": "NativeScript!ApplicationEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "LaunchEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!LaunchEventData#root:member", + "docComment": "/**\n * The root view for this Window on iOS or Activity for Android. If not set a new Frame will be created as a root view in order to maintain backwards compatibility.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "root?: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "root", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!LaunchEventData#savedInstanceState:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "savedInstanceState?: " + }, + { + "kind": "Content", + "text": "any /* android.os.Bundle */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "savedInstanceState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!LayoutBase:class", + "docComment": "/**\n * Base class for all views that supports children positioning.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class LayoutBase extends " + }, + { + "kind": "Reference", + "text": "CustomLayoutView", + "canonicalReference": "NativeScript!CustomLayoutView:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "LayoutBase", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#_registerLayoutChild:member(1)", + "docComment": "/**\n * INTERNAL. Used by the layout system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_registerLayoutChild(child: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "child", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_registerLayoutChild" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#_unregisterLayoutChild:member(1)", + "docComment": "/**\n * INTERNAL. Used by the layout system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_unregisterLayoutChild(child: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "child", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_unregisterLayoutChild" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#addChild:member(1)", + "docComment": "/**\n * Adds the view to children array.\n *\n * @param - view The view to be added to the end of the children array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addChild(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "addChild" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!LayoutBase#clipToBounds:member", + "docComment": "/**\n * Gets or sets a value indicating whether to clip the content of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clipToBounds: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "clipToBounds", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#eachLayoutChild:member(1)", + "docComment": "/**\n * Calls the callback for each child that should be laid out.\n *\n * @param - callback The callback\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "eachLayoutChild(callback: " + }, + { + "kind": "Content", + "text": "(child: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", isLast: boolean) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + } + ], + "name": "eachLayoutChild" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#getChildAt:member(1)", + "docComment": "/**\n * Returns the view at the specified position.\n *\n * @param - index The position at which to get the child from.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getChildAt(index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getChildAt" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#getChildIndex:member(1)", + "docComment": "/**\n * Returns the position of the child view\n *\n * @param - child The child view that we are looking for.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getChildIndex(child: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "child", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getChildIndex" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#getChildrenCount:member(1)", + "docComment": "/**\n * Returns the number of children in this Layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getChildrenCount(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getChildrenCount" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#insertChild:member(1)", + "docComment": "/**\n * Inserts the view to children array at the specified index.\n *\n * @param - view The view to be added to the end of the children array.\n *\n * @param - atIndex The insertion index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "insertChild(child: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", atIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "child", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "atIndex", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "insertChild" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!LayoutBase#isPassThroughParentEnabled:member", + "docComment": "/**\n * Gets or sets a value indicating whether touch event should pass through to a parent view of the layout container in case an interactive child view did not handle it. Default value of this property is false. This does not affect the appearance of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isPassThroughParentEnabled: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isPassThroughParentEnabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!LayoutBase#padding:member", + "docComment": "/**\n * Gets or sets padding style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "padding: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "padding", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!LayoutBase#paddingBottom:member", + "docComment": "/**\n * Specify the bottom padding of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paddingBottom: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!LayoutBase#paddingLeft:member", + "docComment": "/**\n * Specify the left padding of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paddingLeft: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!LayoutBase#paddingRight:member", + "docComment": "/**\n * Specify the right padding of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paddingRight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!LayoutBase#paddingTop:member", + "docComment": "/**\n * Specify the top padding of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paddingTop: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#removeChild:member(1)", + "docComment": "/**\n * Removes the specified view from the children array.\n *\n * @param - view The view to remove from the children array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeChild(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "removeChild" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!LayoutBase#removeChildren:member(1)", + "docComment": "/**\n * Removes all views in this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeChildren(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "removeChildren" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ListPicker:class", + "docComment": "/**\n * Represents an list picker.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ListPicker extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ListPicker", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!ListPicker#android:member", + "docComment": "/**\n * Gets the native [android.widget.NumberPicker](http://developer.android.com/reference/android/widget/NumberPicker.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.NumberPicker */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListPicker#ios:member", + "docComment": "/**\n * Gets the native iOS [UIPickerView](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIPickerView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListPicker#items:member", + "docComment": "/**\n * Gets or set the items collection of the ListPicker. The items property can be set to an array or an object defining length and getItem(index) method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListPicker#selectedIndex:member", + "docComment": "/**\n * Gets or sets the selected index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ListView:class", + "docComment": "/**\n * Represents a view that shows items in a vertically scrolling list.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ListView extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ListView", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/ListView.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.ListView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#ios:member", + "docComment": "/**\n * Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableView_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITableView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#iosEstimatedRowHeight:member", + "docComment": "/**\n * Gets or set the estimated height of rows in the ListView. The default value is 44px.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iosEstimatedRowHeight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iosEstimatedRowHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ListView#isItemAtIndexVisible:member(1)", + "docComment": "/**\n * Checks if Specified item with index is visible.\n *\n * @param index - Item index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isItemAtIndexVisible(index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "isItemAtIndexVisible" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#itemIdGenerator:member", + "docComment": "/**\n * Item id generator\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemIdGenerator: " + }, + { + "kind": "Content", + "text": "(item: any, index: number, items: any) => number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemIdGenerator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView.itemLoadingEvent:member", + "docComment": "/**\n * String value used when hooking to itemLoading event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static itemLoadingEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemLoadingEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#items:member", + "docComment": "/**\n * Gets or set the items collection of the ListView. The items property can be set to an array or an object defining length and getItem(index) method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Content", + "text": "any[] | " + }, + { + "kind": "Reference", + "text": "ItemsSource", + "canonicalReference": "NativeScript!ItemsSource:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView.itemTapEvent:member", + "docComment": "/**\n * String value used when hooking to itemTap event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static itemTapEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemTapEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#itemTemplate:member", + "docComment": "/**\n * Gets or set the item template of the ListView.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemTemplate: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Template", + "canonicalReference": "NativeScript!Template:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemTemplate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#itemTemplates:member", + "docComment": "/**\n * Gets or set the list of item templates for the item template selector\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemTemplates: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "KeyedTemplate", + "canonicalReference": "NativeScript!KeyedTemplate:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemTemplates", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#itemTemplateSelector:member", + "docComment": "/**\n * A function that returns the appropriate ket template based on the data item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemTemplateSelector: " + }, + { + "kind": "Content", + "text": "string | ((item: any, index: number, items: any) => string)" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemTemplateSelector", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView.loadMoreItemsEvent:member", + "docComment": "/**\n * String value used when hooking to loadMoreItems event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static loadMoreItemsEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "loadMoreItemsEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ListView#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ListView#on:member(2)", + "docComment": "/**\n * Raised when a View for the data at the specified index should be created. The result should be returned trough the view property of the event data. Note, that the view property of the event data can be pre-initialized with an old instance of a view, so that it can be reused.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"itemLoading\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "ItemEventData", + "canonicalReference": "NativeScript!ItemEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ListView#on:member(3)", + "docComment": "/**\n * Raised when an item inside the ListView is tapped.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"itemTap\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "ItemEventData", + "canonicalReference": "NativeScript!ItemEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ListView#on:member(4)", + "docComment": "/**\n * Raised when the ListView is scrolled so that its last item is visible.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"loadMoreItems\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 4, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ListView#refresh:member(1)", + "docComment": "/**\n * Forces the ListView to reload all its items.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "refresh();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "refresh" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#rowHeight:member", + "docComment": "/**\n * Gets or set row height of the ListView.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rowHeight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rowHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ListView#scrollToIndex:member(1)", + "docComment": "/**\n * Scrolls the specified item with index into view. [iOS](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableView_Class/#//apple_ref/occ/instm/UITableView/scrollToRowAtIndexPath:atScrollPosition:animated:) [Android](http://developer.android.com/reference/android/widget/ListView.html#setSelection(int))\n *\n * @param index - Item index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollToIndex(index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "scrollToIndex" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ListView#scrollToIndexAnimated:member(1)", + "docComment": "/**\n * Scrolls the specified item with index into view with animation. [iOS](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableView_Class/#//apple_ref/occ/instm/UITableView/scrollToRowAtIndexPath:atScrollPosition:animated:) [Android](https://developer.android.com/reference/android/widget/ListView.html#smoothScrollToPosition(int))\n *\n * @param index - Item index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollToIndexAnimated(index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "scrollToIndexAnimated" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ListView#separatorColor:member", + "docComment": "/**\n * Gets or set the items separator line color of the ListView.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "separatorColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "separatorColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!LoadAppCSSEventData:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface LoadAppCSSEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "LoadAppCSSEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!LoadAppCSSEventData#cssFile:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cssFile: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cssFile", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!LoadOptions:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface LoadOptions " + } + ], + "releaseTag": "Public", + "name": "LoadOptions", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!LoadOptions#attributes:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "attributes?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "attributes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!LoadOptions#exports:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "exports?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "exports", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!LoadOptions#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!LoadOptions#page:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "page?: " + }, + { + "kind": "Reference", + "text": "Page", + "canonicalReference": "NativeScript!Page:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "page", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!LoadOptions#path:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "path", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!NavigatedData:interface", + "docComment": "/**\n * Defines the data for the page navigation events.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface NavigatedData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "NavigatedData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigatedData#context:member", + "docComment": "/**\n * The navigation context (optional, may be undefined) passed to the page navigation events method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigatedData#isBackNavigation:member", + "docComment": "/**\n * Represents if a navigation is forward or backward.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isBackNavigation: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isBackNavigation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!NavigationButton:class", + "docComment": "/**\n * Represents the navigation (a.k.a. \"back\") button.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class NavigationButton extends " + }, + { + "kind": "Reference", + "text": "ActionItem", + "canonicalReference": "NativeScript!ActionItem:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "NavigationButton", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!NavigationButton#_navigationItem:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_navigationItem?: " + }, + { + "kind": "Content", + "text": "any" + } + ], + "releaseTag": "Public", + "name": "_navigationItem", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!NavigationContext:interface", + "docComment": "/**\n * Represents a context passed to navigation methods.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface NavigationContext " + } + ], + "releaseTag": "Public", + "name": "NavigationContext", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationContext#entry:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "entry: " + }, + { + "kind": "Reference", + "text": "BackstackEntry", + "canonicalReference": "NativeScript!BackstackEntry:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "entry", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationContext#isBackNavigation:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isBackNavigation: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isBackNavigation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationContext#navigationType:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "navigationType: " + }, + { + "kind": "Reference", + "text": "NavigationType", + "canonicalReference": "NativeScript!NavigationType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navigationType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!NavigationEntry:interface", + "docComment": "/**\n * Represents an entry in passed to navigate method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface NavigationEntry extends " + }, + { + "kind": "Reference", + "text": "ViewEntry", + "canonicalReference": "NativeScript!ViewEntry:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "NavigationEntry", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationEntry#animated:member", + "docComment": "/**\n * True to navigate to the new Page using animated transitions, false otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "animated?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "animated", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationEntry#backstackVisible:member", + "docComment": "/**\n * True to record the navigation in the backstack, false otherwise. If the parameter is set to false then the Page will be displayed but once navigated from it will not be able to be navigated back to.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "backstackVisible?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backstackVisible", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationEntry#bindingContext:member", + "docComment": "/**\n * An object to become the binding context of the page navigating to. Optional.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "bindingContext?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "bindingContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationEntry#clearHistory:member", + "docComment": "/**\n * True to clear the navigation history, false otherwise. Very useful when navigating away from login pages.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "clearHistory?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "clearHistory", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationEntry#context:member", + "docComment": "/**\n * An object passed to the onNavigatedTo callback of the Page. Typically this is used to pass some data among pages. Optional.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationEntry#transition:member", + "docComment": "/**\n * Specifies an optional navigation transition for all platforms. If not specified, the default platform transition will be used.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "transition?: " + }, + { + "kind": "Reference", + "text": "NavigationTransition", + "canonicalReference": "NativeScript!NavigationTransition:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "transition", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationEntry#transitionAndroid:member", + "docComment": "/**\n * Specifies an optional navigation transition for Android. If not specified, the default platform transition will be used.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "transitionAndroid?: " + }, + { + "kind": "Reference", + "text": "NavigationTransition", + "canonicalReference": "NativeScript!NavigationTransition:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "transitionAndroid", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationEntry#transitioniOS:member", + "docComment": "/**\n * Specifies an optional navigation transition for iOS. If not specified, the default platform transition will be used.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "transitioniOS?: " + }, + { + "kind": "Reference", + "text": "NavigationTransition", + "canonicalReference": "NativeScript!NavigationTransition:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "transitioniOS", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!NavigationTransition:interface", + "docComment": "/**\n * Represents an object specifying a page navigation transition.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface NavigationTransition " + } + ], + "releaseTag": "Public", + "name": "NavigationTransition", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationTransition#curve:member", + "docComment": "/**\n * An optional transition animation curve. Possible values are contained in the [AnimationCurve enumeration](https://docs.nativescript.org/api-reference/modules/_ui_enums_.animationcurve.html). Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "curve?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "curve", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationTransition#duration:member", + "docComment": "/**\n * The length of the transition in milliseconds. If you do not specify this, the default platform transition duration will be used.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "duration?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "duration", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationTransition#instance:member", + "docComment": "/**\n * An user-defined instance of the \"ui/transition\".Transition class.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "instance?: " + }, + { + "kind": "Reference", + "text": "Transition", + "canonicalReference": "NativeScript!Transition:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "instance", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!NavigationTransition#name:member", + "docComment": "/**\n * Can be one of the built-in transitions: - curl (same as curlUp) (iOS only) - curlUp (iOS only) - curlDown (iOS only) - explode (Android Lollipop(21) and up only) - fade - flip (same as flipRight) - flipRight - flipLeft - slide (same as slideLeft) - slideLeft - slideRight - slideTop - slideBottom\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "name?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Observable:class", + "docComment": "/**\n * Observable is used when you want to be notified when a change occurs. Use on/off methods to add/remove listener.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Observable " + } + ], + "releaseTag": "Public", + "name": "Observable", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#_createPropertyChangeData:member(1)", + "docComment": "/**\n * This method is intended to be overriden by inheritors to provide additional implementation. @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_createPropertyChangeData(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", oldValue?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "PropertyChangeData", + "canonicalReference": "NativeScript!PropertyChangeData:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "oldValue", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "_createPropertyChangeData" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#_emit:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_emit(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_emit" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Observable#_isViewBase:member", + "docComment": "/**\n * Filed to use instead of instanceof ViewBase. @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _isViewBase: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_isViewBase", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Constructor", + "canonicalReference": "NativeScript!Observable:constructor(1)", + "docComment": "/**\n * Please note that should you be using the `new Observable({})` constructor, it is **obsolete** since v3.0, and you have to migrate to the \"data/observable\" `fromObject({})` or the `fromObjectRecursive({})` functions.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor();" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [] + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#addEventListener:member(1)", + "docComment": "/**\n * Adds a listener for the specified event name.\n *\n * @param - eventNames Comma delimited names of the events to attach the listener to.\n *\n * @param - callback A function to be called when some of the specified event(s) is raised.\n *\n * @param - thisArg An optional parameter which when set will be used as \"this\" in callback method call.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addEventListener(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "addEventListener" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#get:member(1)", + "docComment": "/**\n * Gets the value of the specified property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "get(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "get" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#hasListeners:member(1)", + "docComment": "/**\n * Checks whether a listener is registered for the specified event name.\n *\n * @param - eventName The name of the event to check for.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "hasListeners(eventName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "hasListeners" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#notify:member(1)", + "docComment": "/**\n * Notifies all the registered listeners for the event provided in the data.eventName.\n *\n * @param - data The data associated with the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "notify(data: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "data", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "notify" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#notifyPropertyChange:member(1)", + "docComment": "/**\n * Notifies all the registered listeners for the property change event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "notifyPropertyChange(propertyName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", oldValue?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "propertyName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "oldValue", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "notifyPropertyChange" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#off:member(1)", + "docComment": "/**\n * Shortcut alias to the removeEventListener method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "off(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "off" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#on:member(2)", + "docComment": "/**\n * Raised when a propertyChange occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"propertyChange\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#once:member(1)", + "docComment": "/**\n * Adds one-time listener function for the event named `event`.\n *\n * @param - event Name of the event to attach to.\n *\n * @param - callback A function to be called when the specified event is raised.\n *\n * @param - thisArg An optional parameter which when set will be used as \"this\" in callback method call.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "once(event: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "once" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Observable.propertyChangeEvent:member", + "docComment": "/**\n * String value used when hooking to propertyChange event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static propertyChangeEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "propertyChangeEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#removeEventListener:member(1)", + "docComment": "/**\n * Removes listener(s) for the specified event name.\n *\n * @param - eventNames Comma delimited names of the events the specified listener is associated with.\n *\n * @param - callback An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed.\n *\n * @param - thisArg An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "removeEventListener(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "removeEventListener" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#set:member(1)", + "docComment": "/**\n * Updates the specified property with the provided value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "set(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "set" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Observable#setProperty:member(1)", + "docComment": "/**\n * Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setProperty(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setProperty" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ObservableArray:class", + "docComment": "/**\n * Advanced array like class used when you want to be notified when a change occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ObservableArray extends " + }, + { + "kind": "Reference", + "text": "Observable", + "canonicalReference": "NativeScript!Observable:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "ObservableArray", + "members": [ + { + "kind": "Constructor", + "canonicalReference": "NativeScript!ObservableArray:constructor(1)", + "docComment": "/**\n * Create ObservableArray with specified length.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(arrayLength?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "arrayLength", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Constructor", + "canonicalReference": "NativeScript!ObservableArray:constructor(2)", + "docComment": "/**\n * Create ObservableArray from source Array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(items: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "items", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Constructor", + "canonicalReference": "NativeScript!ObservableArray:constructor(3)", + "docComment": "/**\n * Create ObservableArray from T items.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(...items: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "items", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ObservableArray.changeEvent:member", + "docComment": "/**\n * String value used when hooking to change event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static changeEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "changeEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#concat:member(1)", + "docComment": "/**\n * Combines two or more arrays.\n *\n * @param - items Additional items to add to the end of array1.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "concat(...items: " + }, + { + "kind": "Content", + "text": "U[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "items", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeParameters": [ + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "concat" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#concat:member(2)", + "docComment": "/**\n * Combines two or more arrays.\n *\n * @param - items Additional items to add to the end of array1.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "concat(...items: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "items", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "concat" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#every:member(1)", + "docComment": "/**\n * Determines whether all the members of an array satisfy the specified test.\n *\n * @param - callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.\n *\n * @param - thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "every(callbackfn: " + }, + { + "kind": "Content", + "text": "(value: T, index: number, array: T[]) => boolean" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "every" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#filter:member(1)", + "docComment": "/**\n * Returns the elements of an array that meet the condition specified in a callback function.\n *\n * @param - callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n *\n * @param - thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "filter(callbackfn: " + }, + { + "kind": "Content", + "text": "(value: T, index: number, array: T[]) => boolean" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "filter" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#forEach:member(1)", + "docComment": "/**\n * Performs the specified action for each element in an array.\n *\n * @param - callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n *\n * @param - thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "forEach(callbackfn: " + }, + { + "kind": "Content", + "text": "(value: T, index: number, array: T[]) => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "forEach" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#getItem:member(1)", + "docComment": "/**\n * Returns item at specified index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getItem(index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getItem" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#indexOf:member(1)", + "docComment": "/**\n * Returns the index of the first occurrence of a value in an array.\n *\n * @param - searchElement The value to locate in the array.\n *\n * @param - fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(searchElement: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ", fromIndex?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "searchElement", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "fromIndex", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#join:member(1)", + "docComment": "/**\n * Adds all the elements of an array separated by the specified separator string.\n *\n * @param - separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "join(separator?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "separator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "join" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#lastIndexOf:member(1)", + "docComment": "/**\n * Returns the index of the last occurrence of a specified value in an array.\n *\n * @param - searchElement The value to locate in the array.\n *\n * @param - fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "lastIndexOf(searchElement: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ", fromIndex?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "searchElement", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "fromIndex", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "lastIndexOf" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ObservableArray#length:member", + "docComment": "/**\n * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "length: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "length", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#map:member(1)", + "docComment": "/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n *\n * @param - callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n *\n * @param - thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "map(callbackfn: " + }, + { + "kind": "Content", + "text": "(value: T, index: number, array: T[]) => U" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "U[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeParameters": [ + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "map" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#on:member(2)", + "docComment": "/**\n * Raised when a change occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"change\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "ChangedData", + "canonicalReference": "NativeScript!ChangedData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#pop:member(1)", + "docComment": "/**\n * Removes the last element from an array and returns it.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "pop(): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "pop" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#push:member(1)", + "docComment": "/**\n * Appends new elements to an array, and returns the new length of the array.\n *\n * @param - items New elements of the Array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "push(items: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "items", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "push" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#push:member(2)", + "docComment": "/**\n * Appends new elements to an array, and returns the new length of the array.\n *\n * @param - items New elements of the Array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "push(...items: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "items", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "push" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#reduce:member(1)", + "docComment": "/**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param - callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n *\n * @param - initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "reduce(callbackfn: " + }, + { + "kind": "Content", + "text": "(previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T" + }, + { + "kind": "Content", + "text": ", initialValue?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "initialValue", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "reduce" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#reduce:member(2)", + "docComment": "/**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param - callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n *\n * @param - initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "reduce(callbackfn: " + }, + { + "kind": "Content", + "text": "(previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U" + }, + { + "kind": "Content", + "text": ", initialValue: " + }, + { + "kind": "Content", + "text": "U" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "U" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "initialValue", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeParameters": [ + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "reduce" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#reduceRight:member(1)", + "docComment": "/**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param - callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n *\n * @param - initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "reduceRight(callbackfn: " + }, + { + "kind": "Content", + "text": "(previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T" + }, + { + "kind": "Content", + "text": ", initialValue?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "initialValue", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "reduceRight" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#reduceRight:member(2)", + "docComment": "/**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param - callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n *\n * @param - initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "reduceRight(callbackfn: " + }, + { + "kind": "Content", + "text": "(previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U" + }, + { + "kind": "Content", + "text": ", initialValue: " + }, + { + "kind": "Content", + "text": "U" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "U" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "initialValue", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeParameters": [ + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "reduceRight" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#reverse:member(1)", + "docComment": "/**\n * Reverses the elements in an Array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "reverse(): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "reverse" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#setItem:member(1)", + "docComment": "/**\n * Sets item at specified index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setItem(index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setItem" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#shift:member(1)", + "docComment": "/**\n * Removes the first element from an array and returns it.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "shift(): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "shift" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#slice:member(1)", + "docComment": "/**\n * Returns a section of an array.\n *\n * @param - start The beginning of the specified portion of the array.\n *\n * @param - end The end of the specified portion of the array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "slice(start?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", end?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "start", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "end", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "slice" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#some:member(1)", + "docComment": "/**\n * Determines whether the specified callback function returns true for any element of an array.\n *\n * @param - callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.\n *\n * @param - thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "some(callbackfn: " + }, + { + "kind": "Content", + "text": "(value: T, index: number, array: T[]) => boolean" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callbackfn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "some" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#sort:member(1)", + "docComment": "/**\n * Sorts an array.\n *\n * @param - compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "sort(compareFn?: " + }, + { + "kind": "Content", + "text": "(a: T, b: T) => number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "compareFn", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "sort" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#splice:member(1)", + "docComment": "/**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n *\n * @param - start The zero-based location in the array from which to start removing elements.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "splice(start: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "start", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "splice" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#splice:member(2)", + "docComment": "/**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n *\n * @param - start The zero-based location in the array from which to start removing elements.\n *\n * @param - deleteCount The number of elements to remove.\n *\n * @param - items Elements to insert into the array in place of the deleted elements.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "splice(start: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", deleteCount: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", ...items: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "start", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "deleteCount", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "items", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "splice" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#toLocaleString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toLocaleString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "toLocaleString" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#toString:member(1)", + "docComment": "/**\n * Returns a string representation of an array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "toString" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ObservableArray#unshift:member(1)", + "docComment": "/**\n * Inserts new elements at the start of an array.\n *\n * @param - items Elements to insert at the start of the Array.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "unshift(...items: " + }, + { + "kind": "Content", + "text": "T[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "items", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "unshift" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!OrientationChangedEventData:interface", + "docComment": "/**\n * Event data containing information for orientation changed event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface OrientationChangedEventData extends " + }, + { + "kind": "Reference", + "text": "ApplicationEventData", + "canonicalReference": "NativeScript!ApplicationEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "OrientationChangedEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!OrientationChangedEventData#newValue:member", + "docComment": "/**\n * New orientation value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "newValue: " + }, + { + "kind": "Content", + "text": "\"portrait\" | \"landscape\" | \"unknown\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "newValue", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Page:class", + "docComment": "/**\n * Represents a logical unit for navigation (inside Frame).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Page extends " + }, + { + "kind": "Reference", + "text": "ContentView", + "canonicalReference": "NativeScript!ContentView:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Page", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#_frame:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_frame: " + }, + { + "kind": "Reference", + "text": "Frame", + "canonicalReference": "NativeScript!Frame:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_frame", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#actionBar:member", + "docComment": "/**\n * Gets the ActionBar for this page.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public actionBar: " + }, + { + "kind": "Reference", + "text": "ActionBar", + "canonicalReference": "NativeScript!ActionBar:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "actionBar", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#actionBarHidden:member", + "docComment": "/**\n * Used to hide the Navigation Bar in iOS and the Action Bar in Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public actionBarHidden: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "actionBarHidden", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#androidStatusBarBackground:member", + "docComment": "/**\n * Gets or sets the color of the status bar in Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public androidStatusBarBackground: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidStatusBarBackground", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#backgroundSpanUnderStatusBar:member", + "docComment": "/**\n * Gets or sets whether page background spans under status bar.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundSpanUnderStatusBar: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundSpanUnderStatusBar", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#enableSwipeBackNavigation:member", + "docComment": "/**\n * Used to control if swipe back navigation in iOS is enabled. This property is iOS specific. Default value: true\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public enableSwipeBackNavigation: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "enableSwipeBackNavigation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#frame:member", + "docComment": "/**\n * Gets the Frame object controlling this instance.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public frame: " + }, + { + "kind": "Reference", + "text": "Frame", + "canonicalReference": "NativeScript!Frame:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "frame", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#getKeyframeAnimationWithName:member(1)", + "docComment": "/**\n * Returns a CSS keyframe animation with the specified name, if it exists.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getKeyframeAnimationWithName(animationName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "KeyframeAnimationInfo", + "canonicalReference": "NativeScript!KeyframeAnimationInfo:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "animationName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getKeyframeAnimationWithName" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#hasActionBar:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "hasActionBar: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "hasActionBar", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page.navigatedFromEvent:member", + "docComment": "/**\n * String value used when hooking to navigatedFrom event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static navigatedFromEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navigatedFromEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page.navigatedToEvent:member", + "docComment": "/**\n * String value used when hooking to navigatedTo event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static navigatedToEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navigatedToEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page.navigatingFromEvent:member", + "docComment": "/**\n * String value used when hooking to navigatingFrom event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static navigatingFromEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navigatingFromEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page.navigatingToEvent:member", + "docComment": "/**\n * String value used when hooking to navigatingTo event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static navigatingToEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navigatingToEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#navigationContext:member", + "docComment": "/**\n * A property that is used to pass a data from another page (while navigate to).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public navigationContext: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "navigationContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#on:member(2)", + "docComment": "/**\n * Raised when navigation to the page has started.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public on(event: " + }, + { + "kind": "Content", + "text": "\"navigatingTo\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "NavigatedData", + "canonicalReference": "NativeScript!NavigatedData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#on:member(3)", + "docComment": "/**\n * Raised when navigation to the page has finished.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public on(event: " + }, + { + "kind": "Content", + "text": "\"navigatedTo\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "NavigatedData", + "canonicalReference": "NativeScript!NavigatedData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#on:member(4)", + "docComment": "/**\n * Raised when navigation from the page has started.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public on(event: " + }, + { + "kind": "Content", + "text": "\"navigatingFrom\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "NavigatedData", + "canonicalReference": "NativeScript!NavigatedData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 4, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#on:member(5)", + "docComment": "/**\n * Raised when navigation from the page has finished.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public on(event: " + }, + { + "kind": "Content", + "text": "\"navigatedFrom\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "NavigatedData", + "canonicalReference": "NativeScript!NavigatedData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 5, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#onNavigatedFrom:member(1)", + "docComment": "/**\n * A method called after navigated from the page. @private\n *\n * @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onNavigatedFrom(isBackNavigation: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "isBackNavigation", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "onNavigatedFrom" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#onNavigatedTo:member(1)", + "docComment": "/**\n * A method called after navigated to the page. @private\n *\n * @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onNavigatedTo(isBackNavigation: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "isBackNavigation", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "onNavigatedTo" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#onNavigatingFrom:member(1)", + "docComment": "/**\n * A method called before navigating from the page. @private\n *\n * @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onNavigatingFrom(isBackNavigation: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "isBackNavigation", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "onNavigatingFrom" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Page#onNavigatingTo:member(1)", + "docComment": "/**\n * A method called before navigating to the page. @private\n *\n * @param context - The data passed to the page through the NavigationEntry.context property.\n *\n * @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.\n *\n * @param bindingContext - An object to become the binding context of the page navigating to. Optional.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onNavigatingTo(context: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", isBackNavigation: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ", bindingContext?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "isBackNavigation", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "bindingContext", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "onNavigatingTo" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Page#statusBarStyle:member", + "docComment": "/**\n * Gets or sets the style of the status bar.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public statusBarStyle: " + }, + { + "kind": "Content", + "text": "\"light\" | \"dark\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "statusBarStyle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!PanGestureEventData:interface", + "docComment": "/**\n * Provides gesture event data for pan gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface PanGestureEventData extends " + }, + { + "kind": "Reference", + "text": "GestureEventDataWithState", + "canonicalReference": "NativeScript!GestureEventDataWithState:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "PanGestureEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!PanGestureEventData#deltaX:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "deltaX: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "deltaX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!PanGestureEventData#deltaY:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "deltaY: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "deltaY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ParserEvent:interface", + "docComment": "/**\n * Provides information for a parser event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ParserEvent " + } + ], + "releaseTag": "Public", + "name": "ParserEvent", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ParserEvent#attributes:member", + "docComment": "/**\n * Returns a JSON object with the attributes of an element in case the eventType is ParserEventType.StartElement.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "attributes?: " + }, + { + "kind": "Reference", + "text": "Object", + "canonicalReference": "!Object:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "attributes", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ParserEvent#data:member", + "docComment": "/**\n * Returns the relevant data in case the eventType is ParserEventType.Text, ParserEventType.CDATA or ParserEventType.Comment.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "data?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "data", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ParserEvent#elementName:member", + "docComment": "/**\n * Returns the name of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "elementName?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "elementName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ParserEvent#eventType:member", + "docComment": "/**\n * Returns the type of the parser event. This is one of the ParserEventType static members.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "eventType: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "eventType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ParserEvent#namespace:member", + "docComment": "/**\n * If namespace processing is enabled, returns the namespace of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "namespace?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "namespace", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ParserEvent#position:member", + "docComment": "/**\n * Get the position in the xml string where the event was generated.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "position: " + }, + { + "kind": "Reference", + "text": "Position", + "canonicalReference": "NativeScript!Position:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "position", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ParserEvent#prefix:member", + "docComment": "/**\n * If namespace processing is enabled, returns the prefix of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "prefix?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "prefix", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!ParserEvent#toString:member(1)", + "docComment": "/**\n * Returns a JSON string representation of this instance.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "toString" + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ParserEventType:class", + "docComment": "/**\n * Specifies the type of parser event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ParserEventType " + } + ], + "releaseTag": "Public", + "name": "ParserEventType", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!ParserEventType.CDATA:member", + "docComment": "/**\n * Specifies the CDATA event type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static CDATA: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "CDATA", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ParserEventType.Comment:member", + "docComment": "/**\n * Specifies the Comment event type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Comment: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "Comment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ParserEventType.EndElement:member", + "docComment": "/**\n * Specifies the EndElement event type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static EndElement: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "EndElement", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ParserEventType.StartElement:member", + "docComment": "/**\n * Specifies the StartElement event type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static StartElement: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "StartElement", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ParserEventType.Text:member", + "docComment": "/**\n * Specifies the Text event type.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static Text: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "Text", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Namespace", + "canonicalReference": "NativeScript!path:namespace", + "docComment": "/**\n * Enables path-specific operations like join, extension, etc.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export module path " + } + ], + "releaseTag": "Public", + "name": "path", + "members": [ + { + "kind": "Function", + "canonicalReference": "NativeScript!path.join:function(1)", + "docComment": "/**\n * Joins all the provided string components, forming a valid and normalized path.\n *\n * @param - paths An array of string components to be joined.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function join(...paths: " + }, + { + "kind": "Content", + "text": "string[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "paths", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "join" + }, + { + "kind": "Function", + "canonicalReference": "NativeScript!path.normalize:function(1)", + "docComment": "/**\n * Normalizes a path, taking care of occurrances like \"..\" and \"//\".\n *\n * @param - path The path to be normalized.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export function normalize(path: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "path", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "normalize" + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!path.separator:var", + "docComment": "/**\n * Gets the string used to separate file paths.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "separator: " + }, + { + "kind": "Content", + "text": "string" + } + ], + "releaseTag": "Public", + "name": "separator", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!PinchGestureEventData:interface", + "docComment": "/**\n * Provides gesture event data for pinch gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface PinchGestureEventData extends " + }, + { + "kind": "Reference", + "text": "GestureEventDataWithState", + "canonicalReference": "NativeScript!GestureEventDataWithState:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "PinchGestureEventData", + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!PinchGestureEventData#getFocusX:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getFocusX(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getFocusX" + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!PinchGestureEventData#getFocusY:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getFocusY(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getFocusY" + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!PinchGestureEventData#scale:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "scale: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scale", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Placeholder:class", + "docComment": "/**\n * Represents a Placeholder, which is used to add a native view to the visual tree.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Placeholder extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Placeholder", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Placeholder.creatingViewEvent:member", + "docComment": "/**\n * String value used when hooking to creatingView event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static creatingViewEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "creatingViewEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Placeholder#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Placeholder#on:member(2)", + "docComment": "/**\n * Raised when a creatingView event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"creatingView\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "CreateViewEventData", + "canonicalReference": "NativeScript!CreateViewEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + } + ], + "name": "on" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!Profiling:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Profiling: " + }, + { + "kind": "Content", + "text": "{\n enable: typeof " + }, + { + "kind": "Reference", + "text": "profilingEnable", + "canonicalReference": "NativeScript!enable:function" + }, + { + "kind": "Content", + "text": ";\n disable: typeof " + }, + { + "kind": "Reference", + "text": "profilingDisable", + "canonicalReference": "NativeScript!disable:function" + }, + { + "kind": "Content", + "text": ";\n time: typeof " + }, + { + "kind": "Reference", + "text": "time", + "canonicalReference": "NativeScript!time:function" + }, + { + "kind": "Content", + "text": ";\n uptime: typeof " + }, + { + "kind": "Reference", + "text": "uptime", + "canonicalReference": "NativeScript!uptime:function" + }, + { + "kind": "Content", + "text": ";\n start: typeof " + }, + { + "kind": "Reference", + "text": "start", + "canonicalReference": "NativeScript!start:function" + }, + { + "kind": "Content", + "text": ";\n stop: typeof " + }, + { + "kind": "Reference", + "text": "stop", + "canonicalReference": "NativeScript!stop:function" + }, + { + "kind": "Content", + "text": ";\n isRunning: typeof " + }, + { + "kind": "Reference", + "text": "isRunning", + "canonicalReference": "NativeScript!isRunning:function" + }, + { + "kind": "Content", + "text": ";\n dumpProfiles: typeof " + }, + { + "kind": "Reference", + "text": "dumpProfiles", + "canonicalReference": "NativeScript!dumpProfiles:function" + }, + { + "kind": "Content", + "text": ";\n resetProfiles: typeof " + }, + { + "kind": "Reference", + "text": "resetProfiles", + "canonicalReference": "NativeScript!resetProfiles:function" + }, + { + "kind": "Content", + "text": ";\n profile: typeof " + }, + { + "kind": "Reference", + "text": "profile", + "canonicalReference": "NativeScript!profile:function" + }, + { + "kind": "Content", + "text": ";\n startCPUProfile: typeof " + }, + { + "kind": "Reference", + "text": "startCPUProfile", + "canonicalReference": "NativeScript!startCPUProfile:function" + }, + { + "kind": "Content", + "text": ";\n stopCPUProfile: typeof " + }, + { + "kind": "Reference", + "text": "stopCPUProfile", + "canonicalReference": "NativeScript!stopCPUProfile:function" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "releaseTag": "Public", + "name": "Profiling", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 26 + } + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Progress:class", + "docComment": "/**\n * Represents a progress component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Progress extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Progress", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Progress#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/ProgressBar.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.ProgressBar */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Progress#ios:member", + "docComment": "/**\n * Gets the native iOS [UIProgressView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIProgressView_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIProgressView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Progress#maxValue:member", + "docComment": "/**\n * Gets or sets a progress max value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "maxValue: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "maxValue", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Progress#value:member", + "docComment": "/**\n * Gets or sets a progress current value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!PropertyChangeData:interface", + "docComment": "/**\n * Data for the \"propertyChange\" event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface PropertyChangeData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "PropertyChangeData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!PropertyChangeData#oldValue:member", + "docComment": "/**\n * The previous value of the property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "oldValue?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "oldValue", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!PropertyChangeData#propertyName:member", + "docComment": "/**\n * The name of the property that has changed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "propertyName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "propertyName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!PropertyChangeData#value:member", + "docComment": "/**\n * The new value of the property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ProxyViewContainer:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ProxyViewContainer extends " + }, + { + "kind": "Reference", + "text": "LayoutBase", + "canonicalReference": "NativeScript!LayoutBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ProxyViewContainer", + "members": [], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Repeater:class", + "docComment": "/**\n * Represents a UI Repeater component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Repeater extends " + }, + { + "kind": "Reference", + "text": "CustomLayoutView", + "canonicalReference": "NativeScript!CustomLayoutView:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Repeater", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Repeater#items:member", + "docComment": "/**\n * Gets or set the items collection of the Repeater. The items property can be set to an array or an object defining length and getItem(index) method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Content", + "text": "any[] | " + }, + { + "kind": "Reference", + "text": "ItemsSource", + "canonicalReference": "NativeScript!ItemsSource:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Repeater#itemsLayout:member", + "docComment": "/**\n * Gets or set the items layout of the Repeater. Default value is StackLayout with orientation=\"vertical\".\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemsLayout: " + }, + { + "kind": "Reference", + "text": "LayoutBase", + "canonicalReference": "NativeScript!LayoutBase:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemsLayout", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Repeater#itemTemplate:member", + "docComment": "/**\n * Gets or set the item template of the Repeater.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemTemplate: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Template", + "canonicalReference": "NativeScript!Template:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemTemplate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Repeater#refresh:member(1)", + "docComment": "/**\n * Forces the Repeater to reload all its items.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "refresh();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "refresh" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!RotationGestureEventData:interface", + "docComment": "/**\n * Provides gesture event data for rotation gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface RotationGestureEventData extends " + }, + { + "kind": "Reference", + "text": "GestureEventDataWithState", + "canonicalReference": "NativeScript!GestureEventDataWithState:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "RotationGestureEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!RotationGestureEventData#rotation:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotation: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Namespace", + "canonicalReference": "NativeScript!Screen:namespace", + "docComment": "/**\n * An object describing general information about a display.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export module screen " + } + ], + "releaseTag": "Public", + "name": "Screen", + "members": [ + { + "kind": "Variable", + "canonicalReference": "NativeScript!Screen.mainScreen:var", + "docComment": "/**\n * Gets information about the main screen of the current device.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "mainScreen: " + }, + { + "kind": "Reference", + "text": "ScreenMetrics", + "canonicalReference": "NativeScript!ScreenMetrics:interface" + } + ], + "releaseTag": "Public", + "name": "mainScreen", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ScrollEventData:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ScrollEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ScrollEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ScrollEventData#scrollX:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollX: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scrollX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ScrollEventData#scrollY:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollY: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scrollY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ScrollView:class", + "docComment": "/**\n * Represents a scrollable area that can have content that is larger than its bounds.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class ScrollView extends " + }, + { + "kind": "Reference", + "text": "ContentView", + "canonicalReference": "NativeScript!ContentView:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ScrollView", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!ScrollView#_onOrientationChanged:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_onOrientationChanged();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_onOrientationChanged" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ScrollView#horizontalOffset:member", + "docComment": "/**\n * Gets a value that contains the horizontal offset of the scrolled content.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "horizontalOffset: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "horizontalOffset", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ScrollView#isScrollEnabled:member", + "docComment": "/**\n * Gets or sets a value indicating whether scroll is enabled.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isScrollEnabled: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isScrollEnabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ScrollView#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ScrollView#on:member(2)", + "docComment": "/**\n * Raised when a scroll event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"scroll\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "ScrollEventData", + "canonicalReference": "NativeScript!ScrollEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ScrollView#orientation:member", + "docComment": "/**\n * Gets or sets direction in which the content can be scrolled.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "orientation: " + }, + { + "kind": "Reference", + "text": "Orientation", + "canonicalReference": "NativeScript!Orientation:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "orientation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ScrollView#scrollableHeight:member", + "docComment": "/**\n * Gets the maximum value for the verticalOffset.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollableHeight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scrollableHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ScrollView#scrollableWidth:member", + "docComment": "/**\n * Gets the maximum value for the horizontalOffset.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollableWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scrollableWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ScrollView#scrollBarIndicatorVisible:member", + "docComment": "/**\n * Toggles scrollbar indicator visibility\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollBarIndicatorVisible: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scrollBarIndicatorVisible", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ScrollView.scrollEvent:member", + "docComment": "/**\n * String value used when hooking to scroll event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static scrollEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scrollEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ScrollView#scrollToHorizontalOffset:member(1)", + "docComment": "/**\n * Scrolls the content the specified horizontal offset position.\n *\n * @param - value The offset value\n *\n * @param - animated true for animated scroll, false for immediate scroll.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollToHorizontalOffset(value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", animated: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "animated", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "scrollToHorizontalOffset" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ScrollView#scrollToVerticalOffset:member(1)", + "docComment": "/**\n * Scrolls the content the specified vertical offset position.\n *\n * @param - value The offset value\n *\n * @param - animated true for animated scroll, false for immediate scroll.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scrollToVerticalOffset(value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", animated: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "animated", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "scrollToVerticalOffset" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ScrollView#verticalOffset:member", + "docComment": "/**\n * Gets a value that contains the vertical offset of the scrolled content.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "verticalOffset: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "verticalOffset", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!SearchBar:class", + "docComment": "/**\n * Represents a search bar component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class SearchBar extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "SearchBar", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!SearchBar#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/SearchView.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.SearchView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SearchBar.clearEvent:member", + "docComment": "/**\n * String value used when hooking to clear event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static clearEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "clearEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!SearchBar#dismissSoftInput:member(1)", + "docComment": "/**\n * Hides the soft input method, usually a soft keyboard.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "dismissSoftInput(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "dismissSoftInput" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SearchBar#hint:member", + "docComment": "/**\n * Gets or sets the text of the search bar text field hint/placeholder.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "hint: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "hint", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SearchBar#ios:member", + "docComment": "/**\n * Gets the native iOS [UISearchBar](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISearchBar_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UISearchBar */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!SearchBar#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!SearchBar#on:member(2)", + "docComment": "/**\n * Raised when a search bar search is submitted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"submit\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!SearchBar#on:member(3)", + "docComment": "/**\n * Raised when a search bar search is closed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"close\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SearchBar.submitEvent:member", + "docComment": "/**\n * String value used when hooking to submit event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static submitEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "submitEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SearchBar#text:member", + "docComment": "/**\n * Gets or sets a search bar text.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "text: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "text", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SearchBar#textFieldBackgroundColor:member", + "docComment": "/**\n * Gets or sets the TextField background color of the SearchBar component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textFieldBackgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textFieldBackgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SearchBar#textFieldHintColor:member", + "docComment": "/**\n * Gets or sets the TextField Hint color of the SearchBar component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textFieldHintColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textFieldHintColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!SegmentedBar:class", + "docComment": "/**\n * Represents a UI SegmentedBar component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class SegmentedBar extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + }, + { + "kind": "Content", + "text": "implements " + }, + { + "kind": "Reference", + "text": "AddChildFromBuilder", + "canonicalReference": "NativeScript!AddChildFromBuilder:interface" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "AddArrayFromBuilder", + "canonicalReference": "NativeScript!AddArrayFromBuilder:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "SegmentedBar", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!SegmentedBar#_addArrayFromBuilder:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _addArrayFromBuilder(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + } + } + ], + "name": "_addArrayFromBuilder" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!SegmentedBar#_addChildFromBuilder:member(1)", + "docComment": "/**\n * Called for every child element declared in xml.\n *\n * @param name - Name of the element.\n *\n * @param value - Value of the element.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _addChildFromBuilder(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_addChildFromBuilder" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SegmentedBar#items:member", + "docComment": "/**\n * Gets or sets the items of the SegmentedBar.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SegmentedBarItem", + "canonicalReference": "NativeScript!SegmentedBarItem:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!SegmentedBar#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!SegmentedBar#on:member(2)", + "docComment": "/**\n * Raised when the selected index changes.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"selectedIndexChanged\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "SelectedIndexChangedEventData", + "canonicalReference": "NativeScript!SelectedIndexChangedEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SegmentedBar#selectedBackgroundColor:member", + "docComment": "/**\n * Gets or sets the selected background color of the SegmentedBar component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedBackgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedBackgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SegmentedBar#selectedIndex:member", + "docComment": "/**\n * Gets or sets the selected index of the SegmentedBar component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!SegmentedBar.selectedIndexChangedEvent:member", + "docComment": "/**\n * String value used when hooking to the selectedIndexChanged event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static selectedIndexChangedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndexChangedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [ + { + "startIndex": 4, + "endIndex": 5 + }, + { + "startIndex": 6, + "endIndex": 8 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!SegmentedBarItem:class", + "docComment": "/**\n * Represents a SegmentedBar item.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class SegmentedBarItem extends " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "SegmentedBarItem", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!SegmentedBarItem#title:member", + "docComment": "/**\n * Gets or sets the title of the SegmentedBarItem.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public title: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "title", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!SelectedIndexChangedEventData:interface", + "docComment": "/**\n * Defines the data for the TabView.selectedIndexChanged event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface SelectedIndexChangedEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "SelectedIndexChangedEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!SelectedIndexChangedEventData#newIndex:member", + "docComment": "/**\n * The new selected index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "newIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "newIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!SelectedIndexChangedEventData#oldIndex:member", + "docComment": "/**\n * The old selected index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "oldIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "oldIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ShowModalOptions:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ShowModalOptions " + } + ], + "releaseTag": "Public", + "name": "ShowModalOptions", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShowModalOptions#android:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "android?: " + }, + { + "kind": "Content", + "text": "{\n cancelable?: boolean\n }" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShowModalOptions#animated:member", + "docComment": "/**\n * An optional parameter specifying whether to show the modal view with animation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "animated?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "animated", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShowModalOptions#cancelable:member", + "docComment": "/**\n * An optional parameter specifying whether the modal view can be dismissed when not in full-screen mode.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "cancelable?: " + }, + { + "kind": "Content", + "text": "boolean" + } + ], + "releaseTag": "Public", + "name": "cancelable", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShowModalOptions#closeCallback:member", + "docComment": "/**\n * A function that will be called when the view is closed. Any arguments provided when calling ShownModallyData.closeCallback will be available here.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "closeCallback: " + }, + { + "kind": "Reference", + "text": "Function", + "canonicalReference": "!Function:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "closeCallback", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShowModalOptions#context:member", + "docComment": "/**\n * Any context you want to pass to the modally shown view. This same context will be available in the arguments of the shownModally event handler.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShowModalOptions#fullscreen:member", + "docComment": "/**\n * An optional parameter specifying whether to show the modal view in full-screen mode.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fullscreen?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fullscreen", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShowModalOptions#ios:member", + "docComment": "/**\n * An optional parameter that specify options specific to iOS as an object.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios?: " + }, + { + "kind": "Content", + "text": "{\n presentationStyle?: any; /* UIModalPresentationStyle */\n width?: number;\n height?: number;\n }" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShowModalOptions#stretched:member", + "docComment": "/**\n * An optional parameter specifying whether to stretch the modal view when not in full-screen mode.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stretched?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "stretched", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ShownModallyData:interface", + "docComment": "/**\n * Defines the data for the shownModally event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ShownModallyData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ShownModallyData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShownModallyData#closeCallback:member", + "docComment": "/**\n * A callback to call when you want to close the modally shown view. Pass in any kind of arguments and you will receive when the callback parameter of View.showModal is executed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "closeCallback?: " + }, + { + "kind": "Reference", + "text": "Function", + "canonicalReference": "!Function:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "closeCallback", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ShownModallyData#context:member", + "docComment": "/**\n * The context (optional, may be undefined) passed to the view when shown modally.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "context?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Slider:class", + "docComment": "/**\n * Represents a slider component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Slider extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Slider", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Slider#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/SeekBar.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.SeekBar */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Slider#ios:member", + "docComment": "/**\n * Gets the native iOS [UISlider](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISlider_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UISlider */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Slider#maxValue:member", + "docComment": "/**\n * Gets or sets a slider max value. The default value is 100.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "maxValue: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "maxValue", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Slider#minValue:member", + "docComment": "/**\n * Gets or sets a slider min value. The default value is 0.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "minValue: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minValue", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Slider#value:member", + "docComment": "/**\n * Gets or sets a slider current value. The default value is 0.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Span:class", + "docComment": "/**\n * A class used to create a single part of formatted string with a common text properties.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Span extends " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Span", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!Span#_setTextInternal:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setTextInternal(value: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_setTextInternal" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#backgroundColor:member", + "docComment": "/**\n * Gets or sets the font background color of the span.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#color:member", + "docComment": "/**\n * Gets or sets the font foreground color of the span.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public color: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "color", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#fontFamily:member", + "docComment": "/**\n * Gets or sets the font family of the span.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontFamily: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontFamily", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#fontSize:member", + "docComment": "/**\n * Gets or sets the font size of the span.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#fontStyle:member", + "docComment": "/**\n * Gets or sets the font style of the span.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontStyle: " + }, + { + "kind": "Reference", + "text": "FontStyle", + "canonicalReference": "NativeScript!FontStyle:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontStyle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#fontWeight:member", + "docComment": "/**\n * Gets or sets the font weight of the span.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontWeight: " + }, + { + "kind": "Reference", + "text": "FontWeight", + "canonicalReference": "NativeScript!FontWeight:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontWeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span.linkTapEvent:member", + "docComment": "/**\n * String value used when hooking to linkTap event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static linkTapEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "linkTapEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#tappable:member", + "docComment": "/**\n * Gets if the span is tappable or not.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public readonly tappable: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tappable", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#text:member", + "docComment": "/**\n * Gets or sets the text for the span.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public text: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "text", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Span#textDecoration:member", + "docComment": "/**\n * Gets or sets text decorations for the span.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public textDecoration: " + }, + { + "kind": "Reference", + "text": "TextDecoration", + "canonicalReference": "NativeScript!TextDecoration:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textDecoration", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!StackLayout:class", + "docComment": "/**\n * A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class StackLayout extends " + }, + { + "kind": "Reference", + "text": "LayoutBase", + "canonicalReference": "NativeScript!LayoutBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "StackLayout", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!StackLayout#orientation:member", + "docComment": "/**\n * Gets or sets if layout should be horizontal or vertical. The default value is vertical.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "orientation: " + }, + { + "kind": "Reference", + "text": "Orientation", + "canonicalReference": "NativeScript!Orientation:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "orientation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Style:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Style extends " + }, + { + "kind": "Reference", + "text": "Observable", + "canonicalReference": "NativeScript!Observable:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Style", + "members": [ + { + "kind": "Constructor", + "canonicalReference": "NativeScript!Style:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Style` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(ownerView: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "WeakRef", + "canonicalReference": "!WeakRef:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "ownerView", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + } + ] + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#alignContent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public alignContent: " + }, + { + "kind": "Reference", + "text": "AlignContent", + "canonicalReference": "NativeScript!AlignContent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "alignContent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#alignItems:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public alignItems: " + }, + { + "kind": "Reference", + "text": "AlignItems", + "canonicalReference": "NativeScript!AlignItems:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "alignItems", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#alignSelf:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public alignSelf: " + }, + { + "kind": "Reference", + "text": "AlignSelf", + "canonicalReference": "NativeScript!AlignSelf:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "alignSelf", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#androidContentInset:member", + "docComment": "/**\n * Gets or sets the content inset for the android actionbar. The content inset affects the valid area for ActionBar content; insets can be used to effectively align ActionBar content along well-known gridlines.\n *\n * This property is effective on Android API level 21 or later.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public androidContentInset: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidContentInset", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#androidContentInsetLeft:member", + "docComment": "/**\n * Gets or sets the left content inset for the android actionbar. The content inset affects the valid area for ActionBar content; insets can be used to effectively align ActionBar content along well-known gridlines.\n *\n * This property is effective on Android API level 21 or later.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public androidContentInsetLeft: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidContentInsetLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#androidContentInsetRight:member", + "docComment": "/**\n * Gets or sets the right content inset for the android actionbar. The content inset affects the valid area for ActionBar content; insets can be used to effectively align ActionBar content along well-known gridlines.\n *\n * This property is effective on Android API level 21 or later.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public androidContentInsetRight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidContentInsetRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#androidDynamicElevationOffset:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public androidDynamicElevationOffset: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidDynamicElevationOffset", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#androidElevation:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public androidElevation: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidElevation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#androidSelectedTabHighlightColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public androidSelectedTabHighlightColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidSelectedTabHighlightColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#androidStatusBarBackground:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public androidStatusBarBackground: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidStatusBarBackground", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#background:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public background: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "background", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#backgroundColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#backgroundImage:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundImage: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "LinearGradient", + "canonicalReference": "NativeScript!LinearGradient:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundImage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#backgroundInternal:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundInternal: " + }, + { + "kind": "Reference", + "text": "Background", + "canonicalReference": "NativeScript!Background:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundInternal", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#backgroundPosition:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundPosition: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundPosition", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#backgroundRepeat:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundRepeat: " + }, + { + "kind": "Reference", + "text": "BackgroundRepeat", + "canonicalReference": "NativeScript!BackgroundRepeat:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundRepeat", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#backgroundSize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public backgroundSize: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderBottomColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderBottomColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderBottomColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderBottomLeftRadius:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderBottomLeftRadius: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderBottomLeftRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderBottomRightRadius:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderBottomRightRadius: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderBottomRightRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderBottomWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderBottomWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderBottomWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderColor: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderLeftColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderLeftColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderLeftColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderLeftWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderLeftWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderLeftWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderRadius:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderRadius: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderRightColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderRightColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderRightColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderRightWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderRightWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderRightWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderTopColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderTopColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderTopColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderTopLeftRadius:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderTopLeftRadius: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderTopLeftRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderTopRightRadius:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderTopRightRadius: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderTopRightRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderTopWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderTopWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderTopWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#borderWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public borderWidth: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#clipPath:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public clipPath: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "clipPath", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#color:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public color: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "color", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#flexDirection:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public flexDirection: " + }, + { + "kind": "Reference", + "text": "FlexDirection", + "canonicalReference": "NativeScript!FlexDirection:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexDirection", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#flexGrow:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public flexGrow: " + }, + { + "kind": "Reference", + "text": "FlexGrow", + "canonicalReference": "NativeScript!FlexGrow:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexGrow", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#flexShrink:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public flexShrink: " + }, + { + "kind": "Reference", + "text": "FlexShrink", + "canonicalReference": "NativeScript!FlexShrink:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexShrink", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#flexWrap:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public flexWrap: " + }, + { + "kind": "Reference", + "text": "FlexWrap", + "canonicalReference": "NativeScript!FlexWrap:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexWrap", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#flexWrapBefore:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public flexWrapBefore: " + }, + { + "kind": "Reference", + "text": "FlexWrapBefore", + "canonicalReference": "NativeScript!FlexWrapBefore:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexWrapBefore", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#font:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public font: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "font", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#fontFamily:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontFamily: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontFamily", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#fontInternal:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontInternal: " + }, + { + "kind": "Reference", + "text": "Font", + "canonicalReference": "NativeScript!Font:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontInternal", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#fontSize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#fontStyle:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontStyle: " + }, + { + "kind": "Reference", + "text": "FontStyle", + "canonicalReference": "NativeScript!FontStyle:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontStyle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#fontWeight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public fontWeight: " + }, + { + "kind": "Reference", + "text": "FontWeight", + "canonicalReference": "NativeScript!FontWeight:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontWeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Style#getCssVariable:member(1)", + "docComment": "/**\n * Get value of the css-variable. If the value is not set on this style-object, try the parent view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getCssVariable(varName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "varName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getCssVariable" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#height:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public height: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "height", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#horizontalAlignment:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public horizontalAlignment: " + }, + { + "kind": "Reference", + "text": "HorizontalAlignment", + "canonicalReference": "NativeScript!HorizontalAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "horizontalAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#justifyContent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public justifyContent: " + }, + { + "kind": "Reference", + "text": "JustifyContent", + "canonicalReference": "NativeScript!JustifyContent:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "justifyContent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#letterSpacing:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public letterSpacing: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "letterSpacing", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#lineHeight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public lineHeight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "lineHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#margin:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public margin: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "margin", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#marginBottom:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public marginBottom: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "marginBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#marginLeft:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public marginLeft: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "marginLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#marginRight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public marginRight: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "marginRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#marginTop:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public marginTop: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "marginTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#minHeight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public minHeight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#minWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public minWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#opacity:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public opacity: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "opacity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#order:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public order: " + }, + { + "kind": "Reference", + "text": "Order", + "canonicalReference": "NativeScript!Order:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "order", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#padding:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public padding: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "padding", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#paddingBottom:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public paddingBottom: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#paddingLeft:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public paddingLeft: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#paddingRight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public paddingRight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#paddingTop:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public paddingTop: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#perspective:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public perspective: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "perspective", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#placeholderColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public placeholderColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "placeholderColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#PropertyBag:member", + "docComment": "/**\n * The property bag is a simple class that is paired with the Style class. Setting regular css properties on the PropertyBag should simply preserve their values. Setting shorthand css properties on the PropertyBag should decompose the provided value, and set each of the shorthand composite properties. The shorthand properties are defined as non-enumerable so it should be safe to for-in the keys that are set in the bag.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public readonly PropertyBag: " + }, + { + "kind": "Reference", + "text": "PropertyBagClass", + "canonicalReference": "NativeScript!PropertyBagClass:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "PropertyBag", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Style#resetScopedCssVariables:member(1)", + "docComment": "/**\n * Remove all scoped css-variables\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public resetScopedCssVariables(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "resetScopedCssVariables" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Style#resetUnscopedCssVariables:member(1)", + "docComment": "/**\n * Remove all unscoped css-variables\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public resetUnscopedCssVariables(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "resetUnscopedCssVariables" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#rotate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public rotate: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#rotateX:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public rotateX: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotateX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#rotateY:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public rotateY: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotateY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#scaleX:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public scaleX: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scaleX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#scaleY:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public scaleY: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scaleY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#selectedBackgroundColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public selectedBackgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedBackgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#selectedTabTextColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public selectedTabTextColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedTabTextColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#separatorColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public separatorColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "separatorColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Style#setScopedCssVariable:member(1)", + "docComment": "/**\n * Set a scoped css-value. These are css-variables set from CssState\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public setScopedCssVariable(varName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "varName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setScopedCssVariable" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Style#setUnscopedCssVariable:member(1)", + "docComment": "/**\n * Set a unscoped css-value. These are css-variables set on view.style\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public setUnscopedCssVariable(varName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "varName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setUnscopedCssVariable" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#statusBarStyle:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public statusBarStyle: " + }, + { + "kind": "Content", + "text": "\"light\" | \"dark\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "statusBarStyle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#tabBackgroundColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public tabBackgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabBackgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#tabTextColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public tabTextColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabTextColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#tabTextFontSize:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public tabTextFontSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabTextFontSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#textAlignment:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public textAlignment: " + }, + { + "kind": "Reference", + "text": "TextAlignment", + "canonicalReference": "NativeScript!TextAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#textDecoration:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public textDecoration: " + }, + { + "kind": "Reference", + "text": "TextDecoration", + "canonicalReference": "NativeScript!TextDecoration:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textDecoration", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#textTransform:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public textTransform: " + }, + { + "kind": "Reference", + "text": "TextTransform", + "canonicalReference": "NativeScript!TextTransform:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textTransform", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#tintColor:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public tintColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tintColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#translateX:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public translateX: " + }, + { + "kind": "Reference", + "text": "dip", + "canonicalReference": "NativeScript!dip:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "translateX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#translateY:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public translateY: " + }, + { + "kind": "Reference", + "text": "dip", + "canonicalReference": "NativeScript!dip:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "translateY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#verticalAlignment:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public verticalAlignment: " + }, + { + "kind": "Reference", + "text": "VerticalAlignment", + "canonicalReference": "NativeScript!VerticalAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "verticalAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#view:member", + "docComment": "/**\n * @deprecated\n *\n * use `viewRef` instead.\n *\n * The `ViewBase` object associated with the Style!\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "view", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#viewRef:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public viewRef: " + }, + { + "kind": "Reference", + "text": "WeakRef", + "canonicalReference": "!WeakRef:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "viewRef", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#visibility:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public visibility: " + }, + { + "kind": "Reference", + "text": "Visibility", + "canonicalReference": "NativeScript!Visibility:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "visibility", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#whiteSpace:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public whiteSpace: " + }, + { + "kind": "Reference", + "text": "WhiteSpace", + "canonicalReference": "NativeScript!WhiteSpace:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "whiteSpace", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#width:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public width: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "width", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Style#zIndex:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public zIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "zIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Enum", + "canonicalReference": "NativeScript!SwipeDirection:enum", + "docComment": "/**\n * Defines an enum for swipe gesture direction.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export enum SwipeDirection " + } + ], + "releaseTag": "Public", + "name": "SwipeDirection", + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!SwipeDirection.down:member", + "docComment": "/**\n * Denotes down direction for swipe gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "down" + } + ], + "releaseTag": "Public", + "name": "down", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!SwipeDirection.left:member", + "docComment": "/**\n * Denotes left direction for swipe gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "left" + } + ], + "releaseTag": "Public", + "name": "left", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!SwipeDirection.right:member", + "docComment": "/**\n * Denotes right direction for swipe gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "right" + } + ], + "releaseTag": "Public", + "name": "right", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "kind": "EnumMember", + "canonicalReference": "NativeScript!SwipeDirection.up:member", + "docComment": "/**\n * Denotes up direction for swipe gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "up" + } + ], + "releaseTag": "Public", + "name": "up", + "initializerTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!SwipeGestureEventData:interface", + "docComment": "/**\n * Provides gesture event data for swipe gesture.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface SwipeGestureEventData extends " + }, + { + "kind": "Reference", + "text": "GestureEventData", + "canonicalReference": "NativeScript!GestureEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "SwipeGestureEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!SwipeGestureEventData#direction:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "direction: " + }, + { + "kind": "Reference", + "text": "SwipeDirection", + "canonicalReference": "NativeScript!SwipeDirection:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "direction", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Switch:class", + "docComment": "/**\n * Represents a switch component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Switch extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Switch", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Switch#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/Switch.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.Switch */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Switch#checked:member", + "docComment": "/**\n * Gets or sets if a switch is checked or not.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "checked: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "checked", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Switch.checkedChangeEvent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static checkedChangeEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "checkedChangeEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Switch#ios:member", + "docComment": "/**\n * Gets the native iOS [UISwitch](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISwitch_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UISwitch */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Switch#offBackgroundColor:member", + "docComment": "/**\n * Gets or sets the background color of the Switch when it is turned off.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "offBackgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "offBackgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TabContentItem:class", + "docComment": "/**\n * Represents a tab navigation content entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TabContentItem extends " + }, + { + "kind": "Reference", + "text": "ContentView", + "canonicalReference": "NativeScript!ContentView:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TabContentItem", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TabContentItem#canBeLoaded:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "canBeLoaded?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "canBeLoaded", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TabNavigationBase:class", + "docComment": "/**\n * Serves as a base class for tab navigation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TabNavigationBase extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TabNavigationBase", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TabNavigationBase#android:member", + "docComment": "/**\n * Gets the native android widget that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.view.View */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarBackgroundArgbColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarBackgroundArgbColor(): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getTabBarBackgroundArgbColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarBackgroundColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarBackgroundColor(): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getTabBarBackgroundColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarColor(): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getTabBarColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarFontInternal:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarFontInternal(): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getTabBarFontInternal" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarHighlightColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarHighlightColor(): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getTabBarHighlightColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarItemBackgroundColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarItemBackgroundColor(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getTabBarItemBackgroundColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarItemColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarItemColor(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getTabBarItemColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarItemFontInternal:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarItemFontInternal(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getTabBarItemFontInternal" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarItemFontSize:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarItemFontSize(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getTabBarItemFontSize" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarItemTextTransform:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarItemTextTransform(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getTabBarItemTextTransform" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarSelectedItemColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarSelectedItemColor(): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getTabBarSelectedItemColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarTextTransform:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarTextTransform(): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getTabBarTextTransform" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#getTabBarUnSelectedItemColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getTabBarUnSelectedItemColor(): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getTabBarUnSelectedItemColor" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabNavigationBase#ios:member", + "docComment": "/**\n * Gets the native iOS widget that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITabBarController */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabNavigationBase#items:member", + "docComment": "/**\n * Gets or sets the items of the tab navigation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TabContentItem", + "canonicalReference": "NativeScript!TabContentItem:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#on:member(2)", + "docComment": "/**\n * Raised when the selected index changes.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"selectedIndexChanged\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "SelectedIndexChangedEventData", + "canonicalReference": "NativeScript!SelectedIndexChangedEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#onItemsChanged:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onItemsChanged(oldItems: " + }, + { + "kind": "Reference", + "text": "TabContentItem", + "canonicalReference": "NativeScript!TabContentItem:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ", newItems: " + }, + { + "kind": "Reference", + "text": "TabContentItem", + "canonicalReference": "NativeScript!TabContentItem:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "oldItems", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "parameterName": "newItems", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + } + } + ], + "name": "onItemsChanged" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#onSelectedIndexChanged:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onSelectedIndexChanged(oldIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", newIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "oldIndex", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "newIndex", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "onSelectedIndexChanged" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabNavigationBase#selectedIndex:member", + "docComment": "/**\n * Gets or sets the selectedIndex of the tab navigation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabNavigationBase.selectedIndexChangedEvent:member", + "docComment": "/**\n * String value used when hooking to the selectedIndexChanged event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static selectedIndexChangedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndexChangedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarBackgroundColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarBackgroundColor(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setTabBarBackgroundColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarColor(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setTabBarColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarFontInternal:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarFontInternal(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setTabBarFontInternal" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarHighlightColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarHighlightColor(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ")" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setTabBarHighlightColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarIconColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarIconColor(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTabBarIconColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarIconSource:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarIconSource(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTabBarIconSource" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarItemBackgroundColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarItemBackgroundColor(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTabBarItemBackgroundColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarItemColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarItemColor(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTabBarItemColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarItemFontInternal:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarItemFontInternal(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTabBarItemFontInternal" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarItemFontSize:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarItemFontSize(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTabBarItemFontSize" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarItemTextTransform:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarItemTextTransform(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTabBarItemTextTransform" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarItemTitle:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarItemTitle(tabStripItem: " + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tabStripItem", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setTabBarItemTitle" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarSelectedItemColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarSelectedItemColor(value: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ")" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setTabBarSelectedItemColor" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarTextTransform:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarTextTransform(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setTabBarTextTransform" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabNavigationBase#setTabBarUnSelectedItemColor:member(1)", + "docComment": "/**\n * @private Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setTabBarUnSelectedItemColor(value: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ")" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setTabBarUnSelectedItemColor" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabNavigationBase#tabStrip:member", + "docComment": "/**\n * Gets or sets the tab strip of the tab navigation.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tabStrip: " + }, + { + "kind": "Reference", + "text": "TabStrip", + "canonicalReference": "NativeScript!TabStrip:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabStrip", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Tabs:class", + "docComment": "/**\n * Represents a swipeable tabs view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Tabs extends " + }, + { + "kind": "Reference", + "text": "TabNavigationBase", + "canonicalReference": "NativeScript!TabNavigationBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "Tabs", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.view.View */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#ios:member", + "docComment": "/**\n * Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITabBarController */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#iOSTabBarItemsAlignment:member", + "docComment": "/**\n * Gets or set the MDCTabBarAlignment of the tab bar icons in iOS. Defaults to \"justified\" Valid values are: - leading - justified - center - centerSelected\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iOSTabBarItemsAlignment: " + }, + { + "kind": "Reference", + "text": "IOSTabBarItemsAlignment", + "canonicalReference": "NativeScript!IOSTabBarItemsAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iOSTabBarItemsAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#items:member", + "docComment": "/**\n * Gets or sets the items of the Tabs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TabContentItem", + "canonicalReference": "NativeScript!TabContentItem:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#offscreenTabLimit:member", + "docComment": "/**\n * Gets or sets the number of offscreen preloaded tabs of the Tabs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "offscreenTabLimit: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "offscreenTabLimit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Tabs#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Tabs#on:member(2)", + "docComment": "/**\n * Raised when the selected index changes.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"selectedIndexChanged\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "SelectedIndexChangedEventData", + "canonicalReference": "NativeScript!SelectedIndexChangedEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#selectedIndex:member", + "docComment": "/**\n * Gets or sets the selectedIndex of the Tabs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs.selectedIndexChangedEvent:member", + "docComment": "/**\n * String value used when hooking to the selectedIndexChanged event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static selectedIndexChangedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndexChangedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#swipeEnabled:member", + "docComment": "/**\n * Gets or sets the swipe enabled state of the Tabs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "swipeEnabled: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "swipeEnabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#tabsPosition:member", + "docComment": "/**\n * Gets or sets the position state of the Tabs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tabsPosition: " + }, + { + "kind": "Content", + "text": "\"top\" | \"bottom\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabsPosition", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!Tabs#tabStrip:member", + "docComment": "/**\n * Gets or sets the tab strip of the Tabs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tabStrip: " + }, + { + "kind": "Reference", + "text": "TabStrip", + "canonicalReference": "NativeScript!TabStrip:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabStrip", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TabStrip:class", + "docComment": "/**\n * Represents a tab strip.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TabStrip extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TabStrip", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip#_hasImage:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_hasImage: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_hasImage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip#_hasTitle:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_hasTitle: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_hasTitle", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip#highlightColor:member", + "docComment": "/**\n * Gets or sets the color that marks the selected tab of the tab strip. Works for Tabs component only.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "highlightColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "highlightColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip#iosIconRenderingMode:member", + "docComment": "/**\n * Gets or sets the icon rendering mode on iOS\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iosIconRenderingMode: " + }, + { + "kind": "Content", + "text": "\"automatic\" | \"alwaysOriginal\" | \"alwaysTemplate\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iosIconRenderingMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip#isIconSizeFixed:member", + "docComment": "/**\n * Gets or sets whether icon size should be fixed based on specs or use the actual size. Defaults to true(fixed).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isIconSizeFixed: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isIconSizeFixed", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip#items:member", + "docComment": "/**\n * Gets or sets the items of the tab strip.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TabStripItem", + "canonicalReference": "NativeScript!TabStripItem:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip.itemTapEvent:member", + "docComment": "/**\n * String value used when hooking to itemTap event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static itemTapEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemTapEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabStrip#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabStrip#on:member(2)", + "docComment": "/**\n * Raised when an TabStripItem is tapped.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"itemTap\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "TabStripItemEventData", + "canonicalReference": "NativeScript!TabStripItemEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip#selectedItemColor:member", + "docComment": "/**\n * Gets or sets the color of the selected item in the tab strip.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedItemColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedItemColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStrip#unSelectedItemColor:member", + "docComment": "/**\n * Gets or sets the color of the non-selected items in the tab strip.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "unSelectedItemColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "unSelectedItemColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TabStripItem:class", + "docComment": "/**\n * Represents a tab strip entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TabStripItem extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TabStripItem", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem#_index:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_index", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem#iconClass:member", + "docComment": "/**\n * Gets or sets the CSS class name of the icon in the tab strip entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iconClass: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iconClass", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem#iconSource:member", + "docComment": "/**\n * Gets or sets the icon source of the tab strip entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iconSource: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iconSource", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem#image:member", + "docComment": "/**\n * Gets or sets the image of the tab strip entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "image: " + }, + { + "kind": "Reference", + "text": "Image", + "canonicalReference": "NativeScript!Image:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "image", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem#label:member", + "docComment": "/**\n * Gets or sets the label of the tab strip entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "label: " + }, + { + "kind": "Reference", + "text": "Label", + "canonicalReference": "NativeScript!Label:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "label", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabStripItem#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabStripItem#on:member(2)", + "docComment": "/**\n * Raised when a tap event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"tap\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem.selectEvent:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static selectEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem.tapEvent:member", + "docComment": "/**\n * String value used when hooking to the tap event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static tapEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tapEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem#title:member", + "docComment": "/**\n * Gets or sets the title of the tab strip entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "title: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "title", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabStripItem.unselectEvent:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static unselectEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "unselectEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!TabStripItemEventData:interface", + "docComment": "/**\n * Event data containing information for the TabStripItem's index.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TabStripItemEventData extends " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TabStripItemEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!TabStripItemEventData#index:member", + "docComment": "/**\n * The index of the TabStripItem.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "index: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "index", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TabView:class", + "docComment": "/**\n * Represents a tab view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TabView extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TabView", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.view.View */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#androidOffscreenTabLimit:member", + "docComment": "/**\n * Gets or sets the number of tabs that should be retained to either side of the current tab in the view hierarchy in an idle state. Tabs beyond this limit will be recreated from the TabView when needed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "androidOffscreenTabLimit: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidOffscreenTabLimit", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#androidSelectedTabHighlightColor:member", + "docComment": "/**\n * Gets or sets the color of the horizontal line drawn below the currently selected tab on Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "androidSelectedTabHighlightColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidSelectedTabHighlightColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#androidSwipeEnabled:member", + "docComment": "/**\n * Gets or sets a value indicating whether swipe gesture is enabled for Android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "androidSwipeEnabled: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidSwipeEnabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#androidTabsPosition:member", + "docComment": "/**\n * Gets or set the tabs vertical position. Valid values are: - top - bottom\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "androidTabsPosition: " + }, + { + "kind": "Content", + "text": "\"top\" | \"bottom\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidTabsPosition", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#ios:member", + "docComment": "/**\n * Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITabBarController */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#iosIconRenderingMode:member", + "docComment": "/**\n * Gets or set the UIImageRenderingMode of the tab icons in iOS. Defaults to \"automatic\" Valid values are: - automatic - alwaysOriginal - alwaysTemplate\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iosIconRenderingMode: " + }, + { + "kind": "Content", + "text": "\"automatic\" | \"alwaysOriginal\" | \"alwaysTemplate\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iosIconRenderingMode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#items:member", + "docComment": "/**\n * Gets or sets the items of the TabView.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TabViewItem", + "canonicalReference": "NativeScript!TabViewItem:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabView#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TabView#on:member(2)", + "docComment": "/**\n * Raised when the selected index changes.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"selectedIndexChanged\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "SelectedIndexChangedEventData", + "canonicalReference": "NativeScript!SelectedIndexChangedEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#selectedIndex:member", + "docComment": "/**\n * Gets or sets the selectedIndex of the TabView.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedIndex: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndex", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView.selectedIndexChangedEvent:member", + "docComment": "/**\n * String value used when hooking to the selectedIndexChanged event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static selectedIndexChangedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedIndexChangedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#selectedTabTextColor:member", + "docComment": "/**\n * Gets or sets the text color of the selected tab title.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "selectedTabTextColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "selectedTabTextColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#tabBackgroundColor:member", + "docComment": "/**\n * Gets or sets the background color of the tabs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tabBackgroundColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabBackgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#tabTextColor:member", + "docComment": "/**\n * Gets or sets the text color of the tabs titles.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tabTextColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabTextColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabView#tabTextFontSize:member", + "docComment": "/**\n * Gets or sets the font size of the tabs titles.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tabTextFontSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "tabTextFontSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TabViewItem:class", + "docComment": "/**\n * Represents a tab view entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TabViewItem extends " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TabViewItem", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TabViewItem#canBeLoaded:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "canBeLoaded?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "canBeLoaded", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabViewItem#iconSource:member", + "docComment": "/**\n * Gets or sets the icon source of the TabViewItem. This could either be a a file name or resource id.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public iconSource: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iconSource", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabViewItem#textTransform:member", + "docComment": "/**\n * Gets or sets the text transform of the tab titles.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textTransform: " + }, + { + "kind": "Reference", + "text": "TextTransform", + "canonicalReference": "NativeScript!TextTransform:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textTransform", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabViewItem#title:member", + "docComment": "/**\n * Gets or sets the title of the TabViewItem.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public title: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "title", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TabViewItem#view:member", + "docComment": "/**\n * Gets or sets the view of the TabViewItem.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "view", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!TapGestureEventData:interface", + "docComment": "/**\n * Provides gesture event data.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TapGestureEventData extends " + }, + { + "kind": "Reference", + "text": "GestureEventData", + "canonicalReference": "NativeScript!GestureEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TapGestureEventData", + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TapGestureEventData#getPointerCount:member(1)", + "docComment": "/**\n * Gets the number of pointers in the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getPointerCount(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getPointerCount" + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TapGestureEventData#getX:member(1)", + "docComment": "/**\n * Gets the X coordinate of this event inside the view that triggered the event\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getX(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getX" + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TapGestureEventData#getY:member(1)", + "docComment": "/**\n * Gets the Y coordinate of the event inside the view that triggered the event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getY(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getY" + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!Template:interface", + "docComment": "/**\n * Defines an interface for a View factory function. Commonly used to specify the visualization of data objects.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface Template " + } + ], + "releaseTag": "Public", + "name": "Template", + "members": [ + { + "kind": "CallSignature", + "canonicalReference": "NativeScript!Template:call(1)", + "docComment": "/**\n * Call signature of the factory function. Returns a new View instance.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "(): " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [] + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!TemplatedItemsView:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TemplatedItemsView " + } + ], + "releaseTag": "Public", + "name": "TemplatedItemsView", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!TemplatedItemsView#items:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "items: " + }, + { + "kind": "Content", + "text": "any[] | " + }, + { + "kind": "Reference", + "text": "ItemsSource", + "canonicalReference": "NativeScript!ItemsSource:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "items", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!TemplatedItemsView#itemTemplate:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemTemplate: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Template", + "canonicalReference": "NativeScript!Template:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemTemplate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!TemplatedItemsView#itemTemplates:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemTemplates?: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "KeyedTemplate", + "canonicalReference": "NativeScript!KeyedTemplate:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemTemplates", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TemplatedItemsView#off:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "off(event: " + }, + { + "kind": "Content", + "text": "\"itemLoading\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "off" + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TemplatedItemsView#on:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"itemLoading\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "ItemEventData", + "canonicalReference": "NativeScript!ItemEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TemplatedItemsView#refresh:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "refresh(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "refresh" + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TextBase:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TextBase extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + }, + { + "kind": "Content", + "text": "implements " + }, + { + "kind": "Reference", + "text": "AddChildFromBuilder", + "canonicalReference": "NativeScript!AddChildFromBuilder:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TextBase", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!TextBase#_addChildFromBuilder:member(1)", + "docComment": "/**\n * Called for every child element declared in xml. This method will add a child element (value) to current element. @private\n *\n * @param name - Name of the element.\n *\n * @param value - Value of the element.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_addChildFromBuilder(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_addChildFromBuilder" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#_isSingleLine:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_isSingleLine: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_isSingleLine", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TextBase#_requestLayoutOnTextChanged:member(1)", + "docComment": "/**\n * Called when the text property is changed to request layout. @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_requestLayoutOnTextChanged(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_requestLayoutOnTextChanged" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!TextBase#_setNativeText:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setNativeText(reset?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "reset", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_setNativeText" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#fontSize:member", + "docComment": "/**\n * Gets or sets font-size style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "fontSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "fontSize", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#formattedText:member", + "docComment": "/**\n * Gets or sets a formatted string.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "formattedText: " + }, + { + "kind": "Reference", + "text": "FormattedString", + "canonicalReference": "NativeScript!FormattedString:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "formattedText", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#letterSpacing:member", + "docComment": "/**\n * Gets or sets letterSpace style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "letterSpacing: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "letterSpacing", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#lineHeight:member", + "docComment": "/**\n * Gets or sets lineHeight style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "lineHeight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "lineHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#nativeTextViewProtected:member", + "docComment": "/**\n * Gets of the text widget. In some cases(android TextInputLayout) the TextView is made of 2 views: the layout and the text view So we need a different getter for the layout and text functions\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public readonly nativeTextViewProtected: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "nativeTextViewProtected", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#padding:member", + "docComment": "/**\n * Gets or sets padding style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "padding: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "padding", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#paddingBottom:member", + "docComment": "/**\n * Specify the bottom padding of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paddingBottom: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#paddingLeft:member", + "docComment": "/**\n * Specify the left padding of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paddingLeft: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#paddingRight:member", + "docComment": "/**\n * Specify the right padding of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paddingRight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#paddingTop:member", + "docComment": "/**\n * Specify the top padding of this layout.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "paddingTop: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "paddingTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#text:member", + "docComment": "/**\n * Gets or sets the text.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "text: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "text", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#textAlignment:member", + "docComment": "/**\n * Gets or sets text-alignment style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textAlignment: " + }, + { + "kind": "Reference", + "text": "TextAlignment", + "canonicalReference": "NativeScript!TextAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#textDecoration:member", + "docComment": "/**\n * Gets or sets text decorations style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textDecoration: " + }, + { + "kind": "Reference", + "text": "TextDecoration", + "canonicalReference": "NativeScript!TextDecoration:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textDecoration", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#textTransform:member", + "docComment": "/**\n * Gets or sets text transform style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "textTransform: " + }, + { + "kind": "Reference", + "text": "TextTransform", + "canonicalReference": "NativeScript!TextTransform:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "textTransform", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextBase#whiteSpace:member", + "docComment": "/**\n * Gets or sets white space style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "whiteSpace: " + }, + { + "kind": "Reference", + "text": "WhiteSpace", + "canonicalReference": "NativeScript!WhiteSpace:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "whiteSpace", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [ + { + "startIndex": 4, + "endIndex": 6 + } + ] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TextField:class", + "docComment": "/**\n * Represents an editable text field.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TextField extends " + }, + { + "kind": "Reference", + "text": "EditableTextBase", + "canonicalReference": "NativeScript!EditableTextBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TextField", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TextField#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.EditText */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextField#closeOnReturn:member", + "docComment": "/**\n * Gets or sets if a text field should dismiss on return.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "closeOnReturn: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "closeOnReturn", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextField#ios:member", + "docComment": "/**\n * Gets the native iOS [UITextField](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextField_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITextField */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextField.returnPressEvent:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static returnPressEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "returnPressEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextField#secure:member", + "docComment": "/**\n * Gets or sets if a text field is for password entry.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "secure: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "secure", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextField#secureWithoutAutofill:member", + "docComment": "/**\n * iOS only (to avoid 12+ auto suggested strong password handling)\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "secureWithoutAutofill: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "secureWithoutAutofill", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TextView:class", + "docComment": "/**\n * Represents an editable multiline text view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TextView extends " + }, + { + "kind": "Reference", + "text": "EditableTextBase", + "canonicalReference": "NativeScript!EditableTextBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TextView", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TextView#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.EditText */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextView#ios:member", + "docComment": "/**\n * Gets the native iOS [UITextView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextView_Class/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UITextView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TextView#maxLines:member", + "docComment": "/**\n * Limits input to a certain number of lines.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "maxLines: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "maxLines", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!TimePicker:class", + "docComment": "/**\n * Represents an time picker.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class TimePicker extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TimePicker", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#android:member", + "docComment": "/**\n * Gets the native [android.widget.TimePicker](http://developer.android.com/reference/android/widget/TimePicker.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.widget.TimePicker */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#hour:member", + "docComment": "/**\n * Gets or sets the time hour.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "hour: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "hour", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#ios:member", + "docComment": "/**\n * Gets the native iOS [UIDatePicker](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* UIDatePicker */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#maxHour:member", + "docComment": "/**\n * Gets or sets the max time hour.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "maxHour: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "maxHour", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#maxMinute:member", + "docComment": "/**\n * Gets or sets the max time minute.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "maxMinute: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "maxMinute", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#minHour:member", + "docComment": "/**\n * Gets or sets the min time hour.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "minHour: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minHour", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#minMinute:member", + "docComment": "/**\n * Gets or sets the min time minute.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "minMinute: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minMinute", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#minute:member", + "docComment": "/**\n * Gets or sets the time minute.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "minute: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minute", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#minuteInterval:member", + "docComment": "/**\n * Gets or sets the minute interval.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "minuteInterval: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minuteInterval", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!TimePicker#time:member", + "docComment": "/**\n * Gets or sets the time.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "time: " + }, + { + "kind": "Reference", + "text": "Date", + "canonicalReference": "!Date:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "time", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!TimerInfo:interface", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "interface TimerInfo " + } + ], + "releaseTag": "Public", + "name": "TimerInfo", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!TimerInfo#count:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "count: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "count", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!TimerInfo#totalTime:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "totalTime: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "totalTime", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!TouchGestureEventData:interface", + "docComment": "/**\n * Provides gesture event data.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TouchGestureEventData extends " + }, + { + "kind": "Reference", + "text": "TapGestureEventData", + "canonicalReference": "NativeScript!TapGestureEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "TouchGestureEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!TouchGestureEventData#action:member", + "docComment": "/**\n * Gets action of the touch. Possible values: 'up', 'move', 'down', 'cancel'\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "action: " + }, + { + "kind": "Content", + "text": "\"up\" | \"move\" | \"down\" | \"cancel\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "action", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TouchGestureEventData#getActivePointers:member(1)", + "docComment": "/**\n * Gets the pointers that triggered the event. Note: In Android there is aways only one active pointer.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getActivePointers(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Pointer", + "canonicalReference": "NativeScript!Pointer:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getActivePointers" + }, + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TouchGestureEventData#getAllPointers:member(1)", + "docComment": "/**\n * Gets all pointers.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getAllPointers(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Pointer", + "canonicalReference": "NativeScript!Pointer:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getAllPointers" + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!Trace:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Trace: " + }, + { + "kind": "Content", + "text": "{\n messageType: typeof " + }, + { + "kind": "Reference", + "text": "messageType", + "canonicalReference": "NativeScript!messageType:namespace" + }, + { + "kind": "Content", + "text": ";\n categories: typeof " + }, + { + "kind": "Reference", + "text": "categories", + "canonicalReference": "NativeScript!categories:namespace" + }, + { + "kind": "Content", + "text": ";\n setCategories: typeof " + }, + { + "kind": "Reference", + "text": "setCategories", + "canonicalReference": "NativeScript!setCategories:function" + }, + { + "kind": "Content", + "text": ";\n addCategories: typeof " + }, + { + "kind": "Reference", + "text": "addCategories", + "canonicalReference": "NativeScript!addCategories:function" + }, + { + "kind": "Content", + "text": ";\n addWriter: typeof " + }, + { + "kind": "Reference", + "text": "addWriter", + "canonicalReference": "NativeScript!addWriter:function" + }, + { + "kind": "Content", + "text": ";\n removeWriter: typeof " + }, + { + "kind": "Reference", + "text": "removeWriter", + "canonicalReference": "NativeScript!removeWriter:function" + }, + { + "kind": "Content", + "text": ";\n clearWriters: typeof " + }, + { + "kind": "Reference", + "text": "clearWriters", + "canonicalReference": "NativeScript!clearWriters:function" + }, + { + "kind": "Content", + "text": ";\n setErrorHandler: typeof " + }, + { + "kind": "Reference", + "text": "setErrorHandler", + "canonicalReference": "NativeScript!setErrorHandler:function" + }, + { + "kind": "Content", + "text": ";\n write: typeof " + }, + { + "kind": "Reference", + "text": "write", + "canonicalReference": "NativeScript!write:function" + }, + { + "kind": "Content", + "text": ";\n error: typeof " + }, + { + "kind": "Reference", + "text": "error", + "canonicalReference": "NativeScript!error:function" + }, + { + "kind": "Content", + "text": ";\n enable: typeof " + }, + { + "kind": "Reference", + "text": "enable", + "canonicalReference": "NativeScript!enable:function" + }, + { + "kind": "Content", + "text": ";\n disable: typeof " + }, + { + "kind": "Reference", + "text": "disable", + "canonicalReference": "NativeScript!disable:function" + }, + { + "kind": "Content", + "text": ";\n isEnabled: typeof " + }, + { + "kind": "Reference", + "text": "isEnabled", + "canonicalReference": "NativeScript!isEnabled:function" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "releaseTag": "Public", + "name": "Trace", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 28 + } + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!TraceWriter:interface", + "docComment": "/**\n * An interface used to define a writer used by trace to print (log).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface TraceWriter " + } + ], + "releaseTag": "Public", + "name": "TraceWriter", + "members": [ + { + "kind": "MethodSignature", + "canonicalReference": "NativeScript!TraceWriter#write:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "write(message: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", category: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", type?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ");" + } + ], + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "category", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "type", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "write" + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!Transition:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class Transition " + } + ], + "releaseTag": "Public", + "name": "Transition", + "members": [ + { + "kind": "Constructor", + "canonicalReference": "NativeScript!Transition:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `Transition` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(duration: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", nativeCurve: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "duration", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "nativeCurve", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ] + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Transition#animateIOSTransition:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public animateIOSTransition(containerView: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", fromView: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", toView: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", operation: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", completion: " + }, + { + "kind": "Content", + "text": "(finished: boolean) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "containerView", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "fromView", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "toView", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "operation", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + }, + { + "parameterName": "completion", + "parameterTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + } + } + ], + "name": "animateIOSTransition" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Transition#createAndroidAnimator:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public createAndroidAnimator(transitionType: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "transitionType", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "createAndroidAnimator" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Transition#getCurve:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getCurve(): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getCurve" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Transition#getDuration:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getDuration(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getDuration" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!Transition#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "toString" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!UnhandledErrorEventData:interface", + "docComment": "/**\n * Event data containing information about unhandled application errors.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface UnhandledErrorEventData extends " + }, + { + "kind": "Reference", + "text": "ApplicationEventData", + "canonicalReference": "NativeScript!ApplicationEventData:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "UnhandledErrorEventData", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!UnhandledErrorEventData#android:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "android?: " + }, + { + "kind": "Reference", + "text": "NativeScriptError", + "canonicalReference": "!NativeScriptError:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!UnhandledErrorEventData#error:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "error: " + }, + { + "kind": "Reference", + "text": "NativeScriptError", + "canonicalReference": "!NativeScriptError:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "error", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!UnhandledErrorEventData#ios:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios?: " + }, + { + "kind": "Reference", + "text": "NativeScriptError", + "canonicalReference": "!NativeScriptError:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [ + { + "startIndex": 1, + "endIndex": 3 + } + ] + }, + { + "kind": "Variable", + "canonicalReference": "NativeScript!Utils:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Utils: " + }, + { + "kind": "Content", + "text": "{\n GC: typeof " + }, + { + "kind": "Reference", + "text": "GC", + "canonicalReference": "NativeScript!GC:function" + }, + { + "kind": "Content", + "text": ";\n isFontIconURI: typeof " + }, + { + "kind": "Reference", + "text": "isFontIconURI", + "canonicalReference": "NativeScript!isFontIconURI:function" + }, + { + "kind": "Content", + "text": ";\n isDataURI: typeof " + }, + { + "kind": "Reference", + "text": "isDataURI", + "canonicalReference": "NativeScript!isDataURI:function" + }, + { + "kind": "Content", + "text": ";\n isFileOrResourcePath: typeof " + }, + { + "kind": "Reference", + "text": "isFileOrResourcePath", + "canonicalReference": "NativeScript!isFileOrResourcePath:function" + }, + { + "kind": "Content", + "text": ";\n executeOnMainThread: typeof " + }, + { + "kind": "Reference", + "text": "executeOnMainThread", + "canonicalReference": "NativeScript!executeOnMainThread:function" + }, + { + "kind": "Content", + "text": ";\n mainThreadify: typeof " + }, + { + "kind": "Reference", + "text": "mainThreadify", + "canonicalReference": "NativeScript!mainThreadify:function" + }, + { + "kind": "Content", + "text": ";\n isMainThread: typeof " + }, + { + "kind": "Reference", + "text": "isMainThread", + "canonicalReference": "NativeScript!isMainThread:function" + }, + { + "kind": "Content", + "text": ";\n dispatchToMainThread: typeof " + }, + { + "kind": "Reference", + "text": "dispatchToMainThread", + "canonicalReference": "NativeScript!dispatchToMainThread:function" + }, + { + "kind": "Content", + "text": ";\n releaseNativeObject: typeof " + }, + { + "kind": "Reference", + "text": "releaseNativeObject", + "canonicalReference": "NativeScript!releaseNativeObject:function" + }, + { + "kind": "Content", + "text": ";\n getModuleName: typeof " + }, + { + "kind": "Reference", + "text": "getModuleName", + "canonicalReference": "NativeScript!getModuleName:function" + }, + { + "kind": "Content", + "text": ";\n openFile: typeof " + }, + { + "kind": "Reference", + "text": "openFile", + "canonicalReference": "NativeScript!openFile:function" + }, + { + "kind": "Content", + "text": ";\n openUrl: typeof " + }, + { + "kind": "Reference", + "text": "openUrl", + "canonicalReference": "NativeScript!openUrl:function" + }, + { + "kind": "Content", + "text": ";\n isRealDevice: typeof " + }, + { + "kind": "Reference", + "text": "isRealDevice", + "canonicalReference": "NativeScript!isRealDevice:function" + }, + { + "kind": "Content", + "text": ";\n layout: typeof " + }, + { + "kind": "Reference", + "text": "layout", + "canonicalReference": "NativeScript!layout:namespace" + }, + { + "kind": "Content", + "text": ";\n android: typeof " + }, + { + "kind": "Reference", + "text": "androidUtils", + "canonicalReference": "NativeScript!ad:namespace" + }, + { + "kind": "Content", + "text": ";\n ios: typeof " + }, + { + "kind": "Reference", + "text": "iosUtils", + "canonicalReference": "NativeScript!ios:namespace" + }, + { + "kind": "Content", + "text": ";\n}" + } + ], + "releaseTag": "Public", + "name": "Utils", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 34 + } + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!View:class", + "docComment": "/**\n * This class is the base class for all UI components. A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export abstract class View extends " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "View", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_closeAllModalViewsInternal:member(1)", + "docComment": "/**\n * Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_closeAllModalViewsInternal(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_closeAllModalViewsInternal" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#_currentHeightMeasureSpec:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_currentHeightMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_currentHeightMeasureSpec", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#_currentWidthMeasureSpec:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_currentWidthMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_currentWidthMeasureSpec", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_eachLayoutView:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_eachLayoutView(callback: " + }, + { + "kind": "Content", + "text": "(View) => void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_eachLayoutView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#_gestureObservers:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_gestureObservers: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_gestureObservers", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_getCurrentLayoutBounds:member(1)", + "docComment": "/**\n * Return view bounds. @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getCurrentLayoutBounds(): " + }, + { + "kind": "Content", + "text": "{ left: number; top: number; right: number; bottom: number }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_getCurrentLayoutBounds" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_getFragmentManager:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getFragmentManager(): " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_getFragmentManager" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_getNativeViewsCount:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getNativeViewsCount(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_getNativeViewsCount" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_getRootModalViews:member(1)", + "docComment": "/**\n * Internal method: Gets all modal views of the current view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getRootModalViews(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ">" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_getRootModalViews" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_getValue:member(1)", + "docComment": "/**\n * __Obsolete:__ There is a new property system that does not rely on _getValue.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_getValue(property: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "never" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "property", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_getValue" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_goToVisualState:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_goToVisualState(state: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_goToVisualState" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_handleLivesync:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_handleLivesync(context?: " + }, + { + "kind": "Content", + "text": "{ type: string, path: string }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_handleLivesync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_hasAncestorView:member(1)", + "docComment": "/**\n * Checks whether the current view has specific view for an ancestor.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_hasAncestorView(ancestorView: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "ancestorView", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_hasAncestorView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#_manager:member", + "docComment": "/**\n * @private androidx.fragment.app.FragmentManager\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_manager: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_manager", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#_modalParent:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_modalParent?: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_modalParent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_onAttachedToWindow:member(1)", + "docComment": "/**\n * Called in android when native view is attached to window.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_onAttachedToWindow(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_onAttachedToWindow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_onDetachedFromWindow:member(1)", + "docComment": "/**\n * Called in android when native view is dettached from window.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_onDetachedFromWindow(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_onDetachedFromWindow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_onLivesync:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_onLivesync(context?: " + }, + { + "kind": "Content", + "text": "{ type: string, path: string }" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_onLivesync" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_redrawNativeBackground:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_redrawNativeBackground(value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_redrawNativeBackground" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_removeAnimation:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_removeAnimation(animation: " + }, + { + "kind": "Reference", + "text": "Animation", + "canonicalReference": "NativeScript!Animation:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "animation", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_removeAnimation" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_setCurrentLayoutBounds:member(1)", + "docComment": "/**\n * Called by layout method to cache view bounds. @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setCurrentLayoutBounds(left: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", top: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", right: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", bottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{ boundsChanged: boolean, sizeChanged: boolean }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "left", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "top", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "right", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "bottom", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "_setCurrentLayoutBounds" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_setCurrentMeasureSpecs:member(1)", + "docComment": "/**\n * Called by measure method to cache measureSpecs. @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setCurrentMeasureSpecs(widthMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", heightMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "widthMeasureSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "heightMeasureSpec", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_setCurrentMeasureSpecs" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_setMinHeightNative:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setMinHeightNative(value: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_setMinHeightNative" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_setMinWidthNative:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setMinWidthNative(value: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_setMinWidthNative" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_setNativeClipToBounds:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setNativeClipToBounds(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_setNativeClipToBounds" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_setNativeViewFrame:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setNativeViewFrame(nativeView: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", frame: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "nativeView", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "frame", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_setNativeViewFrame" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_setValue:member(1)", + "docComment": "/**\n * __Obsolete:__ There is a new property system that does not rely on _setValue.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setValue(property: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "never" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "property", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_setValue" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_updateEffectiveLayoutValues:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_updateEffectiveLayoutValues(\n parentWidthMeasureSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ",\n parentWidthMeasureMode: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ",\n parentHeightMeasureSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ",\n parentHeightMeasureMode: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "parentWidthMeasureSize", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "parentWidthMeasureMode", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "parentHeightMeasureSize", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "parentHeightMeasureMode", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "_updateEffectiveLayoutValues" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#_updateStyleScope:member(1)", + "docComment": "/**\n * Updates styleScope or create new styleScope.\n *\n * @param - cssFileName\n *\n * @param - cssString\n *\n * @param - css\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_updateStyleScope(cssFileName?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", cssString?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", css?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cssFileName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "cssString", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "css", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + } + ], + "name": "_updateStyleScope" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#addCss:member(1)", + "docComment": "/**\n * @private Adds a new values to current css.\n *\n * @param cssString - A valid css which will be added to current css.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addCss(cssString: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cssString", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "addCss" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#addCssFile:member(1)", + "docComment": "/**\n * @private Adds the content of the file to the current css.\n *\n * @param cssFileName - A valid file name (from the application root) which contains a valid css.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "addCssFile(cssFileName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cssFileName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "addCssFile" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#android:member", + "docComment": "/**\n * Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public android: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#androidDynamicElevationOffset:member", + "docComment": "/**\n * Gets or sets the dynamic elevation offset of the android view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "androidDynamicElevationOffset: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidDynamicElevationOffset", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#androidElevation:member", + "docComment": "/**\n * Gets or sets the elevation of the android view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "androidElevation: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "androidElevation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#animate:member(1)", + "docComment": "/**\n * Animates one or more properties of the view based on the supplied options.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public animate(options: " + }, + { + "kind": "Reference", + "text": "AnimationDefinition", + "canonicalReference": "NativeScript!AnimationDefinition:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "AnimationPromise", + "canonicalReference": "NativeScript!AnimationPromise:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "animate" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#automationText:member", + "docComment": "/**\n * Gets or sets the automation text of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "automationText: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "automationText", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#background:member", + "docComment": "/**\n * Gets or sets the background style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "background: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "background", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#backgroundColor:member", + "docComment": "/**\n * Gets or sets the background color of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "backgroundColor: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#backgroundImage:member", + "docComment": "/**\n * Gets or sets the background image of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "backgroundImage: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "LinearGradient", + "canonicalReference": "NativeScript!LinearGradient:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "backgroundImage", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#bindingContext:member", + "docComment": "/**\n * Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "bindingContext: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "bindingContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderBottomColor:member", + "docComment": "/**\n * Gets or sets the bottom border color of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderBottomColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderBottomColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderBottomLeftRadius:member", + "docComment": "/**\n * Gets or sets the bottom left border radius of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderBottomLeftRadius: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderBottomLeftRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderBottomRightRadius:member", + "docComment": "/**\n * Gets or sets the bottom right border radius of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderBottomRightRadius: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderBottomRightRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderBottomWidth:member", + "docComment": "/**\n * Gets or sets the bottom border width of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderBottomWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderBottomWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderColor:member", + "docComment": "/**\n * Gets or sets the border color of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderColor: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderLeftColor:member", + "docComment": "/**\n * Gets or sets the left border color of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderLeftColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderLeftColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderLeftWidth:member", + "docComment": "/**\n * Gets or sets the left border width of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderLeftWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderLeftWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderRadius:member", + "docComment": "/**\n * Gets or sets the border radius of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderRadius: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderRightColor:member", + "docComment": "/**\n * Gets or sets the right border color of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderRightColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderRightColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderRightWidth:member", + "docComment": "/**\n * Gets or sets the right border width of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderRightWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderRightWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderTopColor:member", + "docComment": "/**\n * Gets or sets the top border color of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderTopColor: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderTopColor", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderTopLeftRadius:member", + "docComment": "/**\n * Gets or sets the top left border radius of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderTopLeftRadius: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderTopLeftRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderTopRightRadius:member", + "docComment": "/**\n * Gets or sets the top right border radius of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderTopRightRadius: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderTopRightRadius", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderTopWidth:member", + "docComment": "/**\n * Gets or sets the top border width of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderTopWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderTopWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#borderWidth:member", + "docComment": "/**\n * Gets or sets the border width of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "borderWidth: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "borderWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#changeCssFile:member(1)", + "docComment": "/**\n * @private Changes the current css to the content of the file.\n *\n * @param cssFileName - A valid file name (from the application root) which contains a valid css.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "changeCssFile(cssFileName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cssFileName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "changeCssFile" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#color:member", + "docComment": "/**\n * Gets or sets the color of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "color: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "NativeScript!Color:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "color", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View.combineMeasuredStates:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static combineMeasuredStates(curState: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", newState): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "curState", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "newState", + "parameterTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "combineMeasuredStates" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#createAnimation:member(1)", + "docComment": "/**\n * Creates an Animation object based on the supplied options.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public createAnimation(options: " + }, + { + "kind": "Reference", + "text": "AnimationDefinition", + "canonicalReference": "NativeScript!AnimationDefinition:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Animation", + "canonicalReference": "NativeScript!Animation:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "createAnimation" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#css:member", + "docComment": "/**\n * @private A valid css string which will be applied for all nested UI components (based on css rules).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "css: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "css", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#cssClasses:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cssClasses: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cssClasses", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#cssPseudoClasses:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "cssPseudoClasses: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cssPseudoClasses", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#cssType:member", + "docComment": "/**\n * Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "cssType: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cssType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#eachChildView:member(1)", + "docComment": "/**\n * Iterates over children of type View.\n *\n * @param - callback Called for each child of type View. Iteration stops if this method returns falsy value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public eachChildView(callback: " + }, + { + "kind": "Content", + "text": "(view: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + } + ], + "name": "eachChildView" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#focus:member(1)", + "docComment": "/**\n * Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public focus(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "focus" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getActualSize:member(1)", + "docComment": "/**\n * Returns the actual size of the view in device-independent pixels.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getActualSize(): " + }, + { + "kind": "Reference", + "text": "Size", + "canonicalReference": "NativeScript!Size:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getActualSize" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getGestureObservers:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getGestureObservers(type: " + }, + { + "kind": "Reference", + "text": "GestureTypes", + "canonicalReference": "NativeScript!GestureTypes:enum" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "GesturesObserver", + "canonicalReference": "NativeScript!GesturesObserver:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "type", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getGestureObservers" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getLocationInWindow:member(1)", + "docComment": "/**\n * Returns the location of this view in the window coordinate system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getLocationInWindow(): " + }, + { + "kind": "Reference", + "text": "Point", + "canonicalReference": "NativeScript!Point:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getLocationInWindow" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getLocationOnScreen:member(1)", + "docComment": "/**\n * Returns the location of this view in the screen coordinate system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getLocationOnScreen(): " + }, + { + "kind": "Reference", + "text": "Point", + "canonicalReference": "NativeScript!Point:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getLocationOnScreen" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getLocationRelativeTo:member(1)", + "docComment": "/**\n * Returns the location of this view in the otherView's coordinate system.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getLocationRelativeTo(otherView: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Point", + "canonicalReference": "NativeScript!Point:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "otherView", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "getLocationRelativeTo" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getMeasuredHeight:member(1)", + "docComment": "/**\n * Returns the raw height component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getMeasuredHeight(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getMeasuredHeight" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getMeasuredState:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getMeasuredState(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getMeasuredState" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getMeasuredWidth:member(1)", + "docComment": "/**\n * Returns the raw width component.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getMeasuredWidth(): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getMeasuredWidth" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#getSafeAreaInsets:member(1)", + "docComment": "/**\n * Returns the iOS safe area insets of this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getSafeAreaInsets(): " + }, + { + "kind": "Content", + "text": "{ left, top, right, bottom }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "getSafeAreaInsets" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#height:member", + "docComment": "/**\n * Gets or sets the desired height of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "height: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "height", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#horizontalAlignment:member", + "docComment": "/**\n * Gets or sets the alignment of this view within its parent along the Horizontal axis.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "horizontalAlignment: " + }, + { + "kind": "Reference", + "text": "HorizontalAlignment", + "canonicalReference": "NativeScript!HorizontalAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "horizontalAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#ios:member", + "docComment": "/**\n * Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public ios: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#iosOverflowSafeArea:member", + "docComment": "/**\n * Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iosOverflowSafeArea: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iosOverflowSafeArea", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#iosOverflowSafeAreaEnabled:member", + "docComment": "/**\n * Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "iosOverflowSafeAreaEnabled: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "iosOverflowSafeAreaEnabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#isEnabled:member", + "docComment": "/**\n * Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isEnabled: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isEnabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#isLayoutRequired:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isLayoutRequired: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isLayoutRequired", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#isLayoutValid:member", + "docComment": "/**\n * Gets is layout is valid. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isLayoutValid: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isLayoutValid", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#isUserInteractionEnabled:member", + "docComment": "/**\n * Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isUserInteractionEnabled: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isUserInteractionEnabled", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#layout:member(1)", + "docComment": "/**\n * Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children.\n *\n * @param - l Left position, relative to parent\n *\n * @param - t Top position, relative to parent\n *\n * @param - r Right position, relative to parent\n *\n * @param - b Bottom position, relative to parent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public layout(left: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", top: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", right: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", bottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", setFrame?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "left", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "top", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "right", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "bottom", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + }, + { + "parameterName": "setFrame", + "parameterTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + } + } + ], + "name": "layout" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View.layoutChangedEvent:member", + "docComment": "/**\n * String value used when hooking to layoutChanged event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static layoutChangedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "layoutChangedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View.layoutChild:member(1)", + "docComment": "/**\n * Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds.\n *\n * @param - parent This parameter is not used. You can pass null.\n *\n * @param - left Left position, relative to parent\n *\n * @param - top Top position, relative to parent\n *\n * @param - right Right position, relative to parent\n *\n * @param - bottom Bottom position, relative to parent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static layoutChild(parent: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", child: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", left: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", top: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", right: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", bottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 13, + "endIndex": 14 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "parent", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "child", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "left", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "top", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + }, + { + "parameterName": "right", + "parameterTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + } + }, + { + "parameterName": "bottom", + "parameterTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + } + } + ], + "name": "layoutChild" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#layoutNativeView:member(1)", + "docComment": "/**\n * Called from onLayout when native view position is about to be changed.\n *\n * @param - left Left position, relative to parent\n *\n * @param - top Top position, relative to parent\n *\n * @param - right Right position, relative to parent\n *\n * @param - bottom Bottom position, relative to parent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public layoutNativeView(left: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", top: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", right: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", bottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "left", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "top", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "right", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "bottom", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "layoutNativeView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#margin:member", + "docComment": "/**\n * Gets or sets margin style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "margin: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "margin", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#marginBottom:member", + "docComment": "/**\n * Specifies extra space on the bottom side of this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "marginBottom: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "marginBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#marginLeft:member", + "docComment": "/**\n * Specifies extra space on the left side of this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "marginLeft: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "marginLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#marginRight:member", + "docComment": "/**\n * Specifies extra space on the right side of this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "marginRight: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "marginRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#marginTop:member", + "docComment": "/**\n * Specifies extra space on the top side of this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "marginTop: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "marginTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#measure:member(1)", + "docComment": "/**\n * This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses.\n *\n * @param - widthMeasureSpec Horizontal space requirements as imposed by the parent\n *\n * @param - heightMeasureSpec Vertical space requirements as imposed by the parent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public measure(widthMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", heightMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "widthMeasureSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "heightMeasureSpec", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "measure" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View.measureChild:member(1)", + "docComment": "/**\n * Measure a child by taking into account its margins and a given measureSpecs.\n *\n * @param - parent This parameter is not used. You can pass null.\n *\n * @param - child The view to be measured.\n *\n * @param - measuredWidth The measured width that the parent layout specifies for this view.\n *\n * @param - measuredHeight The measured height that the parent layout specifies for this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static measureChild(parent: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", child: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ", widthMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", heightMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{ measuredWidth: number; measuredHeight: number }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "parent", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "child", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "widthMeasureSpec", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "heightMeasureSpec", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "measureChild" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#minHeight:member", + "docComment": "/**\n * Gets or sets the minimum height the view may grow to.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "minHeight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#minWidth:member", + "docComment": "/**\n * Gets or sets the minimum width the view may grow to.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "minWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "minWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#modal:member", + "docComment": "/**\n * Returns the current modal view that this page is showing (is parent of), if any.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "modal: " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "modal", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#off:member(1)", + "docComment": "/**\n * Removes listener(s) for the specified event name.\n *\n * @param - eventNames Comma delimited names of the events or gesture types the specified listener is associated with.\n *\n * @param - callback An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed.\n *\n * @param - thisArg An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "off(eventNames: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "GestureTypes", + "canonicalReference": "NativeScript!GestureTypes:enum" + }, + { + "kind": "Content", + "text": ", callback?: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 7 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + } + } + ], + "name": "off" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\") or you can use gesture types.\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string | " + }, + { + "kind": "Reference", + "text": "GestureTypes", + "canonicalReference": "NativeScript!GestureTypes:enum" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 7 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#on:member(2)", + "docComment": "/**\n * Raised when a loaded event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"loaded\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#on:member(3)", + "docComment": "/**\n * Raised when an unloaded event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"unloaded\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#on:member(4)", + "docComment": "/**\n * Raised when a back button is pressed. This event is raised only for android.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"androidBackPressed\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 4, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#on:member(5)", + "docComment": "/**\n * Raised before the view is shown as a modal dialog.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"showingModally\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "ShownModallyData", + "canonicalReference": "NativeScript!ShownModallyData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 5, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#on:member(6)", + "docComment": "/**\n * Raised after the view is shown as a modal dialog.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"shownModally\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "ShownModallyData", + "canonicalReference": "NativeScript!ShownModallyData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 6, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#onBackPressed:member(1)", + "docComment": "/**\n * Derived classes can override this method to handle Android back button press.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBackPressed(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "onBackPressed" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#onLayout:member(1)", + "docComment": "/**\n * Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children.\n *\n * @param - left Left position, relative to parent\n *\n * @param - top Top position, relative to parent\n *\n * @param - right Right position, relative to parent\n *\n * @param - bottom Bottom position, relative to parent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onLayout(left: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", top: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", right: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", bottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "left", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "top", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "right", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "bottom", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "onLayout" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#onMeasure:member(1)", + "docComment": "/**\n * Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int).\n *\n * @param - widthMeasureSpec horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec.\n *\n * @param - heightMeasureSpec vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onMeasure(widthMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", heightMeasureSpec: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "widthMeasureSpec", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "heightMeasureSpec", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "onMeasure" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#opacity:member", + "docComment": "/**\n * Gets or sets the opacity style property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "opacity: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "opacity", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#originX:member", + "docComment": "/**\n * Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "originX: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "originX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#originY:member", + "docComment": "/**\n * Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "originY: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "originY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#perspective:member", + "docComment": "/**\n * Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "perspective: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "perspective", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View.resolveSizeAndState:member(1)", + "docComment": "/**\n * Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED_SIZE_MASK bits and optionally the bit MEASURED_STATE_TOO_SMALL set if the resulting size is smaller than the size the view wants to be.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static resolveSizeAndState(size: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", specSize: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", specMode: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", childMeasuredState: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "size", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "specSize", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "parameterName": "specMode", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + } + }, + { + "parameterName": "childMeasuredState", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "resolveSizeAndState" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#rotate:member", + "docComment": "/**\n * Gets or sets the rotate affine transform of the view along the Z axis.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotate: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotate", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#rotateX:member", + "docComment": "/**\n * Gets or sets the rotate affine transform of the view along the X axis.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotateX: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotateX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#rotateY:member", + "docComment": "/**\n * Gets or sets the rotate affine transform of the view along the Y axis.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "rotateY: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rotateY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#scaleX:member", + "docComment": "/**\n * Gets or sets the scaleX affine transform of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scaleX: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scaleX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#scaleY:member", + "docComment": "/**\n * Gets or sets the scaleY affine transform of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "scaleY: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "scaleY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!View#setMeasuredDimension:member(1)", + "docComment": "/**\n * This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time.\n *\n * @param - measuredWidth The measured width of this view. May be a complex bit mask as defined by MEASURED_SIZE_MASK and MEASURED_STATE_TOO_SMALL.\n *\n * @param - measuredHeight The measured height of this view. May be a complex bit mask as defined by MEASURED_SIZE_MASK and MEASURED_STATE_TOO_SMALL.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public setMeasuredDimension(measuredWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", measuredHeight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "measuredWidth", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "measuredHeight", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "setMeasuredDimension" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View.showingModallyEvent:member", + "docComment": "/**\n * String value used when hooking to showingModally event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static showingModallyEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "showingModallyEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View.shownModallyEvent:member", + "docComment": "/**\n * String value used when hooking to shownModally event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static shownModallyEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "shownModallyEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#translateX:member", + "docComment": "/**\n * Gets or sets the translateX affine transform of the view in device independent pixels.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "translateX: " + }, + { + "kind": "Reference", + "text": "dip", + "canonicalReference": "NativeScript!dip:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "translateX", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#translateY:member", + "docComment": "/**\n * Gets or sets the translateY affine transform of the view in device independent pixels.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "translateY: " + }, + { + "kind": "Reference", + "text": "dip", + "canonicalReference": "NativeScript!dip:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "translateY", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#verticalAlignment:member", + "docComment": "/**\n * Gets or sets the alignment of this view within its parent along the Vertical axis.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "verticalAlignment: " + }, + { + "kind": "Reference", + "text": "VerticalAlignment", + "canonicalReference": "NativeScript!VerticalAlignment:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "verticalAlignment", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#visibility:member", + "docComment": "/**\n * Gets or sets the visibility of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "visibility: " + }, + { + "kind": "Reference", + "text": "Visibility", + "canonicalReference": "NativeScript!Visibility:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "visibility", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!View#width:member", + "docComment": "/**\n * Gets or sets the desired width of the view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "width: " + }, + { + "kind": "Reference", + "text": "PercentLength", + "canonicalReference": "NativeScript!PercentLength:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "width", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!ViewBase:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export abstract class ViewBase extends " + }, + { + "kind": "Reference", + "text": "Observable", + "canonicalReference": "NativeScript!Observable:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "ViewBase", + "members": [ + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_addView:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _addView(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ", atIndex?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "atIndex", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_addView" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_addViewCore:member(1)", + "docComment": "/**\n * Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _addViewCore(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ", atIndex?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "atIndex", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_addViewCore" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_addViewToNativeVisualTree:member(1)", + "docComment": "/**\n * Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_addViewToNativeVisualTree(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ", atIndex?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "atIndex", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_addViewToNativeVisualTree" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_automaticallyAdjustsScrollViewInsets:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _automaticallyAdjustsScrollViewInsets: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_automaticallyAdjustsScrollViewInsets", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_batchUpdate:member(1)", + "docComment": "/**\n * Allow multiple updates to be performed on the instance at once.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _batchUpdate(callback: " + }, + { + "kind": "Content", + "text": "() => T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "_batchUpdate" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_childIndexToNativeChildIndex:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_childIndexToNativeChildIndex(index?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_childIndexToNativeChildIndex" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_context:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_context: " + }, + { + "kind": "Content", + "text": "any /* android.content.Context */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_context", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_cssState:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_cssState: " + }, + { + "kind": "Content", + "text": "any /* \"ui/styling/style-scope\" */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_cssState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_defaultPaddingBottom:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_defaultPaddingBottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_defaultPaddingBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_defaultPaddingLeft:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_defaultPaddingLeft: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_defaultPaddingLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_defaultPaddingRight:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_defaultPaddingRight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_defaultPaddingRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_defaultPaddingTop:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_defaultPaddingTop: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_defaultPaddingTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_dialogClosed:member(1)", + "docComment": "/**\n * Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _dialogClosed(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_dialogClosed" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_domId:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_domId: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_domId", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_goToVisualState:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _goToVisualState(state: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_goToVisualState" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_ignoreFlexMinWidthHeightReset:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _ignoreFlexMinWidthHeightReset: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_ignoreFlexMinWidthHeightReset", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_inheritStyleScope:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_inheritStyleScope(styleScope: " + }, + { + "kind": "Content", + "text": "any /* StyleScope */" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "styleScope", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_inheritStyleScope" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_isAddedToNativeVisualTree:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_isAddedToNativeVisualTree: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_isAddedToNativeVisualTree", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_isPaddingRelative:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _isPaddingRelative: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_isPaddingRelative", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_isStyleScopeHost:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_isStyleScopeHost: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_isStyleScopeHost", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_layoutParent:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _layoutParent(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_layoutParent" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_moduleName:member", + "docComment": "/**\n * @private Module name when the view is a module root. Otherwise, it is undefined.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_moduleName?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_moduleName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_oldBottom:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_oldBottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_oldBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_oldLeft:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_oldLeft: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_oldLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_oldRight:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_oldRight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_oldRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_oldTop:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_oldTop: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_oldTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_onCssStateChange:member(1)", + "docComment": "/**\n * @private Notifies each child's css state for change, recursively. Either the style scope, className or id properties were changed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_onCssStateChange(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_onCssStateChange" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_onRootViewReset:member(1)", + "docComment": "/**\n * Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _onRootViewReset(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_onRootViewReset" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_parentChanged:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _parentChanged(oldParent: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "oldParent", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_parentChanged" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_removeView:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _removeView(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_removeView" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_removeViewCore:member(1)", + "docComment": "/**\n * Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _removeViewCore(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_removeViewCore" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_removeViewFromNativeVisualTree:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "_removeViewFromNativeVisualTree(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_removeViewFromNativeVisualTree" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_setupAsRootView:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setupAsRootView(context: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_setupAsRootView" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_setupUI:member(1)", + "docComment": "/**\n * Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_setupUI(context: " + }, + { + "kind": "Content", + "text": "any /* android.content.Context */" + }, + { + "kind": "Content", + "text": ", atIndex?: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "atIndex", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "_setupUI" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_shouldDelayLayout:member(1)", + "docComment": "/**\n * When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as \"protected\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_shouldDelayLayout(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "_shouldDelayLayout" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_styleScope:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _styleScope: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_styleScope", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_suspendedUpdates:member", + "docComment": "/**\n * A property bag holding suspended native updates. Native setters that had to execute while there was no native view, or the view was detached from the visual tree etc. will accumulate in this object, and will be applied when all prerequisites are met. @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_suspendedUpdates: " + }, + { + "kind": "Content", + "text": "{ [propertyName: string]: " + }, + { + "kind": "Reference", + "text": "Property", + "canonicalReference": "NativeScript!Property:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ", any> | " + }, + { + "kind": "Reference", + "text": "CssProperty", + "canonicalReference": "NativeScript!CssProperty:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Style", + "canonicalReference": "NativeScript!Style:class" + }, + { + "kind": "Content", + "text": ", any> | " + }, + { + "kind": "Reference", + "text": "CssAnimationProperty", + "canonicalReference": "NativeScript!CssAnimationProperty:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Style", + "canonicalReference": "NativeScript!Style:class" + }, + { + "kind": "Content", + "text": ", any> }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_suspendedUpdates", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 14 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#_suspendNativeUpdatesCount:member", + "docComment": "/**\n * Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the _batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public _suspendNativeUpdatesCount: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "_suspendNativeUpdatesCount", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#_tearDownUI:member(1)", + "docComment": "/**\n * Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "_tearDownUI(force?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "force", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "_tearDownUI" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#addPseudoClass:member(1)", + "docComment": "/**\n * @protected @unstable A widget can call this method to add a matching css pseudo class.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public addPseudoClass(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "addPseudoClass" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#alignSelf:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "alignSelf: " + }, + { + "kind": "Reference", + "text": "AlignSelf", + "canonicalReference": "NativeScript!AlignSelf:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "alignSelf", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#android:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public android: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#bind:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public bind(options: " + }, + { + "kind": "Reference", + "text": "BindingOptions", + "canonicalReference": "NativeScript!BindingOptions:interface" + }, + { + "kind": "Content", + "text": ", source?: " + }, + { + "kind": "Reference", + "text": "Object", + "canonicalReference": "!Object:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "bind" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#bindingContext:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public bindingContext: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "bindingContext", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#callLoaded:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "callLoaded(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "callLoaded" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#callUnloaded:member(1)", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "callUnloaded(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "callUnloaded" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#className:member", + "docComment": "/**\n * Gets or sets the CSS class name for this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public className: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "className", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#closeModal:member(1)", + "docComment": "/**\n * Closes the current modal view that this page is showing.\n *\n * @param context - Any context you want to pass back to the host when closing the modal view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "closeModal(context?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "closeModal" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#col:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "col: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "col", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#colSpan:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "colSpan: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "colSpan", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#column:member", + "docComment": "/**\n * Setting `column` property is the same as `col`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "column: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "column", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#columnSpan:member", + "docComment": "/**\n * Setting `columnSpan` property is the same as `colSpan`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "columnSpan: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "columnSpan", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#createNativeView:member(1)", + "docComment": "/**\n * Creates a native view. Returns either android.view.View or UIView.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "createNativeView(): " + }, + { + "kind": "Reference", + "text": "Object", + "canonicalReference": "!Object:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "createNativeView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#cssClasses:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public cssClasses: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cssClasses", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#cssPseudoClasses:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public cssPseudoClasses: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "cssPseudoClasses", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#deletePseudoClass:member(1)", + "docComment": "/**\n * @protected @unstable A widget can call this method to discard matching css pseudo class.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public deletePseudoClass(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "deletePseudoClass" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#disposeNativeView:member(1)", + "docComment": "/**\n * Clean up references to the native view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "disposeNativeView(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "disposeNativeView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#dock:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "dock: " + }, + { + "kind": "Content", + "text": "\"left\" | \"top\" | \"right\" | \"bottom\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "dock", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#domNode:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "domNode: " + }, + { + "kind": "Reference", + "text": "DOMNode", + "canonicalReference": "NativeScript!DOMNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "domNode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#eachChild:member(1)", + "docComment": "/**\n * Iterates over children of type ViewBase.\n *\n * @param - callback Called for each child of type ViewBase. Iteration stops if this method returns falsy value.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public eachChild(callback: " + }, + { + "kind": "Content", + "text": "(child: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ") => boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + } + ], + "name": "eachChild" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveBorderBottomWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveBorderBottomWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveBorderBottomWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveBorderLeftWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveBorderLeftWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveBorderLeftWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveBorderRightWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveBorderRightWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveBorderRightWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveBorderTopWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveBorderTopWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveBorderTopWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveHeight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveHeight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveLeft:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "effectiveLeft: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveMarginBottom:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveMarginBottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveMarginBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveMarginLeft:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveMarginLeft: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveMarginLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveMarginRight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveMarginRight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveMarginRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveMarginTop:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveMarginTop: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveMarginTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveMinHeight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveMinHeight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveMinHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveMinWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveMinWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveMinWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectivePaddingBottom:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectivePaddingBottom: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectivePaddingBottom", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectivePaddingLeft:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectivePaddingLeft: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectivePaddingLeft", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectivePaddingRight:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectivePaddingRight: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectivePaddingRight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectivePaddingTop:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectivePaddingTop: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectivePaddingTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveTop:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "effectiveTop: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveTop", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#effectiveWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public effectiveWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "effectiveWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#ensureDomNode:member(1)", + "docComment": "/**\n * @unstable Ensures a dom-node for this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public ensureDomNode();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "ensureDomNode" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#flexGrow:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "flexGrow: " + }, + { + "kind": "Reference", + "text": "FlexGrow", + "canonicalReference": "NativeScript!FlexGrow:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexGrow", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#flexShrink:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "flexShrink: " + }, + { + "kind": "Reference", + "text": "FlexShrink", + "canonicalReference": "NativeScript!FlexShrink:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexShrink", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#flexWrapBefore:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "flexWrapBefore: " + }, + { + "kind": "Reference", + "text": "FlexWrapBefore", + "canonicalReference": "NativeScript!FlexWrapBefore:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "flexWrapBefore", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#getViewById:member(1)", + "docComment": "/**\n * Returns the child view with the specified id.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public getViewById(id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "id", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "getViewById" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#id:member", + "docComment": "/**\n * Gets or sets the id for this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public id: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "id", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#initNativeView:member(1)", + "docComment": "/**\n * Initializes properties/listeners of the native view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "initNativeView(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "initNativeView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#ios:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public ios: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#isCollapsed:member", + "docComment": "/**\n * Returns true if visibility is set to 'collapse'. Readonly property\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public isCollapsed: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isCollapsed", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#isLoaded:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public readonly isLoaded: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "isLoaded", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#left:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "left: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "left", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase.loadedEvent:member", + "docComment": "/**\n * String value used when hooking to loaded event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static loadedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "loadedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#loadView:member(1)", + "docComment": "/**\n * Load view.\n *\n * @param - view to load.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public loadView(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "loadView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#nativeView:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public nativeView: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "nativeView", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#nativeViewProtected:member", + "docComment": "/**\n * read-only. If you want to set out-of-band the nativeView use the setNativeView method.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public nativeViewProtected: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "nativeViewProtected", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#onLoaded:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onLoaded(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "onLoaded" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#onResumeNativeUpdates:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onResumeNativeUpdates(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "onResumeNativeUpdates" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#onUnloaded:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public onUnloaded(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "onUnloaded" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#order:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "order: " + }, + { + "kind": "Reference", + "text": "Order", + "canonicalReference": "NativeScript!Order:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "order", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#page:member", + "docComment": "/**\n * Gets owner page. This is a read-only property.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public readonly page: " + }, + { + "kind": "Reference", + "text": "Page", + "canonicalReference": "NativeScript!Page:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "page", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#parent:member", + "docComment": "/**\n * Gets the parent view. This property is read-only.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public readonly parent: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "parent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#parentNode:member", + "docComment": "/**\n * Gets the template parent or the native parent. Sets the template parent.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public parentNode: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "parentNode", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#recycleNativeView:member", + "docComment": "/**\n * @private\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public recycleNativeView: " + }, + { + "kind": "Content", + "text": "\"always\" | \"never\" | \"auto\"" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "recycleNativeView", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#requestLayout:member(1)", + "docComment": "/**\n * Invalidates the layout of the view and triggers a new layout pass.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public requestLayout(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "requestLayout" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#resetNativeView:member(1)", + "docComment": "/**\n * Resets properties/listeners set to the native view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "resetNativeView(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "resetNativeView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#row:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "row: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "row", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#rowSpan:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "rowSpan: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "rowSpan", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#setInlineStyle:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public setInlineStyle(style: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "style", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setInlineStyle" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#setNativeView:member(1)", + "docComment": "/**\n * Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "setNativeView(view: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "setNativeView" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#showModal:member(1)", + "docComment": "/**\n * Shows the View contained in moduleName as a modal view.\n *\n * @param moduleName - The name of the module to load starting from the application root.\n *\n * @param modalOptions - A ShowModalOptions instance\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "showModal(moduleName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", modalOptions: " + }, + { + "kind": "Reference", + "text": "ShowModalOptions", + "canonicalReference": "NativeScript!ShowModalOptions:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "moduleName", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "modalOptions", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "showModal" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#showModal:member(2)", + "docComment": "/**\n * Shows the view passed as parameter as a modal view.\n *\n * @param view - View instance to be shown modally.\n *\n * @param modalOptions - A ShowModalOptions instance\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "showModal(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ", modalOptions: " + }, + { + "kind": "Reference", + "text": "ShowModalOptions", + "canonicalReference": "NativeScript!ShowModalOptions:interface" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "modalOptions", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + } + ], + "name": "showModal" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#style:member", + "docComment": "/**\n * Gets the style object associated to this view.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public readonly style: " + }, + { + "kind": "Reference", + "text": "Style", + "canonicalReference": "NativeScript!Style:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "style", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#top:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "top: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "top", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#typeName:member", + "docComment": "/**\n * Gets the name of the constructor function for this instance. E.g. for a Button class this will return \"Button\".\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public typeName: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "typeName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#unbind:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "public unbind(property: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "property", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "unbind" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase.unloadedEvent:member", + "docComment": "/**\n * String value used when hooking to unloaded event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static unloadedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "unloadedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!ViewBase#unloadView:member(1)", + "docComment": "/**\n * Unload view.\n *\n * @param - view to unload.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public unloadView(view: " + }, + { + "kind": "Reference", + "text": "ViewBase", + "canonicalReference": "NativeScript!ViewBase:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "view", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "unloadView" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!ViewBase#viewController:member", + "docComment": "/**\n * returns the native UIViewController.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public viewController: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "viewController", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Interface", + "canonicalReference": "NativeScript!ViewEntry:interface", + "docComment": "/**\n * Represents an entry to be used to create a view or load it form file\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export interface ViewEntry " + } + ], + "releaseTag": "Public", + "name": "ViewEntry", + "members": [ + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ViewEntry#create:member", + "docComment": "/**\n * A function used to create the View instance. Optional.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "create?: " + }, + { + "kind": "Content", + "text": "() => " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "create", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + }, + { + "kind": "PropertySignature", + "canonicalReference": "NativeScript!ViewEntry#moduleName:member", + "docComment": "/**\n * The name of the module containing the View instance to load. Optional.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "moduleName?: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "moduleName", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "extendsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!WebView:class", + "docComment": "/**\n * Represents a standard WebView widget.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class WebView extends " + }, + { + "kind": "Reference", + "text": "View", + "canonicalReference": "NativeScript!View:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "WebView", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!WebView#android:member", + "docComment": "/**\n * Gets the native [android widget](http://developer.android.com/reference/android/webkit/WebView.html) that represents the user interface for this component. Valid only when running on Android OS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "android: " + }, + { + "kind": "Content", + "text": "any /* android.webkit.WebView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "android", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!WebView#canGoBack:member", + "docComment": "/**\n * Gets a value indicating whether the WebView can navigate back.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "canGoBack: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "canGoBack", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!WebView#canGoForward:member", + "docComment": "/**\n * Gets a value indicating whether the WebView can navigate forward.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "canGoForward: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "canGoForward", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!WebView#goBack:member(1)", + "docComment": "/**\n * Navigates back.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "goBack();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "goBack" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!WebView#goForward:member(1)", + "docComment": "/**\n * Navigates forward.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "goForward();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "goForward" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!WebView#ios:member", + "docComment": "/**\n * Gets the native [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview/) that represents the user interface for this component. Valid only when running on iOS.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ios: " + }, + { + "kind": "Content", + "text": "any /* WKWebView */" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "ios", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!WebView.loadFinishedEvent:member", + "docComment": "/**\n * String value used when hooking to loadFinished event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static loadFinishedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "loadFinishedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!WebView.loadStartedEvent:member", + "docComment": "/**\n * String value used when hooking to loadStarted event.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "public static loadStartedEvent: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "loadStartedEvent", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!WebView#on:member(1)", + "docComment": "/**\n * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).\n *\n * @param eventNames - String corresponding to events (e.g. \"propertyChange\"). Optionally could be used more events separated by `,` (e.g. \"propertyChange\", \"change\").\n *\n * @param callback - Callback function which will be executed when event is raised.\n *\n * @param thisArg - An optional parameter which will be used as `this` context for callback execution.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(eventNames: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(data: " + }, + { + "kind": "Reference", + "text": "EventData", + "canonicalReference": "NativeScript!EventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "eventNames", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!WebView#on:member(2)", + "docComment": "/**\n * Raised when a loadFinished event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"loadFinished\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "LoadEventData", + "canonicalReference": "NativeScript!LoadEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 2, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!WebView#on:member(3)", + "docComment": "/**\n * Raised when a loadStarted event occurs.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "on(event: " + }, + { + "kind": "Content", + "text": "\"loadStarted\"" + }, + { + "kind": "Content", + "text": ", callback: " + }, + { + "kind": "Content", + "text": "(args: " + }, + { + "kind": "Reference", + "text": "LoadEventData", + "canonicalReference": "NativeScript!LoadEventData:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", thisArg?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 3, + "parameters": [ + { + "parameterName": "event", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "parameterName": "callback", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + } + }, + { + "parameterName": "thisArg", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + } + } + ], + "name": "on" + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!WebView#reload:member(1)", + "docComment": "/**\n * Reloads the current url.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "reload();" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "reload" + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!WebView#src:member", + "docComment": "/**\n * Gets or sets the url, local file path or HTML string.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "src: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "src", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!WebView#stopLoading:member(1)", + "docComment": "/**\n * Stops loading the current content (if any).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "stopLoading(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [], + "name": "stopLoading" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!WrapLayout:class", + "docComment": "/**\n * WrapLayout position children in rows or columns depending on orientation property until space is filled and then wraps them on new row or column.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class WrapLayout extends " + }, + { + "kind": "Reference", + "text": "LayoutBase", + "canonicalReference": "NativeScript!LayoutBase:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "releaseTag": "Public", + "name": "WrapLayout", + "members": [ + { + "kind": "Property", + "canonicalReference": "NativeScript!WrapLayout#itemHeight:member", + "docComment": "/**\n * Gets or sets the height used to measure and layout each child. Default value is Number.NaN which does not restrict children.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemHeight: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemHeight", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!WrapLayout#itemWidth:member", + "docComment": "/**\n * Gets or sets the width used to measure and layout each child. Default value is Number.NaN which does not restrict children.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "itemWidth: " + }, + { + "kind": "Reference", + "text": "Length", + "canonicalReference": "NativeScript!Length:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "itemWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + }, + { + "kind": "Property", + "canonicalReference": "NativeScript!WrapLayout#orientation:member", + "docComment": "/**\n * Gets or sets the flow direction. Default value is horizontal. If orientation is horizontal items are arranged in rows, else items are arranged in columns.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "orientation: " + }, + { + "kind": "Reference", + "text": "Orientation", + "canonicalReference": "NativeScript!Orientation:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "releaseTag": "Public", + "name": "orientation", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "NativeScript!XmlParser:class", + "docComment": "/**\n * A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export class XmlParser " + } + ], + "releaseTag": "Public", + "name": "XmlParser", + "members": [ + { + "kind": "Constructor", + "canonicalReference": "NativeScript!XmlParser:constructor(1)", + "docComment": "/**\n * Creates a new instance of the XmlParser class.\n *\n * @param - onEvent The callback to execute when a parser event occurs. The 'event' parameter contains information about the event.\n *\n * @param - onError The callback to execute when a parser error occurs. The 'error' parameter contains the error.\n *\n * @param - processNamespaces Specifies whether namespaces should be processed.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(onEvent: " + }, + { + "kind": "Content", + "text": "(event: " + }, + { + "kind": "Reference", + "text": "ParserEvent", + "canonicalReference": "NativeScript!ParserEvent:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", onError?: " + }, + { + "kind": "Content", + "text": "(error: " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": ", position: " + }, + { + "kind": "Reference", + "text": "Position", + "canonicalReference": "NativeScript!Position:interface" + }, + { + "kind": "Content", + "text": ") => void" + }, + { + "kind": "Content", + "text": ", processNamespaces?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ", angularSyntax?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "onEvent", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "parameterName": "onError", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 10 + } + }, + { + "parameterName": "processNamespaces", + "parameterTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + } + }, + { + "parameterName": "angularSyntax", + "parameterTypeTokenRange": { + "startIndex": 13, + "endIndex": 14 + } + } + ] + }, + { + "kind": "Method", + "canonicalReference": "NativeScript!XmlParser#parse:member(1)", + "docComment": "/**\n * Parses the supplied xml string.\n *\n * @param - xmlString The string containing the xml to parse.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "parse(xmlString: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "xmlString", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ], + "name": "parse" + } + ], + "implementsTokenRanges": [] + } + ] + } + ] +} diff --git a/nativescript-core/temp/NativeScript.api.md b/nativescript-core/temp/NativeScript.api.md new file mode 100644 index 000000000..a22123fad --- /dev/null +++ b/nativescript-core/temp/NativeScript.api.md @@ -0,0 +1,3134 @@ +## API Report File for "NativeScript" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +// @public +export class AbsoluteLayout extends LayoutBase { + // Warning: (ae-forgotten-export) The symbol "Length" needs to be exported by the entry point index.d.ts + static getLeft(view: View): Length; + + static getTop(view: View): Length; + + static setLeft(view: View, value: Length): void; + + static setTop(view: View, value: Length): void; +} + +// @public +export class ActionBar extends View { + + actionItems: ActionItems; + + // Warning: (ae-forgotten-export) The symbol "AndroidActionBarSettings" needs to be exported by the entry point index.d.ts + android: AndroidActionBarSettings; + + // (undocumented) + public effectiveContentInsetLeft: number; + + // (undocumented) + public effectiveContentInsetRight: number; + + flat: boolean; + + // (undocumented) + _getActualSize?: { width: number, height: number }; + + ios: any /* UITabBarController */; + + iosIconRenderingMode: "automatic" | "alwaysOriginal" | "alwaysTemplate"; + + // (undocumented) + _isEmpty(): boolean; + + navigationButton: NavigationButton; + + title: string; + + titleView: View; + + update(); + //@endprivate +} + +// @public +export class ActionItem extends ViewBase { + actionBar: ActionBar; + + actionView: View; + + // Warning: (ae-forgotten-export) The symbol "AndroidActionItemSettings" needs to be exported by the entry point index.d.ts + android: AndroidActionItemSettings; + + icon: string; + + // Warning: (ae-forgotten-export) The symbol "IOSActionItemSettings" needs to be exported by the entry point index.d.ts + ios: IOSActionItemSettings; + + on(eventNames: string, callback: (data: EventData) => void); + + on(event: "tap", callback: (args: EventData) => void); + + // (undocumented) + _raiseTap(): void; + + text: string; + + visibility: string; +} + +// @public +export class ActionItems { + addItem(item: ActionItem): void; + + getItemAt(index: number): ActionItem; + + getItems(): Array; + + removeItem(item: ActionItem): void; +} + +// @public +export class ActivityIndicator extends View { + android: any /* android.widget.ProgressBar */; + + busy: boolean; + + ios: any /* UIActivityIndicatorView */; +} + +// @public +export interface AndroidActivityBackPressedEventData extends AndroidActivityEventData { + cancel: boolean; +} + +// @public +export interface AndroidActivityBundleEventData extends AndroidActivityEventData { + bundle: any /* android.os.Bundle */; +} + +// @public +export interface AndroidActivityEventData { + activity: any /* androidx.appcompat.app.AppCompatActivity */; + + eventName: string; + + object: any; +} + +// @public +export interface AndroidActivityNewIntentEventData extends AndroidActivityEventData { + intent: any /* android.content.Intent */; +} + +// @public +export interface AndroidActivityRequestPermissionsEventData extends AndroidActivityEventData { + grantResults: Array; + + permissions: Array; + + requestCode: number; +} + +// @public +export interface AndroidActivityResultEventData extends AndroidActivityEventData { + intent: any /* android.content.Intent */; + + requestCode: number; + + resultCode: number; +} + +// @public +export class AndroidApplication extends Observable { + public static activityBackPressedEvent: string; + + public static activityCreatedEvent: string; + + public static activityDestroyedEvent: string; + + public static activityNewIntentEvent: string; + + public static activityPausedEvent: string; + + public static activityRequestPermissionsEvent: string; + + public static activityResultEvent: string; + + public static activityResumedEvent: string; + + public static activityStartedEvent: string; + + public static activityStoppedEvent: string; + + context: any /* android.content.Context */; + + foregroundActivity: any /* androidx.appcompat.app.AppCompatActivity */; + + init: (nativeApp) => void; + + nativeApp: any /* android.app.Application */; + + on(eventNames: string, callback: (data: AndroidActivityEventData) => void, thisArg?: any); + + on(event: "activityCreated", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any); + + on(event: "activityDestroyed", callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + on(event: "activityStarted", callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + on(event: "activityPaused", callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + on(event: "activityResumed", callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + on(event: "activityStopped", callback: (args: AndroidActivityEventData) => void, thisArg?: any); + + on(event: "saveActivityState", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any); + + on(event: "activityResult", callback: (args: AndroidActivityResultEventData) => void, thisArg?: any); + + on(event: "activityBackPressed", callback: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any); + + on(event: "activityNewIntent", callback: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any); + + on(event: "activityRequestPermissions", callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any); + + orientation: "portrait" | "landscape" | "unknown"; + + packageName: string; + + paused: boolean; + + registerBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: any /* android.content.Context */, intent: any /* android.content.Intent */) => void): void; + + public static saveActivityStateEvent: string; + + startActivity: any /* androidx.appcompat.app.AppCompatActivity */; + + systemAppearance: "dark" | "light"; + + unregisterBroadcastReceiver(intentFilter: string): void; +} + +// @public +export class Animation { + constructor(animationDefinitions: Array, playSequentially?: boolean); + // (undocumented) + public cancel: () => void; + // (undocumented) + public isPlaying: boolean; + // Warning: (ae-forgotten-export) The symbol "AnimationPromise" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public play: (resetOnFinish?: boolean) => AnimationPromise; + // (undocumented) + public _resolveAnimationCurve(curve: any): any; +} + +// @public +export interface AnimationDefinition { + backgroundColor?: Color; + + curve?: any; + + delay?: number; + + duration?: number; + + // Warning: (ae-forgotten-export) The symbol "PercentLength" needs to be exported by the entry point index.d.ts + height?: PercentLength | string; + + iterations?: number; + + opacity?: number; + + // Warning: (ae-forgotten-export) The symbol "Point3D" needs to be exported by the entry point index.d.ts + rotate?: number | Point3D; + + scale?: Pair; + + target?: View; + + // Warning: (ae-forgotten-export) The symbol "Pair" needs to be exported by the entry point index.d.ts + translate?: Pair; + + width?: PercentLength | string; +} + +// @public (undocumented) +export const Application: { + launchEvent: string; + displayedEvent: string; + uncaughtErrorEvent: string; + discardedErrorEvent: string; + suspendEvent: string; + resumeEvent: string; + exitEvent: string; + lowMemoryEvent: string; + orientationChangedEvent: string; + getMainEntry: typeof getMainEntry; + getRootView: typeof getRootView; + setResources: typeof setResources; + setCssFileName: typeof setCssFileName; + getCssFileName: typeof getCssFileName; + loadAppCss: typeof loadAppCss; + addCss: typeof addCss; + on: typeof on; + off: typeof off; + run: typeof run; + orientation: typeof orientation; + getNativeApplication: typeof getNativeApplication; + hasLaunched: typeof hasLaunched; + android: import("./application/application").AndroidApplication; + ios: import("./application/application").iOSApplication; +}; + +// @public +export interface ApplicationEventData extends EventData { + android?: any; + + eventName: string; + + ios?: any; + + object: any; +} + +// @public (undocumented) +export const ApplicationSettings: { + clear: typeof clear; + flush: typeof flush; + hasKey: typeof hasKey; + remove: typeof remove; + setString: typeof setString; + getString: typeof getString; + getAllKeys: typeof getAllKeys; + getBoolean: typeof getBoolean; + setBoolean: typeof setBoolean; + getNumber: typeof getNumber; + setNumber: typeof setNumber; +}; + +// @public +export interface BackstackEntry { + // (undocumented) + entry: NavigationEntry; + // (undocumented) + fragment?: any; + // (undocumented) + fragmentTag: string; + // (undocumented) + frameId?: number; + // (undocumented) + navDepth: number; + // (undocumented) + recreated?: boolean; + // (undocumented) + resolvedPage: Page; + // (undocumented) + viewSavedState?: any; + //@endprivate +} + +// @public +export class BottomNavigation extends TabNavigationBase { + android: any /* android.view.View */; + + ios: any /* UITabBarController */; + + items: Array; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + on(event: "selectedIndexChanged", callback: (args: SelectedIndexChangedEventData) => void, thisArg?: any); + + selectedIndex: number; + + public static selectedIndexChangedEvent: string; + + tabStrip: TabStrip; +} + +// @public (undocumented) +export class Builder { + static createViewFromEntry(entry: NavigationEntry): View; + + static load(moduleName: string, exports?: any): View; + + static load(options: LoadOptions): View; + + // (undocumented) + static parse(value: string | Template, exports?: any): View; + + static parseMultipleTemplates(value: string, exports?: any): Array; +} + +// @public +export class Button extends TextBase { + android: any /* android.widget.Button */; + + ios: any /* UIButton */; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + on(event: "tap", callback: (args: EventData) => void, thisArg?: any); + + public static tapEvent: string; + + textWrap: boolean; +} + +// @public +export interface ChangedData extends EventData { + action: string; + + addedCount: number; + + index: number; + + removed: Array; +} + +// @public +export class ChangeType { + // (undocumented) + static Add: string; + // (undocumented) + static Delete: string; + // (undocumented) + static Splice: string; + // (undocumented) + static Update: string; +} + +// @public +export class Color { + constructor(knownColor: string); + constructor(hex: string); + constructor(argb: number); + constructor(alpha: number, red: number, green: number, blue: number); + public a: number; + android: number; + public argb: number; + public b: number; + public equals(value: Color): boolean; + public static equals(value1: Color, value2: Color): boolean; + public static fromIosColor(value: any /* UIColor */): Color; + public g: number; + public hex: string; + ios: any /* UIColor */; + public static isValid(value: any): boolean; + public name: string; + public r: number; +} + +// @public (undocumented) +export interface CommonLayoutParams { + // (undocumented) + bottomMargin: number; + // (undocumented) + bottomMarginPercent: number; + // (undocumented) + height: number; + // (undocumented) + heightPercent: number; + // Warning: (ae-forgotten-export) The symbol "HorizontalAlignment" needs to be exported by the entry point index.d.ts + // + // (undocumented) + horizontalAlignment: HorizontalAlignment; + // (undocumented) + leftMargin: number; + // (undocumented) + leftMarginPercent: number; + // (undocumented) + rightMargin: number; + // (undocumented) + rightMarginPercent: number; + // (undocumented) + topMargin: number; + // (undocumented) + topMarginPercent: number; + // Warning: (ae-forgotten-export) The symbol "VerticalAlignment" needs to be exported by the entry point index.d.ts + // + // (undocumented) + verticalAlignment: VerticalAlignment; + // (undocumented) + width: number; + // (undocumented) + widthPercent: number; +} + +// @public (undocumented) +export const Connectivity: { + connectionType: typeof connectionType; + getConnectionType: typeof getConnectionType; + startMonitoring: typeof startMonitoring; + stopMonitoring: typeof stopMonitoring; +}; + +// Warning: (ae-forgotten-export) The symbol "AddChildFromBuilder" needs to be exported by the entry point index.d.ts +// +// @public +export class ContentView extends View implements AddChildFromBuilder { + // (undocumented) + _addChildFromBuilder(name: string, value: any): void; + + //@private + content: View; + + //@private + // (undocumented) + layoutView: View; + + //@private + _onContentChanged(oldView: View, newView: View); +} + +// @public +export interface CreateViewEventData extends EventData { + context?: any; + + view: any; +} + +// @public +export interface CssChangedEventData extends EventData { + // (undocumented) + cssFile?: string; + // (undocumented) + cssText?: string; +} + +// @public +export class DatePicker extends View { + android: any /* android.widget.DatePicker */; + + date: Date; + + day: number; + + ios: any /* UIDatePicker */; + + maxDate: Date; + + minDate: Date; + + month: number; + + year: number; +} + +// @public (undocumented) +export class DefaultErrorHandler implements ErrorHandler { + // (undocumented) + handlerError(error); +} + +// Warning: (ae-forgotten-export) The symbol "Device" needs to be exported by the entry point index.d.ts +// +// @public +export const Device: Device_2; + +// @public +export interface DiscardedErrorEventData extends ApplicationEventData { + // (undocumented) + error: NativeScriptError; +} + +// @public +export class DockLayout extends LayoutBase { + // Warning: (ae-forgotten-export) The symbol "Dock" needs to be exported by the entry point index.d.ts + static getDock(view: View): Dock; + + static setDock(view: View, value: Dock): void; + + stretchLastChild: boolean; +} + +// @public +export interface DownloadedData extends EventData { + image: ImageSource; + key: string; +} + +// @public +export interface DownloadError extends EventData { + error: Error; + key: string; +} + +// @public +export interface DownloadRequest { + completed?: (image: any, key: string) => void; + error?: (key: string) => void; + key: string; + url: string; +} + +// @public +export class EditableTextBase extends TextBase { + // Warning: (ae-forgotten-export) The symbol "AutocapitalizationType" needs to be exported by the entry point index.d.ts + autocapitalizationType: AutocapitalizationType; + autocorrect: boolean; + // (undocumented) + public static blurEvent: string; + dismissSoftInput(): void; + editable: boolean; + // (undocumented) + public static focusEvent: string; + hint: string; + // Warning: (ae-forgotten-export) The symbol "KeyboardType" needs to be exported by the entry point index.d.ts + keyboardType: KeyboardType; + maxLength: number; + // Warning: (ae-forgotten-export) The symbol "ReturnKeyType" needs to be exported by the entry point index.d.ts + returnKeyType: ReturnKeyType; + // (undocumented) + public _setInputType(inputType: number): void; + // (undocumented) + public static textChangeEvent: string; + // Warning: (ae-forgotten-export) The symbol "UpdateTextTrigger" needs to be exported by the entry point index.d.ts + updateTextTrigger: UpdateTextTrigger; + //@endprivate +} + +// @public +export module encoding { + const ISO_8859_1: any; + + const US_ASCII: any; + + const UTF_16: any; + + const UTF_16BE: any; + + const UTF_16LE: any; + + const UTF_8: any; +} + +// @public +export interface ErrorHandler { + // (undocumented) + handlerError(error: Error); +} + +// @public +export interface EventData { + eventName: string; + object: Observable; +} + +// @public +export class File extends FileSystemEntity { + static exists(path: string): boolean; + + extension: string; + + static fromPath(path: string): File; + + isLocked: boolean; + + read(): Promise; + + readSync(onError?: (error: any) => any): any; + + readText(encoding?: string): Promise; + + readTextSync(onError?: (error: any) => any, encoding?: string): string; + + size: number; + + write(content: any): Promise; + + writeSync(content: any, onError?: (error: any) => any): void; + + writeText(content: string, encoding?: string): Promise; + + writeTextSync(content: string, onError?: (error: any) => any, encoding?: string): void; +} + +// @public +export class FileSystemEntity { + lastModified: Date; + + name: string; + + parent: Folder; + + path: string; + + remove(): Promise; + + removeSync(onError?: (error: any) => any): void; + + rename(newName: string): Promise; + + renameSync(newName: string, onError?: (error: any) => any): void; +} + +// @public (undocumented) +export class FlexboxLayout extends LayoutBase { + // Warning: (ae-forgotten-export) The symbol "AlignContent" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public alignContent: AlignContent; + // Warning: (ae-forgotten-export) The symbol "AlignItems" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public alignItems: AlignItems; + // Warning: (ae-forgotten-export) The symbol "FlexDirection" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public flexDirection: FlexDirection; + // Warning: (ae-forgotten-export) The symbol "FlexWrap" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public flexWrap: FlexWrap; + // (undocumented) + public static getAlignSelf(view: View): AlignSelf; + // (undocumented) + public static getFlexGrow(view: View); + // (undocumented) + public static getFlexShrink(view: View): number; + // (undocumented) + public static getFlexWrapBefore(view: View): boolean; + // (undocumented) + public static getOrder(view: View): number; + // Warning: (ae-forgotten-export) The symbol "JustifyContent" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public justifyContent: JustifyContent; + // Warning: (ae-forgotten-export) The symbol "AlignSelf" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public static setAlignSelf(view: View, align: AlignSelf); + // (undocumented) + public static setFlexGrow(view: View, grow: number); + // (undocumented) + public static setFlexShrink(view: View, shrink: number); + // (undocumented) + public static setFlexWrapBefore(view: View, wrap: boolean); + // (undocumented) + public static setOrder(view: View, order: number); +} + +// @public +export class Folder extends FileSystemEntity { + clear(): Promise; + + clearSync(onError?: (error: any) => void): void; + + contains(name: string): boolean; + + eachEntity(onEntity: (entity: FileSystemEntity) => boolean); + + static exists(path: string): boolean; + + static fromPath(path: string): Folder; + + getEntities(): Promise>; + + getEntitiesSync(onError?: (error: any) => any): Array; + + getFile(name: string): File; + + getFolder(name: string): Folder; + + isKnown: boolean; +} + +// @public +export class FormattedString extends ViewBase { + + public backgroundColor: Color; + + public color: Color; + + public fontFamily: string; + + public fontSize: number; + + // Warning: (ae-forgotten-export) The symbol "FontStyle" needs to be exported by the entry point index.d.ts + public fontStyle: FontStyle; + + // Warning: (ae-forgotten-export) The symbol "FontWeight" needs to be exported by the entry point index.d.ts + public fontWeight: FontWeight; + + public spans: ObservableArray; + + // Warning: (ae-forgotten-export) The symbol "TextDecoration" needs to be exported by the entry point index.d.ts + public textDecoration: TextDecoration; + + public toString(): string; +} + +// @public +export class Frame extends View { + public actionBarVisibility: "auto" | "never" | "always"; + + // Warning: (ae-forgotten-export) The symbol "AndroidFrame" needs to be exported by the entry point index.d.ts + android: AndroidFrame; + + animated: boolean; + + // (undocumented) + _animationInProgress: boolean; + + backStack: Array; + + canGoBack(): boolean; + + currentEntry: NavigationEntry; + + // (undocumented) + _currentEntry: BackstackEntry; + + currentPage: Page; + + static defaultAnimatedNavigation: boolean; + + static defaultTransition: NavigationTransition; + + // (undocumented) + _executingContext: NavigationContext; + + // (undocumented) + _findEntryForTag(fragmentTag: string): BackstackEntry; + + static getFrameById(id: string): Frame; + + // (undocumented) + _getIsAnimatedNavigation(entry: NavigationEntry): boolean; + + // (undocumented) + _getNavBarVisible(page: Page): boolean; + + // (undocumented) + _getNavigationTransition(entry: NavigationEntry): NavigationTransition; + + static goBack(); + + goBack(to?: BackstackEntry); + + // Warning: (ae-forgotten-export) The symbol "iOSFrame" needs to be exported by the entry point index.d.ts + ios: iOSFrame; + + // (undocumented) + isCurrent(entry: BackstackEntry): boolean; + + navigate(pageModuleName: string); + + navigate(create: () => Page); + + navigate(entry: NavigationEntry); + + // (undocumented) + navigationBarHeight: number; + + // (undocumented) + navigationQueueIsEmpty(): boolean; + + on(eventNames: string, callback: (args: EventData) => void, thisArg?: any); + + // (undocumented) + public performNavigation(navigationContext: NavigationContext): void; + + // (undocumented) + _processNavigationQueue(page: Page); + + // (undocumented) + _pushInFrameStack(); + + // (undocumented) + _pushInFrameStackRecursive(); + + // (undocumented) + static reloadPage(context?: ModuleContext): void; + + // (undocumented) + _removeFromFrameStack(); + + // Warning: (ae-forgotten-export) The symbol "NavigationType" needs to be exported by the entry point index.d.ts + // + // (undocumented) + setCurrent(entry: BackstackEntry, navigationType: NavigationType): void; + + // (undocumented) + static _stack(): Array; + + static topmost(): Frame; + + transition: NavigationTransition; + + // (undocumented) + _updateActionBar(page?: Page, disableNavBarAnimation?: boolean); + + // (undocumented) + _updateBackstack(entry: BackstackEntry, navigationType: NavigationType): void; +} + +// @public +export interface GestureEventData extends EventData { + android: any + ios: any /* UIGestureRecognizer */; + type: GestureTypes; + view: View; + } + +// @public +export interface GestureEventDataWithState extends GestureEventData { + // (undocumented) + state: number; + } + +// @public +export class GesturesObserver { + constructor(target: View, callback: (args: GestureEventData) => void, context: any); + + androidOnTouchEvent: (motionEvent: any /* android.view.MotionEvent */) => void; + + callback: (args: GestureEventData) => void; + + context: any; + + disconnect(); + + observe(type: GestureTypes); + + type: GestureTypes; + } + +// @public +export enum GestureStateTypes { + began, + cancelled, + changed, + ended + } + +// @public +export enum GestureTypes { + doubleTap, + longPress, + pan, + pinch, + rotation, + swipe, + tap, + touch + } + +// @public +export class GridLayout extends LayoutBase { + + public addChildAtCell(view: View, row: number, column: number, rowSpan?: number, columnSpan?: number): void; + + // Warning: (ae-forgotten-export) The symbol "ItemSpec" needs to be exported by the entry point index.d.ts + public addColumn(itemSpec: ItemSpec): void; + + public addRow(itemSpec: ItemSpec): void; + + static getColumn(view: View): number; + + public getColumns(): Array; + + static getColumnSpan(view: View): number; + + static getRow(view: View): number; + + public getRows(): Array; + + static getRowSpan(view: View): number; + + // (undocumented) + public _onColumnAdded(itemSpec: ItemSpec): void; + + // (undocumented) + public _onColumnRemoved(itemSpec: ItemSpec, index: number): void; + + // (undocumented) + public _onRowAdded(itemSpec: ItemSpec): void; + + // (undocumented) + public _onRowRemoved(itemSpec: ItemSpec, index: number): void; + + public removeColumn(itemSpec: ItemSpec): void; + + public removeColumns(): void; + + public removeRow(itemSpec: ItemSpec): void; + + public removeRows(): void; + + static setColumn(view: View, value: number): void; + + static setColumnSpan(view: View, value: number): void; + + static setRow(view: View, value: number): void; + + static setRowSpan(view: View, value: number): void; + //@endprivate +} + +// @public (undocumented) +export type GridUnitType = "pixel" | "star" | "auto"; + +// @public (undocumented) +export namespace GridUnitType { + const // (undocumented) + PIXEL: "pixel"; + const // (undocumented) + STAR: "star"; + const // (undocumented) + AUTO: "auto"; + // (undocumented) + export function isValid(value: any): boolean; + // (undocumented) + export function parse(value: string): GridUnitType; +} + +// @public (undocumented) +export type Headers = { [key: string]: string | string[] }; + +// @public +export class HtmlView extends View { + android: any /* android.widget.TextView */; + + html: string; + + ios: any /* UITextView */; +} + +// @public (undocumented) +export const Http: { + getFile: typeof getFile; + getImage: typeof getImage; + getJSON: typeof getJSON; + getString: typeof getString_2; + request: typeof request; +}; + +// @public +export interface HttpContent { + raw: any; + + toArrayBuffer: () => ArrayBuffer; + + toFile: (destinationFilePath?: string) => File; + + toImage: () => Promise; + + toJSON: (encoding?: HttpResponseEncoding) => any; + + toString: (encoding?: HttpResponseEncoding) => string; +} + +// @public +export interface HttpRequestOptions { + content?: string | FormData | ArrayBuffer; + + dontFollowRedirects?: boolean; + + headers?: any; + + method: string; + + timeout?: number; + + url: string; +} + +// @public +export interface HttpResponse { + content?: HttpContent; + + headers: Headers; + + statusCode: number; +} + +// @public (undocumented) +export enum HttpResponseEncoding { + // (undocumented) + GBK, + // (undocumented) + UTF8 +} + +// @public +export class Image extends View { + android: any /* android.widget.ImageView */; + + decodeHeight: Length; + + decodeWidth: Length; + + imageSource: ImageSource; + + ios: any /* UIImageView */; + + readonly isLoading: boolean; + + loadMode: "sync" | "async"; + + src: any; + + // Warning: (ae-forgotten-export) The symbol "Stretch" needs to be exported by the entry point index.d.ts + stretch: Stretch; + + tintColor: Color; +} + +// @public (undocumented) +export class ImageAsset extends Observable { + constructor(asset: any); + // (undocumented) + android: any; + // (undocumented) + getImageAsync(callback: (image: any, error: any) => void); + // (undocumented) + ios: any; + // (undocumented) + nativeImage: any; + // (undocumented) + options: ImageAssetOptions; +} + +// @public (undocumented) +export interface ImageAssetOptions { + // (undocumented) + autoScaleFactor?: boolean; + // (undocumented) + height?: number; + // (undocumented) + keepAspectRatio?: boolean; + // (undocumented) + width?: number; +} + +// @public +export class ImageCache extends Observable { + clear(): void; + disableDownload(): void; + // (undocumented) + _downloadCore(request: DownloadRequest); + public static downloadedEvent: string; + public static downloadErrorEvent: string; + enableDownload(): void; + enqueue(request: DownloadRequest); + get(key: string): any; + maxRequests: number; + on(eventNames: string, callback: (args: EventData) => void, thisArg?: any); + on(event: "downloaded", callback: (args: DownloadedData) => void, thisArg?: any); + on(event: "downloadError", callback: (args: DownloadError) => void, thisArg?: any); + // (undocumented) + _onDownloadCompleted(key: string, image: any); + // (undocumented) + _onDownloadError(key: string, err: Error); + placeholder: ImageSource; + push(request: DownloadRequest); + remove(key: string): void; + set(key: string, image: any): void; + //@endprivate +} + +// @public +export class ImageSource { + constructor(nativeSource?: any); + + android: any /* android.graphics.Bitmap */; + + static fromAsset(asset: ImageAsset): Promise; + + // @deprecated (undocumented) + fromAsset(asset: ImageAsset): Promise; + + static fromBase64(source: string): Promise; + + // @deprecated (undocumented) + fromBase64(source: string): Promise; + + static fromBase64Sync(source: string): ImageSource; + + static fromData(data: any): Promise; + + // @deprecated (undocumented) + fromData(data: any): Promise; + + static fromDataSync(data: any): ImageSource; + + static fromFile(path: string): Promise; + + // @deprecated (undocumented) + fromFile(path: string): Promise; + + static fromFileOrResourceSync(path: string): ImageSource; + + static fromFileSync(path: string): ImageSource; + + // Warning: (ae-forgotten-export) The symbol "Font" needs to be exported by the entry point index.d.ts + static fromFontIconCodeSync(source: string, font: Font, color: Color): ImageSource; + + static fromResource(name: string): Promise; + + // @deprecated (undocumented) + fromResource(name: string): Promise; + + static fromResourceSync(name: string): ImageSource; + + static fromUrl(url: string): Promise; + + height: number; + + ios: any /* UIImage */; + + // @deprecated (undocumented) + loadFromBase64(source: string): boolean; + + // @deprecated (undocumented) + loadFromData(data: any): boolean; + + // @deprecated (undocumented) + loadFromFile(path: string): boolean; + + // @deprecated (undocumented) + loadFromFontIconCode(source: string, font: Font, color: Color): boolean; + + // @deprecated (undocumented) + loadFromResource(name: string): boolean; + + resize(maxSize: number, options?: any): ImageSource; + + rotationAngle: number; + + saveToFile(path: string, format: "png" | "jpeg" | "jpg", quality?: number): boolean; + + setNativeSource(nativeSource: any): void; + + toBase64String(format: "png" | "jpeg" | "jpg", quality?: number): string; + + width: number; +} + +// @public +export type InstrumentationMode = "counters" | "timeline" | "lifecycle"; + +// @public +export class iOSApplication { + /* tslint:enable */ + addNotificationObserver(notificationName: string, onReceiveCallback: (notification: any /* NSNotification */) => void): any; + + /* tslint:enable */ + delegate: any /* typeof UIApplicationDelegate */; + + /* tslint:enable */ + nativeApp: any /* UIApplication */; + + /* tslint:enable */ + orientation: "portrait" | "landscape" | "unknown"; + + /* tslint:enable */ + removeNotificationObserver(observer: any, notificationName: string): void; + + /* tslint:enable */ + rootController: any /* UIViewController */; + + /* tslint:enable */ + systemAppearance: "dark" | "light" | null; + + /* tslint:enable */ + window: any /* UIWindow */; +} + +// @public +export type IOSTabBarItemsAlignment = "leading" | "justified" | "center" | "centerSelected"; + +// @public +export const isAndroid: boolean; + +// @public +export const isIOS: boolean; + +// @public +export interface ItemEventData extends EventData { + android: any /* android.view.ViewGroup */; + + index: number; + + ios: any /* UITableViewCell */; + + view: View; +} + +// @public (undocumented) +export interface ItemsSource { + // (undocumented) + getItem(index: number): any; + // (undocumented) + length: number; +} + +// @public +export interface KeyedTemplate { + createView: Template; + + key: string; +} + +// @public +export module knownFolders { + export function currentApp(): Folder; + + export function documents(): Folder; + + export module ios { + export function desktop(): Folder; + + export function developer(): Folder; + + export function downloads(): Folder; + + export function library(): Folder; + + export function movies(): Folder; + + export function music(): Folder; + + export function pictures(): Folder; + + export function sharedPublic(): Folder; + } + + export function temp(): Folder; +} + +// @public +export class Label extends TextBase { + android: any /* android.widget.TextView */; + + ios: any /* UILabel */; + + textWrap: boolean; +} + +// @public +export interface LaunchEventData extends ApplicationEventData { + root?: View; + + // (undocumented) + savedInstanceState?: any /* android.os.Bundle */; +} + +// Warning: (ae-forgotten-export) The symbol "CustomLayoutView" needs to be exported by the entry point index.d.ts +// +// @public +export class LayoutBase extends CustomLayoutView { + addChild(view: View): void; + + clipToBounds: boolean; + + eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; + + getChildAt(index: number): View; + + getChildIndex(child: View): number; + + getChildrenCount(): number; + + insertChild(child: View, atIndex: number): void; + + isPassThroughParentEnabled: boolean; + + padding: string | Length; + + paddingBottom: Length; + + paddingLeft: Length; + + paddingRight: Length; + + paddingTop: Length; + + _registerLayoutChild(child: View): void; + + removeChild(view: View): void; + + removeChildren(): void; + + _unregisterLayoutChild(child: View): void; +} + +// @public +export class ListPicker extends View { + android: any /* android.widget.NumberPicker */; + + ios: any /* UIPickerView */; + + items: any; + + selectedIndex: number; +} + +// @public +export class ListView extends View { + android: any /* android.widget.ListView */; + ios: any /* UITableView */; + iosEstimatedRowHeight: Length; + isItemAtIndexVisible(index: number): boolean; + itemIdGenerator: (item: any, index: number, items: any) => number; + public static itemLoadingEvent: string; + items: any[] | ItemsSource; + public static itemTapEvent: string; + itemTemplate: string | Template; + itemTemplates: string | Array; + itemTemplateSelector: string | ((item: any, index: number, items: any) => string); + public static loadMoreItemsEvent: string; + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + on(event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any); + on(event: "itemTap", callback: (args: ItemEventData) => void, thisArg?: any); + on(event: "loadMoreItems", callback: (args: EventData) => void, thisArg?: any); + refresh(); + rowHeight: Length; + scrollToIndex(index: number); + scrollToIndexAnimated(index: number); + separatorColor: Color; +} + +// @public (undocumented) +export interface LoadAppCSSEventData extends EventData { + // (undocumented) + cssFile: string; +} + +// @public (undocumented) +export interface LoadOptions { + // (undocumented) + attributes?: any; + // (undocumented) + exports?: any; + // (undocumented) + name: string; + // (undocumented) + page?: Page; + // (undocumented) + path: string; +} + +// @public +export interface NavigatedData extends EventData { + context: any; + + isBackNavigation: boolean; +} + +// @public +export class NavigationButton extends ActionItem { + //@private + // (undocumented) + _navigationItem?: any + //@endprivate +} + +// @public +export interface NavigationContext { + // (undocumented) + entry: BackstackEntry; + // (undocumented) + isBackNavigation: boolean; + // (undocumented) + navigationType: NavigationType; +} + +// @public +export interface NavigationEntry extends ViewEntry { + animated?: boolean; + + backstackVisible?: boolean; + + bindingContext?: any; + + clearHistory?: boolean; + + context?: any; + + transition?: NavigationTransition; + + transitionAndroid?: NavigationTransition; + + transitioniOS?: NavigationTransition; +} + +// @public +export interface NavigationTransition { + curve?: any; + + duration?: number; + + instance?: Transition; + + name?: string; +} + +// @public +export class Observable { + + constructor(); + + addEventListener(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + _createPropertyChangeData(name: string, value: any, oldValue?: any): PropertyChangeData; + + // (undocumented) + _emit(eventNames: string); + + get(name: string): any; + + hasListeners(eventName: string): boolean; + + public _isViewBase: boolean; + + notify(data: T): void; + + notifyPropertyChange(propertyName: string, value: any, oldValue?: any): void; + + off(eventNames: string, callback?: any, thisArg?: any); + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + on(event: "propertyChange", callback: (data: EventData) => void, thisArg?: any); + + once(event: string, callback: (data: EventData) => void, thisArg?: any); + + public static propertyChangeEvent: string; + + removeEventListener(eventNames: string, callback?: any, thisArg?: any); + + set(name: string, value: any): void; + + setProperty(name: string, value: any): void; + //@endprivate +} + +// @public +export class ObservableArray extends Observable { + constructor(arrayLength?: number); + + constructor(items: T[]); + + constructor(...items: T[]); + + public static changeEvent: string; + + concat(...items: U[]): T[]; + + concat(...items: T[]): T[]; + + every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; + + filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[]; + + forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; + + getItem(index: number): T; + + indexOf(searchElement: T, fromIndex?: number): number; + + join(separator?: string): string; + + lastIndexOf(searchElement: T, fromIndex?: number): number; + + length: number; + + map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + on(event: "change", callback: (args: ChangedData) => void, thisArg?: any); + + pop(): T; + + push(items: T[]): number; + + push(...items: T[]): number; + + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; + + reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; + + reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + + reverse(): T[]; + + setItem(index: number, value: T): void; + + shift(): T; + + slice(start?: number, end?: number): T[]; + + some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; + + sort(compareFn?: (a: T, b: T) => number): T[]; + + splice(start: number): T[]; + + splice(start: number, deleteCount: number, ...items: T[]): T[]; + + // (undocumented) + toLocaleString(): string; + + toString(): string; + + unshift(...items: T[]): number; +} + +// @public +export interface OrientationChangedEventData extends ApplicationEventData { + newValue: "portrait" | "landscape" | "unknown"; +} + +// @public +export class Page extends ContentView { + public actionBar: ActionBar; + + public actionBarHidden: boolean; + + public androidStatusBarBackground: Color; + + public backgroundSpanUnderStatusBar: boolean; + + public enableSwipeBackNavigation: boolean; + + public frame: Frame; + + // (undocumented) + _frame: Frame; + + // Warning: (ae-forgotten-export) The symbol "KeyframeAnimationInfo" needs to be exported by the entry point index.d.ts + public getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo; + + // (undocumented) + hasActionBar: boolean; + + public static navigatedFromEvent: string; + + public static navigatedToEvent: string; + + public static navigatingFromEvent: string; + + public static navigatingToEvent: string; + + public navigationContext: any; + + public on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void; + + public on(event: "navigatingTo", callback: (args: NavigatedData) => void, thisArg?: any): void; + + public on(event: "navigatedTo", callback: (args: NavigatedData) => void, thisArg?: any): void; + + public on(event: "navigatingFrom", callback: (args: NavigatedData) => void, thisArg?: any): void; + + public on(event: "navigatedFrom", callback: (args: NavigatedData) => void, thisArg?: any): void; + + public onNavigatedFrom(isBackNavigation: boolean): void; + + public onNavigatedTo(isBackNavigation: boolean): void; + + public onNavigatingFrom(isBackNavigation: boolean): void; + + public onNavigatingTo(context: any, isBackNavigation: boolean, bindingContext?: any): void; + + public statusBarStyle: "light" | "dark"; + //@endprivate +} + +// @public +export interface PanGestureEventData extends GestureEventDataWithState { + // (undocumented) + deltaX: number; + // (undocumented) + deltaY: number; + } + +// @public +export interface ParserEvent { + + attributes?: Object; + + data?: string; + + elementName?: string; + + eventType: string; + + namespace?: string; + + // Warning: (ae-forgotten-export) The symbol "Position" needs to be exported by the entry point index.d.ts + position: Position; + + prefix?: string; + + toString(): string; +} + +// @public +export class ParserEventType { + + static CDATA: string; + + static Comment: string; + + static EndElement: string; + + static StartElement: string; + + static Text: string; +} + +// @public +export module path { + export function join(...paths: string[]): string; + + export function normalize(path: string): string; + + const separator: string; +} + +// @public +export interface PinchGestureEventData extends GestureEventDataWithState { + // (undocumented) + getFocusX(): number; + + // (undocumented) + getFocusY(): number; + + // (undocumented) + scale: number; + } + +// @public +export class Placeholder extends View { + public static creatingViewEvent: string; + + on(eventNames: string, callback: (args: EventData) => void); + + on(event: "creatingView", callback: (args: CreateViewEventData) => void); +} + +// @public (undocumented) +export const Profiling: { + enable: typeof enable; + disable: typeof disable; + time: typeof time; + uptime: typeof uptime; + start: typeof start; + stop: typeof stop; + isRunning: typeof isRunning; + dumpProfiles: typeof dumpProfiles; + resetProfiles: typeof resetProfiles; + profile: typeof profile; + startCPUProfile: typeof startCPUProfile; + stopCPUProfile: typeof stopCPUProfile; +}; + +// @public +export class Progress extends View { + android: any /* android.widget.ProgressBar */; + + ios: any /* UIProgressView */; + + maxValue: number; + + value: number; +} + +// @public +export interface PropertyChangeData extends EventData { + oldValue?: any; + propertyName: string; + value: any; +} + +// @public (undocumented) +export class ProxyViewContainer extends LayoutBase { +} + +// @public +export class Repeater extends CustomLayoutView { + // Warning: (ae-forgotten-export) The symbol "ItemsSource" needs to be exported by the entry point index.d.ts + items: any[] | ItemsSource_2; + + itemsLayout: LayoutBase; + + itemTemplate: string | Template; + + refresh(); +} + +// @public +export interface RotationGestureEventData extends GestureEventDataWithState { + // (undocumented) + rotation: number; + } + +// @public +export module Screen { + const // Warning: (ae-forgotten-export) The symbol "ScreenMetrics" needs to be exported by the entry point index.d.ts + mainScreen: ScreenMetrics; +} + +// @public (undocumented) +export interface ScrollEventData extends EventData { + // (undocumented) + scrollX: number; + // (undocumented) + scrollY: number; +} + +// @public +export class ScrollView extends ContentView { + horizontalOffset: number; + + isScrollEnabled: boolean; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + on(event: "scroll", callback: (args: ScrollEventData) => void, thisArg?: any); + + // (undocumented) + _onOrientationChanged(); + + // Warning: (ae-forgotten-export) The symbol "Orientation" needs to be exported by the entry point index.d.ts + orientation: Orientation; + + scrollableHeight: number; + + scrollableWidth: number; + + scrollBarIndicatorVisible: boolean; + + public static scrollEvent: string; + + scrollToHorizontalOffset(value: number, animated: boolean); + + scrollToVerticalOffset(value: number, animated: boolean); + + verticalOffset: number; +} + +// @public +export class SearchBar extends View { + android: any /* android.widget.SearchView */; + + public static clearEvent: string; + + dismissSoftInput(): void; + + hint: string; + + ios: any /* UISearchBar */; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + on(event: "submit", callback: (args: EventData) => void, thisArg?: any); + + on(event: "close", callback: (args: EventData) => void, thisArg?: any); + + public static submitEvent: string; + + text: string; + + textFieldBackgroundColor: Color; + + textFieldHintColor: Color; +} + +// Warning: (ae-forgotten-export) The symbol "AddArrayFromBuilder" needs to be exported by the entry point index.d.ts +// +// @public +export class SegmentedBar extends View implements AddChildFromBuilder, AddArrayFromBuilder { + // (undocumented) + public _addArrayFromBuilder(name: string, value: Array): void; + + public _addChildFromBuilder(name: string, value: any): void; + + items: Array; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + // Warning: (ae-forgotten-export) The symbol "SelectedIndexChangedEventData" needs to be exported by the entry point index.d.ts + on(event: "selectedIndexChanged", callback: (args: SelectedIndexChangedEventData_3) => void, thisArg?: any); + + selectedBackgroundColor: Color; + + selectedIndex: number; + + public static selectedIndexChangedEvent: string; +} + +// @public +export class SegmentedBarItem extends ViewBase { + public title: string; +} + +// @public +export interface SelectedIndexChangedEventData extends EventData { + newIndex: number; + + oldIndex: number; +} + +// @public (undocumented) +export interface ShowModalOptions { + // (undocumented) + android?: { + cancelable?: boolean + } + + animated?: boolean; + + cancelable?: boolean + + closeCallback: Function; + + context: any; + + fullscreen?: boolean; + + ios?: { + presentationStyle?: any; /* UIModalPresentationStyle */ + width?: number; + height?: number; + } + + stretched?: boolean; +} + +// @public +export interface ShownModallyData extends EventData { + closeCallback?: Function; + + context?: any; +} + +// @public +export class Slider extends View { + android: any /* android.widget.SeekBar */; + + ios: any /* UISlider */; + + maxValue: number; + + minValue: number; + + value: number; +} + +// @public +export class Span extends ViewBase { + public backgroundColor: Color; + + public color: Color; + + public fontFamily: string; + + public fontSize: number; + + public fontStyle: FontStyle; + + public fontWeight: FontWeight; + + public static linkTapEvent: string; + + // (undocumented) + _setTextInternal(value: string): void; + + public readonly tappable: boolean; + + public text: string; + + public textDecoration: TextDecoration; + //@endprivate +} + +// @public +export class StackLayout extends LayoutBase { + // Warning: (ae-forgotten-export) The symbol "Orientation" needs to be exported by the entry point index.d.ts + orientation: Orientation_2; +} + +// @public (undocumented) +export class Style extends Observable { + constructor(ownerView: ViewBase | WeakRef); + // (undocumented) + public alignContent: AlignContent; + // (undocumented) + public alignItems: AlignItems; + // (undocumented) + public alignSelf: AlignSelf; + public androidContentInset: string | Length; + public androidContentInsetLeft: Length; + public androidContentInsetRight: Length; + // (undocumented) + public androidDynamicElevationOffset: number; + // (undocumented) + public androidElevation: number; + // (undocumented) + public androidSelectedTabHighlightColor: Color; + // (undocumented) + public androidStatusBarBackground: Color; + // (undocumented) + public background: string; + // (undocumented) + public backgroundColor: Color; + // Warning: (ae-forgotten-export) The symbol "LinearGradient" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public backgroundImage: string | LinearGradient; + // Warning: (ae-forgotten-export) The symbol "Background" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public backgroundInternal: Background; + // (undocumented) + public backgroundPosition: string; + // Warning: (ae-forgotten-export) The symbol "BackgroundRepeat" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public backgroundRepeat: BackgroundRepeat; + // (undocumented) + public backgroundSize: string; + // (undocumented) + public borderBottomColor: Color; + // (undocumented) + public borderBottomLeftRadius: Length; + // (undocumented) + public borderBottomRightRadius: Length; + // (undocumented) + public borderBottomWidth: Length; + // (undocumented) + public borderColor: string | Color; + // (undocumented) + public borderLeftColor: Color; + // (undocumented) + public borderLeftWidth: Length; + // (undocumented) + public borderRadius: string | Length; + // (undocumented) + public borderRightColor: Color; + // (undocumented) + public borderRightWidth: Length; + // (undocumented) + public borderTopColor: Color; + // (undocumented) + public borderTopLeftRadius: Length; + // (undocumented) + public borderTopRightRadius: Length; + // (undocumented) + public borderTopWidth: Length; + // (undocumented) + public borderWidth: string | Length; + // (undocumented) + public clipPath: string; + // (undocumented) + public color: Color; + // (undocumented) + public flexDirection: FlexDirection; + // Warning: (ae-forgotten-export) The symbol "FlexGrow" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public flexGrow: FlexGrow; + // Warning: (ae-forgotten-export) The symbol "FlexShrink" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public flexShrink: FlexShrink; + // (undocumented) + public flexWrap: FlexWrap; + // Warning: (ae-forgotten-export) The symbol "FlexWrapBefore" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public flexWrapBefore: FlexWrapBefore; + // (undocumented) + public font: string; + // (undocumented) + public fontFamily: string; + // (undocumented) + public fontInternal: Font; + // (undocumented) + public fontSize: number; + // (undocumented) + public fontStyle: FontStyle; + // (undocumented) + public fontWeight: FontWeight; + public getCssVariable(varName: string): string | null; + // (undocumented) + public height: PercentLength; + // (undocumented) + public horizontalAlignment: HorizontalAlignment; + // (undocumented) + public justifyContent: JustifyContent; + // (undocumented) + public letterSpacing: number; + // (undocumented) + public lineHeight: number; + // (undocumented) + public margin: string | PercentLength; + // (undocumented) + public marginBottom: PercentLength; + // (undocumented) + public marginLeft: PercentLength; + // (undocumented) + public marginRight: PercentLength; + // (undocumented) + public marginTop: PercentLength; + // (undocumented) + public minHeight: Length; + // (undocumented) + public minWidth: Length; + // (undocumented) + public opacity: number; + // Warning: (ae-forgotten-export) The symbol "Order" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public order: Order; + // (undocumented) + public padding: string | Length; + // (undocumented) + public paddingBottom: Length; + // (undocumented) + public paddingLeft: Length; + // (undocumented) + public paddingRight: Length; + // (undocumented) + public paddingTop: Length; + // (undocumented) + public perspective: number; + // (undocumented) + public placeholderColor: Color; + // Warning: (ae-forgotten-export) The symbol "PropertyBagClass" needs to be exported by the entry point index.d.ts + public readonly PropertyBag: PropertyBagClass; + public resetScopedCssVariables(): void; + public resetUnscopedCssVariables(): void; + // (undocumented) + public rotate: number; + // (undocumented) + public rotateX: number; + // (undocumented) + public rotateY: number; + // (undocumented) + public scaleX: number; + // (undocumented) + public scaleY: number; + // (undocumented) + public selectedBackgroundColor: Color; + // (undocumented) + public selectedTabTextColor: Color; + // (undocumented) + public separatorColor: Color; + public setScopedCssVariable(varName: string, value: string): void; + public setUnscopedCssVariable(varName: string, value: string): void; + // (undocumented) + public statusBarStyle: "light" | "dark"; + // (undocumented) + public tabBackgroundColor: Color; + // (undocumented) + public tabTextColor: Color; + // (undocumented) + public tabTextFontSize: number; + // Warning: (ae-forgotten-export) The symbol "TextAlignment" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public textAlignment: TextAlignment; + // (undocumented) + public textDecoration: TextDecoration; + // Warning: (ae-forgotten-export) The symbol "TextTransform" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public textTransform: TextTransform; + // (undocumented) + public tintColor: Color; + // Warning: (ae-forgotten-export) The symbol "dip" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public translateX: dip; + // (undocumented) + public translateY: dip; + // (undocumented) + public verticalAlignment: VerticalAlignment; + // @deprecated (undocumented) + public view: ViewBase; + // (undocumented) + public viewRef: WeakRef; + // Warning: (ae-forgotten-export) The symbol "Visibility" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public visibility: Visibility; + // Warning: (ae-forgotten-export) The symbol "WhiteSpace" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public whiteSpace: WhiteSpace; + // (undocumented) + public width: PercentLength; + // (undocumented) + public zIndex: number; +} + +// @public +export enum SwipeDirection { + down, + left, + right, + up + } + +// @public +export interface SwipeGestureEventData extends GestureEventData { + // (undocumented) + direction: SwipeDirection; + } + +// @public +export class Switch extends View { + + android: any /* android.widget.Switch */; + + checked: boolean; + + // (undocumented) + public static checkedChangeEvent: string; + + ios: any /* UISwitch */; + + offBackgroundColor: Color; +} + +// @public +export class TabContentItem extends ContentView { + // (undocumented) + canBeLoaded?: boolean; +} + +// @public +export class TabNavigationBase extends View { + android: any /* android.view.View */; + + getTabBarBackgroundArgbColor(): any + + getTabBarBackgroundColor(): any + + getTabBarColor(): any + + getTabBarFontInternal(): any + + getTabBarHighlightColor(): any + + getTabBarItemBackgroundColor(tabStripItem: TabStripItem): any + + getTabBarItemColor(tabStripItem: TabStripItem): any + + getTabBarItemFontInternal(tabStripItem: TabStripItem): any + + getTabBarItemFontSize(tabStripItem: TabStripItem): any + + getTabBarItemTextTransform(tabStripItem: TabStripItem): any + + getTabBarSelectedItemColor(): Color + + getTabBarTextTransform(): any + + getTabBarUnSelectedItemColor(): Color + + ios: any /* UITabBarController */; + + items: Array; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + // Warning: (ae-forgotten-export) The symbol "SelectedIndexChangedEventData" needs to be exported by the entry point index.d.ts + on(event: "selectedIndexChanged", callback: (args: SelectedIndexChangedEventData_2) => void, thisArg?: any); + + onItemsChanged(oldItems: TabContentItem[], newItems: TabContentItem[]): void; + + onSelectedIndexChanged(oldIndex: number, newIndex: number): void; + + selectedIndex: number; + + public static selectedIndexChangedEvent: string; + + setTabBarBackgroundColor(value: any): void + + setTabBarColor(value: any): void + + setTabBarFontInternal(value: any): void + + setTabBarHighlightColor(value: any) + + setTabBarIconColor(tabStripItem: TabStripItem, value: any): void + + setTabBarIconSource(tabStripItem: TabStripItem, value: any): void + + setTabBarItemBackgroundColor(tabStripItem: TabStripItem, value: any): void + + setTabBarItemColor(tabStripItem: TabStripItem, value: any): void + + setTabBarItemFontInternal(tabStripItem: TabStripItem, value: any): void + + setTabBarItemFontSize(tabStripItem: TabStripItem, value: any): void + + setTabBarItemTextTransform(tabStripItem: TabStripItem, value: any): void + + setTabBarItemTitle(tabStripItem: TabStripItem, value: any): any + + setTabBarSelectedItemColor(value: Color) + + setTabBarTextTransform(value: any): void + + setTabBarUnSelectedItemColor(value: Color) + + tabStrip: TabStrip; +} + +// @public +export class Tabs extends TabNavigationBase { + android: any /* android.view.View */; + + ios: any /* UITabBarController */; + + iOSTabBarItemsAlignment: IOSTabBarItemsAlignment; + + items: Array; + + offscreenTabLimit: number; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + on(event: "selectedIndexChanged", callback: (args: SelectedIndexChangedEventData_2) => void, thisArg?: any); + + selectedIndex: number; + + public static selectedIndexChangedEvent: string; + + swipeEnabled: boolean; + + tabsPosition: "top" | "bottom"; + + tabStrip: TabStrip; +} + +// @public +export class TabStrip extends View { + + // (undocumented) + _hasImage: boolean; + + // (undocumented) + _hasTitle: boolean; + + highlightColor: Color; + + iosIconRenderingMode: "automatic" | "alwaysOriginal" | "alwaysTemplate"; + + isIconSizeFixed: boolean; + + items: Array; + + public static itemTapEvent: string; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + on(event: "itemTap", callback: (args: TabStripItemEventData) => void, thisArg?: any); + + selectedItemColor: Color; + + unSelectedItemColor: Color; +} + +// @public +export class TabStripItem extends View { + iconClass: string; + + iconSource: string; + + image: Image; + + // (undocumented) + _index: number; + + label: Label; + + on(eventNames: string, callback: (data: EventData) => void); + + on(event: "tap", callback: (args: EventData) => void); + + // (undocumented) + static selectEvent: string; + + public static tapEvent: string; + + title: string; + + // (undocumented) + static unselectEvent: string; +} + +// @public +export interface TabStripItemEventData extends EventData { + index: number; +} + +// @public +export class TabView extends View { + android: any /* android.view.View */; + + androidOffscreenTabLimit: number; + + androidSelectedTabHighlightColor: Color; + + androidSwipeEnabled: boolean; + + androidTabsPosition: "top" | "bottom"; + + ios: any /* UITabBarController */; + + iosIconRenderingMode: "automatic" | "alwaysOriginal" | "alwaysTemplate"; + + items: Array; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + // Warning: (ae-forgotten-export) The symbol "SelectedIndexChangedEventData" needs to be exported by the entry point index.d.ts + on(event: "selectedIndexChanged", callback: (args: SelectedIndexChangedEventData_4) => void, thisArg?: any); + + selectedIndex: number; + + public static selectedIndexChangedEvent: string; + + selectedTabTextColor: Color; + + tabBackgroundColor: Color; + + tabTextColor: Color; + + tabTextFontSize: number; +} + +// @public +export class TabViewItem extends ViewBase { + // (undocumented) + canBeLoaded?: boolean; + + public iconSource: string; + + textTransform: TextTransform; + + public title: string; + + public view: View; +} + +// @public +export interface TapGestureEventData extends GestureEventData { + getPointerCount(): number; + getX(): number; + getY(): number; + + } + +// @public +export interface Template { + (): View; +} + +// @public (undocumented) +export interface TemplatedItemsView { + // (undocumented) + items: any[] | ItemsSource; + // (undocumented) + itemTemplate: string | Template; + // (undocumented) + itemTemplates?: string | Array; + // (undocumented) + off(event: "itemLoading", callback: (args: EventData) => void, thisArg?: any); + // (undocumented) + on(event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any); + // (undocumented) + refresh(): void; +} + +// @public (undocumented) +export class TextBase extends View implements AddChildFromBuilder { + + _addChildFromBuilder(name: string, value: any): void; + + fontSize: number; + + formattedText: FormattedString; + + // (undocumented) + _isSingleLine: boolean; + + letterSpacing: number; + + lineHeight: number; + + public readonly nativeTextViewProtected: any; + + padding: string | Length; + + paddingBottom: Length; + + paddingLeft: Length; + + paddingRight: Length; + + paddingTop: Length; + + _requestLayoutOnTextChanged(): void; + + // (undocumented) + _setNativeText(reset?: boolean): void; + + text: string; + + textAlignment: TextAlignment; + + textDecoration: TextDecoration; + + textTransform: TextTransform; + + whiteSpace: WhiteSpace; + //@endprivate +} + +// @public +export class TextField extends EditableTextBase { + android: any /* android.widget.EditText */; + + closeOnReturn: boolean; + + ios: any /* UITextField */; + + // (undocumented) + public static returnPressEvent: string; + + secure: boolean; + + secureWithoutAutofill: boolean; +} + +// @public +export class TextView extends EditableTextBase { + android: any /* android.widget.EditText */; + + ios: any /* UITextView */; + + maxLines: number; +} + +// @public +export class TimePicker extends View { + android: any /* android.widget.TimePicker */; + + hour: number; + + ios: any /* UIDatePicker */; + + maxHour: number; + + maxMinute: number; + + minHour: number; + + minMinute: number; + + minute: number; + + minuteInterval: number; + + time: Date; +} + +// @public (undocumented) +export interface TimerInfo { + // (undocumented) + count: number; + // (undocumented) + totalTime: number; +} + +// @public +export interface TouchGestureEventData extends TapGestureEventData { + action: "up" | "move" | "down" | "cancel"; + // Warning: (ae-forgotten-export) The symbol "Pointer" needs to be exported by the entry point index.d.ts + getActivePointers(): Array; + getAllPointers(): Array; + } + +// @public (undocumented) +export const Trace: { + messageType: typeof messageType; + categories: typeof categories; + setCategories: typeof setCategories; + addCategories: typeof addCategories; + addWriter: typeof addWriter; + removeWriter: typeof removeWriter; + clearWriters: typeof clearWriters; + setErrorHandler: typeof setErrorHandler; + write: typeof write; + error: typeof error; + enable: typeof enable_2; + disable: typeof disable_2; + isEnabled: typeof isEnabled; +}; + +// @public +export interface TraceWriter { + // (undocumented) + write(message: any, category: string, type?: number); +} + +// @public (undocumented) +export class Transition { + constructor(duration: number, nativeCurve: any); + // (undocumented) + public animateIOSTransition(containerView: any, fromView: any, toView: any, operation: any, completion: (finished: boolean) => void): void; + // (undocumented) + public createAndroidAnimator(transitionType: string): any; + // (undocumented) + public getCurve(): any; + // (undocumented) + public getDuration(): number; + // (undocumented) + public toString(): string; +} + +// @public +export interface UnhandledErrorEventData extends ApplicationEventData { + // (undocumented) + android?: NativeScriptError; + // (undocumented) + error: NativeScriptError; + // (undocumented) + ios?: NativeScriptError; +} + +// @public (undocumented) +export const Utils: { + GC: typeof GC; + isFontIconURI: typeof isFontIconURI; + isDataURI: typeof isDataURI; + isFileOrResourcePath: typeof isFileOrResourcePath; + executeOnMainThread: typeof executeOnMainThread; + mainThreadify: typeof mainThreadify; + isMainThread: typeof isMainThread; + dispatchToMainThread: typeof dispatchToMainThread; + releaseNativeObject: typeof releaseNativeObject; + getModuleName: typeof getModuleName; + openFile: typeof openFile; + openUrl: typeof openUrl; + isRealDevice: typeof isRealDevice; + layout: typeof layout; + android: typeof ad; + ios: typeof ios; +}; + +// @public +export abstract class View extends ViewBase { + addCss(cssString: string): void; + addCssFile(cssFileName: string): void; + public android: any; + androidDynamicElevationOffset: number; + androidElevation: number; + public animate(options: AnimationDefinition): AnimationPromise; + automationText: string; + background: string; + backgroundColor: string | Color; + backgroundImage: string | LinearGradient; + bindingContext: any; + borderBottomColor: Color; + borderBottomLeftRadius: Length; + borderBottomRightRadius: Length; + borderBottomWidth: Length; + borderColor: string | Color; + borderLeftColor: Color; + borderLeftWidth: Length; + borderRadius: string | Length; + borderRightColor: Color; + borderRightWidth: Length; + borderTopColor: Color; + borderTopLeftRadius: Length; + borderTopRightRadius: Length; + borderTopWidth: Length; + borderWidth: string | Length; + changeCssFile(cssFileName: string): void; + _closeAllModalViewsInternal(): boolean; + color: Color; + // (undocumented) + public static combineMeasuredStates(curState: number, newState): number; + public createAnimation(options: AnimationDefinition): Animation; + css: string; + // (undocumented) + cssClasses: Set; + // (undocumented) + cssPseudoClasses: Set; + cssType: string; + // (undocumented) + _currentHeightMeasureSpec: number; + // (undocumented) + _currentWidthMeasureSpec: number; + public eachChildView(callback: (view: View) => boolean): void; + // (undocumented) + _eachLayoutView(callback: (View) => void): void; + public focus(): boolean; + // (undocumented) + _gestureObservers: any; + // Warning: (ae-forgotten-export) The symbol "Size" needs to be exported by the entry point index.d.ts + public getActualSize(): Size; + _getCurrentLayoutBounds(): { left: number; top: number; right: number; bottom: number }; + // (undocumented) + _getFragmentManager(): any; + // (undocumented) + public getGestureObservers(type: GestureTypes): Array; + // Warning: (ae-forgotten-export) The symbol "Point" needs to be exported by the entry point index.d.ts + public getLocationInWindow(): Point; + public getLocationOnScreen(): Point; + public getLocationRelativeTo(otherView: View): Point; + public getMeasuredHeight(): number; + // (undocumented) + public getMeasuredState(): number; + public getMeasuredWidth(): number; + // (undocumented) + _getNativeViewsCount(): number; + _getRootModalViews(): Array + public getSafeAreaInsets(): { left, top, right, bottom }; + _getValue(property: any): never; + // (undocumented) + _goToVisualState(state: string); + // (undocumented) + _handleLivesync(context?: { type: string, path: string }): boolean; + _hasAncestorView(ancestorView: View): boolean; + height: PercentLength; + horizontalAlignment: HorizontalAlignment; + public ios: any; + iosOverflowSafeArea: boolean; + iosOverflowSafeAreaEnabled: boolean; + isEnabled: boolean; + // (undocumented) + isLayoutRequired: boolean; + isLayoutValid: boolean; + isUserInteractionEnabled: boolean; + public layout(left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; + public static layoutChangedEvent: string; + public static layoutChild(parent: View, child: View, left: number, top: number, right: number, bottom: number): void; + public layoutNativeView(left: number, top: number, right: number, bottom: number): void; + _manager: any; + margin: string | PercentLength; + marginBottom: PercentLength; + marginLeft: PercentLength; + marginRight: PercentLength; + marginTop: PercentLength; + public measure(widthMeasureSpec: number, heightMeasureSpec: number): void; + public static measureChild(parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredWidth: number; measuredHeight: number }; + minHeight: Length; + minWidth: Length; + modal: View; + // (undocumented) + _modalParent?: View; + off(eventNames: string | GestureTypes, callback?: (args: EventData) => void, thisArg?: any); + on(eventNames: string | GestureTypes, callback: (args: EventData) => void, thisArg?: any); + on(event: "loaded", callback: (args: EventData) => void, thisArg?: any); + on(event: "unloaded", callback: (args: EventData) => void, thisArg?: any); + on(event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any); + on(event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; + on(event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any); + _onAttachedToWindow(): void; + onBackPressed(): boolean; + _onDetachedFromWindow(): void; + public onLayout(left: number, top: number, right: number, bottom: number): void; + // (undocumented) + _onLivesync(context?: { type: string, path: string }): boolean; + public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; + opacity: number; + originX: number; + originY: number; + perspective: number; + // (undocumented) + _redrawNativeBackground(value: any): void; + // (undocumented) + _removeAnimation(animation: Animation): boolean; + public static resolveSizeAndState(size: number, specSize: number, specMode: number, childMeasuredState: number): number; + rotate: number; + rotateX: number; + rotateY: number; + scaleX: number; + scaleY: number; + _setCurrentLayoutBounds(left: number, top: number, right: number, bottom: number): { boundsChanged: boolean, sizeChanged: boolean }; + _setCurrentMeasureSpecs(widthMeasureSpec: number, heightMeasureSpec: number): boolean; + public setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; + // (undocumented) + _setMinHeightNative(value: Length): void; + // (undocumented) + _setMinWidthNative(value: Length): void; + // (undocumented) + _setNativeClipToBounds(): void; + // (undocumented) + _setNativeViewFrame(nativeView: any, frame: any): void; + _setValue(property: any, value: any): never; + public static showingModallyEvent: string; + public static shownModallyEvent: string; + translateX: dip; + translateY: dip; + // (undocumented) + _updateEffectiveLayoutValues( + parentWidthMeasureSize: number, + parentWidthMeasureMode: number, + parentHeightMeasureSize: number, + parentHeightMeasureMode: number): void + _updateStyleScope(cssFileName?: string, cssString?: string, css?: string): void; + verticalAlignment: VerticalAlignment; + visibility: Visibility; + width: PercentLength; +} + +// @public (undocumented) +export abstract class ViewBase extends Observable { + // Dynamic properties. + public addPseudoClass(name: string): void; + // (undocumented) + public _addView(view: ViewBase, atIndex?: number): void; + public _addViewCore(view: ViewBase, atIndex?: number): void; + _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; + // (undocumented) + alignSelf: AlignSelf; + // (undocumented) + public android: any; + // (undocumented) + public _automaticallyAdjustsScrollViewInsets: boolean; + public _batchUpdate(callback: () => T): T; + // Warning: (ae-forgotten-export) The symbol "BindingOptions" needs to be exported by the entry point index.d.ts + // + // (undocumented) + public bind(options: BindingOptions, source?: Object): void; + // (undocumented) + public bindingContext: any; + // (undocumented) + callLoaded(): void; + // (undocumented) + callUnloaded(): void; + // (undocumented) + _childIndexToNativeChildIndex(index?: number): number; + public className: string; + closeModal(context?: any): void; + // (undocumented) + col: number; + // (undocumented) + colSpan: number; + column: number; + columnSpan: number; + // (undocumented) + _context: any /* android.content.Context */; + createNativeView(): Object; + // (undocumented) + public cssClasses: Set; + // (undocumented) + public cssPseudoClasses: Set; + // (undocumented) + _cssState: any /* "ui/styling/style-scope" */; + // (undocumented) + _defaultPaddingBottom: number; + // (undocumented) + _defaultPaddingLeft: number; + // (undocumented) + _defaultPaddingRight: number; + // (undocumented) + _defaultPaddingTop: number; + public deletePseudoClass(name: string): void; + public _dialogClosed(): void; + disposeNativeView(): void; + // (undocumented) + dock: "left" | "top" | "right" | "bottom"; + // (undocumented) + _domId: number; + // Warning: (ae-forgotten-export) The symbol "DOMNode" needs to be exported by the entry point index.d.ts + // + // (undocumented) + domNode: DOMNode; + public eachChild(callback: (child: ViewBase) => boolean): void; + // (undocumented) + public effectiveBorderBottomWidth: number; + // (undocumented) + public effectiveBorderLeftWidth: number; + // (undocumented) + public effectiveBorderRightWidth: number; + // (undocumented) + public effectiveBorderTopWidth: number; + // (undocumented) + public effectiveHeight: number; + // (undocumented) + effectiveLeft: number; + // (undocumented) + public effectiveMarginBottom: number; + // (undocumented) + public effectiveMarginLeft: number; + // (undocumented) + public effectiveMarginRight: number; + // (undocumented) + public effectiveMarginTop: number; + // (undocumented) + public effectiveMinHeight: number; + // (undocumented) + public effectiveMinWidth: number; + // (undocumented) + public effectivePaddingBottom: number; + // (undocumented) + public effectivePaddingLeft: number; + // (undocumented) + public effectivePaddingRight: number; + // (undocumented) + public effectivePaddingTop: number; + // (undocumented) + effectiveTop: number; + // (undocumented) + public effectiveWidth: number; + public ensureDomNode(); + // (undocumented) + flexGrow: FlexGrow; + // (undocumented) + flexShrink: FlexShrink; + // (undocumented) + flexWrapBefore: FlexWrapBefore; + public getViewById(id: string): T; + // (undocumented) + public _goToVisualState(state: string): void; + public id: string; + // (undocumented) + public _ignoreFlexMinWidthHeightReset: boolean; + // (undocumented) + _inheritStyleScope(styleScope: any /* StyleScope */): void; + initNativeView(): void; + // (undocumented) + public ios: any; + // (undocumented) + _isAddedToNativeVisualTree: boolean; + public isCollapsed: boolean; + // (undocumented) + public readonly isLoaded: boolean; + // (undocumented) + public _isPaddingRelative: boolean; + // (undocumented) + _isStyleScopeHost: boolean; + // (undocumented) + public _layoutParent(): void; + // (undocumented) + left: Length; + public static loadedEvent: string; + public loadView(view: ViewBase): void; + _moduleName?: string; + // (undocumented) + public nativeView: any; + public nativeViewProtected: any; + // (undocumented) + _oldBottom: number; + // (undocumented) + _oldLeft: number; + // (undocumented) + _oldRight: number; + // (undocumented) + _oldTop: number; + _onCssStateChange(): void; + // (undocumented) + public onLoaded(): void; + // (undocumented) + public onResumeNativeUpdates(): void; + public _onRootViewReset(): void; + // (undocumented) + public onUnloaded(): void; + // (undocumented) + order: Order; + public readonly page: Page; + public readonly parent: ViewBase; + // (undocumented) + public _parentChanged(oldParent: ViewBase): void; + public parentNode: ViewBase; + // (undocumented) + public recycleNativeView: "always" | "never" | "auto"; + // (undocumented) + public _removeView(view: ViewBase): void; + public _removeViewCore(view: ViewBase): void; + // (undocumented) + _removeViewFromNativeVisualTree(view: ViewBase): void; + public requestLayout(): void; + resetNativeView(): void; + // (undocumented) + row: number; + // (undocumented) + rowSpan: number; + // (undocumented) + public setInlineStyle(style: string): void; + setNativeView(view: any): void; + // (undocumented) + _setupAsRootView(context: any): void; + _setupUI(context: any /* android.content.Context */, atIndex?: number): void; + _shouldDelayLayout(): boolean; + showModal(moduleName: string, modalOptions: ShowModalOptions): ViewBase; + showModal(view: ViewBase, modalOptions: ShowModalOptions): ViewBase; + public readonly style: Style; + // (undocumented) + public _styleScope: any; + _suspendedUpdates: { [propertyName: string]: Property | CssProperty | CssAnimationProperty }; + public _suspendNativeUpdatesCount: number; + _tearDownUI(force?: boolean): void; + // (undocumented) + top: Length; + public typeName: string; + // (undocumented) + public unbind(property: string): void; + public static unloadedEvent: string; + public unloadView(view: ViewBase): void; + public viewController: any; + //@endprivate +} + +// @public +export interface ViewEntry { + create?: () => View; + + moduleName?: string; +} + +// @public +export class WebView extends View { + android: any /* android.webkit.WebView */; + + canGoBack: boolean; + + canGoForward: boolean; + + goBack(); + + goForward(); + + ios: any /* WKWebView */; + + public static loadFinishedEvent: string; + + public static loadStartedEvent: string; + + on(eventNames: string, callback: (data: EventData) => void, thisArg?: any); + + // Warning: (ae-forgotten-export) The symbol "LoadEventData" needs to be exported by the entry point index.d.ts + on(event: "loadFinished", callback: (args: LoadEventData) => void, thisArg?: any); + + on(event: "loadStarted", callback: (args: LoadEventData) => void, thisArg?: any); + + reload(); + + src: string; + + stopLoading(): void; +} + +// @public +export class WrapLayout extends LayoutBase { + + itemHeight: Length; + + itemWidth: Length; + + // Warning: (ae-forgotten-export) The symbol "Orientation" needs to be exported by the entry point index.d.ts + orientation: Orientation_3; +} + +// @public +export class XmlParser { + + constructor(onEvent: (event: ParserEvent) => void, onError?: (error: Error, position: Position) => void, processNamespaces?: boolean, angularSyntax?: boolean); + + parse(xmlString: string): void; +} + + +// Warnings were encountered during analysis: +// +// nativescript-core/index.d.ts:15:5 - (ae-forgotten-export) The symbol "getMainEntry" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:16:5 - (ae-forgotten-export) The symbol "getRootView" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:17:5 - (ae-forgotten-export) The symbol "setResources" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:18:5 - (ae-forgotten-export) The symbol "setCssFileName" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:19:5 - (ae-forgotten-export) The symbol "getCssFileName" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:20:5 - (ae-forgotten-export) The symbol "loadAppCss" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:21:5 - (ae-forgotten-export) The symbol "addCss" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:22:5 - (ae-forgotten-export) The symbol "on" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:23:5 - (ae-forgotten-export) The symbol "off" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:24:5 - (ae-forgotten-export) The symbol "run" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:25:5 - (ae-forgotten-export) The symbol "orientation" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:26:5 - (ae-forgotten-export) The symbol "getNativeApplication" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:27:5 - (ae-forgotten-export) The symbol "hasLaunched" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:33:5 - (ae-forgotten-export) The symbol "clear" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:34:5 - (ae-forgotten-export) The symbol "flush" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:35:5 - (ae-forgotten-export) The symbol "hasKey" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:36:5 - (ae-forgotten-export) The symbol "remove" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:37:5 - (ae-forgotten-export) The symbol "setString" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:38:5 - (ae-forgotten-export) The symbol "getString" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:39:5 - (ae-forgotten-export) The symbol "getAllKeys" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:40:5 - (ae-forgotten-export) The symbol "getBoolean" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:41:5 - (ae-forgotten-export) The symbol "setBoolean" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:42:5 - (ae-forgotten-export) The symbol "getNumber" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:43:5 - (ae-forgotten-export) The symbol "setNumber" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:48:5 - (ae-forgotten-export) The symbol "connectionType" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:49:5 - (ae-forgotten-export) The symbol "getConnectionType" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:50:5 - (ae-forgotten-export) The symbol "startMonitoring" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:51:5 - (ae-forgotten-export) The symbol "stopMonitoring" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:59:5 - (ae-forgotten-export) The symbol "getFile" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:60:5 - (ae-forgotten-export) The symbol "getImage" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:61:5 - (ae-forgotten-export) The symbol "getJSON" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:62:5 - (ae-forgotten-export) The symbol "getString" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:63:5 - (ae-forgotten-export) The symbol "request" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:71:5 - (ae-forgotten-export) The symbol "enable" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:72:5 - (ae-forgotten-export) The symbol "disable" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:73:5 - (ae-forgotten-export) The symbol "time" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:74:5 - (ae-forgotten-export) The symbol "uptime" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:75:5 - (ae-forgotten-export) The symbol "start" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:76:5 - (ae-forgotten-export) The symbol "stop" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:77:5 - (ae-forgotten-export) The symbol "isRunning" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:78:5 - (ae-forgotten-export) The symbol "dumpProfiles" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:79:5 - (ae-forgotten-export) The symbol "resetProfiles" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:80:5 - (ae-forgotten-export) The symbol "profile" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:81:5 - (ae-forgotten-export) The symbol "startCPUProfile" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:82:5 - (ae-forgotten-export) The symbol "stopCPUProfile" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:88:5 - (ae-forgotten-export) The symbol "messageType" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:89:5 - (ae-forgotten-export) The symbol "categories" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:90:5 - (ae-forgotten-export) The symbol "setCategories" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:91:5 - (ae-forgotten-export) The symbol "addCategories" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:92:5 - (ae-forgotten-export) The symbol "addWriter" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:93:5 - (ae-forgotten-export) The symbol "removeWriter" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:94:5 - (ae-forgotten-export) The symbol "clearWriters" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:95:5 - (ae-forgotten-export) The symbol "setErrorHandler" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:96:5 - (ae-forgotten-export) The symbol "write" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:97:5 - (ae-forgotten-export) The symbol "error" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:98:5 - (ae-forgotten-export) The symbol "enable" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:99:5 - (ae-forgotten-export) The symbol "disable" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:100:5 - (ae-forgotten-export) The symbol "isEnabled" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:105:5 - (ae-forgotten-export) The symbol "GC" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:106:5 - (ae-forgotten-export) The symbol "isFontIconURI" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:107:5 - (ae-forgotten-export) The symbol "isDataURI" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:108:5 - (ae-forgotten-export) The symbol "isFileOrResourcePath" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:109:5 - (ae-forgotten-export) The symbol "executeOnMainThread" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:110:5 - (ae-forgotten-export) The symbol "mainThreadify" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:111:5 - (ae-forgotten-export) The symbol "isMainThread" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:112:5 - (ae-forgotten-export) The symbol "dispatchToMainThread" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:113:5 - (ae-forgotten-export) The symbol "releaseNativeObject" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:114:5 - (ae-forgotten-export) The symbol "getModuleName" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:115:5 - (ae-forgotten-export) The symbol "openFile" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:116:5 - (ae-forgotten-export) The symbol "openUrl" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:117:5 - (ae-forgotten-export) The symbol "isRealDevice" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:118:5 - (ae-forgotten-export) The symbol "layout" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:119:5 - (ae-forgotten-export) The symbol "ad" needs to be exported by the entry point index.d.ts +// nativescript-core/index.d.ts:120:5 - (ae-forgotten-export) The symbol "ios" needs to be exported by the entry point index.d.ts +// nativescript-core/ui/core/view-base/view-base.d.ts:179:26 - (ae-forgotten-export) The symbol "Property" needs to be exported by the entry point index.d.ts +// nativescript-core/ui/core/view-base/view-base.d.ts:179:26 - (ae-forgotten-export) The symbol "CssProperty" needs to be exported by the entry point index.d.ts +// nativescript-core/ui/core/view-base/view-base.d.ts:179:26 - (ae-forgotten-export) The symbol "CssAnimationProperty" needs to be exported by the entry point index.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/core/image-asset/index.android.ts b/packages/core/image-asset/index.android.ts index de4e9ebe5..f7987898c 100644 --- a/packages/core/image-asset/index.android.ts +++ b/packages/core/image-asset/index.android.ts @@ -70,17 +70,18 @@ export class ImageAsset extends ImageAssetBase { function calculateAngleFromFile(filename: string) { let rotationAngle = 0; - const ei = new android.media.ExifInterface(filename); - const orientation = ei.getAttributeInt(android.media.ExifInterface.TAG_ORIENTATION, android.media.ExifInterface.ORIENTATION_NORMAL); + const ExifInterface = (androidx as any).exifinterface.media.ExifInterface; + const ei = new ExifInterface(filename); + const orientation = ei.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); switch (orientation) { - case android.media.ExifInterface.ORIENTATION_ROTATE_90: + case ExifInterface.ORIENTATION_ROTATE_90: rotationAngle = 90; break; - case android.media.ExifInterface.ORIENTATION_ROTATE_180: + case ExifInterface.ORIENTATION_ROTATE_180: rotationAngle = 180; break; - case android.media.ExifInterface.ORIENTATION_ROTATE_270: + case ExifInterface.ORIENTATION_ROTATE_270: rotationAngle = 270; break; } diff --git a/packages/core/image-source/index.android.ts b/packages/core/image-source/index.android.ts index 6bdee43a7..5f6873393 100644 --- a/packages/core/image-source/index.android.ts +++ b/packages/core/image-source/index.android.ts @@ -354,17 +354,18 @@ function getTargetFormat(format: 'png' | 'jpeg' | 'jpg'): android.graphics.Bitma function getRotationAngleFromFile(filename: string): number { let result = 0; - const ei = new android.media.ExifInterface(filename); - const orientation = ei.getAttributeInt(android.media.ExifInterface.TAG_ORIENTATION, android.media.ExifInterface.ORIENTATION_NORMAL); + const ExifInterface = (androidx as any).exifinterface.media.ExifInterface; + const ei = new ExifInterface(filename); + const orientation = ei.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); switch (orientation) { - case android.media.ExifInterface.ORIENTATION_ROTATE_90: + case ExifInterface.ORIENTATION_ROTATE_90: result = 90; break; - case android.media.ExifInterface.ORIENTATION_ROTATE_180: + case ExifInterface.ORIENTATION_ROTATE_180: result = 180; break; - case android.media.ExifInterface.ORIENTATION_ROTATE_270: + case ExifInterface.ORIENTATION_ROTATE_270: result = 270; break; } diff --git a/packages/core/platforms/android/native-api-usage.json b/packages/core/platforms/android/native-api-usage.json index 565255a8e..bf34cba39 100644 --- a/packages/core/platforms/android/native-api-usage.json +++ b/packages/core/platforms/android/native-api-usage.json @@ -24,6 +24,9 @@ "androidx.core*:*", "androidx.viewpager.widget*:*", "androidx.fragment*:*", - "androidx.transition*:*" - ] -} \ No newline at end of file + "androidx.transition*:*", + "androidx.viewpager*:*", + "androidx.recyclerview.widget:RecyclerView*", + "androidx.exifinterface*:*" + ] +} diff --git a/packages/core/platforms/android/widgets-release.aar b/packages/core/platforms/android/widgets-release.aar index 33aff71ac..5ddedee40 100644 Binary files a/packages/core/platforms/android/widgets-release.aar and b/packages/core/platforms/android/widgets-release.aar differ diff --git a/packages/core/platforms/ios/TNSWidgets.framework.dSYM.zip b/packages/core/platforms/ios/TNSWidgets.framework.dSYM.zip index 6ef838f87..a9d668ed6 100644 Binary files a/packages/core/platforms/ios/TNSWidgets.framework.dSYM.zip and b/packages/core/platforms/ios/TNSWidgets.framework.dSYM.zip differ diff --git a/packages/core/platforms/ios/TNSWidgets.framework/Info.plist b/packages/core/platforms/ios/TNSWidgets.framework/Info.plist index ab32e047d..9e8f6508f 100644 Binary files a/packages/core/platforms/ios/TNSWidgets.framework/Info.plist and b/packages/core/platforms/ios/TNSWidgets.framework/Info.plist differ diff --git a/packages/core/platforms/ios/TNSWidgets.framework/TNSWidgets b/packages/core/platforms/ios/TNSWidgets.framework/TNSWidgets index 64ab5056f..59b27a684 100755 Binary files a/packages/core/platforms/ios/TNSWidgets.framework/TNSWidgets and b/packages/core/platforms/ios/TNSWidgets.framework/TNSWidgets differ diff --git a/packages/core/ui/tab-view/index.android.ts b/packages/core/ui/tab-view/index.android.ts index d54ee857b..b6c8e933e 100644 --- a/packages/core/ui/tab-view/index.android.ts +++ b/packages/core/ui/tab-view/index.android.ts @@ -10,6 +10,7 @@ import { fontSizeProperty, fontInternalProperty } from '../styling/style-propert import { RESOURCE_PREFIX, ad, layout } from '../../utils'; import { Frame } from '../frame'; import * as application from '../../application'; +import { Tabs } from '../tabs/index.android'; export * from './tab-view-common'; @@ -18,14 +19,14 @@ const PRIMARY_COLOR = 'colorPrimary'; const DEFAULT_ELEVATION = 4; interface PagerAdapter { - new (owner: TabView): androidx.viewpager.widget.PagerAdapter; + new (owner: TabView): any; } const TABID = '_tabId'; const INDEX = '_index'; let PagerAdapter: PagerAdapter; let appResources: android.content.res.Resources; - +let PagerChangeCallback: any; function makeFragmentName(viewId: number, id: number): string { return 'android:viewpager:' + viewId + ':' + id; } @@ -127,23 +128,20 @@ function initializeNativeClasses() { } } - const POSITION_UNCHANGED = -1; - const POSITION_NONE = -2; - - class FragmentPagerAdapter extends androidx.viewpager.widget.PagerAdapter { + @NativeClass + class FragmentPagerAdapter extends androidx.viewpager2.adapter.FragmentStateAdapter { public items: Array; private mCurTransaction: androidx.fragment.app.FragmentTransaction; private mCurrentPrimaryItem: androidx.fragment.app.Fragment; constructor(public owner: TabView) { - super(); + super(owner._getFragmentManager(), (application.android.foregroundActivity || application.android.startActivity).getLifecycle()); return global.__native(this); } - getCount() { + getItemCount() { const items = this.items; - return items ? items.length : 0; } @@ -153,128 +151,63 @@ function initializeNativeClasses() { return ''; } - return items[index].title; + return ''; // items[index].title; } - startUpdate(container: android.view.ViewGroup): void { - if (container.getId() === android.view.View.NO_ID) { - throw new Error(`ViewPager with adapter ${this} requires a view containerId`); - } - } - - instantiateItem(container: android.view.ViewGroup, position: number): java.lang.Object { - const fragmentManager = this.owner._getFragmentManager(); - if (!this.mCurTransaction) { - this.mCurTransaction = fragmentManager.beginTransaction(); - } - - const itemId = this.getItemId(position); - const name = makeFragmentName(container.getId(), itemId); - - let fragment: androidx.fragment.app.Fragment = fragmentManager.findFragmentByTag(name); - if (fragment != null) { - this.mCurTransaction.attach(fragment); - } else { - fragment = TabFragmentImplementation.newInstance(this.owner._domId, position); - this.mCurTransaction.add(container.getId(), fragment, name); - } - - if (fragment !== this.mCurrentPrimaryItem) { - fragment.setMenuVisibility(false); - fragment.setUserVisibleHint(false); - } - + public createFragment(position: number): androidx.fragment.app.Fragment { const tabItems = this.owner.items; const tabItem = tabItems ? tabItems[position] : null; if (tabItem) { tabItem.canBeLoaded = true; } - return fragment; + return TabFragmentImplementation.newInstance(this.owner._domId, position); } - getItemPosition(object: java.lang.Object): number { - return this.items ? POSITION_UNCHANGED : POSITION_NONE; - } + public onBindViewHolder(holder, position) { + super.onBindViewHolder(holder, position); + this.owner.selectedIndex = position; - destroyItem(container: android.view.ViewGroup, position: number, object: java.lang.Object): void { - if (!this.mCurTransaction) { - const fragmentManager = this.owner._getFragmentManager(); - this.mCurTransaction = fragmentManager.beginTransaction(); - } + const tab = this.owner; + const tabItems = tab.items; + const newTabItem = tabItems ? tabItems[position] : null; - const fragment: androidx.fragment.app.Fragment = object; - this.mCurTransaction.detach(fragment); - - if (this.mCurrentPrimaryItem === fragment) { - this.mCurrentPrimaryItem = null; - } - - const tabItems = this.owner.items; - const tabItem = tabItems ? tabItems[position] : null; - if (tabItem) { - tabItem.canBeLoaded = false; + if (newTabItem) { + tab._loadUnloadTabItems(tab.selectedIndex); } } - setPrimaryItem(container: android.view.ViewGroup, position: number, object: java.lang.Object): void { - const fragment = object; - if (fragment !== this.mCurrentPrimaryItem) { - if (this.mCurrentPrimaryItem != null) { - this.mCurrentPrimaryItem.setMenuVisibility(false); - this.mCurrentPrimaryItem.setUserVisibleHint(false); - } - - if (fragment != null) { - fragment.setMenuVisibility(true); - fragment.setUserVisibleHint(true); - } - - this.mCurrentPrimaryItem = fragment; - this.owner.selectedIndex = position; - - const tab = this.owner; - const tabItems = tab.items; - const newTabItem = tabItems ? tabItems[position] : null; - - if (newTabItem) { - tab._loadUnloadTabItems(tab.selectedIndex); + public onViewRecycled(holder: androidx.viewpager2.adapter.FragmentViewHolder): void { + super.onViewRecycled(holder); + if (holder.getLayoutPosition) { + const position = holder.getLayoutPosition(); + const tabItems = this.owner.items; + const tabItem = tabItems ? tabItems[position] : null; + if (tabItem) { + tabItem.canBeLoaded = false; } } } - finishUpdate(container: android.view.ViewGroup): void { - this._commitCurrentTransaction(); - } - - isViewFromObject(view: android.view.View, object: java.lang.Object): boolean { - return (object).getView() === view; - } - - saveState(): android.os.Parcelable { - // Commit the current transaction on save to prevent "No view found for id 0xa" exception on restore. - // Related to: https://github.com/NativeScript/NativeScript/issues/6466 - this._commitCurrentTransaction(); - - return null; - } - - restoreState(state: android.os.Parcelable, loader: java.lang.ClassLoader): void { - // - } - getItemId(position: number): number { return position; } + } - private _commitCurrentTransaction() { - if (this.mCurTransaction != null) { - this.mCurTransaction.commitNowAllowingStateLoss(); - this.mCurTransaction = null; - } + @NativeClass + class PageChangeCallbackImpl extends androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback { + constructor(public owner: Tabs) { + super(); + return global.__native(this); + } + + onPageSelected(position: number) { + super.onPageSelected(position); + this.owner.selectedIndex = position; } } + PagerChangeCallback = PageChangeCallbackImpl; PagerAdapter = FragmentPagerAdapter; appResources = application.android.context.getResources(); } @@ -442,7 +375,7 @@ export class TabView extends TabViewBase { private _pagerAdapter: androidx.viewpager.widget.PagerAdapter; private _androidViewId: number = -1; public _originalBackground: any; - + private _pageChangeCallback: any; constructor() { super(); tabs.push(new WeakRef(this)); @@ -473,6 +406,7 @@ export class TabView extends TabViewBase { const context: android.content.Context = this._context; const nativeView = new org.nativescript.widgets.GridLayout(context); const viewPager = new org.nativescript.widgets.TabViewPager(context); + this._pageChangeCallback = new PagerChangeCallback(this); const tabLayout = new org.nativescript.widgets.TabLayout(context); const lp = new org.nativescript.widgets.CommonLayoutParams(); const primaryColor = ad.resources.getPaletteColor(PRIMARY_COLOR, context); @@ -505,7 +439,7 @@ export class TabView extends TabViewBase { const adapter = new PagerAdapter(this); viewPager.setAdapter(adapter); (viewPager).adapter = adapter; - + (viewPager).registerOnPageChangeCallback(this._pageChangeCallback); nativeView.addView(tabLayout); (nativeView).tabLayout = tabLayout; diff --git a/packages/core/ui/tabs/index.android.ts b/packages/core/ui/tabs/index.android.ts index d00a74832..50b5bdb4f 100644 --- a/packages/core/ui/tabs/index.android.ts +++ b/packages/core/ui/tabs/index.android.ts @@ -25,13 +25,13 @@ const TABID = '_tabId'; const INDEX = '_index'; interface PagerAdapter { - new (owner: Tabs): androidx.viewpager.widget.PagerAdapter; + new (owner: Tabs): any; } let PagerAdapter: PagerAdapter; let TabsBar: any; let appResources: android.content.res.Resources; - +let PagerChangeCallback: any; function makeFragmentName(viewId: number, id: number): string { return 'android:viewpager:' + viewId + ':' + id; } @@ -133,23 +133,19 @@ function initializeNativeClasses() { } } - const POSITION_UNCHANGED = -1; - const POSITION_NONE = -2; - - class FragmentPagerAdapter extends androidx.viewpager.widget.PagerAdapter { + @NativeClass + class FragmentPagerAdapter extends androidx.viewpager2.adapter.FragmentStateAdapter { public items: Array; private mCurTransaction: androidx.fragment.app.FragmentTransaction; private mCurrentPrimaryItem: androidx.fragment.app.Fragment; constructor(public owner: Tabs) { - super(); - + super(owner._getFragmentManager(), (application.android.foregroundActivity || application.android.startActivity).getLifecycle()); return global.__native(this); } - getCount() { + getItemCount() { const items = this.items; - return items ? items.length : 0; } @@ -162,123 +158,42 @@ function initializeNativeClasses() { return ''; // items[index].title; } - startUpdate(container: android.view.ViewGroup): void { - if (container.getId() === android.view.View.NO_ID) { - throw new Error(`ViewPager with adapter ${this} requires a view containerId`); - } - } - - instantiateItem(container: android.view.ViewGroup, position: number): java.lang.Object { - const fragmentManager = this.owner._getFragmentManager(); - if (!this.mCurTransaction) { - this.mCurTransaction = fragmentManager.beginTransaction(); - } - - const itemId = this.getItemId(position); - const name = makeFragmentName(container.getId(), itemId); - - let fragment: androidx.fragment.app.Fragment = fragmentManager.findFragmentByTag(name); - if (fragment != null) { - this.mCurTransaction.attach(fragment); - } else { - fragment = TabFragmentImplementation.newInstance(this.owner._domId, position); - this.mCurTransaction.add(container.getId(), fragment, name); - } - - if (fragment !== this.mCurrentPrimaryItem) { - fragment.setMenuVisibility(false); - fragment.setUserVisibleHint(false); - } - + public createFragment(position: number): androidx.fragment.app.Fragment { const tabItems = this.owner.items; const tabItem = tabItems ? tabItems[position] : null; if (tabItem) { tabItem.canBeLoaded = true; } - return fragment; + return TabFragmentImplementation.newInstance(this.owner._domId, position); } - getItemPosition(object: java.lang.Object): number { - return this.items ? POSITION_UNCHANGED : POSITION_NONE; - } + public onBindViewHolder(holder, position) { + super.onBindViewHolder(holder, position); + const tab = this.owner; + const tabItems = tab.items; + const newTabItem = tabItems ? tabItems[position] : null; - destroyItem(container: android.view.ViewGroup, position: number, object: java.lang.Object): void { - if (!this.mCurTransaction) { - const fragmentManager = this.owner._getFragmentManager(); - this.mCurTransaction = fragmentManager.beginTransaction(); - } - - const fragment: androidx.fragment.app.Fragment = object; - this.mCurTransaction.detach(fragment); - - if (this.mCurrentPrimaryItem === fragment) { - this.mCurrentPrimaryItem = null; - } - - const tabItems = this.owner.items; - const tabItem = tabItems ? tabItems[position] : null; - if (tabItem) { - tabItem.canBeLoaded = false; + if (newTabItem) { + tab._loadUnloadTabItems(tab.selectedIndex); } } - setPrimaryItem(container: android.view.ViewGroup, position: number, object: java.lang.Object): void { - const fragment = object; - if (fragment !== this.mCurrentPrimaryItem) { - if (this.mCurrentPrimaryItem != null) { - this.mCurrentPrimaryItem.setMenuVisibility(false); - this.mCurrentPrimaryItem.setUserVisibleHint(false); - } - - if (fragment != null) { - fragment.setMenuVisibility(true); - fragment.setUserVisibleHint(true); - } - - this.mCurrentPrimaryItem = fragment; - this.owner.selectedIndex = position; - - const tab = this.owner; - const tabItems = tab.items; - const newTabItem = tabItems ? tabItems[position] : null; - - if (newTabItem) { - tab._loadUnloadTabItems(tab.selectedIndex); + public onViewRecycled(holder: androidx.viewpager2.adapter.FragmentViewHolder): void { + super.onViewRecycled(holder); + if (holder.getLayoutPosition) { + const position = holder.getLayoutPosition(); + const tabItems = this.owner.items; + const tabItem = tabItems ? tabItems[position] : null; + if (tabItem) { + tabItem.canBeLoaded = false; } } } - finishUpdate(container: android.view.ViewGroup): void { - this._commitCurrentTransaction(); - } - - isViewFromObject(view: android.view.View, object: java.lang.Object): boolean { - return (object).getView() === view; - } - - saveState(): android.os.Parcelable { - // Commit the current transaction on save to prevent "No view found for id 0xa" exception on restore. - // Related to: https://github.com/NativeScript/NativeScript/issues/6466 - this._commitCurrentTransaction(); - - return null; - } - - restoreState(state: android.os.Parcelable, loader: java.lang.ClassLoader): void { - // - } - getItemId(position: number): number { return position; } - - private _commitCurrentTransaction() { - if (this.mCurTransaction != null) { - this.mCurTransaction.commitNowAllowingStateLoss(); - this.mCurTransaction = null; - } - } } @NativeClass @@ -334,8 +249,22 @@ function initializeNativeClasses() { } } + @NativeClass + class PageChangeCallbackImpl extends androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback { + constructor(public owner: Tabs) { + super(); + return global.__native(this); + } + + onPageSelected(position: number) { + super.onPageSelected(position); + this.owner.selectedIndex = position; + } + } + PagerAdapter = FragmentPagerAdapter; TabsBar = TabsBarImplementation; + PagerChangeCallback = PageChangeCallbackImpl; appResources = application.android.context.getResources(); } @@ -374,15 +303,15 @@ function iterateIndexRange(index: number, eps: number, lastIndex: number, callba export class Tabs extends TabsBase { private _tabsBar: org.nativescript.widgets.TabsBar; - private _viewPager: androidx.viewpager.widget.ViewPager; - private _pagerAdapter: androidx.viewpager.widget.PagerAdapter; + private _viewPager; + private _pagerAdapter: androidx.viewpager2.adapter.FragmentStateAdapter; private _androidViewId: number = -1; public _originalBackground: any; private _textTransform: TextTransform = 'uppercase'; private _selectedItemColor: Color; private _unSelectedItemColor: Color; public animationEnabled: boolean; - + private _pageChangeCallback: any; constructor() { super(); tabs.push(new WeakRef(this)); @@ -414,6 +343,7 @@ export class Tabs extends TabsBase { const context: android.content.Context = this._context; const nativeView = new org.nativescript.widgets.GridLayout(context); const viewPager = new org.nativescript.widgets.TabViewPager(context); + this._pageChangeCallback = new PagerChangeCallback(this); const tabsBar = new TabsBar(context, this); const lp = new org.nativescript.widgets.CommonLayoutParams(); const primaryColor = ad.resources.getPaletteColor(PRIMARY_COLOR, context); @@ -439,7 +369,7 @@ export class Tabs extends TabsBase { const adapter = new PagerAdapter(this); viewPager.setAdapter(adapter); (viewPager).adapter = adapter; - + (viewPager).registerOnPageChangeCallback(this._pageChangeCallback); nativeView.addView(tabsBar); (nativeView).tabsBar = tabsBar; diff --git a/packages/types-android/src/lib/android/common.d.ts b/packages/types-android/src/lib/android/common.d.ts index d758aa68e..67b575f77 100644 --- a/packages/types-android/src/lib/android/common.d.ts +++ b/packages/types-android/src/lib/android/common.d.ts @@ -1,2 +1,3 @@ /// /// +/// diff --git a/packages/types-android/src/lib/android/viewpager2.d.ts b/packages/types-android/src/lib/android/viewpager2.d.ts new file mode 100644 index 000000000..cb494f293 --- /dev/null +++ b/packages/types-android/src/lib/android/viewpager2.d.ts @@ -0,0 +1,331 @@ +declare module androidx { + export module viewpager2 { + export module adapter { + export abstract class FragmentStateAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter implements androidx.viewpager2.adapter.StatefulAdapter { + public static class: java.lang.Class; + public saveState(): globalAndroid.os.Parcelable; + public onViewRecycled(param0: androidx.viewpager2.adapter.FragmentViewHolder): void; + public setHasStableIds(param0: boolean): void; + public onDetachedFromRecyclerView(param0: androidx.recyclerview.widget.RecyclerView): void; + public constructor(param0: androidx.fragment.app.Fragment); + public createFragment(param0: number): androidx.fragment.app.Fragment; + public onViewAttachedToWindow(param0: androidx.viewpager2.adapter.FragmentViewHolder): void; + public containsItem(param0: number): boolean; + public onFailedToRecycleView(param0: androidx.viewpager2.adapter.FragmentViewHolder): boolean; + public restoreState(param0: globalAndroid.os.Parcelable): void; + public constructor(param0: androidx.fragment.app.FragmentManager, param1: androidx.lifecycle.Lifecycle); + public onCreateViewHolder(param0: globalAndroid.view.ViewGroup, param1: number): androidx.viewpager2.adapter.FragmentViewHolder; + public constructor(param0: androidx.fragment.app.FragmentActivity); + public onBindViewHolder(param0: androidx.viewpager2.adapter.FragmentViewHolder, param1: number): void; + public getItemId(param0: number): number; + public onAttachedToRecyclerView(param0: androidx.recyclerview.widget.RecyclerView): void; + } + export module FragmentStateAdapter { + export abstract class DataSetChangeObserver { + public static class: java.lang.Class; + public onChanged(): void; + public onItemRangeMoved(param0: number, param1: number, param2: number): void; + public onItemRangeChanged(param0: number, param1: number, param2: any): void; + public onItemRangeChanged(param0: number, param1: number): void; + public onItemRangeRemoved(param0: number, param1: number): void; + public onItemRangeInserted(param0: number, param1: number): void; + } + export class FragmentMaxLifecycleEnforcer { + public static class: java.lang.Class; + } + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module adapter { + export class FragmentViewHolder { + public static class: java.lang.Class; + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module adapter { + export class StatefulAdapter { + public static class: java.lang.Class; + /** + * Constructs a new instance of the androidx.viewpager2.adapter.StatefulAdapter interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + saveState(): globalAndroid.os.Parcelable; + restoreState(param0: globalAndroid.os.Parcelable): void; + }); + public constructor(); + public saveState(): globalAndroid.os.Parcelable; + public restoreState(param0: globalAndroid.os.Parcelable): void; + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module widget { + export class AnimateLayoutChangeDetector { + public static class: java.lang.Class; + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module widget { + export class CompositeOnPageChangeCallback extends androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback { + public static class: java.lang.Class; + public onPageSelected(param0: number): void; + public onPageScrolled(param0: number, param1: number, param2: number): void; + public onPageScrollStateChanged(param0: number): void; + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module widget { + export class CompositePageTransformer extends androidx.viewpager2.widget.ViewPager2.PageTransformer { + public static class: java.lang.Class; + public transformPage(param0: globalAndroid.view.View, param1: number): void; + public removeTransformer(param0: androidx.viewpager2.widget.ViewPager2.PageTransformer): void; + public addTransformer(param0: androidx.viewpager2.widget.ViewPager2.PageTransformer): void; + public constructor(); + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module widget { + export class FakeDrag { + public static class: java.lang.Class; + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module widget { + export class MarginPageTransformer extends androidx.viewpager2.widget.ViewPager2.PageTransformer { + public static class: java.lang.Class; + public transformPage(param0: globalAndroid.view.View, param1: number): void; + public constructor(param0: number); + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module widget { + export class PageTransformerAdapter extends androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback { + public static class: java.lang.Class; + public onPageSelected(param0: number): void; + public onPageScrolled(param0: number, param1: number, param2: number): void; + public onPageScrollStateChanged(param0: number): void; + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module widget { + export class ScrollEventAdapter { + public static class: java.lang.Class; + public onScrollStateChanged(param0: androidx.recyclerview.widget.RecyclerView, param1: number): void; + public onScrolled(param0: androidx.recyclerview.widget.RecyclerView, param1: number, param2: number): void; + } + export module ScrollEventAdapter { + export class ScrollEventValues { + public static class: java.lang.Class; + } + } + } + } +} + +declare module androidx { + export module viewpager2 { + export module widget { + export class ViewPager2 { + public static class: java.lang.Class; + public static ORIENTATION_HORIZONTAL: number; + public static ORIENTATION_VERTICAL: number; + public static SCROLL_STATE_IDLE: number; + public static SCROLL_STATE_DRAGGING: number; + public static SCROLL_STATE_SETTLING: number; + public static OFFSCREEN_PAGE_LIMIT_DEFAULT: number; + public setUserInputEnabled(param0: boolean): void; + public canScrollHorizontally(param0: number): boolean; + public fakeDragBy(param0: number): boolean; + public isFakeDragging(): boolean; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public getOrientation(): number; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number, param3: number); + public setAdapter(param0: androidx.recyclerview.widget.RecyclerView.Adapter): void; + public beginFakeDrag(): boolean; + public isUserInputEnabled(): boolean; + public requestTransform(): void; + public constructor(param0: globalAndroid.content.Context); + public setOffscreenPageLimit(param0: number): void; + public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; + public unregisterOnPageChangeCallback(param0: androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback): void; + public dispatchRestoreInstanceState(param0: globalAndroid.util.SparseArray): void; + public getAccessibilityClassName(): string; + public onLayout(param0: boolean, param1: number, param2: number, param3: number, param4: number): void; + public performAccessibilityAction(param0: number, param1: globalAndroid.os.Bundle): boolean; + public getScrollState(): number; + public canScrollVertically(param0: number): boolean; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public onSaveInstanceState(): globalAndroid.os.Parcelable; + public setOrientation(param0: number): void; + public setCurrentItem(param0: number, param1: boolean): void; + public getAdapter(): androidx.recyclerview.widget.RecyclerView.Adapter; + public removeItemDecoration(param0: androidx.recyclerview.widget.RecyclerView.ItemDecoration): void; + public addItemDecoration(param0: androidx.recyclerview.widget.RecyclerView.ItemDecoration, param1: number): void; + public endFakeDrag(): boolean; + public getItemDecorationCount(): number; + public invalidateItemDecorations(): void; + public setCurrentItem(param0: number): void; + public setLayoutDirection(param0: number): void; + public onViewAdded(param0: globalAndroid.view.View): void; + public registerOnPageChangeCallback(param0: androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback): void; + public getItemDecorationAt(param0: number): androidx.recyclerview.widget.RecyclerView.ItemDecoration; + public setPageTransformer(param0: androidx.viewpager2.widget.ViewPager2.PageTransformer): void; + public onInitializeAccessibilityNodeInfo(param0: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; + public addItemDecoration(param0: androidx.recyclerview.widget.RecyclerView.ItemDecoration): void; + public onMeasure(param0: number, param1: number): void; + public getCurrentItem(): number; + public getOffscreenPageLimit(): number; + public removeItemDecorationAt(param0: number): void; + } + export module ViewPager2 { + export abstract class AccessibilityProvider { + public static class: java.lang.Class; + } + export class BasicAccessibilityProvider extends androidx.viewpager2.widget.ViewPager2.AccessibilityProvider { + public static class: java.lang.Class; + public onLmInitializeAccessibilityNodeInfo(param0: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; + public onRvGetAccessibilityClassName(): string; + public handlesRvGetAccessibilityClassName(): boolean; + public onLmPerformAccessibilityAction(param0: number): boolean; + public handlesLmPerformAccessibilityAction(param0: number): boolean; + } + export abstract class DataSetChangeObserver { + public static class: java.lang.Class; + public onChanged(): void; + public onItemRangeMoved(param0: number, param1: number, param2: number): void; + public onItemRangeChanged(param0: number, param1: number, param2: any): void; + public onItemRangeChanged(param0: number, param1: number): void; + public onItemRangeRemoved(param0: number, param1: number): void; + public onItemRangeInserted(param0: number, param1: number): void; + } + export class LinearLayoutManagerImpl { + public static class: java.lang.Class; + public calculateExtraLayoutSpace(param0: androidx.recyclerview.widget.RecyclerView.State, param1: native.Array): void; + public requestChildRectangleOnScreen(param0: androidx.recyclerview.widget.RecyclerView, param1: globalAndroid.view.View, param2: globalAndroid.graphics.Rect, param3: boolean, param4: boolean): boolean; + public onInitializeAccessibilityNodeInfo(param0: androidx.recyclerview.widget.RecyclerView.Recycler, param1: androidx.recyclerview.widget.RecyclerView.State, param2: androidx.core.view.accessibility.AccessibilityNodeInfoCompat): void; + public performAccessibilityAction(param0: androidx.recyclerview.widget.RecyclerView.Recycler, param1: androidx.recyclerview.widget.RecyclerView.State, param2: number, param3: globalAndroid.os.Bundle): boolean; + } + export class OffscreenPageLimit { + public static class: java.lang.Class; + /** + * Constructs a new instance of the androidx.viewpager2.widget.ViewPager2$OffscreenPageLimit interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + } + export abstract class OnPageChangeCallback { + public static class: java.lang.Class; + public onPageSelected(param0: number): void; + public onPageScrolled(param0: number, param1: number, param2: number): void; + public constructor(); + public onPageScrollStateChanged(param0: number): void; + } + export class Orientation { + public static class: java.lang.Class; + /** + * Constructs a new instance of the androidx.viewpager2.widget.ViewPager2$Orientation interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + } + export class PageAwareAccessibilityProvider extends androidx.viewpager2.widget.ViewPager2.AccessibilityProvider { + public static class: java.lang.Class; + public handlesPerformAccessibilityAction(param0: number, param1: globalAndroid.os.Bundle): boolean; + public onPerformAccessibilityAction(param0: number, param1: globalAndroid.os.Bundle): boolean; + public onAttachAdapter(param0: androidx.recyclerview.widget.RecyclerView.Adapter): void; + public onSetLayoutDirection(): void; + public onRestorePendingState(): void; + public onGetAccessibilityClassName(): string; + public onDetachAdapter(param0: androidx.recyclerview.widget.RecyclerView.Adapter): void; + public onRvInitializeAccessibilityEvent(param0: globalAndroid.view.accessibility.AccessibilityEvent): void; + public onSetUserInputEnabled(): void; + public onSetNewCurrentItem(): void; + public onSetOrientation(): void; + public onInitialize(param0: androidx.viewpager2.widget.CompositeOnPageChangeCallback, param1: androidx.recyclerview.widget.RecyclerView): void; + public handlesGetAccessibilityClassName(): boolean; + public onInitializeAccessibilityNodeInfo(param0: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; + } + export class PageTransformer { + public static class: java.lang.Class; + /** + * Constructs a new instance of the androidx.viewpager2.widget.ViewPager2$PageTransformer interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + transformPage(param0: globalAndroid.view.View, param1: number): void; + }); + public constructor(); + public transformPage(param0: globalAndroid.view.View, param1: number): void; + } + export class PagerSnapHelperImpl { + public static class: java.lang.Class; + public findSnapView(param0: androidx.recyclerview.widget.RecyclerView.LayoutManager): globalAndroid.view.View; + } + export class RecyclerViewImpl { + public static class: java.lang.Class; + public getAccessibilityClassName(): string; + public onInitializeAccessibilityEvent(param0: globalAndroid.view.accessibility.AccessibilityEvent): void; + public onTouchEvent(param0: globalAndroid.view.MotionEvent): boolean; + public onInterceptTouchEvent(param0: globalAndroid.view.MotionEvent): boolean; + } + export class SavedState { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + } + export class ScrollState { + public static class: java.lang.Class; + /** + * Constructs a new instance of the androidx.viewpager2.widget.ViewPager2$ScrollState interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + } + export class SmoothScrollToPosition { + public static class: java.lang.Class; + public run(): void; + } + } + } + } +} + +//Generics information: + diff --git a/packages/ui-mobile-base/android/widgets/build.gradle b/packages/ui-mobile-base/android/widgets/build.gradle index f7fcfcde0..8ae1701a1 100644 --- a/packages/ui-mobile-base/android/widgets/build.gradle +++ b/packages/ui-mobile-base/android/widgets/build.gradle @@ -11,7 +11,7 @@ def computeCompileSdkVersion () { return compileSdk } else { - return 28 + return 30 } } @@ -20,16 +20,7 @@ def computeBuildToolsVersion() { return buildToolsVersion } else { - return "28.0.2" - } -} - -def computeAndroidXVersion() { - if(project.hasProperty("androidxVersion")) { - return androidxVersion - } - else { - return "1.0.0" + return "30.0.0" } } @@ -47,10 +38,46 @@ def computeTargetSdkVersion() { return targetSdk } else { - return 28 + return 30 } } +def computeAndroidXExifInterfaceVersion() { + if(project.hasProperty("androidXExifInterface")) { + return androidXExifInterface + } + else { + return "1.2.0" + } +} + +def computeAndroidXViewPagerVersion() { + if(project.hasProperty("androidXViewPager")) { + return androidxViewPager + } + else { + return "1.0.0" + } +} + +def computeAndroidXFragmentVersion() { + if(project.hasProperty("androidXFragment")) { + return androidxFragment + } + else { + return "1.2.5" + } +} + +def computeAndroidXTransitionVersion() { + if(project.hasProperty("androidXTransition")) { + return androidxTransition + } + else { + return "1.3.1" + } +} + android { compileSdkVersion computeCompileSdkVersion() buildToolsVersion computeBuildToolsVersion() @@ -74,10 +101,10 @@ dependencies { if(project.hasProperty("useAndroidX")) { println 'Using android X' - def androidxVersion = computeAndroidXVersion() - implementation 'androidx.viewpager:viewpager:' + androidxVersion - implementation 'androidx.fragment:fragment:' + androidxVersion - implementation 'androidx.transition:transition:' + androidxVersion + implementation 'androidx.viewpager2:viewpager2:' + computeAndroidXViewPagerVersion() + implementation 'androidx.fragment:fragment:' + computeAndroidXFragmentVersion() + implementation 'androidx.transition:transition:' + computeAndroidXTransitionVersion() + implementation 'androidx.exifinterface:exifinterface:' + computeAndroidXExifInterfaceVersion() } else { println 'Using support library' implementation 'com.android.support:support-v4:' + computeSupportVersion() @@ -97,4 +124,4 @@ task copyAar << { assemble.dependsOn(cleanBuildDir) copyAar.dependsOn(assemble) -build.dependsOn(copyAar) \ No newline at end of file +build.dependsOn(copyAar) diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Image/Fetcher.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Image/Fetcher.java index 19878b6e4..c56134070 100644 --- a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Image/Fetcher.java +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Image/Fetcher.java @@ -22,7 +22,7 @@ import android.content.res.Resources; import android.graphics.Matrix; import android.graphics.Bitmap; import android.graphics.BitmapFactory; -import android.media.ExifInterface; +import androidx.exifinterface.media.ExifInterface; import android.os.Build; import android.util.Log; import android.util.TypedValue; @@ -443,7 +443,7 @@ public class Fetcher extends Worker { /** * Decode and sample down a bitmap from a file to the requested width and height. * - * @param filename The full path of the file to decode + * @param fileName The full path of the file to decode * @param reqWidth The requested width of the resulting bitmap * @param reqHeight The requested height of the resulting bitmap * @param cache The Cache used to find candidate bitmaps for use with inBitmap @@ -669,4 +669,4 @@ public class Fetcher extends Worker { } //END_INCLUDE(add_bitmap_options) } -} \ No newline at end of file +} diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Image/Worker.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Image/Worker.java index 2d940d597..b6ec703cc 100644 --- a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Image/Worker.java +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Image/Worker.java @@ -85,7 +85,7 @@ public abstract class Worker { /** * Load an image specified by the data parameter into an ImageView (override - * {@link Worker#processBitmap(String, int, int, boolean)} to define the processing logic). A memory and + * {@link Worker#processBitmap(String, int, int, boolean, boolean)} to define the processing logic). A memory and * disk cache will be used if an {@link Cache} has been added using * {@link Worker#addImageCache(Cache)}. If the * image is found in the memory cache, it is set immediately, otherwise an {@link AsyncTask} @@ -196,7 +196,7 @@ public abstract class Worker { * example, you could resize a large bitmap here, or pull down an image from the network. * * @param uri The URI to identify which image to process, as provided by - * {@link Worker#loadImage(String, BitmapOwner, int, int, boolean, boolean, OnImageLoadedListener)} + * {@link Worker#loadImage(String, BitmapOwner, int, int, boolean, boolean, boolean, OnImageLoadedListener)} * @return The processed bitmap */ protected abstract Bitmap processBitmap(String uri, int decodeWidth, int decodeHeight, boolean keepAspectRatio, boolean useCache); @@ -539,4 +539,4 @@ public abstract class Worker { public void closeCache() { new CacheAsyncTask().execute(MESSAGE_CLOSE); } -} \ No newline at end of file +} diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabLayout.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabLayout.java index 32337a760..90bdf0b0b 100644 --- a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabLayout.java +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabLayout.java @@ -18,8 +18,9 @@ package org.nativescript.widgets; import android.content.Context; import android.graphics.Typeface; -import androidx.viewpager.widget.PagerAdapter; -import androidx.viewpager.widget.ViewPager; + +import androidx.recyclerview.widget.RecyclerView; +import androidx.viewpager2.widget.ViewPager2; import android.text.TextUtils; import android.util.AttributeSet; import android.util.SparseArray; @@ -33,13 +34,15 @@ import android.widget.ImageView.ScaleType; import android.widget.LinearLayout; import android.widget.TextView; +import java.lang.reflect.InvocationTargetException; + /** * To be used with ViewPager to provide a tab indicator component which give * constant feedback as to the user's scroll progress. *

* To use the component, simply add it to your view hierarchy. Then in your - * {@link android.app.Activity} or {@link android.support.v4.app.Fragment} call - * {@link #setViewPager(ViewPager)} providing it the ViewPager this layout is + * {@link android.app.Activity} or {@link androidx.fragment.app.Fragment} call + * {@link #setViewPager(TabViewPager)} providing it the ViewPager this layout is * being used for. *

* The colors can be customized in two ways. The first and simplest is to @@ -63,6 +66,7 @@ public class TabLayout extends HorizontalScrollView { } + private static final int TITLE_OFFSET_DIPS = 24; private static final int TAB_VIEW_PADDING_DIPS = 16; private static final int TAB_VIEW_TEXT_SIZE_SP = 12; @@ -75,9 +79,9 @@ public class TabLayout extends HorizontalScrollView { private boolean mDistributeEvenly = true; private TabItemSpec[] mTabItems; - private ViewPager mViewPager; + private TabViewPager mViewPager; private SparseArray mContentDescriptions = new SparseArray(); - private ViewPager.OnPageChangeListener mViewPagerPageChangeListener; + private ViewPager2.OnPageChangeCallback mViewPagerPageChangeListener; private final TabStrip mTabStrip; @@ -156,14 +160,14 @@ public class TabLayout extends HorizontalScrollView { } /** - * Set the {@link ViewPager.OnPageChangeListener}. When using + * Set the {@link ViewPager2.OnPageChangeCallback}. When using * {@link TabLayout} you are required to set any - * {@link ViewPager.OnPageChangeListener} through this method. This is so + * {@link ViewPager2.OnPageChangeCallback} through this method. This is so * that the layout can update it's scroll position correctly. * - * @see ViewPager#setOnPageChangeListener(ViewPager.OnPageChangeListener) + * @see ViewPager2#registerOnPageChangeCallback(ViewPager2.OnPageChangeCallback) */ - public void setOnPageChangeListener(ViewPager.OnPageChangeListener listener) { + public void setOnPageChangeListener(ViewPager2.OnPageChangeCallback listener) { mViewPagerPageChangeListener = listener; } @@ -172,17 +176,17 @@ public class TabLayout extends HorizontalScrollView { * pager content (number of tabs and tab titles) does not change after this * call has been made. */ - public void setViewPager(ViewPager viewPager) { + public void setViewPager(TabViewPager viewPager) { this.setItems(null, viewPager); } - public void setItems(TabItemSpec[] items, ViewPager viewPager) { + public void setItems(TabItemSpec[] items, TabViewPager viewPager) { mTabStrip.removeAllViews(); mViewPager = viewPager; mTabItems = items; if (viewPager != null) { - viewPager.addOnPageChangeListener(new InternalViewPagerListener()); + viewPager.getViewPager().registerOnPageChangeCallback(new InternalViewPagerListener()); populateTabStrip(); } } @@ -311,18 +315,35 @@ public class TabLayout extends HorizontalScrollView { } private void populateTabStrip() { - final PagerAdapter adapter = mViewPager.getAdapter(); + final RecyclerView.Adapter adapter = mViewPager.getViewPager().getAdapter(); final OnClickListener tabClickListener = new TabClickListener(); - for (int i = 0; i < adapter.getCount(); i++) { + for (int i = 0; i < adapter.getItemCount(); i++) { View tabView = null; TabItemSpec tabItem; if (this.mTabItems != null && this.mTabItems.length > i) { tabItem = this.mTabItems[i]; } else { - tabItem = new TabItemSpec(); - tabItem.title = adapter.getPageTitle(i).toString(); + /* getPageTitle was removed in ViewPager2 */ + + String title = ""; + Class fragmentStateAdapter = null; + try { + fragmentStateAdapter = Class.forName("androidx.viewpager2.adapter.FragmentStateAdapter"); + title = (String) fragmentStateAdapter.getDeclaredMethod("getPageTitle").invoke(i); + } catch (ClassNotFoundException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } catch (InvocationTargetException e) { + e.printStackTrace(); + } catch (NoSuchMethodException e) { + e.printStackTrace(); + } + + tabItem = new TabItemSpec(); + tabItem.title = title; } tabView = createDefaultTabView(getContext(), tabItem); @@ -334,7 +355,7 @@ public class TabLayout extends HorizontalScrollView { } mTabStrip.addView(tabView); - if (i == mViewPager.getCurrentItem()) { + if (i == mViewPager.getViewPager().getCurrentItem()) { tabView.setSelected(true); } } @@ -349,7 +370,7 @@ public class TabLayout extends HorizontalScrollView { super.onAttachedToWindow(); if (mViewPager != null) { - scrollToTab(mViewPager.getCurrentItem(), 0); + scrollToTab(mViewPager.getViewPager().getCurrentItem(), 0); } } @@ -373,7 +394,7 @@ public class TabLayout extends HorizontalScrollView { } } - private class InternalViewPagerListener implements ViewPager.OnPageChangeListener { + private class InternalViewPagerListener extends ViewPager2.OnPageChangeCallback { private int mScrollState; @Override @@ -411,7 +432,7 @@ public class TabLayout extends HorizontalScrollView { @Override public void onPageSelected(int position) { - if (mScrollState == ViewPager.SCROLL_STATE_IDLE) { + if (mScrollState == ViewPager2.SCROLL_STATE_IDLE) { mTabStrip.onViewPagerPageChanged(position, 0f); scrollToTab(position, 0); } diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabViewPager.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabViewPager.java index aa8ecf5ae..5b22ae922 100644 --- a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabViewPager.java +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabViewPager.java @@ -1,62 +1,92 @@ package org.nativescript.widgets; import android.content.Context; -import androidx.viewpager.widget.ViewPager; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import androidx.viewpager2.widget.ViewPager2; import android.util.AttributeSet; -import android.view.MotionEvent; -import android.view.KeyEvent; +import android.widget.LinearLayout; // See this thread for more information https://stackoverflow.com/questions/9650265 -public class TabViewPager extends ViewPager { +public class TabViewPager extends LinearLayout { private boolean swipePageEnabled = true; private boolean animationEnabled = true; - + ViewPager2 viewPager; public TabViewPager(Context context) { super(context); + viewPager = new ViewPager2(context); + init(); } public TabViewPager(Context context, AttributeSet attrs) { super(context, attrs); + viewPager = new ViewPager2(context, attrs); + init(); } + private void init(){ + viewPager.setLayoutParams( + new LayoutParams( + LayoutParams.MATCH_PARENT, + LayoutParams.MATCH_PARENT) + ); + addView(viewPager); + } + + public void setSwipePageEnabled(boolean enabled) { this.swipePageEnabled = enabled; + viewPager.setUserInputEnabled(enabled); } public void setAnimationEnabled(boolean enabled) { this.animationEnabled = enabled; } - @Override - public boolean onInterceptTouchEvent(MotionEvent event) { - if (this.swipePageEnabled) { - return super.onInterceptTouchEvent(event); - } - return false; - } - - @Override - public boolean onTouchEvent(MotionEvent event) { - if (this.swipePageEnabled) { - return super.onTouchEvent(event); - } - - return false; - } - - @Override - public boolean executeKeyEvent(KeyEvent event) { - if (this.swipePageEnabled) { - return super.executeKeyEvent(event); - } - - return false; - } - - @Override public void setCurrentItem(int item) { boolean smoothScroll = this.animationEnabled && this.swipePageEnabled; - super.setCurrentItem(item, smoothScroll); + viewPager.setCurrentItem(item, smoothScroll); } + + public void setCurrentItem(int item, boolean smoothScroll) { + viewPager.setCurrentItem(item, smoothScroll); + } + + public int getOffscreenPageLimit(){ + return viewPager.getOffscreenPageLimit(); + } + + public void setOffscreenPageLimit(int limit){ + viewPager.setOffscreenPageLimit(limit); + } + + public void setAdapter(@Nullable @SuppressWarnings("rawtypes") RecyclerView.Adapter adapter){ + viewPager.setAdapter(adapter); + } + + public void unregisterOnPageChangeCallback(ViewPager2.OnPageChangeCallback callback){ + viewPager.unregisterOnPageChangeCallback(callback); + } + + public void registerOnPageChangeCallback(ViewPager2.OnPageChangeCallback callback){ + viewPager.registerOnPageChangeCallback(callback); + } + + public void setOrientation(int orientation) { + viewPager.setOrientation(orientation); + } + + public int getOrientation(){ + return viewPager.getOrientation(); + } + + public void setPageTransformer(ViewPager2.PageTransformer transformer){ + viewPager.setPageTransformer(transformer); + } + + public ViewPager2 getViewPager() { + return viewPager; + } } diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabsBar.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabsBar.java index 3f9e53dbe..ab9722ecd 100644 --- a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabsBar.java +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/TabsBar.java @@ -18,8 +18,10 @@ package org.nativescript.widgets; import android.content.Context; import android.graphics.Typeface; -import androidx.viewpager.widget.PagerAdapter; -import androidx.viewpager.widget.ViewPager; + +import androidx.recyclerview.widget.RecyclerView; +import androidx.viewpager2.widget.ViewPager2; + import android.text.TextUtils; import android.util.AttributeSet; import android.util.SparseArray; @@ -33,13 +35,15 @@ import android.widget.ImageView.ScaleType; import android.widget.LinearLayout; import android.widget.TextView; +import java.lang.reflect.InvocationTargetException; + /** * To be used with ViewPager to provide a tab indicator component which give * constant feedback as to the user's scroll progress. *

* To use the component, simply add it to your view hierarchy. Then in your - * {@link android.app.Activity} or {@link android.support.v4.app.Fragment} call - * {@link #setViewPager(ViewPager)} providing it the ViewPager this layout is + * {@link android.app.Activity} or {@link androidx.fragment.app.Fragment} call + * {@link #setViewPager(TabViewPager)} providing it the ViewPager this layout is * being used for. *

* The colors can be customized in two ways. The first and simplest is to @@ -75,9 +79,9 @@ public class TabsBar extends HorizontalScrollView { private boolean mDistributeEvenly = true; private TabItemSpec[] mTabItems; - private ViewPager mViewPager; + private TabViewPager mViewPager; private SparseArray mContentDescriptions = new SparseArray(); - private ViewPager.OnPageChangeListener mViewPagerPageChangeListener; + private ViewPager2.OnPageChangeCallback mViewPagerPageChangeListener; private final TabStrip mTabStrip; @@ -156,14 +160,14 @@ public class TabsBar extends HorizontalScrollView { } /** - * Set the {@link ViewPager.OnPageChangeListener}. When using + * Set the {@link ViewPager2.OnPageChangeCallback}. When using * {@link TabsBar} you are required to set any - * {@link ViewPager.OnPageChangeListener} through this method. This is so + * {@link ViewPager2.OnPageChangeCallback} through this method. This is so * that the layout can update it's scroll position correctly. * - * @see ViewPager#setOnPageChangeListener(ViewPager.OnPageChangeListener) + * @see ViewPager2#registerOnPageChangeCallback(ViewPager2.OnPageChangeCallback ) */ - public void setOnPageChangeListener(ViewPager.OnPageChangeListener listener) { + public void setOnPageChangeListener(ViewPager2.OnPageChangeCallback listener) { mViewPagerPageChangeListener = listener; } @@ -172,17 +176,17 @@ public class TabsBar extends HorizontalScrollView { * pager content (number of tabs and tab titles) does not change after this * call has been made. */ - public void setViewPager(ViewPager viewPager) { + public void setViewPager(TabViewPager viewPager) { this.setItems(null, viewPager); } - public void setItems(TabItemSpec[] items, ViewPager viewPager) { + public void setItems(TabItemSpec[] items, TabViewPager viewPager) { mTabStrip.removeAllViews(); mViewPager = viewPager; mTabItems = items; if (viewPager != null) { - viewPager.addOnPageChangeListener(new InternalViewPagerListener()); + viewPager.getViewPager().registerOnPageChangeCallback(new InternalViewPagerListener()); populateTabStrip(); } } @@ -322,18 +326,35 @@ public class TabsBar extends HorizontalScrollView { } private void populateTabStrip() { - final PagerAdapter adapter = mViewPager.getAdapter(); + final RecyclerView.Adapter adapter = mViewPager.getViewPager().getAdapter(); final OnClickListener tabClickListener = new TabClickListener(); - for (int i = 0; i < adapter.getCount(); i++) { + for (int i = 0; i < adapter.getItemCount(); i++) { View tabView = null; TabItemSpec tabItem; if (this.mTabItems != null && this.mTabItems.length > i) { tabItem = this.mTabItems[i]; } else { - tabItem = new TabItemSpec(); - tabItem.title = adapter.getPageTitle(i).toString(); + /* getPageTitle was removed in ViewPager2 */ + + String title = ""; + Class fragmentStateAdapter = null; + try { + fragmentStateAdapter = Class.forName("androidx.viewpager2.adapter.FragmentStateAdapter"); + title = (String) fragmentStateAdapter.getDeclaredMethod("getPageTitle").invoke(i); + } catch (ClassNotFoundException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } catch (InvocationTargetException e) { + e.printStackTrace(); + } catch (NoSuchMethodException e) { + e.printStackTrace(); + } + + tabItem = new TabItemSpec(); + tabItem.title = title; } tabView = createDefaultTabView(getContext(), tabItem); @@ -345,7 +366,7 @@ public class TabsBar extends HorizontalScrollView { } mTabStrip.addView(tabView); - if (i == mViewPager.getCurrentItem()) { + if (i == mViewPager.getViewPager().getCurrentItem()) { tabView.setSelected(true); } } @@ -360,7 +381,7 @@ public class TabsBar extends HorizontalScrollView { super.onAttachedToWindow(); if (mViewPager != null) { - scrollToTab(mViewPager.getCurrentItem(), 0); + scrollToTab(mViewPager.getViewPager().getCurrentItem(), 0); } } @@ -384,7 +405,7 @@ public class TabsBar extends HorizontalScrollView { } } - private class InternalViewPagerListener implements ViewPager.OnPageChangeListener { + private class InternalViewPagerListener extends ViewPager2.OnPageChangeCallback { private int mScrollState; @Override @@ -422,7 +443,7 @@ public class TabsBar extends HorizontalScrollView { @Override public void onPageSelected(int position) { - if (mScrollState == ViewPager.SCROLL_STATE_IDLE) { + if (mScrollState == ViewPager2.SCROLL_STATE_IDLE) { mTabStrip.onTabsViewPagerPageChanged(position, 0f); scrollToTab(position, 0); } @@ -449,4 +470,4 @@ public class TabsBar extends HorizontalScrollView { } } } -} \ No newline at end of file +} diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/AsyncTask.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/AsyncTask.java new file mode 100644 index 000000000..81ab98bf9 --- /dev/null +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/AsyncTask.java @@ -0,0 +1,693 @@ +/* + * Copyright (C) 2008 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.nativescript.widgets.image; + +import android.annotation.TargetApi; +import android.os.Handler; +import android.os.Message; +import android.os.Process; + +import java.util.ArrayDeque; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Callable; +import java.util.concurrent.CancellationException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Executor; +import java.util.concurrent.Executors; +import java.util.concurrent.FutureTask; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; + +/** + * ************************************* + * Copied from JB release framework: + * https://android.googlesource.com/platform/frameworks/base/+/jb-release/core/java/android/os/AsyncTask.java + * + * so that threading behavior on all OS versions is the same and we can tweak behavior by using + * executeOnExecutor() if needed. + * + * There are 3 changes in this copy of AsyncTask: + * -pre-HC a single thread executor is used for serial operation + * (Executors.newSingleThreadExecutor) and is the default + * -the default THREAD_POOL_EXECUTOR was changed to use DiscardOldestPolicy + * -a new fixed thread pool called DUAL_THREAD_EXECUTOR was added + * ************************************* + * + *

AsyncTask enables proper and easy use of the UI thread. This class allows to + * perform background operations and publish results on the UI thread without + * having to manipulate threads and/or handlers.

+ * + *

AsyncTask is designed to be a helper class around {@link Thread} and {@link Handler} + * and does not constitute a generic threading framework. AsyncTasks should ideally be + * used for short operations (a few seconds at the most.) If you need to keep threads + * running for long periods of time, it is highly recommended you use the various APIs + * provided by the java.util.concurrent pacakge such as {@link Executor}, + * {@link ThreadPoolExecutor} and {@link FutureTask}.

+ * + *

An asynchronous task is defined by a computation that runs on a background thread and + * whose result is published on the UI thread. An asynchronous task is defined by 3 generic + * types, called Params, Progress and Result, + * and 4 steps, called onPreExecute, doInBackground, + * onProgressUpdate and onPostExecute.

+ * + *
+ *

Developer Guides

+ *

For more information about using tasks and threads, read the + * Processes and + * Threads developer guide.

+ *
+ * + *

Usage

+ *

AsyncTask must be subclassed to be used. The subclass will override at least + * one method ({@link #doInBackground}), and most often will override a + * second one ({@link #onPostExecute}.)

+ * + *

Here is an example of subclassing:

+ *
+ * private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> {
+ *     protected Long doInBackground(URL... urls) {
+ *         int count = urls.length;
+ *         long totalSize = 0;
+ *         for (int i = 0; i < count; i++) {
+ *             totalSize += Downloader.downloadFile(urls[i]);
+ *             publishProgress((int) ((i / (float) count) * 100));
+ *             // Escape early if cancel() is called
+ *             if (isCancelled()) break;
+ *         }
+ *         return totalSize;
+ *     }
+ *
+ *     protected void onProgressUpdate(Integer... progress) {
+ *         setProgressPercent(progress[0]);
+ *     }
+ *
+ *     protected void onPostExecute(Long result) {
+ *         showDialog("Downloaded " + result + " bytes");
+ *     }
+ * }
+ * 
+ * + *

Once created, a task is executed very simply:

+ *
+ * new DownloadFilesTask().execute(url1, url2, url3);
+ * 
+ * + *

AsyncTask's generic types

+ *

The three types used by an asynchronous task are the following:

+ *
    + *
  1. Params, the type of the parameters sent to the task upon + * execution.
  2. + *
  3. Progress, the type of the progress units published during + * the background computation.
  4. + *
  5. Result, the type of the result of the background + * computation.
  6. + *
+ *

Not all types are always used by an asynchronous task. To mark a type as unused, + * simply use the type {@link Void}:

+ *
+ * private class MyTask extends AsyncTask<Void, Void, Void> { ... }
+ * 
+ * + *

The 4 steps

+ *

When an asynchronous task is executed, the task goes through 4 steps:

+ *
    + *
  1. {@link #onPreExecute()}, invoked on the UI thread immediately after the task + * is executed. This step is normally used to setup the task, for instance by + * showing a progress bar in the user interface.
  2. + *
  3. {@link #doInBackground}, invoked on the background thread + * immediately after {@link #onPreExecute()} finishes executing. This step is used + * to perform background computation that can take a long time. The parameters + * of the asynchronous task are passed to this step. The result of the computation must + * be returned by this step and will be passed back to the last step. This step + * can also use {@link #publishProgress} to publish one or more units + * of progress. These values are published on the UI thread, in the + * {@link #onProgressUpdate} step.
  4. + *
  5. {@link #onProgressUpdate}, invoked on the UI thread after a + * call to {@link #publishProgress}. The timing of the execution is + * undefined. This method is used to display any form of progress in the user + * interface while the background computation is still executing. For instance, + * it can be used to animate a progress bar or show logs in a text field.
  6. + *
  7. {@link #onPostExecute}, invoked on the UI thread after the background + * computation finishes. The result of the background computation is passed to + * this step as a parameter.
  8. + *
+ * + *

Cancelling a task

+ *

A task can be cancelled at any time by invoking {@link #cancel(boolean)}. Invoking + * this method will cause subsequent calls to {@link #isCancelled()} to return true. + * After invoking this method, {@link #onCancelled(Object)}, instead of + * {@link #onPostExecute(Object)} will be invoked after {@link #doInBackground(Object[])} + * returns. To ensure that a task is cancelled as quickly as possible, you should always + * check the return value of {@link #isCancelled()} periodically from + * {@link #doInBackground(Object[])}, if possible (inside a loop for instance.)

+ * + *

Threading rules

+ *

There are a few threading rules that must be followed for this class to + * work properly:

+ *
    + *
  • The AsyncTask class must be loaded on the UI thread. This is done + * automatically as of {@link android.os.Build.VERSION_CODES#JELLY_BEAN}.
  • + *
  • The task instance must be created on the UI thread.
  • + *
  • {@link #execute} must be invoked on the UI thread.
  • + *
  • Do not call {@link #onPreExecute()}, {@link #onPostExecute}, + * {@link #doInBackground}, {@link #onProgressUpdate} manually.
  • + *
  • The task can be executed only once (an exception will be thrown if + * a second execution is attempted.)
  • + *
+ * + *

Memory observability

+ *

AsyncTask guarantees that all callback calls are synchronized in such a way that the following + * operations are safe without explicit synchronizations.

+ *
    + *
  • Set member fields in the constructor or {@link #onPreExecute}, and refer to them + * in {@link #doInBackground}. + *
  • Set member fields in {@link #doInBackground}, and refer to them in + * {@link #onProgressUpdate} and {@link #onPostExecute}. + *
+ * + *

Order of execution

+ *

When first introduced, AsyncTasks were executed serially on a single background + * thread. Starting with {@link android.os.Build.VERSION_CODES#DONUT}, this was changed + * to a pool of threads allowing multiple tasks to operate in parallel. Starting with + * {@link android.os.Build.VERSION_CODES#HONEYCOMB}, tasks are executed on a single + * thread to avoid common application errors caused by parallel execution.

+ *

If you truly want parallel execution, you can invoke + * {@link #executeOnExecutor(Executor, Object[])} with + * {@link #THREAD_POOL_EXECUTOR}.

+ */ +public abstract class AsyncTask { + private static final String LOG_TAG = "AsyncTask"; + + private static final int CORE_POOL_SIZE = 5; + private static final int MAXIMUM_POOL_SIZE = 128; + private static final int KEEP_ALIVE = 1; + + private static final ThreadFactory sThreadFactory = new ThreadFactory() { + private final AtomicInteger mCount = new AtomicInteger(1); + + public Thread newThread(Runnable r) { + return new Thread(r, "AsyncTask #" + mCount.getAndIncrement()); + } + }; + + private static final BlockingQueue sPoolWorkQueue = + new LinkedBlockingQueue(10); + + /** + * An {@link Executor} that can be used to execute tasks in parallel. + */ + public static final Executor THREAD_POOL_EXECUTOR + = new ThreadPoolExecutor(CORE_POOL_SIZE, MAXIMUM_POOL_SIZE, KEEP_ALIVE, + TimeUnit.SECONDS, sPoolWorkQueue, sThreadFactory, + new ThreadPoolExecutor.DiscardOldestPolicy()); + + /** + * An {@link Executor} that executes tasks one at a time in serial + * order. This serialization is global to a particular process. + */ + public static final Executor SERIAL_EXECUTOR = Utils.hasHoneycomb() ? new SerialExecutor() : + Executors.newSingleThreadExecutor(sThreadFactory); + + public static final Executor DUAL_THREAD_EXECUTOR = + Executors.newFixedThreadPool(2, sThreadFactory); + + private static final int MESSAGE_POST_RESULT = 0x1; + private static final int MESSAGE_POST_PROGRESS = 0x2; + + private static final InternalHandler sHandler = new InternalHandler(); + + private static volatile Executor sDefaultExecutor = SERIAL_EXECUTOR; + private final WorkerRunnable mWorker; + private final FutureTask mFuture; + + private volatile Status mStatus = Status.PENDING; + + private final AtomicBoolean mCancelled = new AtomicBoolean(); + private final AtomicBoolean mTaskInvoked = new AtomicBoolean(); + + @TargetApi(11) + private static class SerialExecutor implements Executor { + final ArrayDeque mTasks = new ArrayDeque(); + Runnable mActive; + + public synchronized void execute(final Runnable r) { + mTasks.offer(new Runnable() { + public void run() { + try { + r.run(); + } finally { + scheduleNext(); + } + } + }); + if (mActive == null) { + scheduleNext(); + } + } + + protected synchronized void scheduleNext() { + if ((mActive = mTasks.poll()) != null) { + THREAD_POOL_EXECUTOR.execute(mActive); + } + } + } + + /** + * Indicates the current status of the task. Each status will be set only once + * during the lifetime of a task. + */ + public enum Status { + /** + * Indicates that the task has not been executed yet. + */ + PENDING, + /** + * Indicates that the task is running. + */ + RUNNING, + /** + * Indicates that {@link AsyncTask#onPostExecute} has finished. + */ + FINISHED, + } + + /** @hide Used to force static handler to be created. */ + public static void init() { + sHandler.getLooper(); + } + + /** @hide */ + public static void setDefaultExecutor(Executor exec) { + sDefaultExecutor = exec; + } + + /** + * Creates a new asynchronous task. This constructor must be invoked on the UI thread. + */ + public AsyncTask() { + mWorker = new WorkerRunnable() { + public Result call() throws Exception { + mTaskInvoked.set(true); + + Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); + //noinspection unchecked + return postResult(doInBackground(mParams)); + } + }; + + mFuture = new FutureTask(mWorker) { + @Override + protected void done() { + try { + postResultIfNotInvoked(get()); + } catch (InterruptedException e) { + android.util.Log.w(LOG_TAG, e); + } catch (ExecutionException e) { + throw new RuntimeException("An error occured while executing doInBackground()", + e.getCause()); + } catch (CancellationException e) { + postResultIfNotInvoked(null); + } + } + }; + } + + private void postResultIfNotInvoked(Result result) { + final boolean wasTaskInvoked = mTaskInvoked.get(); + if (!wasTaskInvoked) { + postResult(result); + } + } + + private Result postResult(Result result) { + @SuppressWarnings("unchecked") + Message message = sHandler.obtainMessage(MESSAGE_POST_RESULT, + new AsyncTaskResult(this, result)); + message.sendToTarget(); + return result; + } + + /** + * Returns the current status of this task. + * + * @return The current status. + */ + public final Status getStatus() { + return mStatus; + } + + /** + * Override this method to perform a computation on a background thread. The + * specified parameters are the parameters passed to {@link #execute} + * by the caller of this task. + * + * This method can call {@link #publishProgress} to publish updates + * on the UI thread. + * + * @param params The parameters of the task. + * + * @return A result, defined by the subclass of this task. + * + * @see #onPreExecute() + * @see #onPostExecute + * @see #publishProgress + */ + protected abstract Result doInBackground(Params... params); + + /** + * Runs on the UI thread before {@link #doInBackground}. + * + * @see #onPostExecute + * @see #doInBackground + */ + protected void onPreExecute() { + } + + /** + *

Runs on the UI thread after {@link #doInBackground}. The + * specified result is the value returned by {@link #doInBackground}.

+ * + *

This method won't be invoked if the task was cancelled.

+ * + * @param result The result of the operation computed by {@link #doInBackground}. + * + * @see #onPreExecute + * @see #doInBackground + * @see #onCancelled(Object) + */ + @SuppressWarnings({"UnusedDeclaration"}) + protected void onPostExecute(Result result) { + } + + /** + * Runs on the UI thread after {@link #publishProgress} is invoked. + * The specified values are the values passed to {@link #publishProgress}. + * + * @param values The values indicating progress. + * + * @see #publishProgress + * @see #doInBackground + */ + @SuppressWarnings({"UnusedDeclaration"}) + protected void onProgressUpdate(Progress... values) { + } + + /** + *

Runs on the UI thread after {@link #cancel(boolean)} is invoked and + * {@link #doInBackground(Object[])} has finished.

+ * + *

The default implementation simply invokes {@link #onCancelled()} and + * ignores the result. If you write your own implementation, do not call + * super.onCancelled(result).

+ * + * @param result The result, if any, computed in + * {@link #doInBackground(Object[])}, can be null + * + * @see #cancel(boolean) + * @see #isCancelled() + */ + @SuppressWarnings({"UnusedParameters"}) + protected void onCancelled(Result result) { + onCancelled(); + } + + /** + *

Applications should preferably override {@link #onCancelled(Object)}. + * This method is invoked by the default implementation of + * {@link #onCancelled(Object)}.

+ * + *

Runs on the UI thread after {@link #cancel(boolean)} is invoked and + * {@link #doInBackground(Object[])} has finished.

+ * + * @see #onCancelled(Object) + * @see #cancel(boolean) + * @see #isCancelled() + */ + protected void onCancelled() { + } + + /** + * Returns true if this task was cancelled before it completed + * normally. If you are calling {@link #cancel(boolean)} on the task, + * the value returned by this method should be checked periodically from + * {@link #doInBackground(Object[])} to end the task as soon as possible. + * + * @return true if task was cancelled before it completed + * + * @see #cancel(boolean) + */ + public final boolean isCancelled() { + return mCancelled.get(); + } + + /** + *

Attempts to cancel execution of this task. This attempt will + * fail if the task has already completed, already been cancelled, + * or could not be cancelled for some other reason. If successful, + * and this task has not started when cancel is called, + * this task should never run. If the task has already started, + * then the mayInterruptIfRunning parameter determines + * whether the thread executing this task should be interrupted in + * an attempt to stop the task.

+ * + *

Calling this method will result in {@link #onCancelled(Object)} being + * invoked on the UI thread after {@link #doInBackground(Object[])} + * returns. Calling this method guarantees that {@link #onPostExecute(Object)} + * is never invoked. After invoking this method, you should check the + * value returned by {@link #isCancelled()} periodically from + * {@link #doInBackground(Object[])} to finish the task as early as + * possible.

+ * + * @param mayInterruptIfRunning true if the thread executing this + * task should be interrupted; otherwise, in-progress tasks are allowed + * to complete. + * + * @return false if the task could not be cancelled, + * typically because it has already completed normally; + * true otherwise + * + * @see #isCancelled() + * @see #onCancelled(Object) + */ + public final boolean cancel(boolean mayInterruptIfRunning) { + mCancelled.set(true); + return mFuture.cancel(mayInterruptIfRunning); + } + + /** + * Waits if necessary for the computation to complete, and then + * retrieves its result. + * + * @return The computed result. + * + * @throws CancellationException If the computation was cancelled. + * @throws ExecutionException If the computation threw an exception. + * @throws InterruptedException If the current thread was interrupted + * while waiting. + */ + public final Result get() throws InterruptedException, ExecutionException { + return mFuture.get(); + } + + /** + * Waits if necessary for at most the given time for the computation + * to complete, and then retrieves its result. + * + * @param timeout Time to wait before cancelling the operation. + * @param unit The time unit for the timeout. + * + * @return The computed result. + * + * @throws CancellationException If the computation was cancelled. + * @throws ExecutionException If the computation threw an exception. + * @throws InterruptedException If the current thread was interrupted + * while waiting. + * @throws TimeoutException If the wait timed out. + */ + public final Result get(long timeout, TimeUnit unit) throws InterruptedException, + ExecutionException, TimeoutException { + return mFuture.get(timeout, unit); + } + + /** + * Executes the task with the specified parameters. The task returns + * itself (this) so that the caller can keep a reference to it. + * + *

Note: this function schedules the task on a queue for a single background + * thread or pool of threads depending on the platform version. When first + * introduced, AsyncTasks were executed serially on a single background thread. + * Starting with {@link android.os.Build.VERSION_CODES#DONUT}, this was changed + * to a pool of threads allowing multiple tasks to operate in parallel. Starting + * {@link android.os.Build.VERSION_CODES#HONEYCOMB}, tasks are back to being + * executed on a single thread to avoid common application errors caused + * by parallel execution. If you truly want parallel execution, you can use + * the {@link #executeOnExecutor} version of this method + * with {@link #THREAD_POOL_EXECUTOR}; however, see commentary there for warnings + * on its use. + * + *

This method must be invoked on the UI thread. + * + * @param params The parameters of the task. + * + * @return This instance of AsyncTask. + * + * @throws IllegalStateException If {@link #getStatus()} returns either + * {@link AsyncTask.Status#RUNNING} or {@link AsyncTask.Status#FINISHED}. + * + * @see #executeOnExecutor(Executor, Object[]) + * @see #execute(Runnable) + */ + public final AsyncTask execute(Params... params) { + return executeOnExecutor(sDefaultExecutor, params); + } + + /** + * Executes the task with the specified parameters. The task returns + * itself (this) so that the caller can keep a reference to it. + * + *

This method is typically used with {@link #THREAD_POOL_EXECUTOR} to + * allow multiple tasks to run in parallel on a pool of threads managed by + * AsyncTask, however you can also use your own {@link Executor} for custom + * behavior. + * + *

Warning: Allowing multiple tasks to run in parallel from + * a thread pool is generally not what one wants, because the order + * of their operation is not defined. For example, if these tasks are used + * to modify any state in common (such as writing a file due to a button click), + * there are no guarantees on the order of the modifications. + * Without careful work it is possible in rare cases for the newer version + * of the data to be over-written by an older one, leading to obscure data + * loss and stability issues. Such changes are best + * executed in serial; to guarantee such work is serialized regardless of + * platform version you can use this function with {@link #SERIAL_EXECUTOR}. + * + *

This method must be invoked on the UI thread. + * + * @param exec The executor to use. {@link #THREAD_POOL_EXECUTOR} is available as a + * convenient process-wide thread pool for tasks that are loosely coupled. + * @param params The parameters of the task. + * + * @return This instance of AsyncTask. + * + * @throws IllegalStateException If {@link #getStatus()} returns either + * {@link AsyncTask.Status#RUNNING} or {@link AsyncTask.Status#FINISHED}. + * + * @see #execute(Object[]) + */ + public final AsyncTask executeOnExecutor(Executor exec, + Params... params) { + if (mStatus != Status.PENDING) { + switch (mStatus) { + case RUNNING: + throw new IllegalStateException("Cannot execute task:" + + " the task is already running."); + case FINISHED: + throw new IllegalStateException("Cannot execute task:" + + " the task has already been executed " + + "(a task can be executed only once)"); + } + } + + mStatus = Status.RUNNING; + + onPreExecute(); + + mWorker.mParams = params; + exec.execute(mFuture); + + return this; + } + + /** + * Convenience version of {@link #execute(Object...)} for use with + * a simple Runnable object. See {@link #execute(Object[])} for more + * information on the order of execution. + * + * @see #execute(Object[]) + * @see #executeOnExecutor(Executor, Object[]) + */ + public static void execute(Runnable runnable) { + sDefaultExecutor.execute(runnable); + } + + /** + * This method can be invoked from {@link #doInBackground} to + * publish updates on the UI thread while the background computation is + * still running. Each call to this method will trigger the execution of + * {@link #onProgressUpdate} on the UI thread. + * + * {@link #onProgressUpdate} will note be called if the task has been + * canceled. + * + * @param values The progress values to update the UI with. + * + * @see #onProgressUpdate + * @see #doInBackground + */ + protected final void publishProgress(Progress... values) { + if (!isCancelled()) { + sHandler.obtainMessage(MESSAGE_POST_PROGRESS, + new AsyncTaskResult(this, values)).sendToTarget(); + } + } + + private void finish(Result result) { + if (isCancelled()) { + onCancelled(result); + } else { + onPostExecute(result); + } + mStatus = Status.FINISHED; + } + + private static class InternalHandler extends Handler { + @SuppressWarnings({"unchecked", "RawUseOfParameterizedType"}) + @Override + public void handleMessage(Message msg) { + AsyncTaskResult result = (AsyncTaskResult) msg.obj; + switch (msg.what) { + case MESSAGE_POST_RESULT: + // There is only one result + result.mTask.finish(result.mData[0]); + break; + case MESSAGE_POST_PROGRESS: + result.mTask.onProgressUpdate(result.mData); + break; + } + } + } + + private static abstract class WorkerRunnable implements Callable { + Params[] mParams; + } + + @SuppressWarnings({"RawUseOfParameterizedType"}) + private static class AsyncTaskResult { + final AsyncTask mTask; + final Data[] mData; + + AsyncTaskResult(AsyncTask task, Data... data) { + mTask = task; + mData = data; + } + } +} \ No newline at end of file diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/BitmapOwner.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/BitmapOwner.java new file mode 100644 index 000000000..2f6296796 --- /dev/null +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/BitmapOwner.java @@ -0,0 +1,15 @@ +package org.nativescript.widgets.image; + +import android.graphics.Bitmap; +import android.graphics.drawable.Drawable; + +/** + * Created by hhristov on 4/18/17. + */ + +public interface BitmapOwner { + void setBitmap(Bitmap value); + void setDrawable(Drawable asyncDrawable); + Drawable getDrawable(); + +} diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Cache.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Cache.java new file mode 100644 index 000000000..bb14f2c38 --- /dev/null +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Cache.java @@ -0,0 +1,471 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.nativescript.widgets.image; + +import android.Manifest; +import android.annotation.TargetApi; +import android.content.Context; +import android.content.pm.PackageManager; +import android.graphics.Bitmap; +import android.graphics.Bitmap.Config; +import android.graphics.BitmapFactory; +import android.os.Build.VERSION_CODES; +import android.os.Environment; +import android.os.StatFs; +import android.util.LruCache; +import android.util.Log; + +import java.io.File; +import java.lang.ref.SoftReference; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Set; + +/** + * This class handles disk and memory caching of bitmaps in conjunction with the + * {@link Worker} class and its subclasses. Use + * {@link Cache#getInstance(CacheParams)} to get an instance of this + * class, although usually a cache should be added directly to an {@link Worker} by calling + * {@link Worker#addImageCache(Cache)}. + */ +public class Cache { + private static final String TAG = "JS"; + + // Default memory cache size in kilobytes + private static final int DEFAULT_MEM_CACHE_SIZE = 1024 * 5; // 5MB + + // Constants to easily toggle various caches + private static final boolean DEFAULT_MEM_CACHE_ENABLED = true; + private static final boolean DEFAULT_DISK_CACHE_ENABLED = true; + + private static Cache instance; + private HashMap mMemoryCacheUsage; + private LruCache mMemoryCache; + private CacheParams mParams; + + private Set> mReusableBitmaps; + + /** + * Create a new Cache object using the specified parameters. This should not be + * called directly by other classes, instead use + * {@link Cache#getInstance(CacheParams)} to fetch an Cache + * instance. + */ + private Cache() { + } + + /** + * Return an {@link Cache} instance. + * + * @return An existing retained Cache object or a new one if one did not exist + */ + public static Cache getInstance(CacheParams cacheParams) { + if (instance == null) { + instance = new Cache(); + } + + if (instance.mParams != cacheParams) { + instance.init(cacheParams); + } + + return instance; + } + + /** + * Initialize the cache, providing all parameters. + * + * @param cacheParams The cache parameters to initialize the cache + */ + private void init(CacheParams cacheParams) { + clearCache(); + if (mReusableBitmaps != null) { + mReusableBitmaps.clear(); + mReusableBitmaps = null; + } + + mParams = cacheParams; + + // Set up memory cache + if (mParams.memoryCacheEnabled) { + if (Worker.debuggable > 0) { + Log.v(TAG, "Memory cache created (size = " + mParams.memCacheSize + ")"); + } + + // If we're running on Honeycomb or newer, create a set of reusable bitmaps that can be + // populated into the inBitmap field of BitmapFactory.Options. Note that the set is + // of SoftReferences which will actually not be very effective due to the garbage + // collector being aggressive clearing Soft/WeakReferences. A better approach + // would be to use a strongly references bitmaps, however this would require some + // balancing of memory usage between this set and the bitmap LruCache. It would also + // require knowledge of the expected size of the bitmaps. From Honeycomb to JellyBean + // the size would need to be precise, from KitKat onward the size would just need to + // be the upper bound (due to changes in how inBitmap can re-use bitmaps). + if (Utils.hasHoneycomb()) { + mReusableBitmaps = + Collections.synchronizedSet(new HashSet>()); + } + + mMemoryCacheUsage = new HashMap(); + mMemoryCache = new LruCache(mParams.memCacheSize) { + + /** + * Notify the removed entry that is no longer being cached + */ + @Override + protected void entryRemoved(boolean evicted, String key, + Bitmap oldValue, Bitmap newValue) { + Integer count = mMemoryCacheUsage.get(key); + if (Utils.hasHoneycomb() && (count == null || count == 0)) { + // We're running on Honeycomb or later, so add the bitmap + // to a SoftReference set for possible use with inBitmap later + mReusableBitmaps.add(new SoftReference(oldValue)); + } + } + + /** + * Measure item size in kilobytes rather than units which is more practical + * for a bitmap cache + */ + @Override + protected int sizeOf(String key, Bitmap value) { + final int bitmapSize = getBitmapSize(value) / 1024; + return bitmapSize == 0 ? 1 : bitmapSize; + } + }; + } + } + + /** + * Adds a bitmap to both memory and disk cache. + * + * @param data Unique identifier for the bitmap to store + * @param value The bitmap drawable to store + */ + public void addBitmapToCache(String data, Bitmap value) { + if (data == null || value == null) { + return; + } + + // Add to memory cache + if (mMemoryCache != null) { + Bitmap currentValue = mMemoryCache.get(data); + // NOTE: If we have existing we probably loaded it sync so we don't want to add the new one, + // because this will make the previous bitmap free for reuse but it is used somewhere. + // Probably won't happen often. + if (currentValue == null) { + Integer count = mMemoryCacheUsage.get(data); + // NOTE: count should be null here. + mMemoryCacheUsage.put(data, count == null ? 1 : count + 1); + mMemoryCache.put(data, value); + } + } + } + + /** + * Get from memory cache. + * + * @param data Unique identifier for which item to get + * @return The bitmap if found in cache, null otherwise + */ + public Bitmap getBitmapFromMemCache(String data) { + Bitmap memValue = null; + + if (mMemoryCache != null) { + memValue = mMemoryCache.get(data); + if (memValue != null) { + Integer count = mMemoryCacheUsage.get(data); + mMemoryCacheUsage.put(data, count == null ? 1 : count + 1); + } + } + + if (Worker.debuggable > 0 && memValue != null) { + Log.v(TAG, "Memory cache hit"); + } + + return memValue; + } + + public void reduceDisplayedCounter(String uri) { + if (mMemoryCache != null) { + Integer count = mMemoryCacheUsage.get(uri); + if (count != null) { + if (count == 1) { + mMemoryCacheUsage.remove(uri); + } else { + mMemoryCacheUsage.put(uri, count - 1); + } + } + } + } + + /** + * @param options - BitmapFactory.Options with out* options populated + * @return Bitmap that case be used for inBitmap + */ + protected Bitmap getBitmapFromReusableSet(BitmapFactory.Options options) { + //BEGIN_INCLUDE(get_bitmap_from_reusable_set) + Bitmap bitmap = null; + + if (mReusableBitmaps != null && !mReusableBitmaps.isEmpty()) { + synchronized (mReusableBitmaps) { + final Iterator> iterator = mReusableBitmaps.iterator(); + Bitmap item; + + while (iterator.hasNext()) { + item = iterator.next().get(); + + if (null != item && item.isMutable()) { + // Check to see it the item can be used for inBitmap + if (canUseForInBitmap(item, options)) { + bitmap = item; + + // Remove from reusable set so it can't be used again + iterator.remove(); + break; + } + } else { + // Remove from the set if the reference has been cleared. + iterator.remove(); + } + } + } + } + + return bitmap; + //END_INCLUDE(get_bitmap_from_reusable_set) + } + + /** + * Clears both the memory and disk cache associated with this Cache object. Note that + * this includes disk access so this should not be executed on the main/UI thread. + */ + public void clearCache() { + if (mMemoryCache != null) { + mMemoryCache.evictAll(); + if (Worker.debuggable > 0) { + Log.v(TAG, "Memory cache cleared"); + } + } + if (mMemoryCacheUsage != null) { + mMemoryCacheUsage.clear(); + } + + mMemoryCacheUsage = null; + mMemoryCache = null; + } + + /** + * A holder class that contains cache parameters. + */ + public static class CacheParams { + public int memCacheSize = DEFAULT_MEM_CACHE_SIZE; + public boolean memoryCacheEnabled = DEFAULT_MEM_CACHE_ENABLED; + public boolean diskCacheEnabled = DEFAULT_DISK_CACHE_ENABLED; + + /** + * Sets the memory cache size based on a percentage of the max available VM memory. + * Eg. setting percent to 0.2 would set the memory cache to one fifth of the available + * memory. Throws {@link IllegalArgumentException} if percent is < 0.01 or > .8. + * memCacheSize is stored in kilobytes instead of bytes as this will eventually be passed + * to construct a LruCache which takes an int in its constructor. + *

+ * This value should be chosen carefully based on a number of factors + * Refer to the corresponding Android Training class for more discussion: + * http://developer.android.com/training/displaying-bitmaps/ + * + * @param percent Percent of available app memory to use to size memory cache + */ + public void setMemCacheSizePercent(float percent) { + if (percent < 0.01f || percent > 0.8f) { + throw new IllegalArgumentException("setMemCacheSizePercent - percent must be " + + "between 0.01 and 0.8 (inclusive)"); + } + memCacheSize = Math.round(percent * Runtime.getRuntime().maxMemory() / 1024); + } + } + + /** + * @param candidate - Bitmap to check + * @param targetOptions - Options that have the out* value populated + * @return true if candidate can be used for inBitmap re-use with + * targetOptions + */ + @TargetApi(VERSION_CODES.KITKAT) + private static boolean canUseForInBitmap( + Bitmap candidate, BitmapFactory.Options targetOptions) { + //BEGIN_INCLUDE(can_use_for_inbitmap) + if (!Utils.hasKitKat()) { + // On earlier versions, the dimensions must match exactly and the inSampleSize must be 1 + return candidate.getWidth() == targetOptions.outWidth + && candidate.getHeight() == targetOptions.outHeight + && targetOptions.inSampleSize == 1; + } + + // From Android 4.4 (KitKat) onward we can re-use if the byte size of the new bitmap + // is smaller than the reusable bitmap candidate allocation byte count. + int width = targetOptions.outWidth / targetOptions.inSampleSize; + int height = targetOptions.outHeight / targetOptions.inSampleSize; + int byteCount = width * height * getBytesPerPixel(candidate.getConfig()); + return byteCount <= candidate.getAllocationByteCount(); + //END_INCLUDE(can_use_for_inbitmap) + } + + /** + * Return the byte usage per pixel of a bitmap based on its configuration. + * + * @param config The bitmap configuration. + * @return The byte usage per pixel. + */ + private static int getBytesPerPixel(Config config) { + if (config == Config.ARGB_8888) { + return 4; + } else if (config == Config.RGB_565) { + return 2; + } else if (config == Config.ARGB_4444) { + return 2; + } else if (config == Config.ALPHA_8) { + return 1; + } + return 1; + } + + /** + * Get a usable cache directory (external if available, internal otherwise). + * + * @param context The context to use + * @param uniqueName A unique directory name to append to the cache dir + * @return The cache dir + */ + public static File getDiskCacheDir(Context context, String uniqueName) { + // Check if media is mounted or storage is built-in, if so, try and use external cache dir + // otherwise use internal cache dir + final File cacheFilePath = Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()) || + !isExternalStorageRemovable() ? getExternalCacheDir(context) : context.getCacheDir(); + // In case there is no external storage isExternalStorageRemovable returns False and we get Null from getExternalCacheDir. + // If this is the case - fall back to internal cache dir. + final String cachePath = cacheFilePath != null ? cacheFilePath.getPath() : context.getCacheDir().getPath(); + return new File(cachePath + File.separator + uniqueName); + } + + /** + * A hashing method that changes a string (like a URL) into a hash suitable for using as a + * disk filename. + */ + public static String hashKeyForDisk(String key) { + String cacheKey; + try { + final MessageDigest mDigest = MessageDigest.getInstance("MD5"); + mDigest.update(key.getBytes()); + cacheKey = bytesToHexString(mDigest.digest()); + } catch (NoSuchAlgorithmException e) { + cacheKey = String.valueOf(key.hashCode()); + } + return cacheKey; + } + + private static String bytesToHexString(byte[] bytes) { + // http://stackoverflow.com/questions/332079 + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < bytes.length; i++) { + String hex = Integer.toHexString(0xFF & bytes[i]); + if (hex.length() == 1) { + sb.append('0'); + } + sb.append(hex); + } + return sb.toString(); + } + + /** + * Get the size in bytes of a bitmap in a BitmapDrawable. Note that from Android 4.4 (KitKat) + * onward this returns the allocated memory size of the bitmap which can be larger than the + * actual bitmap data byte count (in the case it was re-used). + * + * @param bitmap + * @return size in bytes + */ + @TargetApi(VERSION_CODES.KITKAT) + public static int getBitmapSize(Bitmap bitmap) { + // From KitKat onward use getAllocationByteCount() as allocated bytes can potentially be + // larger than bitmap byte count. + if (Utils.hasKitKat()) { + return bitmap.getAllocationByteCount(); + } + + if (Utils.hasHoneycombMR1()) { + return bitmap.getByteCount(); + } + + // Pre HC-MR1 + return bitmap.getRowBytes() * bitmap.getHeight(); + } + + /** + * Check if external storage is built-in or removable. + * + * @return True if external storage is removable (like an SD card), false + * otherwise. + */ + @TargetApi(VERSION_CODES.GINGERBREAD) + public static boolean isExternalStorageRemovable() { + if (Utils.hasGingerbread()) { + return Environment.isExternalStorageRemovable(); + } + return true; + } + + /** + * Get the external app cache directory. + * + * @param context The context to use + * @return The external cache dir + */ + @TargetApi(VERSION_CODES.FROYO) + public static File getExternalCacheDir(Context context) { + if (Utils.hasFroyo()) { + if (Utils.hasKitKat() || + context.checkPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, android.os.Process.myPid(), android.os.Process.myUid()) == PackageManager.PERMISSION_GRANTED) { + return context.getExternalCacheDir(); + } + + return null; + } + + // Before Froyo we need to construct the external cache dir ourselves + final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/"; + return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir); + } + + /** + * Check how much usable space is available at a given path. + * + * @param path The path to check + * @return The space available in bytes + */ + @TargetApi(VERSION_CODES.GINGERBREAD) + public static long getUsableSpace(File path) { + if (Utils.hasGingerbread()) { + return path.getUsableSpace(); + } + final StatFs stats = new StatFs(path.getPath()); + return (long) stats.getBlockSize() * (long) stats.getAvailableBlocks(); + } +} \ No newline at end of file diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/DiskLruCache.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/DiskLruCache.java new file mode 100644 index 000000000..7d89176fe --- /dev/null +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/DiskLruCache.java @@ -0,0 +1,953 @@ +/* + * Copyright (C) 2011 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.nativescript.widgets.image; + +import java.io.BufferedInputStream; +import java.io.BufferedWriter; +import java.io.Closeable; +import java.io.EOFException; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.FileWriter; +import java.io.FilterOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.io.OutputStreamWriter; +import java.io.Reader; +import java.io.StringWriter; +import java.io.Writer; +import java.lang.reflect.Array; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; + +/** + ****************************************************************************** + * Taken from the JB source code, can be found in: + * libcore/luni/src/main/java/libcore/io/DiskLruCache.java + * or direct link: + * https://android.googlesource.com/platform/libcore/+/android-4.1.1_r1/luni/src/main/java/libcore/io/DiskLruCache.java + ****************************************************************************** + * + * A cache that uses a bounded amount of space on a filesystem. Each cache + * entry has a string key and a fixed number of values. Values are byte + * sequences, accessible as streams or files. Each value must be between {@code + * 0} and {@code Integer.MAX_VALUE} bytes in length. + * + *

The cache stores its data in a directory on the filesystem. This + * directory must be exclusive to the cache; the cache may delete or overwrite + * files from its directory. It is an error for multiple processes to use the + * same cache directory at the same time. + * + *

This cache limits the number of bytes that it will store on the + * filesystem. When the number of stored bytes exceeds the limit, the cache will + * remove entries in the background until the limit is satisfied. The limit is + * not strict: the cache may temporarily exceed it while waiting for files to be + * deleted. The limit does not include filesystem overhead or the cache + * journal so space-sensitive applications should set a conservative limit. + * + *

Clients call {@link #edit} to create or update the values of an entry. An + * entry may have only one editor at one time; if a value is not available to be + * edited then {@link #edit} will return null. + *

    + *
  • When an entry is being created it is necessary to + * supply a full set of values; the empty value should be used as a + * placeholder if necessary. + *
  • When an entry is being edited, it is not necessary + * to supply data for every value; values default to their previous + * value. + *
+ * Every {@link #edit} call must be matched by a call to {@link Editor#commit} + * or {@link Editor#abort}. Committing is atomic: a read observes the full set + * of values as they were before or after the commit, but never a mix of values. + * + *

Clients call {@link #get} to read a snapshot of an entry. The read will + * observe the value at the time that {@link #get} was called. Updates and + * removals after the call do not impact ongoing reads. + * + *

This class is tolerant of some I/O errors. If files are missing from the + * filesystem, the corresponding entries will be dropped from the cache. If + * an error occurs while writing a cache value, the edit will fail silently. + * Callers should handle other problems by catching {@code IOException} and + * responding appropriately. + */ +public final class DiskLruCache implements Closeable { + static final String JOURNAL_FILE = "journal"; + static final String JOURNAL_FILE_TMP = "journal.tmp"; + static final String MAGIC = "libcore.io.DiskLruCache"; + static final String VERSION_1 = "1"; + static final long ANY_SEQUENCE_NUMBER = -1; + private static final String CLEAN = "CLEAN"; + private static final String DIRTY = "DIRTY"; + private static final String REMOVE = "REMOVE"; + private static final String READ = "READ"; + + private static final Charset UTF_8 = Charset.forName("UTF-8"); + private static final int IO_BUFFER_SIZE = 8 * 1024; + + /* + * This cache uses a journal file named "journal". A typical journal file + * looks like this: + * libcore.io.DiskLruCache + * 1 + * 100 + * 2 + * + * CLEAN 3400330d1dfc7f3f7f4b8d4d803dfcf6 832 21054 + * DIRTY 335c4c6028171cfddfbaae1a9c313c52 + * CLEAN 335c4c6028171cfddfbaae1a9c313c52 3934 2342 + * REMOVE 335c4c6028171cfddfbaae1a9c313c52 + * DIRTY 1ab96a171faeeee38496d8b330771a7a + * CLEAN 1ab96a171faeeee38496d8b330771a7a 1600 234 + * READ 335c4c6028171cfddfbaae1a9c313c52 + * READ 3400330d1dfc7f3f7f4b8d4d803dfcf6 + * + * The first five lines of the journal form its header. They are the + * constant string "libcore.io.DiskLruCache", the disk cache's version, + * the application's version, the value count, and a blank line. + * + * Each of the subsequent lines in the file is a record of the state of a + * cache entry. Each line contains space-separated values: a state, a key, + * and optional state-specific values. + * o DIRTY lines track that an entry is actively being created or updated. + * Every successful DIRTY action should be followed by a CLEAN or REMOVE + * action. DIRTY lines without a matching CLEAN or REMOVE indicate that + * temporary files may need to be deleted. + * o CLEAN lines track a cache entry that has been successfully published + * and may be read. A publish line is followed by the lengths of each of + * its values. + * o READ lines track accesses for LRU. + * o REMOVE lines track entries that have been deleted. + * + * The journal file is appended to as cache operations occur. The journal may + * occasionally be compacted by dropping redundant lines. A temporary file named + * "journal.tmp" will be used during compaction; that file should be deleted if + * it exists when the cache is opened. + */ + + private final File directory; + private final File journalFile; + private final File journalFileTmp; + private final int appVersion; + private final long maxSize; + private final int valueCount; + private long size = 0; + private Writer journalWriter; + private final LinkedHashMap lruEntries + = new LinkedHashMap(0, 0.75f, true); + private int redundantOpCount; + + /** + * To differentiate between old and current snapshots, each entry is given + * a sequence number each time an edit is committed. A snapshot is stale if + * its sequence number is not equal to its entry's sequence number. + */ + private long nextSequenceNumber = 0; + + /* From java.util.Arrays */ + @SuppressWarnings("unchecked") + private static T[] copyOfRange(T[] original, int start, int end) { + final int originalLength = original.length; // For exception priority compatibility. + if (start > end) { + throw new IllegalArgumentException(); + } + if (start < 0 || start > originalLength) { + throw new ArrayIndexOutOfBoundsException(); + } + final int resultLength = end - start; + final int copyLength = Math.min(resultLength, originalLength - start); + final T[] result = (T[]) Array + .newInstance(original.getClass().getComponentType(), resultLength); + System.arraycopy(original, start, result, 0, copyLength); + return result; + } + + /** + * Returns the remainder of 'reader' as a string, closing it when done. + */ + public static String readFully(Reader reader) throws IOException { + try { + StringWriter writer = new StringWriter(); + char[] buffer = new char[1024]; + int count; + while ((count = reader.read(buffer)) != -1) { + writer.write(buffer, 0, count); + } + return writer.toString(); + } finally { + reader.close(); + } + } + + /** + * Returns the ASCII characters up to but not including the next "\r\n", or + * "\n". + * + * @throws EOFException if the stream is exhausted before the next newline + * character. + */ + public static String readAsciiLine(InputStream in) throws IOException { + // TODO: support UTF-8 here instead + + StringBuilder result = new StringBuilder(80); + while (true) { + int c = in.read(); + if (c == -1) { + throw new EOFException(); + } else if (c == '\n') { + break; + } + + result.append((char) c); + } + int length = result.length(); + if (length > 0 && result.charAt(length - 1) == '\r') { + result.setLength(length - 1); + } + return result.toString(); + } + + /** + * Closes 'closeable', ignoring any checked exceptions. Does nothing if 'closeable' is null. + */ + public static void closeQuietly(Closeable closeable) { + if (closeable != null) { + try { + closeable.close(); + } catch (RuntimeException rethrown) { + throw rethrown; + } catch (Exception ignored) { + } + } + } + + /** + * Recursively delete everything in {@code dir}. + */ + // TODO: this should specify paths as Strings rather than as Files + public static void deleteContents(File dir) throws IOException { + File[] files = dir.listFiles(); + if (files == null) { + return; + } + for (File file : files) { + if (file.isDirectory()) { + deleteContents(file); + } + if (!file.delete()) { + throw new IOException("failed to delete file: " + file); + } + } + } + + /** This cache uses a single background thread to evict entries. */ + private final ExecutorService executorService = new ThreadPoolExecutor(0, 1, + 60L, TimeUnit.SECONDS, new LinkedBlockingQueue()); + private final Callable cleanupCallable = new Callable() { + @Override public Void call() throws Exception { + synchronized (DiskLruCache.this) { + if (journalWriter == null) { + return null; // closed + } + trimToSize(); + if (journalRebuildRequired()) { + rebuildJournal(); + redundantOpCount = 0; + } + } + return null; + } + }; + + private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { + this.directory = directory; + this.appVersion = appVersion; + this.journalFile = new File(directory, JOURNAL_FILE); + this.journalFileTmp = new File(directory, JOURNAL_FILE_TMP); + this.valueCount = valueCount; + this.maxSize = maxSize; + } + + /** + * Opens the cache in {@code directory}, creating a cache if none exists + * there. + * + * @param directory a writable directory + * @param appVersion + * @param valueCount the number of values per cache entry. Must be positive. + * @param maxSize the maximum number of bytes this cache should use to store + * @throws IOException if reading or writing the cache directory fails + */ + public static DiskLruCache open(File directory, int appVersion, int valueCount, long maxSize) + throws IOException { + if (maxSize <= 0) { + throw new IllegalArgumentException("maxSize <= 0"); + } + if (valueCount <= 0) { + throw new IllegalArgumentException("valueCount <= 0"); + } + + // prefer to pick up where we left off + DiskLruCache cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); + if (cache.journalFile.exists()) { + try { + cache.readJournal(); + cache.processJournal(); + cache.journalWriter = new BufferedWriter(new FileWriter(cache.journalFile, true), + IO_BUFFER_SIZE); + return cache; + } catch (IOException journalIsCorrupt) { +// System.logW("DiskLruCache " + directory + " is corrupt: " +// + journalIsCorrupt.getMessage() + ", removing"); + cache.delete(); + } + } + + // create a new empty cache + directory.mkdirs(); + cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); + cache.rebuildJournal(); + return cache; + } + + private void readJournal() throws IOException { + InputStream in = new BufferedInputStream(new FileInputStream(journalFile), IO_BUFFER_SIZE); + try { + String magic = readAsciiLine(in); + String version = readAsciiLine(in); + String appVersionString = readAsciiLine(in); + String valueCountString = readAsciiLine(in); + String blank = readAsciiLine(in); + if (!MAGIC.equals(magic) + || !VERSION_1.equals(version) + || !Integer.toString(appVersion).equals(appVersionString) + || !Integer.toString(valueCount).equals(valueCountString) + || !"".equals(blank)) { + throw new IOException("unexpected journal header: [" + + magic + ", " + version + ", " + valueCountString + ", " + blank + "]"); + } + + while (true) { + try { + readJournalLine(readAsciiLine(in)); + } catch (EOFException endOfJournal) { + break; + } + } + } finally { + closeQuietly(in); + } + } + + private void readJournalLine(String line) throws IOException { + String[] parts = line.split(" "); + if (parts.length < 2) { + throw new IOException("unexpected journal line: " + line); + } + + String key = parts[1]; + if (parts[0].equals(REMOVE) && parts.length == 2) { + lruEntries.remove(key); + return; + } + + Entry entry = lruEntries.get(key); + if (entry == null) { + entry = new Entry(key); + lruEntries.put(key, entry); + } + + if (parts[0].equals(CLEAN) && parts.length == 2 + valueCount) { + entry.readable = true; + entry.currentEditor = null; + entry.setLengths(copyOfRange(parts, 2, parts.length)); + } else if (parts[0].equals(DIRTY) && parts.length == 2) { + entry.currentEditor = new Editor(entry); + } else if (parts[0].equals(READ) && parts.length == 2) { + // this work was already done by calling lruEntries.get() + } else { + throw new IOException("unexpected journal line: " + line); + } + } + + /** + * Computes the initial size and collects garbage as a part of opening the + * cache. Dirty entries are assumed to be inconsistent and will be deleted. + */ + private void processJournal() throws IOException { + deleteIfExists(journalFileTmp); + for (Iterator i = lruEntries.values().iterator(); i.hasNext(); ) { + Entry entry = i.next(); + if (entry.currentEditor == null) { + for (int t = 0; t < valueCount; t++) { + size += entry.lengths[t]; + } + } else { + entry.currentEditor = null; + for (int t = 0; t < valueCount; t++) { + deleteIfExists(entry.getCleanFile(t)); + deleteIfExists(entry.getDirtyFile(t)); + } + i.remove(); + } + } + } + + /** + * Creates a new journal that omits redundant information. This replaces the + * current journal if it exists. + */ + private synchronized void rebuildJournal() throws IOException { + if (journalWriter != null) { + journalWriter.close(); + } + + Writer writer = new BufferedWriter(new FileWriter(journalFileTmp), IO_BUFFER_SIZE); + writer.write(MAGIC); + writer.write("\n"); + writer.write(VERSION_1); + writer.write("\n"); + writer.write(Integer.toString(appVersion)); + writer.write("\n"); + writer.write(Integer.toString(valueCount)); + writer.write("\n"); + writer.write("\n"); + + for (Entry entry : lruEntries.values()) { + if (entry.currentEditor != null) { + writer.write(DIRTY + ' ' + entry.key + '\n'); + } else { + writer.write(CLEAN + ' ' + entry.key + entry.getLengths() + '\n'); + } + } + + writer.close(); + journalFileTmp.renameTo(journalFile); + journalWriter = new BufferedWriter(new FileWriter(journalFile, true), IO_BUFFER_SIZE); + } + + private static void deleteIfExists(File file) throws IOException { +// try { +// Libcore.os.remove(file.getPath()); +// } catch (ErrnoException errnoException) { +// if (errnoException.errno != OsConstants.ENOENT) { +// throw errnoException.rethrowAsIOException(); +// } +// } + if (file.exists() && !file.delete()) { + throw new IOException(); + } + } + + /** + * Returns a snapshot of the entry named {@code key}, or null if it doesn't + * exist is not currently readable. If a value is returned, it is moved to + * the head of the LRU queue. + */ + public synchronized Snapshot get(String key) throws IOException { + checkNotClosed(); + validateKey(key); + Entry entry = lruEntries.get(key); + if (entry == null) { + return null; + } + + if (!entry.readable) { + return null; + } + + /* + * Open all streams eagerly to guarantee that we see a single published + * snapshot. If we opened streams lazily then the streams could come + * from different edits. + */ + InputStream[] ins = new InputStream[valueCount]; + try { + for (int i = 0; i < valueCount; i++) { + ins[i] = new FileInputStream(entry.getCleanFile(i)); + } + } catch (FileNotFoundException e) { + // a file must have been deleted manually! + return null; + } + + redundantOpCount++; + journalWriter.append(READ + ' ' + key + '\n'); + if (journalRebuildRequired()) { + executorService.submit(cleanupCallable); + } + + return new Snapshot(key, entry.sequenceNumber, ins); + } + + /** + * Returns an editor for the entry named {@code key}, or null if another + * edit is in progress. + */ + public Editor edit(String key) throws IOException { + return edit(key, ANY_SEQUENCE_NUMBER); + } + + private synchronized Editor edit(String key, long expectedSequenceNumber) throws IOException { + checkNotClosed(); + validateKey(key); + Entry entry = lruEntries.get(key); + if (expectedSequenceNumber != ANY_SEQUENCE_NUMBER + && (entry == null || entry.sequenceNumber != expectedSequenceNumber)) { + return null; // snapshot is stale + } + if (entry == null) { + entry = new Entry(key); + lruEntries.put(key, entry); + } else if (entry.currentEditor != null) { + return null; // another edit is in progress + } + + Editor editor = new Editor(entry); + entry.currentEditor = editor; + + // flush the journal before creating files to prevent file leaks + journalWriter.write(DIRTY + ' ' + key + '\n'); + journalWriter.flush(); + return editor; + } + + /** + * Returns the directory where this cache stores its data. + */ + public File getDirectory() { + return directory; + } + + /** + * Returns the maximum number of bytes that this cache should use to store + * its data. + */ + public long maxSize() { + return maxSize; + } + + /** + * Returns the number of bytes currently being used to store the values in + * this cache. This may be greater than the max size if a background + * deletion is pending. + */ + public synchronized long size() { + return size; + } + + private synchronized void completeEdit(Editor editor, boolean success) throws IOException { + Entry entry = editor.entry; + if (entry.currentEditor != editor) { + throw new IllegalStateException(); + } + + // if this edit is creating the entry for the first time, every index must have a value + if (success && !entry.readable) { + for (int i = 0; i < valueCount; i++) { + if (!entry.getDirtyFile(i).exists()) { + editor.abort(); + throw new IllegalStateException("edit didn't create file " + i); + } + } + } + + for (int i = 0; i < valueCount; i++) { + File dirty = entry.getDirtyFile(i); + if (success) { + if (dirty.exists()) { + File clean = entry.getCleanFile(i); + dirty.renameTo(clean); + long oldLength = entry.lengths[i]; + long newLength = clean.length(); + entry.lengths[i] = newLength; + size = size - oldLength + newLength; + } + } else { + deleteIfExists(dirty); + } + } + + redundantOpCount++; + entry.currentEditor = null; + if (entry.readable | success) { + entry.readable = true; + journalWriter.write(CLEAN + ' ' + entry.key + entry.getLengths() + '\n'); + if (success) { + entry.sequenceNumber = nextSequenceNumber++; + } + } else { + lruEntries.remove(entry.key); + journalWriter.write(REMOVE + ' ' + entry.key + '\n'); + } + + if (size > maxSize || journalRebuildRequired()) { + executorService.submit(cleanupCallable); + } + } + + /** + * We only rebuild the journal when it will halve the size of the journal + * and eliminate at least 2000 ops. + */ + private boolean journalRebuildRequired() { + final int REDUNDANT_OP_COMPACT_THRESHOLD = 2000; + return redundantOpCount >= REDUNDANT_OP_COMPACT_THRESHOLD + && redundantOpCount >= lruEntries.size(); + } + + /** + * Drops the entry for {@code key} if it exists and can be removed. Entries + * actively being edited cannot be removed. + * + * @return true if an entry was removed. + */ + public synchronized boolean remove(String key) throws IOException { + checkNotClosed(); + validateKey(key); + Entry entry = lruEntries.get(key); + if (entry == null || entry.currentEditor != null) { + return false; + } + + for (int i = 0; i < valueCount; i++) { + File file = entry.getCleanFile(i); + if (!file.delete()) { + throw new IOException("failed to delete " + file); + } + size -= entry.lengths[i]; + entry.lengths[i] = 0; + } + + redundantOpCount++; + journalWriter.append(REMOVE + ' ' + key + '\n'); + lruEntries.remove(key); + + if (journalRebuildRequired()) { + executorService.submit(cleanupCallable); + } + + return true; + } + + /** + * Returns true if this cache has been closed. + */ + public boolean isClosed() { + return journalWriter == null; + } + + private void checkNotClosed() { + if (journalWriter == null) { + throw new IllegalStateException("cache is closed"); + } + } + + /** + * Force buffered operations to the filesystem. + */ + public synchronized void flush() throws IOException { + checkNotClosed(); + trimToSize(); + journalWriter.flush(); + } + + /** + * Closes this cache. Stored values will remain on the filesystem. + */ + public synchronized void close() throws IOException { + if (journalWriter == null) { + return; // already closed + } + for (Entry entry : new ArrayList(lruEntries.values())) { + if (entry.currentEditor != null) { + entry.currentEditor.abort(); + } + } + trimToSize(); + journalWriter.close(); + journalWriter = null; + } + + private void trimToSize() throws IOException { + while (size > maxSize) { +// Map.Entry toEvict = lruEntries.eldest(); + final Map.Entry toEvict = lruEntries.entrySet().iterator().next(); + remove(toEvict.getKey()); + } + } + + /** + * Closes the cache and deletes all of its stored values. This will delete + * all files in the cache directory including files that weren't created by + * the cache. + */ + public void delete() throws IOException { + close(); + deleteContents(directory); + } + + private void validateKey(String key) { + if (key.contains(" ") || key.contains("\n") || key.contains("\r")) { + throw new IllegalArgumentException( + "keys must not contain spaces or newlines: \"" + key + "\""); + } + } + + private static String inputStreamToString(InputStream in) throws IOException { + return readFully(new InputStreamReader(in, UTF_8)); + } + + /** + * A snapshot of the values for an entry. + */ + public final class Snapshot implements Closeable { + private final String key; + private final long sequenceNumber; + private final InputStream[] ins; + + private Snapshot(String key, long sequenceNumber, InputStream[] ins) { + this.key = key; + this.sequenceNumber = sequenceNumber; + this.ins = ins; + } + + /** + * Returns an editor for this snapshot's entry, or null if either the + * entry has changed since this snapshot was created or if another edit + * is in progress. + */ + public Editor edit() throws IOException { + return DiskLruCache.this.edit(key, sequenceNumber); + } + + /** + * Returns the unbuffered stream with the value for {@code index}. + */ + public InputStream getInputStream(int index) { + return ins[index]; + } + + /** + * Returns the string value for {@code index}. + */ + public String getString(int index) throws IOException { + return inputStreamToString(getInputStream(index)); + } + + @Override public void close() { + for (InputStream in : ins) { + closeQuietly(in); + } + } + } + + /** + * Edits the values for an entry. + */ + public final class Editor { + private final Entry entry; + private boolean hasErrors; + + private Editor(Entry entry) { + this.entry = entry; + } + + /** + * Returns an unbuffered input stream to read the last committed value, + * or null if no value has been committed. + */ + public InputStream newInputStream(int index) throws IOException { + synchronized (DiskLruCache.this) { + if (entry.currentEditor != this) { + throw new IllegalStateException(); + } + if (!entry.readable) { + return null; + } + return new FileInputStream(entry.getCleanFile(index)); + } + } + + /** + * Returns the last committed value as a string, or null if no value + * has been committed. + */ + public String getString(int index) throws IOException { + InputStream in = newInputStream(index); + return in != null ? inputStreamToString(in) : null; + } + + /** + * Returns a new unbuffered output stream to write the value at + * {@code index}. If the underlying output stream encounters errors + * when writing to the filesystem, this edit will be aborted when + * {@link #commit} is called. The returned output stream does not throw + * IOExceptions. + */ + public OutputStream newOutputStream(int index) throws IOException { + synchronized (DiskLruCache.this) { + if (entry.currentEditor != this) { + throw new IllegalStateException(); + } + return new FaultHidingOutputStream(new FileOutputStream(entry.getDirtyFile(index))); + } + } + + /** + * Sets the value at {@code index} to {@code value}. + */ + public void set(int index, String value) throws IOException { + Writer writer = null; + try { + writer = new OutputStreamWriter(newOutputStream(index), UTF_8); + writer.write(value); + } finally { + closeQuietly(writer); + } + } + + /** + * Commits this edit so it is visible to readers. This releases the + * edit lock so another edit may be started on the same key. + */ + public void commit() throws IOException { + if (hasErrors) { + completeEdit(this, false); + remove(entry.key); // the previous entry is stale + } else { + completeEdit(this, true); + } + } + + /** + * Aborts this edit. This releases the edit lock so another edit may be + * started on the same key. + */ + public void abort() throws IOException { + completeEdit(this, false); + } + + private class FaultHidingOutputStream extends FilterOutputStream { + private FaultHidingOutputStream(OutputStream out) { + super(out); + } + + @Override public void write(int oneByte) { + try { + out.write(oneByte); + } catch (IOException e) { + hasErrors = true; + } + } + + @Override public void write(byte[] buffer, int offset, int length) { + try { + out.write(buffer, offset, length); + } catch (IOException e) { + hasErrors = true; + } + } + + @Override public void close() { + try { + out.close(); + } catch (IOException e) { + hasErrors = true; + } + } + + @Override public void flush() { + try { + out.flush(); + } catch (IOException e) { + hasErrors = true; + } + } + } + } + + private final class Entry { + private final String key; + + /** Lengths of this entry's files. */ + private final long[] lengths; + + /** True if this entry has ever been published */ + private boolean readable; + + /** The ongoing edit or null if this entry is not being edited. */ + private Editor currentEditor; + + /** The sequence number of the most recently committed edit to this entry. */ + private long sequenceNumber; + + private Entry(String key) { + this.key = key; + this.lengths = new long[valueCount]; + } + + public String getLengths() throws IOException { + StringBuilder result = new StringBuilder(); + for (long size : lengths) { + result.append(' ').append(size); + } + return result.toString(); + } + + /** + * Set lengths using decimal numbers like "10123". + */ + private void setLengths(String[] strings) throws IOException { + if (strings.length != valueCount) { + throw invalidLengths(strings); + } + + try { + for (int i = 0; i < strings.length; i++) { + lengths[i] = Long.parseLong(strings[i]); + } + } catch (NumberFormatException e) { + throw invalidLengths(strings); + } + } + + private IOException invalidLengths(String[] strings) throws IOException { + throw new IOException("unexpected journal line: " + Arrays.toString(strings)); + } + + public File getCleanFile(int i) { + return new File(directory, key + "." + i); + } + + public File getDirtyFile(int i) { + return new File(directory, key + "." + i + ".tmp"); + } + } +} diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Fetcher.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Fetcher.java new file mode 100644 index 000000000..c56134070 --- /dev/null +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Fetcher.java @@ -0,0 +1,672 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.nativescript.widgets.image; + +import android.annotation.TargetApi; +import android.content.Context; +import android.content.res.Resources; +import android.graphics.Matrix; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import androidx.exifinterface.media.ExifInterface; +import android.os.Build; +import android.util.Log; +import android.util.TypedValue; + +import java.io.BufferedInputStream; +import java.io.BufferedOutputStream; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileDescriptor; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.HttpURLConnection; +import java.net.URL; + +/** + * A simple subclass of {@link Worker} that fetch and resize images from a file, resource or URL. + */ +public class Fetcher extends Worker { + private static final int HTTP_CACHE_SIZE = 10 * 1024 * 1024; // 10MB + private static final String HTTP_CACHE_DIR = "http"; + private static final int IO_BUFFER_SIZE = 8 * 1024; + + private static int mDeviceWidthPixels; + private static int mDeviceHeightPixels; + + private File mHttpCacheDir; + private DiskLruCache mHttpDiskCache; + private boolean mHttpDiskCacheStarting = true; + private final Object mHttpDiskCacheLock = new Object(); + private static final int DISK_CACHE_INDEX = 0; + + private final String mPackageName; + private static Fetcher instance; + + public static Fetcher getInstance(Context context) { + if (instance == null) { + instance = new Fetcher(context); + } + + return instance; + } + + /** + * Initialize providing a target image width and height for the processing images. + * + * @param context + */ + private Fetcher(Context context) { + super(context); + mHttpCacheDir = Cache.getDiskCacheDir(context, HTTP_CACHE_DIR); + mPackageName = context.getPackageName(); + mDeviceWidthPixels = (int) context.getResources().getDisplayMetrics().widthPixels; + mDeviceHeightPixels = (int) context.getResources().getDisplayMetrics().heightPixels; + } + + @Override + protected void initDiskCacheInternal() { + if (!mHttpCacheDir.exists()) { + mHttpCacheDir.mkdirs(); + } + synchronized (mHttpDiskCacheLock) { + if (Cache.getUsableSpace(mHttpCacheDir) > HTTP_CACHE_SIZE) { + try { + mHttpDiskCache = DiskLruCache.open(mHttpCacheDir, 1, 1, HTTP_CACHE_SIZE); + if (debuggable > 0) { + Log.v(TAG, "HTTP cache initialized"); + } + } catch (IOException e) { + mHttpDiskCache = null; + } + } + mHttpDiskCacheStarting = false; + mHttpDiskCacheLock.notifyAll(); + } + } + + @Override + protected void clearCacheInternal() { + super.clearCacheInternal(); + synchronized (mHttpDiskCacheLock) { + if (mHttpDiskCache != null && !mHttpDiskCache.isClosed()) { + try { + mHttpDiskCache.delete(); + if (debuggable > 0) { + Log.v(TAG, "HTTP cache cleared"); + } + } catch (IOException e) { + Log.e(TAG, "clearCacheInternal - " + e); + } + mHttpDiskCache = null; + mHttpDiskCacheStarting = true; + } + } + } + + @Override + protected void flushCacheInternal() { + synchronized (mHttpDiskCacheLock) { + if (mHttpDiskCache != null) { + try { + mHttpDiskCache.flush(); + if (debuggable > 0) { + Log.v(TAG, "HTTP cache flushed"); + } + } catch (IOException e) { + Log.e(TAG, "flush - " + e); + } + } + } + } + + @Override + protected void closeCacheInternal() { + synchronized (mHttpDiskCacheLock) { + if (mHttpDiskCache != null) { + try { + if (!mHttpDiskCache.isClosed()) { + mHttpDiskCache.close(); + mHttpDiskCache = null; + if (debuggable > 0) { + Log.v(TAG, "HTTP cache closed"); + } + } + } catch (IOException e) { + Log.e(TAG, "closeCacheInternal - " + e); + } + } + } + } + + /** + * The main process method, which will be called by the Worker in the AsyncTask background + * thread. + * + * @param data The data to load the bitmap, in this case, a regular http URL + * @return The downloaded and resized bitmap + */ + private Bitmap processHttp(String data, int decodeWidth, int decodeHeight, boolean keepAspectRatio) { + final String key = Cache.hashKeyForDisk(data); + FileDescriptor fileDescriptor = null; + FileInputStream fileInputStream = null; + DiskLruCache.Snapshot snapshot; + synchronized (mHttpDiskCacheLock) { + // Wait for disk cache to initialize + while (mHttpDiskCacheStarting) { + try { + mHttpDiskCacheLock.wait(); + } catch (InterruptedException e) { + } + } + + if (mHttpDiskCache != null) { + try { + snapshot = mHttpDiskCache.get(key); + if (snapshot == null) { + if (debuggable > 0) { + Log.v(TAG, "processBitmap, not found in http cache, downloading..."); + } + DiskLruCache.Editor editor = mHttpDiskCache.edit(key); + if (editor != null) { + if (downloadUrlToStream(data, editor.newOutputStream(DISK_CACHE_INDEX))) { + editor.commit(); + } else { + editor.abort(); + } + } + snapshot = mHttpDiskCache.get(key); + } + if (snapshot != null) { + fileInputStream = (FileInputStream) snapshot.getInputStream(DISK_CACHE_INDEX); + fileDescriptor = fileInputStream.getFD(); + } + } catch (IOException e) { + Log.e(TAG, "processHttp - " + e); + } catch (IllegalStateException e) { + Log.e(TAG, "processHttp - " + e); + } finally { + if (fileDescriptor == null && fileInputStream != null) { + try { + fileInputStream.close(); + } catch (IOException e) { + } + } + } + } + } + + Bitmap bitmap = null; + if (fileDescriptor != null) { + bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, decodeWidth, decodeHeight, keepAspectRatio, + getCache()); + } + if (fileInputStream != null) { + try { + fileInputStream.close(); + } catch (IOException e) { + } + } + return bitmap; + } + + private Bitmap processHttpNoCache(String data, int decodeWidth, int decodeHeight, boolean keepAspectRatio) { + ByteArrayOutputStreamInternal outputStream = null; + Bitmap bitmap = null; + + try { + outputStream = new ByteArrayOutputStreamInternal(); + if (downloadUrlToStream(data, outputStream)) { + bitmap = decodeSampledBitmapFromByteArray(outputStream.getBuffer(), decodeWidth, decodeHeight, + keepAspectRatio, getCache()); + } + } catch (IllegalStateException e) { + Log.e(TAG, "processHttpNoCache - " + e); + } finally { + if (outputStream != null) { + try { + outputStream.close(); + } catch (IOException e) { + } + } + } + + return bitmap; + } + + @Override + protected Bitmap processBitmap(String uri, int decodeWidth, int decodeHeight, boolean keepAspectRatio, + boolean useCache) { + if (debuggable > 0) { + Log.v(TAG, "process: " + uri); + } + + if (uri.startsWith(FILE_PREFIX)) { + String filename = uri.substring(FILE_PREFIX.length()); + return decodeSampledBitmapFromFile(filename, decodeWidth, decodeHeight, keepAspectRatio, getCache()); + } else if (uri.startsWith(RESOURCE_PREFIX)) { + String resPath = uri.substring(RESOURCE_PREFIX.length()); + int resId = mResources.getIdentifier(resPath, "drawable", mPackageName); + if (resId > 0) { + return decodeSampledBitmapFromResource(mResources, resId, decodeWidth, decodeHeight, keepAspectRatio, + getCache()); + } else { + Log.v(TAG, "Missing Image with resourceID: " + uri); + return null; + } + } else { + if (useCache && mHttpDiskCache != null) { + return processHttp(uri, decodeWidth, decodeHeight, keepAspectRatio); + } else { + return processHttpNoCache(uri, decodeWidth, decodeHeight, keepAspectRatio); + } + } + } + + /** + * Download a bitmap from a URL and write the content to an output stream. + * + * @param urlString The URL to fetch + * @return true if successful, false otherwise + */ + public boolean downloadUrlToStream(String urlString, OutputStream outputStream) { + disableConnectionReuseIfNecessary(); + HttpURLConnection urlConnection = null; + BufferedOutputStream out = null; + BufferedInputStream in = null; + + try { + final URL url = new URL(urlString); + urlConnection = (HttpURLConnection) url.openConnection(); + in = new BufferedInputStream(urlConnection.getInputStream(), IO_BUFFER_SIZE); + out = new BufferedOutputStream(outputStream, IO_BUFFER_SIZE); + + int b; + while ((b = in.read()) != -1) { + out.write(b); + } + return true; + } catch (final IOException e) { + Log.e(TAG, "Error in downloadBitmap - " + e); + } finally { + if (urlConnection != null) { + urlConnection.disconnect(); + } + try { + if (out != null) { + out.close(); + } + if (in != null) { + in.close(); + } + } catch (final IOException e) { + } + } + return false; + } + + /** + * Workaround for bug pre-Froyo, see here for more info: + * http://android-developers.blogspot.com/2011/09/androids-http-clients.html + */ + public static void disableConnectionReuseIfNecessary() { + // HTTP connection reuse which was buggy pre-froyo + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) { + System.setProperty("http.keepAlive", "false"); + } + } + + private static class ByteArrayOutputStreamInternal extends ByteArrayOutputStream { + public byte[] getBuffer() { + return buf; + } + } + + /** + * Decode and sample down a bitmap from resources to the requested width and height. + * + * @param res The resources object containing the image data + * @param resId The resource id of the image data + * @param reqWidth The requested width of the resulting bitmap + * @param reqHeight The requested height of the resulting bitmap + * @param cache The Cache used to find candidate bitmaps for use with inBitmap + * @return A bitmap sampled down from the original with the same aspect ratio and dimensions + * that are equal to or greater than the requested width and height + */ + public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight, + boolean keepAspectRatio, Cache cache) { + + // BEGIN_INCLUDE (read_bitmap_dimensions) + // First decode with inJustDecodeBounds=true to check dimensions + final BitmapFactory.Options options = new BitmapFactory.Options(); + options.inJustDecodeBounds = true; + BitmapFactory.decodeResource(res, resId, options); + + options.inSampleSize = calculateInSampleSize(options.outWidth, options.outHeight, reqWidth, reqHeight); + + // END_INCLUDE (read_bitmap_dimensions) + + // If we're running on Honeycomb or newer, try to use inBitmap + if (Utils.hasHoneycomb()) { + addInBitmapOptions(options, cache); + } + + // Decode bitmap with inSampleSize set + options.inJustDecodeBounds = false; + Bitmap bitmap = null; + InputStream is = null; + + try { + final TypedValue value = new TypedValue(); + is = res.openRawResource(resId, value); + + bitmap = BitmapFactory.decodeResourceStream(res, value, is, null, options); + } catch (Exception e) { + /* do nothing. + If the exception happened on open, bm will be null. + If it happened on close, bm is still valid. + */ + } + + if (bitmap == null && options != null && options.inBitmap != null) { + throw new IllegalArgumentException("Problem decoding into existing bitmap"); + } + + ExifInterface ei = getExifInterface(is); + + return scaleAndRotateBitmap(bitmap, ei, reqWidth, reqHeight, keepAspectRatio); + } + + @TargetApi(Build.VERSION_CODES.N) + private static ExifInterface getExifInterface(InputStream is) { + ExifInterface ei = null; + try { + if (Utils.hasN()) { + ei = new ExifInterface(is); + } + } catch (final Exception e) { + Log.e(TAG, "Error in reading bitmap - " + e); + } finally { + if (is != null) { + try { + is.close(); + } catch (IOException e) { + } + } + } + + return ei; + } + + @TargetApi(Build.VERSION_CODES.N) + private static ExifInterface getExifInterface(FileDescriptor fd) { + ExifInterface ei = null; + try { + if (Utils.hasN()) { + ei = new ExifInterface(fd); + } + } catch (final Exception e) { + Log.e(TAG, "Error in reading bitmap - " + e); + } + + return ei; + } + + private static ExifInterface getExifInterface(String fileName) { + ExifInterface ei = null; + try { + ei = new ExifInterface(fileName); + } catch (final Exception e) { + Log.e(TAG, "Error in reading bitmap - " + e); + } + + return ei; + } + + /** + * Decode and sample down a bitmap from a file to the requested width and height. + * + * @param fileName The full path of the file to decode + * @param reqWidth The requested width of the resulting bitmap + * @param reqHeight The requested height of the resulting bitmap + * @param cache The Cache used to find candidate bitmaps for use with inBitmap + * @return A bitmap sampled down from the original with the same aspect ratio and dimensions + * that are equal to or greater than the requested width and height + */ + public static Bitmap decodeSampledBitmapFromFile(String fileName, int reqWidth, int reqHeight, + boolean keepAspectRatio, Cache cache) { + + // First decode with inJustDecodeBounds=true to check dimensions + final BitmapFactory.Options options = new BitmapFactory.Options(); + options.inJustDecodeBounds = true; + BitmapFactory.decodeFile(fileName, options); + + options.inSampleSize = calculateInSampleSize(options.outWidth, options.outHeight, reqWidth, reqHeight); + + // If we're running on Honeycomb or newer, try to use inBitmap + if (Utils.hasHoneycomb()) { + addInBitmapOptions(options, cache); + } + + // Decode bitmap with inSampleSize set + options.inJustDecodeBounds = false; + + final Bitmap bitmap = BitmapFactory.decodeFile(fileName, options); + ExifInterface ei = getExifInterface(fileName); + + return scaleAndRotateBitmap(bitmap, ei, reqWidth, reqHeight, keepAspectRatio); + } + + private static Bitmap scaleAndRotateBitmap(Bitmap bitmap, ExifInterface ei, int reqWidth, int reqHeight, + boolean keepAspectRatio) { + if (bitmap == null) { + return null; + } + + int sourceWidth = bitmap.getWidth(); + int sourceHeight = bitmap.getHeight(); + reqWidth = reqWidth > 0 ? reqWidth : Math.min(sourceWidth, mDeviceWidthPixels); + reqHeight = reqHeight > 0 ? reqHeight : Math.min(sourceHeight, mDeviceHeightPixels); + + // scale + if (reqWidth != sourceWidth || reqHeight != sourceHeight) { + if (keepAspectRatio) { + double widthCoef = (double) sourceWidth / (double) reqWidth; + double heightCoef = (double) sourceHeight / (double) reqHeight; + double aspectCoef = Math.min(widthCoef, heightCoef); + + reqWidth = (int) Math.floor(sourceWidth / aspectCoef); + reqHeight = (int) Math.floor(sourceHeight / aspectCoef); + } + + bitmap = Bitmap.createScaledBitmap(bitmap, reqWidth, reqHeight, true); + } + + // rotate + if (ei != null) { + final Matrix matrix = new Matrix(); + final int rotationAngle = calculateRotationAngle(ei); + if (rotationAngle != 0) { + matrix.postRotate(rotationAngle); + bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true); + } + } + + return bitmap; + } + + private static int calculateRotationAngle(ExifInterface ei) { + int rotationAngle = 0; + final int orientation = ei.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); + + switch (orientation) { + case ExifInterface.ORIENTATION_ROTATE_90: + rotationAngle = 90; + break; + case ExifInterface.ORIENTATION_ROTATE_180: + rotationAngle = 180; + break; + case ExifInterface.ORIENTATION_ROTATE_270: + rotationAngle = 270; + break; + } + + return rotationAngle; + } + + /** + * Decode and sample down a bitmap from a file input stream to the requested width and height. + * + * @param fileDescriptor The file descriptor to read from + * @param reqWidth The requested width of the resulting bitmap + * @param reqHeight The requested height of the resulting bitmap + * @param cache The Cache used to find candidate bitmaps for use with inBitmap + * @return A bitmap sampled down from the original with the same aspect ratio and dimensions + * that are equal to or greater than the requested width and height + */ + public static Bitmap decodeSampledBitmapFromDescriptor(FileDescriptor fileDescriptor, int reqWidth, int reqHeight, + boolean keepAspectRatio, Cache cache) { + + // First decode with inJustDecodeBounds=true to check dimensions + final BitmapFactory.Options options = new BitmapFactory.Options(); + options.inJustDecodeBounds = true; + BitmapFactory.decodeFileDescriptor(fileDescriptor, null, options); + + options.inSampleSize = calculateInSampleSize(options.outWidth, options.outHeight, reqWidth, reqHeight); + + // Decode bitmap with inSampleSize set + options.inJustDecodeBounds = false; + + // If we're running on Honeycomb or newer, try to use inBitmap + if (Utils.hasHoneycomb()) { + addInBitmapOptions(options, cache); + } + + Bitmap results = null; + try { + // This can throw an error on a corrupted image when using an inBitmap + results = BitmapFactory.decodeFileDescriptor(fileDescriptor, null, options); + } catch (Exception e) { + // clear the inBitmap and try again + options.inBitmap = null; + results = BitmapFactory.decodeFileDescriptor(fileDescriptor, null, options); + // If image is broken, rather than an issue with the inBitmap, we will get a NULL out in this case... + } + + ExifInterface ei = getExifInterface(fileDescriptor); + + return scaleAndRotateBitmap(results, ei, reqWidth, reqHeight, keepAspectRatio); + } + + public static Bitmap decodeSampledBitmapFromByteArray(byte[] buffer, int reqWidth, int reqHeight, + boolean keepAspectRatio, Cache cache) { + + // First decode with inJustDecodeBounds=true to check dimensions + final BitmapFactory.Options options = new BitmapFactory.Options(); + options.inJustDecodeBounds = true; + BitmapFactory.decodeByteArray(buffer, 0, buffer.length, options); + + options.inSampleSize = calculateInSampleSize(options.outWidth, options.outHeight, reqWidth, reqHeight); + + // Decode bitmap with inSampleSize set + options.inJustDecodeBounds = false; + + // If we're running on Honeycomb or newer, try to use inBitmap + if (Utils.hasHoneycomb()) { + addInBitmapOptions(options, cache); + } + + final Bitmap bitmap = BitmapFactory.decodeByteArray(buffer, 0, buffer.length, options); + + InputStream is = new ByteArrayInputStream(buffer); + ExifInterface ei = getExifInterface(is); + + return scaleAndRotateBitmap(bitmap, ei, reqWidth, reqHeight, keepAspectRatio); + } + + /** + * Calculate an inSampleSize for use in a {@link BitmapFactory.Options} object when decoding + * bitmaps using the decode* methods from {@link BitmapFactory}. This implementation calculates + * the closest inSampleSize that is a power of 2 and will result in the final decoded bitmap + * having a width and height equal to or larger than the requested width and height. + * + * @param imageWidth The original width of the resulting bitmap + * @param imageHeight The original height of the resulting bitmap + * @param reqWidth The requested width of the resulting bitmap + * @param reqHeight The requested height of the resulting bitmap + * @return The value to be used for inSampleSize + */ + public static int calculateInSampleSize(int imageWidth, int imageHeight, int reqWidth, int reqHeight) { + // BEGIN_INCLUDE (calculate_sample_size) + // Raw height and width of image + final int height = imageHeight; + final int width = imageWidth; + reqWidth = reqWidth > 0 ? reqWidth : width; + reqHeight = reqHeight > 0 ? reqHeight : height; + int inSampleSize = 1; + if (height > reqHeight || width > reqWidth) { + + final int halfHeight = height / 2; + final int halfWidth = width / 2; + + // Calculate the largest inSampleSize value that is a power of 2 and keeps both + // height and width larger than the requested height and width. + while ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) { + inSampleSize *= 2; + } + + // This offers some additional logic in case the image has a strange + // aspect ratio. For example, a panorama may have a much larger + // width than height. In these cases the total pixels might still + // end up being too large to fit comfortably in memory, so we should + // be more aggressive with sample down the image (=larger inSampleSize). + + long totalPixels = (width / inSampleSize) * (height / inSampleSize); + + // Anything more than 2x the requested pixels we'll sample down further + final long totalReqPixelsCap = reqWidth * reqHeight * 2; + + while (totalPixels > totalReqPixelsCap) { + inSampleSize *= 2; + totalPixels = (width / inSampleSize) * (height / inSampleSize); + } + } + return inSampleSize; + // END_INCLUDE (calculate_sample_size) + } + + @TargetApi(Build.VERSION_CODES.HONEYCOMB) + private static void addInBitmapOptions(BitmapFactory.Options options, Cache cache) { + //BEGIN_INCLUDE(add_bitmap_options) + // inBitmap only works with mutable bitmaps so force the decoder to + // return mutable bitmaps. + options.inMutable = true; + + if (cache != null) { + // Try and find a bitmap to use for inBitmap + Bitmap inBitmap = cache.getBitmapFromReusableSet(options); + + if (inBitmap != null) { + options.inBitmap = inBitmap; + } + } + //END_INCLUDE(add_bitmap_options) + } +} diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Utils.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Utils.java new file mode 100644 index 000000000..c1054224f --- /dev/null +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Utils.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.nativescript.widgets.image; + +import android.annotation.TargetApi; +import android.os.Build; +import android.os.Build.VERSION_CODES; +import android.os.StrictMode; + +/** + * Class containing some static utility methods. + */ +public class Utils { + private Utils() {}; + + public static boolean hasFroyo() { + // Can use static final constants like FROYO, declared in later versions + // of the OS since they are inlined at compile time. This is guaranteed behavior. + return Build.VERSION.SDK_INT >= VERSION_CODES.FROYO; + } + + public static boolean hasGingerbread() { + return Build.VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD; + } + + public static boolean hasHoneycomb() { + return Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; + } + + public static boolean hasHoneycombMR1() { + return Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1; + } + + public static boolean hasJellyBean() { + return Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; + } + + public static boolean hasKitKat() { + return Build.VERSION.SDK_INT >= VERSION_CODES.KITKAT; + } + + public static boolean hasN() { + return Build.VERSION.SDK_INT >= VERSION_CODES.N; + } +} \ No newline at end of file diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Worker.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Worker.java new file mode 100644 index 000000000..b6ec703cc --- /dev/null +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/Worker.java @@ -0,0 +1,542 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.nativescript.widgets.image; + +import android.content.Context; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageManager; +import android.content.res.Resources; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.drawable.BitmapDrawable; +import android.graphics.drawable.Drawable; +import android.util.Log; +import android.widget.ImageView; +import java.lang.ref.WeakReference; + +/** + * This class wraps up completing some arbitrary long running work when loading a bitmap to an + * ImageView. It handles things like using a memory and disk cache, running the work in a background + * thread and setting a placeholder image. + */ +public abstract class Worker { + + protected static final String RESOURCE_PREFIX = "res://"; + protected static final String FILE_PREFIX = "file:///"; + + static final String TAG = "JS"; + private static final int FADE_IN_TIME = 200; + + private Cache mCache; + private Bitmap mLoadingBitmap; + private boolean mFadeInBitmap = true; + private boolean mExitTasksEarly = false; + private final Object mPauseWorkLock = new Object(); + + protected boolean mPauseWork = false; + protected Resources mResources; + + private static final int MESSAGE_CLEAR = 0; + private static final int MESSAGE_INIT_DISK_CACHE = 1; + private static final int MESSAGE_FLUSH = 2; + private static final int MESSAGE_CLOSE = 3; + + protected static int debuggable = -1; + + protected Worker(Context context) { + mResources = context.getResources(); + + // Negative means not initialized. + if (debuggable < 0) { + try { + ApplicationInfo ai = context.getPackageManager().getApplicationInfo(context.getPackageName(), android.content.pm.PackageManager.GET_META_DATA); + android.os.Bundle bundle = ai.metaData; + Boolean debugLayouts = bundle != null ? bundle.getBoolean("debugImageCache", false) : false; + debuggable = debugLayouts ? 1 : 0; + } catch (PackageManager.NameNotFoundException e) { + debuggable = 0; + Log.e(TAG, "Failed to load meta-data, NameNotFound: " + e.getMessage()); + } catch (NullPointerException e) { + debuggable = 0; + Log.e(TAG, "Failed to load meta-data, NullPointer: " + e.getMessage()); + } + } + } + + public void removeBitmap(String uri) { + if (mCache != null) { + mCache.reduceDisplayedCounter(uri); + } + } + + /** + * Load an image specified by the data parameter into an ImageView (override + * {@link Worker#processBitmap(String, int, int, boolean, boolean)} to define the processing logic). A memory and + * disk cache will be used if an {@link Cache} has been added using + * {@link Worker#addImageCache(Cache)}. If the + * image is found in the memory cache, it is set immediately, otherwise an {@link AsyncTask} + * will be created to asynchronously load the bitmap. + * + * @param uri The URI of the image to download. + * @param owner The owner to bind the downloaded image to. + * @param listener A listener that will be called back once the image has been loaded. + */ + public void loadImage(String uri, BitmapOwner owner, int decodeWidth, int decodeHeight, boolean keepAspectRatio, boolean useCache, boolean async, OnImageLoadedListener listener) { + if (uri == null) { + return; + } + + Bitmap value = null; + String cacheUri = uri; + + if (debuggable > 0) { + Log.v(TAG, "loadImage on: " + owner + " to: " + uri); + } + + if (mCache != null && useCache) { + // Create new image cache for images with different decodeHeight/decodeWidth. + cacheUri = createCacheUri(uri, decodeHeight, decodeWidth); + + value = mCache.getBitmapFromMemCache(cacheUri); + } + + if (value == null && !async) { + // Decode sync. + value = processBitmap(uri, decodeWidth, decodeHeight, keepAspectRatio, useCache); + if (value != null) { + if (mCache != null && useCache) { + if (debuggable > 0) { + Log.v(TAG, "loadImage.addBitmapToCache: " + owner + ", src: " + cacheUri); + } + mCache.addBitmapToCache(cacheUri, value); + } + } + } + + if (value != null) { + // Bitmap found in memory cache or loaded sync. + if (debuggable > 0) { + Log.v(TAG, "Set ImageBitmap on: " + owner + " to: " + uri); + } + owner.setBitmap(value); + if (listener != null) { + if (debuggable > 0) { + Log.v(TAG, "OnImageLoadedListener on: " + owner + " to: " + uri); + } + listener.onImageLoaded(true); + } + } else if (cancelPotentialWork(uri, owner)) { + final BitmapWorkerTask task = new BitmapWorkerTask(uri, owner, decodeWidth, decodeHeight, keepAspectRatio, useCache, listener); + final AsyncDrawable asyncDrawable = + new AsyncDrawable(mResources, mLoadingBitmap, task); + owner.setDrawable(asyncDrawable); + + // NOTE: This uses a custom version of AsyncTask that has been pulled from the + // framework and slightly modified. Refer to the docs at the top of the class + // for more info on what was changed. + task.executeOnExecutor(AsyncTask.DUAL_THREAD_EXECUTOR); + } + } + + /** + * Set placeholder bitmap that shows when the the background thread is running. + * + * @param bitmap + */ + public void setLoadingImage(Bitmap bitmap) { + mLoadingBitmap = bitmap; + } + + /** + * Set placeholder bitmap that shows when the the background thread is running. + * + * @param resId + */ + public void setLoadingImage(int resId) { + mLoadingBitmap = BitmapFactory.decodeResource(mResources, resId); + } + + /** + * Adds an {@link Cache} to this {@link Worker} to handle disk and memory bitmap + * caching. ImageCahce should be initialized before it is passed as parameter. + */ + public void addImageCache(Cache imageCache) { + this.mCache = imageCache; + } + + /** + * If set to true, the image will fade-in once it has been loaded by the background thread. + */ + public void setImageFadeIn(boolean fadeIn) { + mFadeInBitmap = fadeIn; + } + + public void setExitTasksEarly(boolean exitTasksEarly) { + mExitTasksEarly = exitTasksEarly; + setPauseWork(false); + } + + /** + * Subclasses should override this to define any processing or work that must happen to produce + * the final bitmap. This will be executed in a background thread and be long running. For + * example, you could resize a large bitmap here, or pull down an image from the network. + * + * @param uri The URI to identify which image to process, as provided by + * {@link Worker#loadImage(String, BitmapOwner, int, int, boolean, boolean, boolean, OnImageLoadedListener)} + * @return The processed bitmap + */ + protected abstract Bitmap processBitmap(String uri, int decodeWidth, int decodeHeight, boolean keepAspectRatio, boolean useCache); + + /** + * @return The {@link Cache} object currently being used by this Worker. + */ + protected Cache getCache() { + return mCache; + } + + /** + * Cancels any pending work attached to the provided ImageView. + * @param owner + */ + public static void cancelWork(BitmapOwner owner) { + final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(owner); + if (bitmapWorkerTask != null) { + bitmapWorkerTask.cancel(true); + if (debuggable > 0) { + Log.v(TAG, "cancelWork - cancelled work for " + bitmapWorkerTask.mUri); + } + } + } + + /** + * Returns true if the current work has been canceled or if there was no work in + * progress on this image view. + * Returns false if the work in progress deals with the same data. The work is not + * stopped in that case. + */ + public static boolean cancelPotentialWork(String uri, BitmapOwner owner) { + final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(owner); + + if (bitmapWorkerTask != null) { + final String mUri = bitmapWorkerTask.mUri; + if (mUri == null || !mUri.equals(uri)) { + bitmapWorkerTask.cancel(true); + if (debuggable > 0) { + Log.v(TAG, "cancelPotentialWork - cancelled work for " + uri); + } + } else { + // The same work is already in progress. + return false; + } + } + return true; + } + + /** + * @param owner The owner that requested the bitmap; + * @return Retrieve the currently active work task (if any) associated with this imageView. + * null if there is no such task. + */ + private static BitmapWorkerTask getBitmapWorkerTask(BitmapOwner owner) { + if (owner != null) { + final Drawable drawable = owner.getDrawable(); + if (drawable instanceof AsyncDrawable) { + final AsyncDrawable asyncDrawable = (AsyncDrawable) drawable; + return asyncDrawable.getBitmapWorkerTask(); + } + } + return null; + } + + /** + * Create cache key depending on image uri and decode properties. + */ + private static String createCacheUri(String uri, int decodeHeight, int decodeWidth) { + uri += decodeHeight != 0 ? "height%%" + String.valueOf(decodeHeight): ""; + uri += decodeWidth != 0 ? "width%%" + String.valueOf(decodeWidth): ""; + + return uri; + } + + /** + * The actual AsyncTask that will asynchronously process the image. + */ + private class BitmapWorkerTask extends AsyncTask { + private int mDecodeWidth; + private int mDecodeHeight; + private boolean mKeepAspectRatio; + private String mUri; + private String mCacheUri; + private boolean mCacheImage; + private final WeakReference imageViewReference; + private final OnImageLoadedListener mOnImageLoadedListener; + + public BitmapWorkerTask(String uri, BitmapOwner owner, int decodeWidth, int decodeHeight, boolean keepAspectRatio, boolean cacheImage) { + this(uri, owner, decodeWidth, decodeHeight, keepAspectRatio, cacheImage, null); + } + + public BitmapWorkerTask(String uri, BitmapOwner owner, int decodeWidth, int decodeHeight, boolean keepAspectRatio, boolean cacheImage, OnImageLoadedListener listener) { + mDecodeWidth = decodeWidth; + mDecodeHeight = decodeHeight; + mKeepAspectRatio = keepAspectRatio; + mCacheImage = cacheImage; + mUri = uri; + mCacheUri = createCacheUri(uri, decodeHeight, decodeWidth); + imageViewReference = new WeakReference(owner); + mOnImageLoadedListener = listener; + } + + /** + * Background processing. + */ + @Override + protected Bitmap doInBackground(Void... params) { + if (debuggable > 0) { + Log.v(TAG, "doInBackground - starting work: " + imageViewReference.get() + ", on: " + mUri); + } + + + Bitmap bitmap = null; + + // Wait here if work is paused and the task is not cancelled + synchronized (mPauseWorkLock) { + while (mPauseWork && !isCancelled()) { + try { + mPauseWorkLock.wait(); + } catch (InterruptedException e) {} + } + } + + // If the bitmap was not found in the cache and this task has not been cancelled by + // another thread and the ImageView that was originally bound to this task is still + // bound back to this task and our "exit early" flag is not set, then call the main + // process method (as implemented by a subclass) + if (bitmap == null && !isCancelled() && getAttachedOwner() != null + && !mExitTasksEarly) { + bitmap = processBitmap(mUri, mDecodeWidth, mDecodeHeight, mKeepAspectRatio, mCacheImage); + } + + // If the bitmap was processed and the image cache is available, then add the processed + // bitmap to the cache for future use. Note we don't check if the task was cancelled + // here, if it was, and the thread is still running, we may as well add the processed + // bitmap to our cache as it might be used again in the future + if (bitmap != null) { + if (mCache != null && mCacheImage) { + if (debuggable > 0) { + Log.v(TAG, "addBitmapToCache: " + imageViewReference.get() + ", src: " + mCacheUri); + } + mCache.addBitmapToCache(mCacheUri, bitmap); + } + } + + if (debuggable > 0) { + Log.v(TAG, "doInBackground - finished work"); + } + + return bitmap; + } + + /** + * Once the image is processed, associates it to the imageView + */ + @Override + protected void onPostExecute(Bitmap value) { + boolean success = false; + // if cancel was called on this task or the "exit early" flag is set then we're done + if (isCancelled() || mExitTasksEarly) { + value = null; + } + + if (debuggable > 0) { + Log.v(TAG, "onPostExecute - setting bitmap for: " + imageViewReference.get() + " src: " + mUri); + } + + final BitmapOwner owner = getAttachedOwner(); + if (debuggable > 0) { + Log.v(TAG, "onPostExecute - current ImageView: " + owner); + } + + if (value != null && owner != null) { + success = true; + if (debuggable > 0) { + Log.v(TAG, "Set ImageDrawable on: " + owner + " to: " + mUri); + } + owner.setBitmap(value); + } + + if (mOnImageLoadedListener != null) { + if (debuggable > 0) { + Log.v(TAG, "OnImageLoadedListener on: " + owner + " to: " + mUri); + } + mOnImageLoadedListener.onImageLoaded(success); + } + } + + @Override + protected void onCancelled(Bitmap value) { + super.onCancelled(value); + synchronized (mPauseWorkLock) { + mPauseWorkLock.notifyAll(); + } + } + + /** + * Returns the ImageView associated with this task as long as the ImageView's task still + * points to this task as well. Returns null otherwise. + */ + private BitmapOwner getAttachedOwner() { + final BitmapOwner owner = imageViewReference.get(); + final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(owner); + + if (this == bitmapWorkerTask) { + return owner; + } + + return null; + } + } + + /** + * Interface definition for callback on image loaded successfully. + */ + public interface OnImageLoadedListener { + + /** + * Called once the image has been loaded. + * @param success True if the image was loaded successfully, false if + * there was an error. + */ + void onImageLoaded(boolean success); + } + + /** + * A custom Drawable that will be attached to the imageView while the work is in progress. + * Contains a reference to the actual worker task, so that it can be stopped if a new binding is + * required, and makes sure that only the last started worker process can bind its result, + * independently of the finish order. + */ + private static class AsyncDrawable extends BitmapDrawable { + private final WeakReference bitmapWorkerTaskReference; + + public AsyncDrawable(Resources res, Bitmap bitmap, BitmapWorkerTask bitmapWorkerTask) { + super(res, bitmap); + bitmapWorkerTaskReference = + new WeakReference(bitmapWorkerTask); + } + + public BitmapWorkerTask getBitmapWorkerTask() { + return bitmapWorkerTaskReference.get(); + } + } + +// /** +// * Called when the processing is complete and the final drawable should be +// * set on the ImageView. +// * +// * @param imageView +// * @param bitmap +// */ +// private void setImageDrawable(ImageView imageView, Bitmap bitmap) { +// if (mFadeInBitmap) { +// // Transition drawable with a transparent drawable and the final drawable +// final TransitionDrawable td = +// new TransitionDrawable(new Drawable[] { +// new ColorDrawable(0), +// new BitmapDrawable(bitmap) +// }); +// // Set background to loading bitmap +// imageView.setBackgroundDrawable( +// new BitmapDrawable(mResources, mLoadingBitmap)); +// +// imageView.setImageDrawable(td); +// td.startTransition(FADE_IN_TIME); +// } else { +// imageView.setImageBitmap(bitmap); +// } +// } + + /** + * Pause any ongoing background work. This can be used as a temporary + * measure to improve performance. For example background work could + * be paused when a ListView or GridView is being scrolled using a + * {@link android.widget.AbsListView.OnScrollListener} to keep + * scrolling smooth. + *

+ * If work is paused, be sure setPauseWork(false) is called again + * before your fragment or activity is destroyed (for example during + * {@link android.app.Activity#onPause()}), or there is a risk the + * background thread will never finish. + */ + public void setPauseWork(boolean pauseWork) { + synchronized (mPauseWorkLock) { + mPauseWork = pauseWork; + if (!mPauseWork) { + mPauseWorkLock.notifyAll(); + } + } + } + + class CacheAsyncTask extends AsyncTask { + + @Override + protected Void doInBackground(Object... params) { + switch ((Integer)params[0]) { + case MESSAGE_CLEAR: + clearCacheInternal(); + break; + case MESSAGE_INIT_DISK_CACHE: + initDiskCacheInternal(); + break; + case MESSAGE_FLUSH: + flushCacheInternal(); + break; + case MESSAGE_CLOSE: + closeCacheInternal(); + break; + } + return null; + } + } + + protected void clearCacheInternal() { + if (mCache != null) { + mCache.clearCache(); + } + } + + protected abstract void initDiskCacheInternal(); + + protected abstract void flushCacheInternal(); + + protected abstract void closeCacheInternal(); + + public void initCache() { + new CacheAsyncTask().execute(MESSAGE_INIT_DISK_CACHE); + } + + public void clearCache() { + new CacheAsyncTask().execute(MESSAGE_CLEAR); + } + + public void flushCache() { + new CacheAsyncTask().execute(MESSAGE_FLUSH); + } + + public void closeCache() { + new CacheAsyncTask().execute(MESSAGE_CLOSE); + } +} diff --git a/tools/assets/App_Resources/Android/app.gradle b/tools/assets/App_Resources/Android/app.gradle index 87c95d8b3..5df9ae9e9 100644 --- a/tools/assets/App_Resources/Android/app.gradle +++ b/tools/assets/App_Resources/Android/app.gradle @@ -5,14 +5,14 @@ // compile 'com.android.support:recyclerview-v7:+' //} -android { - compileSdkVersion 29 - defaultConfig { +android { + compileSdkVersion 30 + defaultConfig { minSdkVersion 21 - targetSdkVersion 29 + targetSdkVersion 30 generatedDensities = [] - } - aaptOptions { - additionalParameters "--no-version-vectors" - } -} + } + aaptOptions { + additionalParameters "--no-version-vectors" + } +} diff --git a/tsdoc-metadata.json b/tsdoc-metadata.json new file mode 100644 index 000000000..f4335a97c --- /dev/null +++ b/tsdoc-metadata.json @@ -0,0 +1,11 @@ +// This file is read by tools that parse documentation comments conforming to the TSDoc standard. +// It should be published with your NPM package. It should not be tracked by Git. +{ + "tsdocVersion": "0.12", + "toolPackages": [ + { + "packageName": "@microsoft/api-extractor", + "packageVersion": "7.6.1" + } + ] +}