DefinitelyTyped

Index

Variables

Interfaces

Variables

Acceleration: Acceleration

public timestamp: number

public x: number

public y: number

public z: number

CameraPopoverOptions: CameraPopoverOptions

optional public arrowDir?: number

optional public height?: number

optional public width?: number

optional public x?: number

optional public y?: number

CompassError: CompassError

public code: number

ContactError: ContactError

public code: number

ContactField: ContactField

public pref: boolean

public type: string

public value: string

ContactFindOptions: ContactFindOptions

optional public filter?: string

optional public multiple?: boolean

ContactName: ContactName

public familyName: string

public formatted: string

public givenName: string

public honorificPrefix: string

public honorificSuffix: string

public middleName: string

FileError: FileError

public code: number

FileTransfer: FileTransfer

public onprogress: Function

public abort()

public download(source: string, target: string, successCallback: (fileEntry: FileEntry) => void, errorCallback: (error: FileError) => void, options?: any)

Parameters

  • source: string
  • target: string
  • successCallback: (fileEntry: FileEntry) => void
  • errorCallback: (error: FileError) => void
  • options?: any optional

public upload(filePath: string, server: string, successCallback: (result: FileUploadResult) => void, errorCallback: (error: FileError) => void, options?: any)

Parameters

  • filePath: string
  • server: string
  • successCallback: (result: FileUploadResult) => void
  • errorCallback: (error: FileError) => void
  • options?: any optional

FileTransferError: FileTransferError

public code: number

public http_status: number

public source: string

public target: string

FileUploadOptions: FileUploadOptions

optional public chunkedMode?: boolean

optional public fileKey?: string

optional public fileName?: string

optional public headers?: any

optional public mimeType?: string

optional public params?: any

GlobalizationError: GlobalizationError

public code: number

public message: string

LocalFileSystem: LocalFileSystem

public PERSISTENT: number

public TEMPORARY: number

Media: Media

constructor(src: string, mediaSuccess: Function, mediaError?: (mediaError: MediaError) => any, mediaStatus?: Function): Media

Parameters

  • src: string
  • mediaSuccess: Function
  • mediaError?: (mediaError: MediaError) => any optional
  • mediaStatus?: Function optional

Returns

Media

public getCurrentPosition(mediaSuccess: Function, mediaError?: (mediaError: MediaError) => any)

Parameters

  • mediaSuccess: Function
  • mediaError?: (mediaError: MediaError) => any optional

public getDuration(): any

Returns

any

public pause()

public play()

public release()

public seekTo(milliseconds: number)

Parameters

  • milliseconds: number

public startRecord()

public stop()

public stopRecord()

device: Device

phoneGapNavigator: Navigator