Interruption Event Behavior
Reusable JSON object structure, not a JSON property named interruptionEventBehavior. The JSON property is the category name (audioPlayback, audioRecording, speechRecognition, interactiveCapture, or interactivePlayback) under interruptionBehavior.
Category properties: audioPlayback · audioRecording · speechRecognition · interactiveCapture · interactivePlayback
JSON type object
Defines event policies for one Interruption Behavior category. Each event is optional, and its effective policy is resolved through the interruption-policy precedence chain.
Developer guidance
This page documents a reusable event-property structure, not a literal JSON property named interruptionEventBehavior. Each event property contains a policy, except the app background/foreground cases that select policies through whenAudioAllowed and whenAudioNotAllowed.
Example in context
Illustrative JSON excerpt (not a complete configuration document):
{
"interruptionBehavior": {
"audioPlayback": {
"onAppEnterBackground": {
"whenAudioAllowed": {
"action": "continue"
},
"whenAudioNotAllowed": {
"action": "pause"
}
}
}
}
}
This shows the extra policy level for the background event.
Properties
Jump to a property:
onConversationResume · onAudioInterruptionBegin · onAudioInterruptionEnd · onAudioRouteChange · onAudioSilenceBegin · onAudioSilenceEnd · onAppResignActive · onAppBecomeActive · onAppEnterBackground · onAppEnterForeground · onAppRequiresForeground · onMediaServicesLost · onMediaServicesReset · onScreenSleepBegin · onScreenWake · onSystemSleepBegin · onSystemWakeonConversationResume
JSON property onConversationResume · JSON type object. Interrupt Event Policy
onAudioInterruptionBegin
JSON property onAudioInterruptionBegin · JSON type object. Interrupt Event Policy
onAudioInterruptionEnd
JSON property onAudioInterruptionEnd · JSON type object. Interrupt Event Policy
onAudioRouteChange
JSON property onAudioRouteChange · JSON type object. Interrupt Event Policy
onAudioSilenceBegin
JSON property onAudioSilenceBegin · JSON type object. Interrupt Event Policy
onAudioSilenceEnd
JSON property onAudioSilenceEnd · JSON type object. Interrupt Event Policy
onAppResignActive
JSON property onAppResignActive · JSON type object. Interrupt Event Policy
onAppBecomeActive
JSON property onAppBecomeActive · JSON type object. Interrupt Event Policy
onAppEnterBackground
JSON property onAppEnterBackground · JSON type object. App Background Policy Uses whenAudioAllowed and whenAudioNotAllowed.
onAppEnterForeground
JSON property onAppEnterForeground · JSON type object. App Foreground Policy Uses whenAudioAllowed and whenAudioNotAllowed.
onAppRequiresForeground
JSON property onAppRequiresForeground · JSON type object. Interrupt Event Policy
onMediaServicesLost
JSON property onMediaServicesLost · JSON type object. Interrupt Event Policy
onMediaServicesReset
JSON property onMediaServicesReset · JSON type object. Interrupt Event Policy
onScreenSleepBegin
JSON property onScreenSleepBegin · JSON type object. Interrupt Event Policy
onScreenWake
JSON property onScreenWake · JSON type object. Interrupt Event Policy
onSystemSleepBegin
JSON property onSystemSleepBegin · JSON type object. Interrupt Event Policy
onSystemWake
JSON property onSystemWake · JSON type object. Interrupt Event Policy