setDocument

abstract fun setDocument(@NonNull documentDescriptor: DocumentDescriptor): Boolean

Replaces currently visible document with another document. Making this document visible immediately.

This method may only be called if onSaveInstanceState has not been called or an exception will be thrown, since after that call state loss could occur.

Return

true when documents list has changed.

Parameters

documentDescriptor

Document to add.