public class

DocumentViewModel

extends AndroidViewModel
java.lang.Object
   ↳ AndroidViewModel
     ↳ com.pdftron.collab.viewmodel.DocumentViewModel

Class Overview

ViewModel for document

Summary

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

Public Constructors

public DocumentViewModel (Application application)

Public Methods

public getDocument ()

public getUnreadObservable (LifecycleOwner owner)

Hot observable that emits true if there are unread annotations, emits false otherwise.

Parameters
owner lifecycle owner that observes unread annotation notifications
Returns
  • observable that emits whether there are notifications

public getUser ()

public boolean hasUnreadReplies ()

public Completable removeUnread (String docId, String annotId)

public void setCustomConnection (CustomService connection)

public Completable updateActiveAnnotation (String userId, String annotId)

public Completable updateLastRead (String annotId)

public Completable updateUnreadAnnotations (String docId, String annotId)