Skip to content

Allow backgroundVisible to be modified #78

@ceyhun-o

Description

@ceyhun-o

The scenario is this:

As a user, I don't want to show any UI elements during an ad playback. At the moment, when hiding all controls during ad playback, the backgroundVisible is still active, and causes and animation on taps. It also doesn't seem to accept any color overrides (eg. to make it transparent as a workaround because of this logic:

val background by animateColorAsState(
label = "BackgroundAnimation",
targetValue = color.copy(alpha = if (backgroundVisible) 0.5f else 0f),

background.mp4

This is due to a check we removed here: 225ccd5

We need to make the backgroundVisible adjustable so that:

  • The users that want to show a UI during ad playback can still do so with the animation.
  • The users that don’t want to show anything during ad playback, can avoid this grey overlay/animation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions