GeospatialTester


public final class GeospatialTester


An object which allows for testing the overall condition of Geospatial operations in an ARCore unit 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 GeospatialState

the GeospatialState device's Geospatial communication

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

the GeospatialState device's Geospatial communication

Public methods

getAllowedAnchorLatitudeRange

Added in 1.0.0-alpha15
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-alpha15
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-alpha15
public final @NonNull GeospatialPose getExpectedGeospatialPose()

the GeospatialPose that would be created by Geospatial.createGeospatialPoseFromPose

getExpectedHorizontalAccuracy

Added in 1.0.0-alpha15
public final double getExpectedHorizontalAccuracy()

the horizontal accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

getExpectedOrientationYawAccuracy

Added in 1.0.0-alpha15
public final double getExpectedOrientationYawAccuracy()

the yaw accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

getExpectedPose

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

the Pose that would be created by Geospatial.createPoseFromGeospatialPose

getExpectedVerticalAccuracy

Added in 1.0.0-alpha15
public final double getExpectedVerticalAccuracy()

the vertical accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

getExpectedVpsResult

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

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

getState

Added in 1.0.0-alpha15
public final @NonNull GeospatialState getState()

the GeospatialState device's Geospatial communication

setAllowedAnchorLatitudeRange

Added in 1.0.0-alpha15
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-alpha15
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-alpha15
public final void setExpectedGeospatialPose(@NonNull GeospatialPose value)

the GeospatialPose that would be created by Geospatial.createGeospatialPoseFromPose

setExpectedHorizontalAccuracy

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

the horizontal accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

setExpectedOrientationYawAccuracy

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

the yaw accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

setExpectedPose

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

the Pose that would be created by Geospatial.createPoseFromGeospatialPose

setExpectedVerticalAccuracy

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

the vertical accuracy of the value returned by Geospatial.createGeospatialPoseFromPose

setExpectedVpsResult

Added in 1.0.0-alpha15
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-alpha15
public final void setState(@NonNull GeospatialState value)

the GeospatialState device's Geospatial communication