One Logo Pool Ball
Foundation · IOS API REFERENCE

NSKeyValueSharedObservers

class · iOS 18.0+ · SDK 27.1

class NSKeyValueSharedObservers

Members (3)

method · iOS 18.0+

addSharedObserver

TypeScript
addSharedObserver(observer: _ObjectiveC_NSObject, key: string, options?: NSKeyValueObservingOptions, context?: (SDKHandle) | null): void
Swift declaration
func addSharedObserver(_ observer: NSObject, forKey key: String, options: NSKeyValueObservingOptions = [], context: UnsafeMutableRawPointer?)
init · iOS 18.0+

init

TypeScript
static init(observableClass: string): NSKeyValueSharedObservers
Swift declaration
init(observableClass: AnyClass)
method · iOS 18.0+

snapshot

TypeScript
snapshot(): NSKeyValueSharedObserversSnapshot
Swift declaration
func snapshot() -> NSKeyValueSharedObserversSnapshot

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSKeyValueSharedObservers.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Foundation types →