UNPKG

react-native-track-player

Version:
21 lines (20 loc) 793 B
import type { AppKilledPlaybackBehavior } from '../constants'; export interface AndroidOptions { /** * Whether the audio playback notification is also removed when the playback * stops. **If `stoppingAppPausesPlayback` is set to false, this will be * ignored.** */ appKilledPlaybackBehavior?: AppKilledPlaybackBehavior; /** * Whether the remote-duck event will be triggered on every interruption */ alwaysPauseOnInterruption?: boolean; /** * Time in seconds to wait once the player should transition to not * considering the service as in the foreground. If playback resumes within * this grace period, the service remains in the foreground state. * Defaults to 5 seconds. */ stopForegroundGracePeriod?: number; }