NSKeyValueObservingOptions NSKeyValueObservingOptions Enum

Definition

An enumeration of values specifying options to be used with the AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) method.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[System.Flags]
public enum NSKeyValueObservingOptions
type NSKeyValueObservingOptions = 
Inheritance
NSKeyValueObservingOptionsNSKeyValueObservingOptions
Attributes

Fields

Initial Initial 4

Use this to send a notification on first use, without waiting for an actual change to take place.

New New 1

Request that new values be delivered to the observer.

Old Old 2

Requests that old values be delivered to the observer.

OldNew OldNew 3

Requests that both old and new values be delivered to the observer.

Prior Prior 8

If set, notifications are sent before and after the change to the property is made.   Otherwise the notifications are only sent after the property has been set.

Remarks

Applies to