TestGeospatial


public final class TestGeospatial


An object which describes the overall condition of Geospatial operations in the test environment.

Summary

Public methods

final @NonNull Range<@NonNull Double>

the acceptable range of latitude values that Geospatial can use when creating Anchors, with a default of -90..90 (inclusive)

final Pose

the Pose of the androidx.xr.arcore.Anchor that will be returned by Geospatial.createAnchor or Geospatial.createAnchorOnSurface

final @NonNull GeospatialPose

the GeospatialPose that would be created by Geospatial.createGeospatialPoseFromPose

final double

the horizontal accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

final double

the yaw accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

final @NonNull Pose

the Pose that would be created by Geospatial.createPoseFromGeospatialPose

final double

the vertical accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

final @NonNull VpsAvailabilityResult

VpsAvailabilityResult that will be returned when checking for VPS availability if not null

final @NonNull Geospatial.State

This method is deprecated. Convert to androidx.xr.arcore.GeospatialState

final void

the acceptable range of latitude values that Geospatial can use when creating Anchors, with a default of -90..90 (inclusive)

final void

the Pose of the androidx.xr.arcore.Anchor that will be returned by Geospatial.createAnchor or Geospatial.createAnchorOnSurface

final void

the GeospatialPose that would be created by Geospatial.createGeospatialPoseFromPose

final void

the horizontal accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

final void

the yaw accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

final void

the Pose that would be created by Geospatial.createPoseFromGeospatialPose

final void

the vertical accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

final void

VpsAvailabilityResult that will be returned when checking for VPS availability if not null

final void

This method is deprecated. Convert to androidx.xr.arcore.GeospatialState

Public methods

getAllowedAnchorLatitudeRange

Added in 1.0.0-alpha14
public final @NonNull Range<@NonNull DoublegetAllowedAnchorLatitudeRange()

the acceptable range of latitude values that Geospatial can use when creating Anchors, with a default of -90..90 (inclusive)

getExpectedAnchorPose

Added in 1.0.0-alpha14
public final Pose getExpectedAnchorPose()

the Pose of the androidx.xr.arcore.Anchor that will be returned by Geospatial.createAnchor or Geospatial.createAnchorOnSurface

getExpectedGeospatialPose

Added in 1.0.0-alpha14
public final @NonNull GeospatialPose getExpectedGeospatialPose()

the GeospatialPose that would be created by Geospatial.createGeospatialPoseFromPose

getExpectedHorizontalAccuracy

Added in 1.0.0-alpha14
public final double getExpectedHorizontalAccuracy()

the horizontal accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

getExpectedOrientationYawAccuracy

Added in 1.0.0-alpha14
public final double getExpectedOrientationYawAccuracy()

the yaw accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

getExpectedPose

Added in 1.0.0-alpha14
public final @NonNull Pose getExpectedPose()

the Pose that would be created by Geospatial.createPoseFromGeospatialPose

getExpectedVerticalAccuracy

Added in 1.0.0-alpha14
public final double getExpectedVerticalAccuracy()

the vertical accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

getExpectedVpsResult

Added in 1.0.0-alpha14
public final @NonNull VpsAvailabilityResult getExpectedVpsResult()

VpsAvailabilityResult that will be returned when checking for VPS availability if not null

getState

Added in 1.0.0-alpha14
Deprecated in 1.0.0-alpha14
public final @NonNull Geospatial.State getState()

the GeospatialState device's Geospatial communication

setAllowedAnchorLatitudeRange

Added in 1.0.0-alpha14
public final void setAllowedAnchorLatitudeRange(@NonNull Range<@NonNull Double> value)

the acceptable range of latitude values that Geospatial can use when creating Anchors, with a default of -90..90 (inclusive)

setExpectedAnchorPose

Added in 1.0.0-alpha14
public final void setExpectedAnchorPose(Pose value)

the Pose of the androidx.xr.arcore.Anchor that will be returned by Geospatial.createAnchor or Geospatial.createAnchorOnSurface

setExpectedGeospatialPose

Added in 1.0.0-alpha14
public final void setExpectedGeospatialPose(@NonNull GeospatialPose value)

the GeospatialPose that would be created by Geospatial.createGeospatialPoseFromPose

setExpectedHorizontalAccuracy

Added in 1.0.0-alpha14
public final void setExpectedHorizontalAccuracy(double value)

the horizontal accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

setExpectedOrientationYawAccuracy

Added in 1.0.0-alpha14
public final void setExpectedOrientationYawAccuracy(double value)

the yaw accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

setExpectedPose

Added in 1.0.0-alpha14
public final void setExpectedPose(@NonNull Pose value)

the Pose that would be created by Geospatial.createPoseFromGeospatialPose

setExpectedVerticalAccuracy

Added in 1.0.0-alpha14
public final void setExpectedVerticalAccuracy(double value)

the vertical accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

setExpectedVpsResult

Added in 1.0.0-alpha14
public final void setExpectedVpsResult(@NonNull VpsAvailabilityResult value)

VpsAvailabilityResult that will be returned when checking for VPS availability if not null

setState

Added in 1.0.0-alpha14
Deprecated in 1.0.0-alpha14
public final void setState(@NonNull Geospatial.State value)

the GeospatialState device's Geospatial communication