Module Network

Index

Variables

Modules

Interfaces

Functions

Variables

INADDR_ANY: string

NETWORK_LAN: number

NETWORK_MOBILE: number

NETWORK_NONE: number

NETWORK_UNKNOWN: number

NETWORK_WIFI: number

NOTIFICATION_TYPE_ALERT: number

NOTIFICATION_TYPE_BADGE: number

NOTIFICATION_TYPE_NEWSSTAND: number

NOTIFICATION_TYPE_SOUND: number

READ_MODE: number

READ_WRITE_MODE: number

SOCKET_CLOSED: number

SOCKET_CONNECTED: number

SOCKET_ERROR: number

SOCKET_INITIALIZED: number

SOCKET_LISTENING: number

TLS_VERSION_1_0: number

TLS_VERSION_1_1: number

TLS_VERSION_1_2: number

WRITE_MODE: number

bubbleParent: boolean

httpURLFormatter: (...args: any[]) => any

networkType: number

networkTypeName: string

online: boolean

remoteDeviceUUID: string

remoteNotificationTypes: Array<Number>

remoteNotificationsEnabled: boolean

Functions

addConnectivityListener(callback: (...args: any[]) => any)

Parameters

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

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

Parameters

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

applyProperties(props: Dictionary)

Parameters

createBonjourBrowser(serviceType: string, domain: string, parameters?: Dictionary): BonjourBrowser

Parameters

  • serviceType: string
  • domain: string
  • parameters?: Dictionary optional

Returns

BonjourBrowser

createBonjourService(name: string, type: string, domain: string, parameters?: Dictionary): BonjourService

Parameters

  • name: string
  • type: string
  • domain: string
  • parameters?: Dictionary optional

Returns

BonjourService

createHTTPClient(parameters?: Dictionary): HTTPClient

Parameters

Returns

HTTPClient

createTCPSocket(hostName: string, port: number, mode: number, parameters: Dictionary): TCPSocket

Parameters

  • hostName: string
  • port: number
  • mode: number
  • parameters: Dictionary

Returns

TCPSocket

decodeURIComponent(value: string): string

Parameters

  • value: string

Returns

string

encodeURIComponent(value: string): string

Parameters

  • value: string

Returns

string

fireEvent(name: string, event: Dictionary)

Parameters

getBubbleParent(): boolean

Returns

boolean

getHttpURLFormatter(): (...args: any[]) => any

Returns

(...args: any[]) => any

getNetworkType(): number

Returns

number

getNetworkTypeName(): string

Returns

string

getOnline(): boolean

Returns

boolean

getRemoteDeviceUUID(): string

Returns

string

getRemoteNotificationTypes(): Array<Number>

Returns

Array<Number>

getRemoteNotificationsEnabled(): boolean

Returns

boolean

registerForPushNotifications(config: PushNotificationConfig)

Parameters

removeConnectivityListener(callback: (...args: any[]) => any)

Parameters

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

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

Parameters

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

setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

setHttpURLFormatter(httpURLFormatter: (...args: any[]) => any)

Parameters

  • httpURLFormatter: (...args: any[]) => any

unregisterForPushNotifications()