Package-level declarations

The invitation package manages the invitation process, allowing users to join an app. The InvitationCodeScreenData provides all necessary data for the view like the title, the description and the redeem Action. It is provided via a implementation of the InvitationCodeScreen interface. The Screen can be used anywhere after providing this interface.

Example implementation:

class EngageInvitationCodeRepository @Inject constructor(
private val navigator: Navigator,
) : InvitationCodeRepository {

override fun getScreenData(): InvitationCodeScreenData {
return InvitationCodeScreenData(
title = "Invitation Code",
description = "Please enter your invitation code to join the ENGAGE-HF study.",
redeemAction = { navigator.navigateTo(AppNavigationEvent.AppScreen(true)) },
)
}
}

Types

Link copied to clipboard
sealed interface Action
Link copied to clipboard
Link copied to clipboard
data class InvitationCodeUiState(val title: String = "", val description: String = "", val invitationCode: String = "", val error: String? = "")
Link copied to clipboard
data class InvitationCodeViewData(val title: String = "Title", val description: String = "description", val redeemAction: () -> Unit)
Link copied to clipboard

Functions

Link copied to clipboard