onPlayerInterrupted property
void Function()?
onPlayerInterrupted
getter/setter pair
Notification that playback has been interrupted.
Available since: 1.0.0 Description: When playback is interrupted by other actions, the SDK will call back this notification. For example, recording is started during playback, an incoming call event from the system is received during playback, the audio device is preempted by other apps during playback, etc. Use case: Used by developers to update the UI. Caution: None.
Implementation
static void Function()? onPlayerInterrupted;