ArOdometryProvider.Builder

public static final class ArOdometryProvider.Builder extends Object

Builder for ArOdometryProvider.

Public Constructor Summary

Builder(Context context)

Public Method Summary

ArOdometryProvider
build()
Builds a new ArOdometryProvider instance.
ArOdometryProvider.Builder
setGlContextThreadExecutor(Executor glContextThreadExecutor)
Provides an executor that runs tasks on a thread with a current OpenGL context.

Inherited Method Summary

Public Constructors

public Builder (Context context)

Public Methods

public ArOdometryProvider build ()

Builds a new ArOdometryProvider instance.

Handles creation of the ARCore session. The client can access the session using ArOdometryProvider.getSession.

Throws
UnavailableArcoreNotInstalledException if ARCore isn't installed.
UnavailableApkTooOldException if the ARCore APK is too old.
UnavailableSdkTooOldException if the ARCore SDK is too old.
UnavailableDeviceNotCompatibleException if the device isn't compatible with ARCore.
SecurityException if camera permission isn't granted.

public ArOdometryProvider.Builder setGlContextThreadExecutor (Executor glContextThreadExecutor)

Provides an executor that runs tasks on a thread with a current OpenGL context.

This must be provided by the client to share access to the session. The client is responsible for creating this context and accompanying thread (for example, using a GLSurfaceView).