Android
@ExperimentalMaterial3XrApi
public interface XrComponentOverrideEnabler
Interface that a client can provide to enable/disable XR overrides on a per-component basis.
Functions
shouldOverrideComponent
@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 |