Module Platform

Index

Variables

Interfaces

Functions

Variables

BATTERY_STATE_CHARGING: number

BATTERY_STATE_FULL: number

BATTERY_STATE_UNKNOWN: number

BATTERY_STATE_UNPLUGGED: number

address: string

architecture: string

availableMemory: number

batteryLevel: number

batteryMonitoring: boolean

batteryState: number

bubbleParent: boolean

displayCaps: DisplayCaps

id: string

locale: string

macaddress: string

manufacturer: string

model: string

name: string

netmask: string

osname: string

ostype: string

processorCount: number

runtime: string

username: string

version: string

Functions

addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

applyProperties(props: Dictionary)

Parameters

canOpenURL(url: string): boolean

Parameters

  • url: string

Returns

boolean

createUUID(): string

Returns

string

fireEvent(name: string, event: Dictionary)

Parameters

getAddress(): string

Returns

string

getArchitecture(): string

Returns

string

getAvailableMemory(): number

Returns

number

getBatteryLevel(): number

Returns

number

getBatteryMonitoring(): boolean

Returns

boolean

getBatteryState(): number

Returns

number

getBubbleParent(): boolean

Returns

boolean

getDisplayCaps(): DisplayCaps

Returns

DisplayCaps

getId(): string

Returns

string

getLocale(): string

Returns

string

getMacaddress(): string

Returns

string

getManufacturer(): string

Returns

string

getModel(): string

Returns

string

getName(): string

Returns

string

getNetmask(): string

Returns

string

getOsname(): string

Returns

string

getOstype(): string

Returns

string

getProcessorCount(): number

Returns

number

getRuntime(): string

Returns

string

getUsername(): string

Returns

string

getVersion(): string

Returns

string

is24HourTimeFormat(): boolean

Returns

boolean

openURL(url: string): boolean

Parameters

  • url: string

Returns

boolean

removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

setBatteryMonitoring(batteryMonitoring: boolean)

Parameters

  • batteryMonitoring: boolean

setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean