set Document
Sets the document to all instantiated views. This has to be called on the main thread.
Parameters
document
Document to be set.
Sets the document to all instantiated views. This has to be called on the main thread.
Document to be set.