toggle menu
BIT App
androidJvm
switch theme
search in API
bitapp
/
com.atech.bit.ui.screens.library
/
LibraryManagerViewModel
Library
Manager
View
Model
class
LibraryManagerViewModel
@
Inject
constructor
(
useCase
:
LibraryUseCase
,
pref
:
SharedPreferences
)
:
ViewModel
Members
Constructors
Library
Manager
View
Model
Link copied to clipboard
@
Inject
constructor
(
useCase
:
LibraryUseCase
,
pref
:
SharedPreferences
)
Types
Library
One
Time
Event
Link copied to clipboard
interface
LibraryOneTimeEvent
Properties
alert
Date
Link copied to clipboard
val
alertDate
:
State
<
Long
>
book
Id
Link copied to clipboard
val
bookId
:
State
<
String
>
book
Name
Link copied to clipboard
val
bookName
:
State
<
String
>
event
Id
Link copied to clipboard
val
eventId
:
State
<
Long
>
har
Error
Link copied to clipboard
val
harError
:
State
<
Pair
<
Boolean
,
String
>
>
has
Error
In
Remainder
Link copied to clipboard
val
hasErrorInRemainder
:
State
<
Pair
<
Boolean
,
String
>
>
has
Issue
Date
Error
Link copied to clipboard
val
hasIssueDateError
:
State
<
Boolean
>
has
Subject
Error
Link copied to clipboard
val
hasSubjectError
:
State
<
Boolean
>
issue
Date
Link copied to clipboard
val
issueDate
:
State
<
Long
>
library
List
Link copied to clipboard
val
libraryList
:
State
<
List
<
LibraryModel
>
>
one
Time
Event
Link copied to clipboard
val
oneTimeEvent
:
SharedFlow
<
LibraryManagerViewModel.LibraryOneTimeEvent
>
return
Date
Link copied to clipboard
val
returnDate
:
State
<
Long
>
show
Permission
For
First
Time
Link copied to clipboard
var
showPermissionForFirstTime
:
Boolean
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
:
LibraryEvent
)