Refy Item Base Screen

abstract class RefyItemBaseScreen<T : RefyItem>(val items: List<T>, val invalidMessage: StringResource, itemId: String?) : Screen

The RefyItemBaseScreen class is useful to give the base behavior of a RefyItem's screens to manage that item and other utilities such find it in the corresponding items list

Author

N7ghtm4r3 - Tecknobit

Parameters

items

: the items list

invalidMessage

: the resource identifier of the invalid message to display when the item is not valid or not found in items list

itemId

: the identifier of the item

T

: the RefyItem of the current activity displayed

See also

Inheritors

Constructors

Link copied to clipboard
constructor(items: List<T>, invalidMessage: StringResource, itemId: String?)

Properties

Link copied to clipboard
val invalidMessage: StringResource
Link copied to clipboard
val items: List<T>

Functions

Link copied to clipboard

Function to init the item searching it in the items list by its itemId

Link copied to clipboard
@Composable
fun InvalidItemUi()

Function to display the error view when the item is not valid or has not been found

Link copied to clipboard
@Composable
abstract fun ShowContent()

Function to display the content of the screen