Instance Property インスタンスプロパティ

observationInfo

Returns a pointer that identifies information about all of the observers that are registered with the observed object.

Declaration 宣言

var observationInfo: UnsafeMutableRawPointer? { get set }

Return Value 戻り値

A pointer that identifies information about all of the observers that are registered with the observed object, the options that were used at registration-time, and so on.

Discussion 解説

The default implementation of this method retrieves the information from a global dictionary of observed objects keyed by memory addresses.

For improved performance, both this property and observationInfo can be overridden to store the opaque data pointer in an instance variable. Overrides of this property must not attempt to send messages to the stored data.

See Also 参照

Observing Customization