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 29 of file ShortcutsViewModel.java.

Constructor & Destructor Documentation

◆ ShortcutsViewModel()

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

Definition at line 36 of file ShortcutsViewModel.java.

37 {
38 super(application);
39 manualBookmarkGateway =
40 new ManualBookmarkGateway(AppDatabase.getInstance(application).bookmarkDao());
41 }

Member Function Documentation

◆ getBookmarks()

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

Definition at line 43 of file ShortcutsViewModel.java.

44 {
45 return bookmarks;
46 }

◆ loadBookmarks()

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

Definition at line 48 of file ShortcutsViewModel.java.

49 {
50 executor.execute(() -> bookmarks.postValue(manualBookmarkGateway.findAll()));
51 }

◆ onCleared()

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

Definition at line 53 of file ShortcutsViewModel.java.

54 {
55 super.onCleared();
56 executor.shutdown();
57 }

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