<!--
{
  "availability" : [
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKAlertActionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:@T@WKAlertActionHandler"
  },
  "title" : "WKAlertActionHandler"
}
-->

# WKAlertActionHandler

A block to perform in response to an action.

```
typealias WKAlertActionHandler = () -> Void
```

## Discussion

This block takes no parameters and returns no value. You use this type of block to perform a task when one of your actions is selected by the user. Your block does not need to dismiss the alert or action sheet itself. WatchKit automatically dismisses the sheet when the user taps in any of your action buttons.

---

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)