audio.AudioInterruption
The system interrupting the app's audio (a call, an alarm), and the interruption ending.
Usage
Show when a phone call interrupts audio.
// Show when a phone call interrupts audio.
import { Text, audio, signal, type AudioInterruption } from 'kuito';
export function AudioStatus() {
const interruption = signal<AudioInterruption | null>(null);
audio.watch('interruption', (event) => {
interruption.value = event;
});
return <Text>{interruption.value ? JSON.stringify(interruption.value) : 'No interruption'}</Text>;
}Type declaration
export type AudioInterruption = Interruption;Members 2
| Name | Type | Required | Description |
|---|---|---|---|
type | AudioInterruptionType | Yes | — |
shouldResume | boolean | Yes | On ended: the system suggests resuming. |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.