---
title: "shouldAcceptInteraction(initialValue:handoffValue:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/tabletopinteraction/delegate/shouldacceptinteraction(initialvalue:handoffvalue:)"
---

# shouldAcceptInteraction(initialValue:handoffValue:)

Implement shouldAcceptInteraction(initialValue:handoffValue) to provide the initial configuration for new interactions, and to decide if a new interaction should be accepted or rejected. If this function is not implemented, the default implementation will be used which will reject all handoff interactions and will accept all other interactions providing the default configuration.

## Declaration

```swift
func shouldAcceptInteraction(initialValue: TabletopInteraction.Value, handoffValue: TabletopInteraction.Value?) -> TabletopInteraction.NewInteractionIntent
```

## Parameters

- `initialValue`: The initial Value for this interaction, calculated using the default configuration and constants.
- `handoffValue`: If not nil, this interaction is trying to take control of an equipment already controlled by another interaction, causing a “handoff” of the equipment. The value provides the most recent data of the interaction that is currently controlling the equipment.

## Return Value

Return Value The intent that describes the action to be taken on this new interaction (reject or accept with configuration)

## See Also

### Accepting interactions

- [shouldAcceptDirectInteraction(initialValue:handoffValue:)](tabletopkit/tabletopinteraction/delegate/shouldacceptdirectinteraction(initialvalue:handoffvalue:).md)
- [shouldAcceptIndirectInteraction(initialValue:handoffValue:)](tabletopkit/tabletopinteraction/delegate/shouldacceptindirectinteraction(initialvalue:handoffvalue:).md)
