Showing Lucra Components (Experimental)

This is marked as experimental and may change in future releases.

Requires :sdk-ui*

LucraComponents Components are designed to be embedded in experiences unique to the host. Each component requires a callback to launch Lucra Flows.

From there, the Flow operates as normal.

LucraUiProvider.LucraComponent.MiniPublicFeed Show the public feed within your native app. (optional) Pass in Player ids to filter the feed to only show matchups associated with the provided players

val view = LucraClient().getLucraComponent(
    this,
    LucraUiProvider.LucraComponent.MiniPublicFeed(
        playerIds = listOf("playerId1", "playerId2", ...
    ) // optional
) {
    launchFlow(it) // Launch the flow as you would normally
})
viewGroup.addView(view)

LucraUiProvider.LucraComponent.ProfilePill Show the Profile Pill anywhere within your app.

val view = LucraClient().getLucraComponent(
    this,
    LucraUiProvider.LucraComponent.ProfilePill {
        launchFlow(it) // Launch the flow as you would normally
    })
viewGroup.addView(view)

LucraUiProvider.LucraComponent.ContestCard Show a sports contest card within your native app. Pass in the sports contest unique UUID to display the contest card.

LucraUiProvider.LucraComponent.FloatingActionButton Show a Floating Action Button anywhere within your app to launch the sports you watch contest creation flow.

LucraUiProvider.LucraComponent.RecommendedMatchups Show a carousel of recommended matchups within your app

Last updated