FreeRDP
Loading...
Searching...
No Matches
com.freerdp.freerdpcore.presentation.ShortcutsViewModel Class Reference
Inheritance diagram for com.freerdp.freerdpcore.presentation.ShortcutsViewModel:
Collaboration diagram for com.freerdp.freerdpcore.presentation.ShortcutsViewModel:

Public Member Functions

 ShortcutsViewModel (@NonNull Application application)
 
LiveData< List< BookmarkBase > > getBookmarks ()
 
void loadBookmarks ()
 

Protected Member Functions

void onCleared ()
 

Detailed Description

Definition at line 24 of file ShortcutsViewModel.java.

Constructor & Destructor Documentation

◆ ShortcutsViewModel()

com.freerdp.freerdpcore.presentation.ShortcutsViewModel.ShortcutsViewModel ( @NonNull Application  application)
inline

Definition at line 31 of file ShortcutsViewModel.java.

32 {
33 super(application);
34 manualBookmarkGateway =
35 new ManualBookmarkGateway(AppDatabase.getInstance(application).bookmarkDao());
36 }

Member Function Documentation

◆ getBookmarks()

LiveData< List< BookmarkBase > > com.freerdp.freerdpcore.presentation.ShortcutsViewModel.getBookmarks ( )
inline

Definition at line 38 of file ShortcutsViewModel.java.

39 {
40 return bookmarks;
41 }

◆ loadBookmarks()

void com.freerdp.freerdpcore.presentation.ShortcutsViewModel.loadBookmarks ( )
inline

Definition at line 43 of file ShortcutsViewModel.java.

44 {
45 executor.execute(() -> bookmarks.postValue(manualBookmarkGateway.findAll()));
46 }

◆ onCleared()

void com.freerdp.freerdpcore.presentation.ShortcutsViewModel.onCleared ( )
inlineprotected

Definition at line 48 of file ShortcutsViewModel.java.

49 {
50 super.onCleared();
51 executor.shutdown();
52 }

The documentation for this class was generated from the following file: