A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.nativescript.org/api/ below:

API Index | API - NativeScript

Summary References Type Aliases
GridUnitType: "pixel" | "star" | "auto"
InstrumentationMode: "counters" | "timeline" | "lifecycle"

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.

ModuleListProvider: () => string[]
SharedTransitionTagProperties: SharedProperties & {
callback?: (view: View, action: SharedTransitionEventAction) => Promise<void>;
propertiesToMatch?: SharedTransitionTagPropertiesToMatch;
}

Properties which can be set on individual Shared Elements

TouchAnimationOptions: {
  down?: TouchAnimationFn | AnimationDefinition
}
WebViewNavigationType: "linkClicked" | "formSubmitted" | "backForward" | "reload" | "formResubmitted" | "other" | undefined

Represents navigation type

Variables
CSSHelper: {
  AttributeSelector: typeof AttributeSelector
  ClassSelector: typeof ClassSelector
  InvalidSelector: typeof InvalidSelector
  PseudoClassSelector: typeof PseudoClassSelector
  RuleSet: typeof RuleSet
  Selector: typeof Selector
  SelectorCore: typeof SelectorCore
  SelectorsMap: typeof SelectorsMap
  SelectorsMatch: typeof SelectorsMatch
  SimpleSelector: typeof SimpleSelector
  SimpleSelectorSequence: typeof SimpleSelectorSequence
  TypeSelector: typeof TypeSelector
  UniversalSelector: typeof UniversalSelector
  createSelector: typeof createSelector
}

Gets the current device information.

Singular rollup for convenience of all dialog methods

android: AndroidApplication
androidDynamicElevationOffsetProperty autocapitalizationTypeProperty
backgroundEvent: "background" = "background"
backgroundInternalProperty backgroundPositionProperty borderBottomColorProperty borderBottomLeftRadiusProperty borderBottomRightRadiusProperty borderBottomWidthProperty borderTopLeftRadiusProperty borderTopRightRadiusProperty
discardedErrorEvent: "discardedError" = "discardedError"
displayedEvent: "displayed" = "displayed"
exitEvent: "exit" = "exit"
fontScaleChangedEvent: "fontScaleChanged" = "fontScaleChanged"
fontScaleInternalProperty
foregroundEvent: "foreground" = "foreground"
getNativeApplication: any
horizontalAlignmentProperty

Gets a value indicating if the app is running on the Android platform.

Gets a value indicating if the app is running on the iOS platform.

isUserInteractionEnabledProperty
launchEvent: "launch" = "launch"
lowMemoryEvent: "lowMemory" = "lowMemory"
orientationChangedEvent: "orientationChanged" = "orientationChanged"
platformNames: {
  android: string
}
resumeEvent: "resume" = "resume"
setAutoSystemAppearanceChanged
setAutoSystemAppearanceChanged: any
suspendEvent: "suspend" = "suspend"
systemAppearanceChanged: any
systemAppearanceChangedEvent
systemAppearanceChangedEvent: "systemAppearanceChanged" = "systemAppearanceChanged"
uncaughtErrorEvent: "uncaughtError" = "uncaughtError"

Value specifying that Property should be set to its initial value.

updateTextTriggerProperty verticalAlignmentProperty Functions
CSSType(type: string): ClassDecorator

Specifies the type name for the instances of this View class, that is used when matching CSS type selectors. Usage: ``` @CSSType("Button") class Button extends View { } ``` Internally the decorator set `Button.prototype.cssType = "Button"`.

Returns ClassDecorator

PseudoClassHandler(...pseudoClasses: string[]): MethodDecorator

Used to set a global singular instance of ModuleNameResolver

Returns any

action(message: string, cancelButtonText: string, actions: string[]): Promise&lt;string&gt;

The action() method displays a action box that prompts the visitor to choose some action.

Returns Promise<string>

The action() method displays a action box that prompts the visitor to choose some action.

Returns Promise<string>

addTaggedAdditionalCSS(cssText: string, tag?: string | Number): boolean
addWeakEventListener(source: Observable, eventName: string, handler: (eventData: EventData) => void, target: any): void

Attaches a WeakEventListener.

Returns void

alert(message: string | number | boolean): Promise&lt;void&gt;

The alert() method displays an alert box with a specified message.

Returns Promise<void>

The alert() method displays an alert box with a specified message.

Returns Promise<void>

animationTimingFunctionConverter
animationTimingFunctionConverter(value: string): any
booleanConverter(v: string | boolean): boolean
confirm(message: string): Promise&lt;boolean&gt;

The confirm() method displays a dialog box with a specified message.

Returns Promise<boolean>

The confirm() method displays a dialog box with a specified message.

Returns Promise<boolean>

Iterates through all child views (via visual tree) and executes a function.

Returns void

Creates an Observable instance and sets its properties according to the supplied JavaScript object. param obj - A JavaScript object used to initialize nativescript Observable instance.

Creates an Observable instance and sets its properties according to the supplied JavaScript object. This function will create new Observable for each nested object (expect arrays and functions) from supplied JavaScript object. param obj - A JavaScript object used to initialize nativescript Observable instance.

Gets an ancestor from a given type.

getFileAccess(): FileSystemAccess

Returns FileSystemAccess, a shared singleton utility class to provide methods to access and work with the file system. This is used under the hood of all the file system apis in @nativescript/core and provided as a lower level convenience if needed.

Returns FileSystemAccess

login(message: string, userNameHint?: string, passwordHint?: string, userName?: string, password?: string): Promise<LoginResult>

The login() method displays a login dialog box that prompts the visitor for user name and password.

login(message: string, userNameHint?: string, passwordHint?: string): Promise<LoginResult>

The login() method displays a login dialog box that prompts the visitor for user name and password.

The login() method displays a login dialog box that prompts the visitor for user name and password.

makeParser&lt;T&gt;(isValid: (value: any) => boolean, allowNumbers?: boolean): (value: any) => T

Returns (value: any) => T

makeValidator&lt;T&gt;(...values: T[]): (value: any) => value is T

Returns (value: any) => value is T

parseCSSShadow(value: string): CSSShadow

Parse a string into a CSSShadow Supports any valid css box/text shadow combination. inspired by https://github.com/jxnblk/css-box-shadow/blob/master/index.js (MIT License)

Returns CSSShadow

parseKeyframeDeclarations
profile(name?: string): MethodDecorator

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.

Returns MethodDecorator

profile&lt;F&gt;(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. Works only if profiling is enabled.

Returns F

profile&lt;F&gt;(name: string, 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.

Returns F

profile&lt;T&gt;(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor&lt;T&gt;): TypedPropertyDescriptor&lt;T&gt; | void

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.

Returns TypedPropertyDescriptor<T> | void

Disables profiling.

Returns void

profilingDumpProfiles(): void

Prints the timer for all methods instrumented with profile decorator.

Returns void

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" } ```

Returns void

profilingIsRunning(name: string): boolean

Returns true if a timer is currently running.

Returns boolean

profilingResetProfiles(): void

Resets the timers for all methods instrumented with profile decorator.

Returns void

profilingStart(name: string): void

Starts a timer with a specific name. Works only if profiling is enabled.

Returns void

profilingStartCPU(name: string): void

Starts android cpu profiling.

Returns void

Pauses a timer with a specific name. This will increase call count and accumulate time. Works only if profiling is enabled.

profilingStopCPU(name: string): void

Stops android cpu profiling.

Returns void

Gets accurate system timestamp in ms.

Returns number

profilingUptime(): number

Gets the uptime of the current process in milliseconds.

Returns number

prompt(message: string, defaultText?: string): Promise<PromptResult>

The prompt() method displays a dialog box that prompts the visitor for input.

The prompt() method displays a dialog box that prompts the visitor for input.

Gets a child view by selector.

removeTaggedAdditionalCSS
removeTaggedAdditionalCSS(tag: String | Number): boolean
removeWeakEventListener(source: Observable, eventName: string, handler: (eventData: EventData) => void, target: any): void

Removes a WeakEventListener.

Returns void

resolveFileNameFromUrl(
  url: string,
  appDirectory: string,
  fileExists: (filepath: string) => boolean,
  importSource?: string
): string
setActivityCallbacks(activity: any): void
timeConverter(value: string): number
transformConverter(text: string): TransformFunctionsInfo

Returns TransformFunctionsInfo


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4