Start native apps faster with the Composables CLI ->
Interface

XrComponentOverrideEnabler

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

Source set: Android
public interface XrComponentOverrideEnabler

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

Functions

shouldOverrideComponent

Source set: Android
@Composable
    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

Return

whether the XR version of this component should be used