Skip to content

philtv-js / PhilTVPairing

Class: PhilTVPairing

Constructors

Constructor

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, { apiUrl: string; apiVersion: number; fullApiUrl: string; password: any; user: string; }]>

Parameters

pin

string

Returns

Promise<readonly [Error, undefined] | readonly [undefined, { apiUrl: string; apiVersion: number; fullApiUrl: string; password: any; user: string; }]>


init()

init(): Promise<readonly [undefined | Error, undefined | { apiVersion: any; isGoodPairingType: boolean; isReady: boolean; isSecureTransport: boolean; systemFeatures: any; }]>

Returns

Promise<readonly [undefined | Error, undefined | { apiVersion: any; isGoodPairingType: boolean; isReady: boolean; isSecureTransport: boolean; systemFeatures: any; }]>


startPairing()

startPairing(): Promise<readonly [Error, undefined] | readonly [undefined, { authKey: any; authTimestamp: any; timeout: any; }]>

Returns

Promise<readonly [Error, undefined] | readonly [undefined, { authKey: any; authTimestamp: any; timeout: any; }]>