Create Screen

abstract class CreateScreen<T : RefyItem, V : CreateItemViewModel<T>>(items: List<T>, invalidMessage: StringResource, itemId: String?) : RefyItemBaseScreen<T>

The CreateScreen class is useful to give the base behavior to create or edit a RefyItem's item

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
open override fun ShowContent()

Function to display the content of the screen