Foundation.NSNotificationCenter.AddObserver Method
Adds an observer for the specified notification

Syntax

public NSObject AddObserver (NSString aName, Action<NSNotification> notify, NSObject fromObject)

Parameters

aName
The name of the notification to observe.
notify
The delegate that will be invoked when the notification is posted.
fromObject
If not-null, filters the notifications to those sent by this object.

Returns

An observer token that can be used later as the parameter passed to RemoveObserver (NSObject observer).

Remarks

Requirements

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