<div class='sourceset sourceset-android'>Android</div>

```kotlin
@ExperimentalMaterial3XrApi
public interface XrComponentOverrideEnabler
```

Interface that a client can provide to enable/disable XR overrides on a per-component basis.

## Functions

<h2 id="shouldoverridecomponent-component">shouldOverrideComponent</h2>

```kotlin
@Composable
@ExperimentalMaterial3XrApi
public fun XrComponentOverrideEnablerContext.shouldOverrideComponent(
    component: XrComponentOverride
): Boolean
```

Used to determine whether the XR version of a given component should be used.

#### Parameters

| | |
| --- | --- |
| component | the component that may or may not use the XR version |

#### Returns

| | |
| --- | --- |
|  | whether the XR version of this component should be used |