Contents

removeObserver(_:)

Stops the observation represented by the given observation token.

Declaration

func removeObserver(_ token: NotificationCenter.ObservationToken)

Parameters

  • token:

    A unique token representing a specific observer in a specific notification center. You receive this type from prior calls to addObserver(of:for:using:).

See Also

Observing concurrency-safe notifications