Share via


IObserver.Update(Observable, Object) Method

Definition

This method is called whenever the observed object is changed.

[Android.Runtime.Register("update", "(Ljava/util/Observable;Ljava/lang/Object;)V", "GetUpdate_Ljava_util_Observable_Ljava_lang_Object_Handler:Java.Util.IObserverInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Update (Java.Util.Observable? o, Java.Lang.Object? arg);
[<Android.Runtime.Register("update", "(Ljava/util/Observable;Ljava/lang/Object;)V", "GetUpdate_Ljava_util_Observable_Ljava_lang_Object_Handler:Java.Util.IObserverInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Update : Java.Util.Observable * Java.Lang.Object -> unit

Parameters

o
Observable

the observable object.

arg
Object

an argument passed to the notifyObservers method.

Attributes

Remarks

This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change.

Java documentation for java.util.Observer.update(java.util.Observable, java.lang.Object).

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