/// <summary>Notify registered observers that a row was updated.</summary> /// <remarks> /// Notify registered observers that a row was updated. /// To register, call /// <see cref="registerContentObserver(System.Uri, bool, android.database.ContentObserver) /// ">registerContentObserver()</see> /// . /// By default, CursorAdapter objects will get this notification. /// </remarks> /// <param name="uri"></param> /// <param name="observer">The observer that originated the change, may be <code>null</null> /// </param> /// <param name="syncToNetwork">If true, attempt to sync the change to the network.</param> public virtual void notifyChange(System.Uri uri, android.database.ContentObserver observer, bool syncToNetwork) { try { getContentService().notifyChange(uri, observer == null ? null : observer.getContentObserver (), observer != null && observer.deliverSelfNotifications(), syncToNetwork); } catch (android.os.RemoteException) { } }
/// <summary> /// Register an observer class that gets callbacks when data identified by a /// given content URI changes. /// </summary> /// <remarks> /// Register an observer class that gets callbacks when data identified by a /// given content URI changes. /// </remarks> /// <param name="uri"> /// The URI to watch for changes. This can be a specific row URI, or a base URI /// for a whole class of content. /// </param> /// <param name="notifyForDescendents"> /// If <code>true</code> changes to URIs beginning with <code>uri</code> /// will also cause notifications to be sent. If <code>false</code> only changes to the exact URI /// specified by <em>uri</em> will cause notifications to be sent. If true, than any URI values /// at or below the specified URI will also trigger a match. /// </param> /// <param name="observer">The object that receives callbacks when changes occur.</param> /// <seealso cref="unregisterContentObserver(android.database.ContentObserver)">unregisterContentObserver(android.database.ContentObserver) /// </seealso> public void registerContentObserver(System.Uri uri, bool notifyForDescendents, android.database.ContentObserver observer) { try { getContentService().registerContentObserver(uri, notifyForDescendents, observer.getContentObserver ()); } catch (android.os.RemoteException) { } }