GARGeospatialMode
Summary
Enumerations
Enumerations
GARGeospatialMode
GARGeospatialMode
Describes the desired behavior of ARCore Geospatial API features and capabilities.
Not all devices support all modes. Use isGeospatialModeSupported: (GARSession(Geospatial))
to find whether the current device supports a particular Geospatial mode. The default value is GARGeospatialModeDisabled
.
The Geospatial API is disabled.
The Geospatial API is enabled.
GARFrame.earth
will return valid GAREarth
instances, and createAnchorWithCoordinate:altitude:eastUpSouthQAnchor:error: (GARSession(Geospatial))
will be enabled.
Configuring the session with this mode may result in the following error codes:
-
GARSessionErrorCodeLocationPermissionNotGranted- Geospatial mode requires location permission (at least when-in-use) with full accuracy. -
GARSessionErrorCodeConfigurationNotSupported- Geospatial mode not supported on this device or OS version. UseisGeospatialModeSupported: (GARSession(Geospatial))to determine this before attempting to configure the session.

