Skip to Content
API ReferenceAndroid SDKState

State and navigation values

Public state types are data classes with read-only properties, or sealed state cases, in tech.graffity.android.arcloud.publicapi.

GraffityARState

PropertyTypeMeaning
isSceneReadyBooleanIn 5.0.2, the state bridge derives this from successful VPS localization; it is not an independent camera-ready signal.
vpsStateGraffityARVPSStateLocalization status.
navigationGraffityARNavigationState?Current route state or null.
lastErrorGraffityARCloudError?Most recent surfaced session error, if any.

Constructor: GraffityARState(isSceneReady, vpsState, navigation, lastError), with the types above and no defaults.

GraffityARVPSState

CaseAssociated value / meaning
IdleNot localizing.
AwaitingInitialWaiting for an initial level view.
Guiding(progress: Double)Hold/capture guidance fraction in 0–1.
Localized(sectionId: String)Successfully localized section.
Failed(error: GraffityARCloudError)Localization failure.

The current bridge maps a failed VPS state to VpsAllAttemptsFailed. Check lastError and onError for more specific operation errors.

GraffityARNavigationState

PropertyTypeMeaning
destinationIdStringFinal destination, including while walking toward a transition.
destinationNameStringFinal destination display name.
actionGraffityARNavigationActionCurrent leg’s next instruction.
distanceToDestinationMetersDoubleDistance to this leg’s target; can be a transition POI.
distanceToNextActionMetersDouble?Distance to the next instruction when available.

Constructor: GraffityARNavigationState(destinationId, destinationName, action, distanceToDestinationMeters, distanceToNextActionMeters), with no defaults.

ARRIVING can indicate a transition during a journey. Use onNavigationArrived for final arrival.

GraffityARNavigationAction

Enum cases: FORWARD, TURN_LEFT, TURN_RIGHT, GO_UP, GO_DOWN, and ARRIVING.

See navigation behavior and lifecycle-aware observation.