XrComponentOverrideEnabler

@ExperimentalMaterial3XrApi
interface XrComponentOverrideEnabler


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

Summary

Public functions

Boolean

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

Public functions

shouldOverrideComponent

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

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

Parameters
component: XrComponentOverride

the component that may or may not use the XR version

Returns
Boolean

whether the XR version of this component should be used