| java.lang.Object | ||
| ↳ | AndroidViewModel | |
| ↳ | com.pdftron.collab.viewmodel.DocumentViewModel | |
ViewModel for document
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DocumentViewModel(Application application) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
getDocument() | ||||||||||
|
|
getUnreadObservable(LifecycleOwner owner)
Hot observable that emits true if there are unread annotations, emits false otherwise.
| ||||||||||
|
|
getUser() | ||||||||||
| boolean | hasUnreadReplies() | ||||||||||
| Completable | removeUnread(String docId, String annotId) | ||||||||||
| void | setCustomConnection(CustomService connection) | ||||||||||
| Completable | updateActiveAnnotation(String userId, String annotId) | ||||||||||
| Completable | updateLastRead(String annotId) | ||||||||||
| Completable | updateUnreadAnnotations(String docId, String annotId) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Hot observable that emits true if there are unread annotations, emits false otherwise.
| owner | lifecycle owner that observes unread annotation notifications |
|---|