UNPKG

@petro-kushchak/homebridge-homepod-radio

Version:

Homebridge accessory for streaming radio to Homepod Mini and Apple TV

38 lines (37 loc) 1.31 kB
import { AccessoryPlugin, Service, PlatformAccessory, CharacteristicValue } from 'homebridge'; import { HomepodRadioPlatform } from './platform.js'; import { PlaybackStreamer } from './lib/playbackController.js'; export declare class HomepodVolumeAccessory implements AccessoryPlugin, PlaybackStreamer { private readonly platform; private readonly accessory; private readonly device; private readonly service; private readonly informationService; private currentVolume; constructor(platform: HomepodRadioPlatform, accessory: PlatformAccessory); stopRequested(source: PlaybackStreamer): Promise<void>; shutdownRequested(): Promise<void>; platformLaunched(): Promise<void>; volumeUpdated(homepodId: string, volume: number): Promise<void>; isPlaying(): boolean; startPlaying(): Promise<void>; stopPlaying(): Promise<void>; /** * Get On/Off */ getOn(): Promise<CharacteristicValue>; /** * Set On/Off */ setOn(value: CharacteristicValue): Promise<void>; /** * Get the current volume. */ getCurrentVolume(): Promise<CharacteristicValue>; /** * Set the current volume. */ setCurrentVolume(value: CharacteristicValue): Promise<void>; streamerName(): string; getServices(): Service[]; }