One Logo Pool Ball
Foundation · IOS API REFERENCE

NSNotification

class · SDK 27.1

class NSNotification

Members (6)

init

init

TypeScript
static initNameObject(aName: NSNotification_Name, anObject?: (unknown) | null): NSNotification
Swift declaration
convenience init(name aName: NSNotification.Name, object anObject: Any?)
init

init

TypeScript
static initCoder(coder: NSCoder): (NSNotification) | null
Swift declaration
init?(coder: NSCoder)
init · iOS 4.0+

init

TypeScript
static initNameObjectUserInfo(name: NSNotification_Name, object?: (unknown) | null, userInfo?: (NativeMap<unknown, unknown>) | null): NSNotification
Swift declaration
init(name: NSNotification.Name, object: Any?, userInfo: [AnyHashable : Any]? = nil)
get

name

TypeScript
get name(): NSNotification_Name
Swift declaration
var name: NSNotification.Name { get }
get

object

TypeScript
get object(): (unknown) | null
Swift declaration
var object: Any? { get }
get

userInfo

TypeScript
get userInfo(): (NativeMap<unknown, unknown>) | null
Swift declaration
var userInfo: [AnyHashable : Any]? { get }

Skipped declarations

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

NSNotification.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All Foundation types →