appcues / appcues-android-sdk

The Appcues Android SDK
https://www.appcues.com/mobile
MIT License
10 stars 3 forks source link

Allow interaction with underlying app when backdrop is disabled #643

Closed iujames closed 1 month ago

iujames commented 1 month ago

stacks on #642

Similar change to iOS update in https://github.com/appcues/appcues-ios-sdk/pull/567 - if there is no @appcues/backdrop trait, then interactions with the app beneath our content are not blocked.

implications:

The above updates are accomplished by adding a new isBlocking property on any BackdropDecoratingTrait, to allow it to declare that it blocks input -- currently only true for @appcues/backdrop. When the step is rendering, we first check if any of the BackdropDecoratingTraits are blocking, and pass that information through to each trait being applied to the backdrop, so it can decide whether or not to enable certain functionality, as noted above.