checkInstall

fun checkInstall(activity: ComponentActivity, installRequested: Boolean): Boolean

Checks if ARCore is already installed or attempts to request an install otherwise.

Return

true if ARCore is already installed

Parameters

activity

The current activity which will be paused if we request an install

installRequested

Should be true the first time this is called, and false when we resume from the previous install attempt

Throws

UnavailableDeviceNotCompatibleException

if the device does not support ARCore