ArDevice.State


public final class ArDevice.State implements Trackable.State


Contains the current state of the AR Device tracking.

Summary

Public methods

boolean
equals(Object other)
final @NonNull Pose

the current Pose of the device

final @NonNull ArDevice

self-reference to the object that owns this state

@NonNull TrackingState

the current androidx.xr.arcore.TrackingState

int
@NonNull String

Returns a string representation of ArDevice.State for debugging.

Public methods

equals

public boolean equals(Object other)

getDevicePose

Added in 1.0.0-beta02
public final @NonNull Pose getDevicePose()

the current Pose of the device

getOwner

Added in 1.0.0-beta02
public final @NonNull ArDevice getOwner()

self-reference to the object that owns this state

getTrackingState

public @NonNull TrackingState getTrackingState()

the current androidx.xr.arcore.TrackingState

hashCode

public int hashCode()

toString

public @NonNull String toString()

Returns a string representation of ArDevice.State for debugging.

Note: Not intended for production use.