Condividi tramite


NSNotificationCenter.RemoveObserver Metodo

Definizione

Overload

RemoveObserver(NSObject)
RemoveObserver(NSObject, String, NSObject)

RemoveObserver(NSObject)

[Foundation.Export("removeObserver:")]
public virtual void RemoveObserver (Foundation.NSObject observer);
override this.RemoveObserver : Foundation.NSObject -> unit

Parametri

observer
NSObject
Attributi

Commenti

Il parametro observer è il valore restituito dai metodi AddObserver che accettano un parametro Action<NSNotification> (API di stile C#) o il parametro "observer" passato a AddObserver (API di stile Objective-C).

Si applica a

RemoveObserver(NSObject, String, NSObject)

[Foundation.Export("removeObserver:name:object:")]
public virtual void RemoveObserver (Foundation.NSObject observer, string aName, Foundation.NSObject anObject);
override this.RemoveObserver : Foundation.NSObject * string * Foundation.NSObject -> unit

Parametri

observer
NSObject
aName
String

Nome facoltativo registrato. Usare Null se non si vuole applicare il filtro.

Questo parametro può essere null.

anObject
NSObject

Oggetto a cui è stato originariamente registrato l'interesse.

Questo parametro può essere null.

Attributi

Si applica a