@dderevjanik/termux-api
Version:
This library allows you to interact with your Android device from Node.js using termux-api
36 lines (35 loc) • 829 B
TypeScript
export interface VolumeSettings {
/**
* The type of audio stream.
* @example "music"
*/
stream: string;
/**
* The current volume level of the audio stream.
* @example 43
*/
volume: number;
/**
* The maximum volume level of the audio stream.
* @example 150
*/
max_volume: number;
}
export interface VolumeOptions {
/**
* Audio stream to change the volume of
*/
stream: "alarm|" | "music" | "notification" | "ring" | "system" | "call";
/**
* Volume level to set the stream to
*/
volume: number;
}
/**
* Show information about each audio stream
*/
export declare function volumeInfo(): Promise<VolumeSettings[]>;
/**
* Change volume of audio stream
*/
export declare function volume(options: VolumeOptions): Promise<void>;