Standalone player animations
You can configure the animations used to display and hide the player in standalone one. To do that, you need to update the animationOrigin parameter in JoinStoriesStandaloneConfig.
val joinStoriesStandaloneConfig = JoinStoriesStandaloneConfig(
joinAlias = "your_alias",
playerStandaloneAnimationOrigin = PlayerStandaloneAnimationOrigin.BOTTOM
)
JoinStories.startPlayer(
joinStoriesStandaloneConfig,
lifecycleScope,
container_view,
story_player,
listener
)
You have multiple options:
Name | Animation |
---|---|
BOTTOM | Default animation. Player will slide from the bottom of the screen. No scale animation combined |
BOTTOM_LEFT | Player will be displayed from the screen's bottom left corner. A scale animation is combined |
BOTTOM_CENTER | Player will be displayed from the screen's bottom center. A scale animation is combined |
BOTTOM_RIGHT | Player will be displayed from the screen's bottom right corner. A scale animation is combined |
TOP_LEFT | Player will be displayed from the screen's top left corner. A scale animation is combined |
TOP_RIGHT | Player will be displayed from the screen's top right corner. A scale animation is combined |