private fun createAndRegisterObserverProxyLocked(observer: IContentObserver) { check(mObserver == null) { "an observer is already registered" } mObserver = ContentObserverProxy(observer, this) mCursor.registerContentObserver(mObserver) }
Create a ContentObserver from the observer and register it as an observer on the underlying cursor .