Foundation.NSNotificationCenter.AddObserver Method
Low-level add-bserver API

Syntax

[Foundation.Export("addObserver:selector:name:object:")]
public virtual void AddObserver (NSObject observer, ObjCRuntime.Selector aSelector, NSString aName, NSObject anObject)

Parameters

observer
Documentation for this section has not yet been entered.
aSelector
Documentation for this section has not yet been entered.
aName

Optional name that you want to register with and filter delivery by this name. Use null if you do not want filtering to take place.

This parameter can be null.

anObject

The object that we want to receive notifications from, or null for receiving the specified notifications sent by all objects.

This parameter can be null.

Remarks

This is a low-level version of the AddObserver API that allows the consumer to contorl the observer and the selector to notify upon notifications.

Users are encouraged to use the high-level NSNotificationCenter.AddObserver(NSString, Action<NSNotification>, Foundation.NSObject) variant.

Requirements

Namespace: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0