---
title: shouldBeginHandler
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibandselectioninteraction/shouldbeginhandler
---

# shouldBeginHandler

The handler that determines whether to start a band selection interaction.

## Declaration

```swift
var shouldBeginHandler: ((UIBandSelectionInteraction, CGPoint) -> Bool)? { get set }
```

## Discussion

Discussion This property stores an optional handler block you use to selectively start the interaction. If you provide a handler, the UIBandSelectionInteraction object calls your handler upon successful recognition of the appropriate event sequence, but before it starts the interaction. Use your handler to specify whether you want the interaction to proceed. Your handler block returns a Boolean that indicates whether to start the interaction. Return true to start the interaction or false to ignore the interaction and return the UIBandSelectionInteraction object to the UIBandSelectionInteraction.State.possible state. The interaction object passes the following points to your handler:
