---
title: "register(_:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/actionhandlerprotocol/register(_:)"
---

# register(_:)

Registers a handler that responds to raised action events for a particular action type.

## Declaration

```swift
static func register(_ creationHandler: @escaping (Self.EventType) -> (any ActionHandlerProtocol)?)
```

## Parameters

- `creationHandler`: The closure that instantiates the handler.
