Methods
get Device Logger
get Device Logger( nativeId?: string ) : Logger
Parameters
Optional
nativeId: string
Optional
get Device Console
get Device Console( nativeId?: string ) : Console
Parameters
Optional
nativeId: string
Returns Console
Optional
get Mixin Console
get Mixin Console( mixinId: string , nativeId?: string ) : Console
Parameters
mixinId: string
Optional
nativeId: string
Returns Console
get Device State
get Device State( nativeId?: string ) : DeviceState
Parameters
Optional
nativeId: string
Optional
create Device State
create Device State( id: string , setState: ( ( property: string , value: any ) => Promise < void > ) ) : DeviceState
Parameters
id: string
setState: ( ( property: string , value: any ) => Promise < void > )
( property: string , value: any ) : Promise < void >
Parameters
property: string
value: any
Returns Promise < void >
get Mixin Storage
get Mixin Storage( id: string , nativeId?: string ) : Storage
Parameters
id: string
Optional
nativeId: string
Returns Storage
on Mixin Event
on Mixin Event( id: string , mixinDevice: any , eventInterface: string , eventData: any ) : Promise < void >
Parameters
id: string
mixinDevice: any
eventInterface: string
eventData: any
Returns Promise < void >
get Device Storage
get Device Storage( nativeId?: string ) : Storage
Parameters
Optional
nativeId: string
Returns Storage
get Native Ids
get Native Ids( ) : string []
Returns string []
on Device Discovered
on Device Discovered( device: Device ) : Promise < string >
Returns Promise < string >
on Device Event
on Device Event( nativeId: string , eventInterface: string , eventData: any ) : Promise < void >
Parameters
nativeId: string
eventInterface: string
eventData: any
Returns Promise < void >
on Device Removed
on Device Removed( nativeId: string ) : Promise < void >
Returns Promise < void >
on Devices Changed
on Devices Changed( devices: DeviceManifest ) : Promise < void >
Returns Promise < void >
request Restart
request Restart( ) : Promise < void >
Returns Promise < void >
DeviceManager is the interface used by DeviceProvider to report new devices, device states, and device events to Scrypted.