setIsInAppMessageAccessibilityExclusiveModeEnabled

In-app message accessibility exclusive mode, when enabled, forces accessibility readers to only be able to read currently displaying in-app messages and no other screen contents. A common use for this feature is the desire to prevent Android TalkBack from reading out UI elements "behind" a currently displaying in-app message.

By default, this is disabled.

In exclusive mode, non in-app message views have their accessibility modified to be ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS. After closing, non in-app message views have their accessibility flags modified to be their previous value, or ViewCompat#IMPORTANT_FOR_ACCESSIBILITY_AUTO.