Skip to content

Launch Screen

The Launch screen handles the launcher activity of your mobile app.

Launch Screen

Definition

@Composable
fun LaunchScreen(
    primaryViewClickListener: ViewClickListener? = null,
    secondaryViewClickListener: ViewClickListener? = null,
    launchScreenSettings: LaunchScreenSettings? = null
) { ... }

data class LaunchScreenSettings(
    @StringRes val titleResId: Int = R.string.launch_screen_title,
    @StringRes val primaryButtonCaption: Int = R.string.launch_screen_primary_button,
    @StringRes val secondaryButtonCaption: Int = R.string.launch_screen_secondary_button,
    val contentSettings: LaunchScreenContentSettings = LaunchScreenContentSettings(),
    val serviceTermUrl: String = "https://www.sap.com/sea/about/trust-center/agreements/cloud.html",
    val privacyPolicyUrl: String = "https://www.sap.com/sea/about/legal/privacy.html",
) : BaseScreenSettings

Example

    LaunchScreen(
        primaryViewClickListener = {
            flow.flowDone(step_welcome)
        },
        secondaryViewClickListener = {
            flow.terminateFlow(Activity.RESULT_OK)
        }
    )

Last update: February 20, 2023