Sdílet prostřednictvím


Observable.AddObserver(IObserver) Method

Definition

Adds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set.

[Android.Runtime.Register("addObserver", "(Ljava/util/Observer;)V", "GetAddObserver_Ljava_util_Observer_Handler")]
public virtual void AddObserver (Java.Util.IObserver? o);
[<Android.Runtime.Register("addObserver", "(Ljava/util/Observer;)V", "GetAddObserver_Ljava_util_Observer_Handler")>]
abstract member AddObserver : Java.Util.IObserver -> unit
override this.AddObserver : Java.Util.IObserver -> unit

Parameters

o
IObserver

an observer to be added.

Attributes

Remarks

Adds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set. The order in which notifications will be delivered to multiple observers is not specified. See the class comment.

Java documentation for java.util.Observable.addObserver(java.util.Observer).

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