add Instant Document Listener
Adds a InstantDocumentListener for instant document events. Listeners added with this method will be removed automatically in onDetach. If the listener has already been added previously, this method will be a no-op. Adding null
is not allowed, and will result in an exception.
Parameters
listener
Listener to be notified of instant document events. May not be null
.