locar
    Preparing search index...

    Type Alias DeviceOrientationControlsOptions

    Options to pass into DeviceOrientationControls.

    type DeviceOrientationControlsOptions = {
        enablePermissionDialog?: boolean;
        enableStyling?: boolean;
        orientationChangeThreshold?: number;
        preferConfirmDialog?: boolean;
        smoothingFactor?: number;
    }
    Index

    Properties

    enablePermissionDialog?: boolean

    On iOS, enable permission dialog to seek permission to use device orientation through a user gesture. Recommended to set to true

    enableStyling?: boolean

    Set iOS-look and feel styling for the permission dialog for device orientation

    orientationChangeThreshold?: number

    Movement threshold to detect an orientation change (radians).

    preferConfirmDialog?: boolean

    Use a standard confirm dialog rather than a custom element to grant device orientation permissions

    smoothingFactor?: number

    smoothingFactor - default 0.2. If too high, AR content movement will lag behind the sensors. If too low, the scene will be jittery.