Add OnViewDetachedListener callback.