add On Visibility Changed Listener
Adds a listener to be notified of visibility change. 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
OnVisibilityChangedListener that should be notified. Must be non-null.