<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DarwinNotify",
  "identifier" : "/documentation/DarwinNotify/notify_check(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Darwin Notify"
    ],
    "preciseIdentifier" : "c:@F@notify_check"
  },
  "title" : "notify_check(_:_:)"
}
-->

# notify_check(_:_:)

```
func notify_check(_ token: Int32, _ check: UnsafeMutablePointer<Int32>!) -> UInt32
```

## Parameters

`token`

(input) notification token

`check`

(output) true/false indication

## Return Value

Returns status.

## Discussion

Check if any notifications have been posted.

Output parameter check is set to 0 for false, 1 for true. Returns status. check is set to true the first time notify_check is called for a token. Subsequent calls set check to true when notifications have been posted for the name associated with the notification token. This routine is independent of notify_post(). That is, check will be true if an application calls notify_post() for a name and then calls notify_check() for a token associated with that name.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)