---
title: "selectionChangedWithGesture(at:gesture:state:flags:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinteraction/selectionchangedwithgesture(at:gesture:state:flags:)"
---

# selectionChangedWithGesture(at:gesture:state:flags:)

Notifies the system that the text view changed its selection.

## Declaration

```swift
func selectionChangedWithGesture(at point: CGPoint, gesture gestureType: BEGestureType, state gestureState: UIGestureRecognizer.State, flags: BESelectionFlags)
```

## Discussion

Discussion Call this method when your browser text view receives updateCurrentSelection(to:from:in:).

## See Also

### Text selection

- [delegate](browserenginekit/betextinteraction/delegate.md)
- [BETextInteractionDelegate](browserenginekit/betextinteractiondelegate.md)
- [textSelectionDisplayInteraction](browserenginekit/betextinteraction/textselectiondisplayinteraction.md)
- [selectionBoundaryAdjusted(to:touchPhase:flags:)](browserenginekit/betextinteraction/selectionboundaryadjusted(to:touchphase:flags:).md)
