Skip to content

philtv-js / PhilTVPairing

Class: PhilTVPairing

Constructors

new PhilTVPairing()

new PhilTVPairing(initParams): PhilTVPairing

Parameters

initParams: PhilTVPairingParams

Returns

PhilTVPairing

Properties

apiUrls

readonly apiUrls: object

secure

secure: string


deviceId

readonly deviceId: string


deviceInformation

readonly deviceInformation: object

app_id

app_id: string = 'gapp.id'

app_name

app_name: string = 'PhilTV-js APP'

device_name

device_name: string = 'MyName'

device_os

device_os: string = 'Android'

id

id: string = deviceId

type

type: string = 'native'


pairingRequestUrl

pairingRequestUrl: string

Methods

completePairing()

completePairing(pin): Promise<readonly [Error, undefined] | readonly [undefined, object]>

Parameters

pin: string

Returns

Promise<readonly [Error, undefined] | readonly [undefined, object]>


init()

init(): Promise<readonly [undefined | Error, undefined | object]>

Returns

Promise<readonly [undefined | Error, undefined | object]>


startPairing()

startPairing(): Promise<readonly [Error, undefined] | readonly [undefined, object]>

Returns

Promise<readonly [Error, undefined] | readonly [undefined, object]>