ArFragment

public class ArFragment

Implements AR Required ArFragment. Does not require additional permissions and uses the default configuration for ARCore.

Public Constructors

Public Methods

String[]
getAdditionalPermissions()
Returns an array of dangerous permissions that are required by the app in addition to Manifest.permission.CAMERA, which is needed by ARCore.
boolean
isArRequired()
Returns true if this application is AR Required, false if AR Optional.

Protected Methods

Config
void

Inherited Methods

Public Constructors

public ArFragment ()

Public Methods

public String[] getAdditionalPermissions ()

Returns an array of dangerous permissions that are required by the app in addition to Manifest.permission.CAMERA, which is needed by ARCore. If no additional permissions are needed, an empty array should be returned.

public boolean isArRequired ()

Returns true if this application is AR Required, false if AR Optional. This is called when initializing the application and the session.

Protected Methods

protected Config getSessionConfiguration (Session session)

Parameters
session

protected void handleSessionException (UnavailableException sessionException)

Parameters
sessionException

Send feedback about...