add On Visibility Changed Listener
Adds a listener to the collection.
Parameters
listener
On visibility changed listener to be added.
Adds a listener to the collection.
On visibility changed listener to be added.