Interruption Behavior
JSON type object
interruptionBehavior JSON type objectOverrides how active Conversation operations respond to application, audio, media-service, screen, and system events.
Each operation category below contains interruption event rules, not the normal configuration for that operation. Select a category to see the event rules it supports.
Behavior and notes
- Policies merge property-by-property. Precedence is module-specific policy, then configured Conversation policy, then the framework built-in default.
Developer guidance
Interruption Behavior groups event policies by operation category. Each category contains event-named properties; background and foreground policies use the intermediate whenAudioAllowed and whenAudioNotAllowed fields.
Example in context
Illustrative JSON excerpt (not a complete configuration document):
{
"interruptionBehavior": {
"audioPlayback": {
"onAudioInterruptionBegin": {
"action": "pause"
},
"onAudioInterruptionEnd": {
"action": "resume"
}
}
}
}
Policies are nested under the relevant category, not placed directly on interruptionBehavior.
Properties
Jump to a property:
audioPlayback · audioRecording · speechRecognition · interactiveCapture · interactivePlaybackaudioPlayback
Interruption policies for audio playback.
audioRecording
Interruption policies for audio recording.
speechRecognition
Interruption policies for speech recognition.
interactiveCapture
Interruption policies for Interactive Capture.
interactivePlayback
Interruption policies for Interactive Playback.