toggle menu
BIT App
androidJvm
switch theme
search in API
bitapp
/
com.atech.bit.ui.screens.attendance.addedit
/
AddEditViewModel
Add
Edit
View
Model
class
AddEditViewModel
@
Inject
constructor
(
useCase
:
AttendanceUseCase
,
state
:
SavedStateHandle
)
:
ViewModel
Members
Constructors
Add
Edit
View
Model
Link copied to clipboard
@
Inject
constructor
(
useCase
:
AttendanceUseCase
,
state
:
SavedStateHandle
)
Types
Add
Edit
One
Time
Event
Link copied to clipboard
interface
AddEditOneTimeEvent
Properties
from
Add
From
Syllabus
Link copied to clipboard
val
fromAddFromSyllabus
:
Boolean
is
Edit
Link copied to clipboard
val
isEdit
:
Boolean
one
Time
Event
Link copied to clipboard
val
oneTimeEvent
:
SharedFlow
<
AddEditViewModel.AddEditOneTimeEvent
>
present
Link copied to clipboard
val
present
:
State
<
Int
>
subject
Link copied to clipboard
val
subject
:
State
<
String
>
teacher
Name
Link copied to clipboard
val
teacherName
:
State
<
String
>
total
Link copied to clipboard
val
total
:
State
<
Int
>
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
closeable
:
AutoCloseable
)
fun
addCloseable
(
key
:
String
,
closeable
:
AutoCloseable
)
get
Closeable
Link copied to clipboard
fun
<
T
:
AutoCloseable
>
getCloseable
(
key
:
String
)
:
T
?
on
Event
Link copied to clipboard
fun
onEvent
(
event
:
AddEditEvent
)