Upsert Screen

abstract class UpsertScreen<I : RefyItem, V : UpsertScreenViewModel<I>>(itemId: String? = null, insertTitle: StringResource, updateTitle: StringResource, insertButtonText: StringResource = Res.string.insert, viewModel: V) : EquinoxScreen<V>

The UpsertScreen class is useful to handle the insertion or updating of an item

Author

N7ghtm4r3 - Tecknobit

Parameters

itemId

The identifier of the item to update

insertTitle

The title of the screen when the action is an insert action

updateTitle

The title of the screen when the action is an update action

insertButtonText

The text of the button used to upsert the item

viewModel

The support viewmodel for the screen

I

The type of the item displayed

V

The type of the viewmodel of the screen

See also

EquinoxScreen

Inheritors

Constructors

Link copied to clipboard
constructor(itemId: String? = null, insertTitle: StringResource, updateTitle: StringResource, insertButtonText: StringResource = Res.string.insert, viewModel: V)

Functions

Link copied to clipboard