Options
All
  • Public
  • Public/Protected
  • All
Menu

NativeScript

Index

Modules

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

BodyInit

BodyInit: Blob | FormData | string

HeaderInit

HeaderInit: Headers | Array<string>

MapConstructor

MapConstructor: object

Type declaration

RequestInfo

RequestInfo: Request | string

SetConstructor

SetConstructor: object

Type declaration

Variables

___dirname

___dirname: string

___filename

___filename: string

console

console: Console

exports

exports: any

global

global: any

module

require

Functions

Deprecated

  • Deprecated(target: Object, key?: string | symbol, value?: any): void
  • Parameters

    • target: Object
    • Optional key: string | symbol
    • Optional value: any

    Returns void

Experimental

  • Experimental(target: Object, key?: string | symbol, value?: any): void
  • Parameters

    • target: Object
    • Optional key: string | symbol
    • Optional value: any

    Returns void

Interfaces

  • Interfaces(interfaces: any[]): ClassDecorator
  • Important: Not applicable to Objective-C classes (iOS platform) Decorates class that extends native Java class

    Parameters

    • interfaces: any[]

      An array of fully-classified Java interface names that the class must implement.

    Returns ClassDecorator

JavaProxy

  • JavaProxy(nativeClassName: string): ClassDecorator
  • Decorates class that extends native Java class

    Parameters

    • nativeClassName: string

      The name of the newly generated class. Must be unique in the application.

    Returns ClassDecorator

Log

  • Log(data: any): void

clearInterval

  • clearInterval(id: number): void
  • Clears repeated function which was set up by calling setInterval().

    Parameters

    • id: number

      The identifier returned by the setInterval() method.

    Returns void

clearTimeout

  • clearTimeout(id: number): void
  • Clears the delay set by a call to the setTimeout function.

    Parameters

    • id: number

      The identifier returned by the previously called setTimeout() method.

    Returns void

fail

  • fail(data: any): void

fetch

log

  • log(data: any): void

setInterval

  • setInterval(callback: Function, milliseconds?: number): number
  • Calls a function repeatedly with a delay between each call.

    Parameters

    • callback: Function

      The function to be called.

    • Optional milliseconds: number

      The delay between each function call.

    Returns number

setTimeout

  • setTimeout(callback: Function, milliseconds?: number): number
  • Calls a function after a specified delay.

    Parameters

    • callback: Function

      The function to be called.

    • Optional milliseconds: number

      The time to wait before the function is called. Defaults to 0.

    Returns number

zonedCallback

  • zonedCallback(callback: Function): Function

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