---
title: "init(call:onHold:)"
framework: callkit
role: symbol
role_heading: Initializer
path: "callkit/cxsetheldcallaction/init(call:onhold:)"
---

# init(call:onHold:)

Initializes a new action for a call identified by a given UUID, as well as whether the call is on hold.

## Declaration

```swift
init(call callUUID: UUID, onHold: Bool)
```

## Parameters

- `callUUID`: The unique identifier for the associated doc://com.apple.callkit/documentation/CallKit/CXCall object of the action.
- `onHold`: Whether the call is on hold.

## Return Value

Return Value A new action for the specified call UUID and whether the call is placed on hold.

## See Also

### Creating New Actions

- [init(coder:)](callkit/cxsetheldcallaction/init(coder:).md)
