Foundation · IOS API REFERENCE
NSKeyValueSharedObservers
class · iOS 18.0+ · SDK 27.1
class NSKeyValueSharedObservers
Members (3)
method · iOS 18.0+addSharedObserver
TypeScriptaddSharedObserver(observer: _ObjectiveC_NSObject, key: string, options?: NSKeyValueObservingOptions, context?: (SDKHandle) | null): void
Swift declarationfunc addSharedObserver(_ observer: NSObject, forKey key: String, options: NSKeyValueObservingOptions = [], context: UnsafeMutableRawPointer?)
init · iOS 18.0+init
TypeScriptstatic init(observableClass: string): NSKeyValueSharedObservers
Swift declarationinit(observableClass: AnyClass)
method · iOS 18.0+snapshot
TypeScriptsnapshot(): NSKeyValueSharedObserversSnapshot
Swift declarationfunc 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 →