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

Syntax

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

Parameters

aName
The name of the notification to observe.
notify
The delegate that will be invoked when the notification is posted.

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