interface API { hap : __module ; hapLegacyTypes : __module ; platformAccessory : typeof PlatformAccessory ; serverVersion : string ; user : typeof User ; version : number ; on ( event : "didFinishLaunching" , listener : () => void ) : this ; on ( event : "shutdown" , listener : () => void ) : this ; publishCameraAccessories ( pluginIdentifier : string , accessories : PlatformAccessory < UnknownContext > [] , ) : void ; publishExternalAccessories ( pluginIdentifier : string , accessories : PlatformAccessory < UnknownContext > [] , ) : void ; registerAccessory ( accessoryName : string , constructor : AccessoryPluginConstructor , ) : void ; registerAccessory ( pluginIdentifier : string , accessoryName : string , constructor : AccessoryPluginConstructor , ) : void ; registerPlatform < Config extends PlatformConfig > ( platformName : string , constructor : PlatformPluginConstructor < Config > , ) : void ; registerPlatform < Config extends PlatformConfig > ( pluginIdentifier : string , platformName : string , constructor : PlatformPluginConstructor < Config > , ) : void ; registerPlatformAccessories ( pluginIdentifier : string , platformName : string , accessories : PlatformAccessory < UnknownContext > [] , ) : void ; unregisterPlatformAccessories ( pluginIdentifier : string , platformName : string , accessories : PlatformAccessory < UnknownContext > [] , ) : void ; updatePlatformAccessories ( accessories : PlatformAccessory < UnknownContext > [] , ) : void ; versionGreaterOrEqual ( version : string ) : boolean ; } PropertiesReadonly
hap Legacy Types hapLegacyTypes : __module
Readonly
platform Accessory Readonly
server Version serverVersion : string
Readonly
version version : number
Methodson on ( event : "didFinishLaunching" , listener : () => void ) : this Parameters event : "didFinishLaunching" listener : () => void Returns this on ( event : "shutdown" , listener : () => void ) : this Parameters event : "shutdown" listener : () => void Returns this publish External Accessories register Platform Accessories unregister Platform Accessories update Platform Accessories version Greater Or Equal versionGreaterOrEqual ( version : string ) : boolean
The current homebridge semver version.