Share via


ContentObserver Constructors

Definition

Overloads

ContentObserver(Handler)

Creates a content observer.

ContentObserver(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ContentObserver(Handler)

Creates a content observer.

[Android.Runtime.Register(".ctor", "(Landroid/os/Handler;)V", "")]
public ContentObserver (Android.OS.Handler? handler);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Handler;)V", "")>]
new Android.Database.ContentObserver : Android.OS.Handler -> Android.Database.ContentObserver

Parameters

handler
Handler

The handler to run #onChange on, or null if none.

Attributes

Remarks

Creates a content observer.

Java documentation for android.database.ContentObserver.ContentObserver(android.os.Handler).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ContentObserver(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected ContentObserver (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Database.ContentObserver : nativeint * Android.Runtime.JniHandleOwnership -> Android.Database.ContentObserver

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to