<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserKit",
  "identifier" : "/documentation/BrowserKit/BEAvailability/isEligible(for:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "BrowserKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BEAvailability(cm)isEligibleForContext:completionHandler:"
  },
  "title" : "isEligible(for:completionHandler:)"
}
-->

# isEligible(for:completionHandler:)

Tests whether the device is eligible to use an app that contains an alternative browser engine.

```
class func isEligible(for context: BEAvailability.Context, completionHandler: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```
class func isEligible(for context: BEAvailability.Context) async throws -> Bool
```

## Parameters

`context`

The type of app for which you test eligibility.

`completionHandler`

A closure that receives the result of the eligibility check, and an error if any occurs.

## Discussion

The completion handler in the synchronous version of this method receives `true` as its first parameter if the device is eligible to run a version of the app that contains an alternative browser engine; otherwise, it receives `false`. The second parameter that the completion handler receives is an error if any occurs; otherwise, it’s `nil`.

The `async` version of this method returns `true` if the device is eligible to run a version of the app that contains an alternative browser engine; otherwise, it returns `false`. The method throws an error if it encounters one.

To use the [`BEAvailability.Context.webBrowser`](/documentation/BrowserKit/BEAvailability/Context/webBrowser) context to test whether the device is eligible to use a web browser with an alternative browser engine, your app needs to have the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.web-browser> entitlement. For information on adopting the web browser entitlement, see <doc://com.apple.documentation/documentation/Xcode/preparing-your-app-to-be-the-default-browser>.

---

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)