<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BETextInputDelegate/invalidateTextEntryContext(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BETextInputDelegate(im)invalidateTextEntryContextForTextInput:"
  },
  "title" : "invalidateTextEntryContext(for:)"
}
-->

# invalidateTextEntryContext(for:)

Tells the system the text entry context has changed and that text entry UI’s need to be refreshed.

```
func invalidateTextEntryContext(for textInput: any BETextInput)
```

## Discussion

This is a costly operation and should only used with intention.  For example, when switching focus
between different elements.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)