FineLocationPermissionNotGrantedException

  • FineLocationPermissionNotGrantedException is thrown when the Android precise location permission (ACCESS_FINE_LOCATION) is required but not granted before calling Session.configure() with GeospatialMode enabled.

  • To avoid this exception, the ACCESS_FINE_LOCATION permission must be requested at runtime before configuring the session.

  • The class inherits methods from java.lang.Throwable and java.lang.Object.

public class FineLocationPermissionNotGrantedException

The Android precise location permission (ACCESS_FINE_LOCATION) is required, but has not been granted prior to calling Session.configure(com.google.ar.core.Config) when Config.GeospatialMode is set to Config.GeospatialMode.ENABLED.

See Android documentation on Request location access at runtime for more information on how to request the ACCESS_FINE_LOCATION permission.

Public Constructors

Inherited Methods

Public Constructors

FineLocationPermissionNotGrantedException

public FineLocationPermissionNotGrantedException()

FineLocationPermissionNotGrantedException

public FineLocationPermissionNotGrantedException(
  String message
)

Details
Parameters
message