setDocumentFromDataProvider

open fun setDocumentFromDataProvider(@NonNull dataProvider: DataProvider, @Nullable password: String)

Loads a new document in this activity and replaces the existing one. 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.

Parameters

dataProvider

Data provider for the document.

password

Document password. May be null.