One Logo Pool Ball
Foundation · IOS API REFERENCE

NotificationCenter.ObservationToken

struct · iOS 26.0+ · SDK 27.1

struct ObservationToken

A unique token representing a single observer registration in a notification center. You receive the `ObservationToken` type as a return value from `addObserver(of:for:using:)` and related methods. Retain the `ObservationToken` for as long as you need to continue observation, since observation ends when the token goes out of scope. You can also explicitly stop observing by passing the token to ``removeObserver(_:)-(ObservationToken)``.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →