Share via


Observable.RegisterObserver(Object) Method

Definition

Adds an observer to the list.

[Android.Runtime.Register("registerObserver", "(Ljava/lang/Object;)V", "GetRegisterObserver_Ljava_lang_Object_Handler")]
public virtual void RegisterObserver (Java.Lang.Object? observer);
[<Android.Runtime.Register("registerObserver", "(Ljava/lang/Object;)V", "GetRegisterObserver_Ljava_lang_Object_Handler")>]
abstract member RegisterObserver : Java.Lang.Object -> unit
override this.RegisterObserver : Java.Lang.Object -> unit

Parameters

observer
Object

the observer to register

Attributes

Remarks

Adds an observer to the list. The observer cannot be null and it must not already be registered.

Java documentation for android.database.Observable.registerObserver(T).

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