GAREarthState

Summary

Enumerations

GAREarthState{
  GAREarthStateEnabled = 0,
  GAREarthStateErrorInternal = -1,
  GAREarthStateErrorNotAuthorized = -2,
  GAREarthStateErrorResourceExhausted = -3
}
enum
Describes the current state of GAREarth, containing the possible values of GAREarth.earthState.

Enumerations

GAREarthState

 GAREarthState

Describes the current state of GAREarth, containing the possible values of GAREarth.earthState.

When GAREarth.trackingState does not become GARTrackingStateTracking, this may contain the cause of this failure.

Properties
GAREarthStateEnabled

GAREarth is enabled, and has not encountered any problems.

Localization is enabled and functioning. Use GAREarth.trackingState to determine if it can be used.

GAREarthStateErrorInternal

Earth localization has encountered an internal error.

The app should not attempt to recover from this error. Check the iOS device logs for more information.

GAREarthStateErrorNotAuthorized

The application failed to authenticate with Google Cloud.

This may happen if:

  • The Google Cloud Project has not enabled the ARCore API.
  • The provided API key is invalid.
  • The provided auth token is expired or invalid.
  • No credentials have been provided.

GAREarthStateErrorResourceExhausted

The application has exhausted the quota allotted to the given Google Cloud project.

The developer should request additional quota (https://cloud.google.com/docs/quota#requesting_higher_quota) for the ARCore API for their project from the Google Cloud Console.