Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "@nativescript/core"

Index

Modules

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

ARGB

ARGB: number

AlignContent

AlignContent: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "stretch"

AlignItems

AlignItems: "flex-start" | "flex-end" | "center" | "baseline" | "stretch"

AlignSelf

AlignSelf: "auto" | AlignItems

AnimationPromise

AnimationPromise: Promise<void> | Cancelable

AutocapitalizationType

AutocapitalizationType: "none" | "words" | "sentences" | "allcharacters"

BackgroundRepeat

BackgroundRepeat: "repeat" | "repeat-x" | "repeat-y" | "no-repeat"

Dock

Dock: "left" | "top" | "right" | "bottom"

FlexDirection

FlexDirection: "row" | "row-reverse" | "column" | "column-reverse"

FlexGrow

FlexGrow: number

FlexShrink

FlexShrink: number

FlexWrap

FlexWrap: "nowrap" | "wrap" | "wrap-reverse"

FlexWrapBefore

FlexWrapBefore: boolean

Headers

Headers: object

Type declaration

  • [key: string]: string | string[]

HorizontalAlignment

HorizontalAlignment: "left" | "center" | "right" | "stretch"

IOSTabBarItemsAlignment

IOSTabBarItemsAlignment: "leading" | "justified" | "center" | "centerSelected"

InstrumentationMode

InstrumentationMode: "counters" | "timeline" | "lifecycle"

JustifyContent

JustifyContent: "flex-start" | "flex-end" | "center" | "space-between" | "space-around"

KeyboardType

KeyboardType: "datetime" | "phone" | "number" | "url" | "email" | "integer"

LengthDipUnit

LengthDipUnit: object

Type declaration

  • unit: "dip"
  • value: dip

LengthPercentUnit

LengthPercentUnit: object

Type declaration

LengthPercentage

LengthPercentage: Length_2 | Percentage

LengthPxUnit

LengthPxUnit: object

Type declaration

  • unit: "px"
  • value: px

Length_2

Length_2: Unit<"px" | "dip">

NavigationType_2

NavigationType_2: "linkClicked" | "formSubmitted" | "backForward" | "reload" | "formResubmitted" | "other" | undefined

Order

Order: number

Orientation

Orientation: "horizontal" | "vertical"

Orientation_2

Orientation_2: "horizontal" | "vertical"

Orientation_3

Orientation_3: "horizontal" | "vertical"

Percentage

Percentage: Unit<"%">

ReturnKeyType

ReturnKeyType: "done" | "next" | "go" | "search" | "send"

Stretch

Stretch: "none" | "aspectFill" | "aspectFit" | "fill"

TextAlignment

TextAlignment: "initial" | "left" | "center" | "right"

TextDecoration

TextDecoration: "none" | "underline" | "line-through" | "underline line-through"

TextTransform

TextTransform: "initial" | "none" | "capitalize" | "uppercase" | "lowercase"

UpdateTextTrigger

UpdateTextTrigger: "focusLost" | "textChanged"

VerticalAlignment

VerticalAlignment: "top" | "middle" | "bottom" | "stretch"

Visibility

Visibility: "visible" | "hidden" | "collapse"

WhiteSpace

WhiteSpace: "initial" | "normal" | "nowrap"

dip

dip: number

percent

percent: number

px

px: number

Variables

Const Application

Application: object

Type declaration

Const ApplicationSettings

ApplicationSettings: object

Type declaration

Const Connectivity

Connectivity: object

Type declaration

Const Device

Device: Device_2

Const Http

Http: object

Type declaration

Const Profiling

Profiling: object

Type declaration

Const Trace

Trace: object

Type declaration

Const Utils

Utils: object

Type declaration

Const isAndroid

isAndroid: boolean

Const isIOS

isIOS: boolean

Functions

GC

  • GC(): any
  • Returns any

addCategories

  • addCategories(categories: string): any
  • Parameters

    • categories: string

    Returns any

addCss

  • addCss(cssText: string, attributeScoped?: boolean): void
  • Parameters

    • cssText: string
    • Optional attributeScoped: boolean

    Returns void

addWriter

  • Parameters

    Returns any

clear

  • clear(): void
  • Returns void

clearWriters

  • clearWriters(): any
  • Returns any

disable

  • disable(): void
  • Returns void

disable_2

  • disable_2(): void
  • Returns void

dispatchToMainThread

  • dispatchToMainThread(func: Function): any
  • Parameters

    • func: Function

    Returns any

dumpProfiles

  • dumpProfiles(): void
  • Returns void

enable

  • Parameters

    Returns void

enable_2

  • enable_2(): void
  • Returns void

error

  • error(error: string | Error): any
  • Parameters

    • error: string | Error

    Returns any

executeOnMainThread

  • executeOnMainThread(func: Function): any
  • Parameters

    • func: Function

    Returns any

flush

  • flush(): boolean
  • Returns boolean

    boolean flag indicating if changes were saved successfully to disk.

getAllKeys

  • getAllKeys(): Array<string>
  • Returns Array<string>

    Array containing all stored keys

getBoolean

  • getBoolean(key: string, defaultValue?: boolean): boolean
  • Parameters

    • key: string
    • Optional defaultValue: boolean

    Returns boolean

getConnectionType

  • getConnectionType(): number
  • Returns number

getCssFileName

  • getCssFileName(): string
  • Returns string

getFile

  • getFile(url: string, destinationFilePath?: string): Promise<File>
  • getFile(options: HttpRequestOptions, destinationFilePath?: string): Promise<File>
  • Parameters

    • url: string
    • Optional destinationFilePath: string

    Returns Promise<File>

  • Parameters

    Returns Promise<File>

getImage

getJSON

  • Type parameters

    • T

    Parameters

    • url: string

    Returns Promise<T>

  • Type parameters

    • T

    Parameters

    Returns Promise<T>

getMainEntry

getModuleName

  • getModuleName(path: string): string
  • Parameters

    • path: string

    Returns string

getNativeApplication

  • getNativeApplication(): any
  • Returns any

getNumber

  • getNumber(key: string, defaultValue?: number): number
  • Parameters

    • key: string
    • Optional defaultValue: number

    Returns number

getRootView

  • getRootView(): View
  • Returns View

getString

  • getString(key: string, defaultValue?: string): string
  • Parameters

    • key: string
    • Optional defaultValue: string

    Returns string

getString_2

  • getString_2(url: string): Promise<string>
  • getString_2(options: HttpRequestOptions): Promise<string>
  • Parameters

    • url: string

    Returns Promise<string>

  • Parameters

    Returns Promise<string>

hasKey

  • hasKey(key: string): boolean
  • Parameters

    • key: string

    Returns boolean

hasLaunched

  • hasLaunched(): boolean
  • Returns boolean

isDataURI

  • isDataURI(uri: string): boolean
  • Parameters

    • uri: string

    Returns boolean

isEnabled

  • isEnabled(): boolean
  • Returns boolean

isFileOrResourcePath

  • isFileOrResourcePath(path: string): boolean
  • Parameters

    • path: string

    Returns boolean

isFontIconURI

  • isFontIconURI(uri: string): boolean
  • Parameters

    • uri: string

    Returns boolean

isMainThread

  • isMainThread(): boolean
  • Returns boolean

    Boolean value indicating whether the current thread is the main thread

isRealDevice

  • isRealDevice(): boolean
  • Returns boolean

isRunning

  • isRunning(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

    true is the timer is currently running.

loadAppCss

  • loadAppCss(): any
  • Returns any

mainThreadify

  • mainThreadify(func: Function): function
  • Parameters

    • func: Function

    Returns function

    The wrapper function which schedules execution to the main thread

      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

off

  • off(eventNames: string, callback?: any, thisArg?: any): any
  • off(eventNames: string, callback?: any, thisArg?: any): any
  • Parameters

    • eventNames: string
    • Optional callback: any
    • Optional thisArg: any

    Returns any

  • Parameters

    • eventNames: string
    • Optional callback: any
    • Optional thisArg: any

    Returns any

on

  • on(event: "cssChanged", callback: function, thisArg?: any): any
  • on(event: "livesync", callback: function): any
  • on(eventNames: string, callback: function, thisArg?: any): any
  • on(event: "launch", callback: function, thisArg?: any): any
  • on(event: "displayed", callback: function, thisArg?: any): any
  • on(event: "suspend", callback: function, thisArg?: any): any
  • on(event: "resume", callback: function, thisArg?: any): any
  • on(event: "exit", callback: function, thisArg?: any): any
  • on(event: "lowMemory", callback: function, thisArg?: any): any
  • on(event: "uncaughtError", callback: function, thisArg?: any): any
  • on(event: "discardedError", callback: function, thisArg?: any): any
  • on(event: "orientationChanged", callback: function, thisArg?: any): any
  • on(event: "systemAppearanceChanged", callback: function, thisArg?: any): any
  • Parameters

    Returns any

  • Parameters

    • event: "livesync"
    • callback: function

    Returns any

  • Parameters

    • eventNames: string
    • callback: function
        • (data: any): void
        • Parameters

          • data: any

          Returns void

    • Optional thisArg: any

    Returns any

  • Parameters

    Returns any

  • Parameters

    • event: "displayed"
    • callback: function
    • Optional thisArg: any

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

openFile

  • openFile(filePath: string): boolean
  • Parameters

    • filePath: string

    Returns boolean

openUrl

  • openUrl(url: string): boolean
  • Parameters

    • url: string

    Returns boolean

orientation

  • orientation(): "portrait" | "landscape" | "unknown"
  • Returns "portrait" | "landscape" | "unknown"

profile

  • profile(name?: string): MethodDecorator
  • profile<F>(fn: F): F
  • profile<F>(name: string, fn: F): F
  • profile<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void
  • profile(): any
  • Parameters

    • Optional name: string

    Returns MethodDecorator

  • Type parameters

    • F: Function

    Parameters

    • fn: F

    Returns F

  • Type parameters

    • F: Function

    Parameters

    • name: string
    • fn: F

    Returns F

  • Type parameters

    • T

    Parameters

    • target: Object
    • propertyKey: string | symbol
    • descriptor: TypedPropertyDescriptor<T>

    Returns TypedPropertyDescriptor<T> | void

  • Returns any

releaseNativeObject

  • releaseNativeObject(object: any): any
  • Parameters

    • object: any

    Returns any

remove

  • remove(key: string): void
  • Parameters

    • key: string

    Returns void

removeWriter

  • Parameters

    Returns any

request

resetProfiles

  • resetProfiles(): void
  • Returns void

run

  • Parameters

    Returns any

setBoolean

  • setBoolean(key: string, value: boolean): void
  • Parameters

    • key: string
    • value: boolean

    Returns void

setCategories

  • setCategories(categories: string): any
  • Parameters

    • categories: string

    Returns any

setCssFileName

  • setCssFileName(cssFile: string): void
  • Parameters

    • cssFile: string

    Returns void

setErrorHandler

  • Parameters

    Returns any

setNumber

  • setNumber(key: string, value: number): void
  • Parameters

    • key: string
    • value: number

    Returns void

setResources

  • setResources(resources: any): void
  • Parameters

    • resources: any

    Returns void

setString

  • setString(key: string, value: string): void
  • Parameters

    • key: string
    • value: string

    Returns void

start

  • start(name: string): void
  • Parameters

    • name: string

    Returns void

startCPUProfile

  • startCPUProfile(name: string): void
  • Parameters

    • name: string

    Returns void

startMonitoring

  • startMonitoring(connectionTypeChangedCallback: function): void
  • Parameters

    • connectionTypeChangedCallback: function
        • (newConnectionType: number): void
        • Parameters

          • newConnectionType: number

          Returns void

    Returns void

stop

  • Parameters

    • name: string

    Returns TimerInfo

    TimerInfo for the paused timer.

stopCPUProfile

  • stopCPUProfile(name: string): void
  • Parameters

    • name: string

    Returns void

stopMonitoring

  • stopMonitoring(): void
  • Returns void

time

  • time(): number
  • Returns number

uptime

  • uptime(): number
  • Returns number

write

  • write(message: any, category: string, type?: number): any
  • Parameters

    • message: any
    • category: string
    • Optional type: number

    Returns any

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method