public final class CameraView extends BaseActivityPose


A ActivityPose which tracks a camera's position and view into physical space.

Summary

Nested types

public enum CameraView.CameraType extends Enum

Describes the type of camera that this CameraView represents.

Public methods

final @NonNull CameraView.CameraType
final @NonNull Fov

Gets the FOV for the camera

Inherited methods

From androidx.xr.scenecore.BaseActivityPose
@NonNull Pose

Returns the activity space pose for this ActivityPose.

@NonNull ListenableFuture<@NonNull HitTestResult>
hitTestAsync(@NonNull Vector3 origin, @NonNull Vector3 direction)

Creates a hit test from the specified origin in the specified direction into the scene.

@NonNull ListenableFuture<@NonNull HitTestResult>
hitTestAsync(
    @NonNull Vector3 origin,
    @NonNull Vector3 direction,
    @ActivityPose.HitTestFilterValue int hitTestFilter
)

Creates a hit test from the specified origin in the specified direction into the scene.

@NonNull Pose

Returns a pose relative to this ActivityPose transformed into a pose relative to the destination.

Public methods

getCameraType

Added in 1.0.0-alpha04
public final @NonNull CameraView.CameraType getCameraType()

getFov

Added in 1.0.0-alpha04
public final @NonNull Fov getFov()

Gets the FOV for the camera