UNPKG

@odion-cloud/capacitor-volume-control

Version:

Capacitor plugin for advanced volume control with native Android and iOS implementations

16 lines (15 loc) 1.09 kB
import { WebPlugin } from '@capacitor/core'; import type { PluginListenerHandle } from '@capacitor/core'; import type { VolumeControlPlugin, VolumeOptions, SetVolumeOptions, VolumeResult, WatchVolumeOptions, WatchStatusResult, VolumeButtonPressedEvent, VolumeLevelChangedEvent } from './definitions'; export declare class VolumeControlWeb extends WebPlugin implements VolumeControlPlugin { private isWatchingVolume; private mockVolume; getVolumeLevel(options?: VolumeOptions): Promise<VolumeResult>; setVolumeLevel(options: SetVolumeOptions): Promise<VolumeResult>; watchVolume(options: WatchVolumeOptions): Promise<void>; clearWatch(): Promise<void>; isWatching(): Promise<WatchStatusResult>; addListener(eventName: 'volumeButtonPressed', listenerFunc: (event: VolumeButtonPressedEvent) => void): Promise<PluginListenerHandle> & PluginListenerHandle; addListener(eventName: 'volumeLevelChanged', listenerFunc: (event: VolumeLevelChangedEvent) => void): Promise<PluginListenerHandle> & PluginListenerHandle; removeAllListeners(): Promise<void>; }