plugin/src/main/java/org/godotengine/plugin/arcore/ARCoreUtil.java
/**
     * Returns true if we should start the process of setting up ARCore for the app.
     * <p>
     * This usually occurs when {@link XRMode#ARCORE} is the XR mode, but CAMERA permission
     * is missing or ARCore is not installed or up-to-date.
     */
Returns true if we should start the process of setting up ARCore for the app.

This usually occurs when  XRMode#ARCORE is the XR mode, but CAMERA permission
is missing or ARCore is not installed or up-to-date.
Returns true if we should start the process of setting up ARCore for the app . This usually occurs when XRMode#ARCORE is the XR mode but CAMERA permission is missing or ARCore is not installed or up - to - date .
public static boolean shouldSetupARCore(Activity activity, XRMode xrMode) {
		if (XRMode.ARCORE != xrMode) {
			return false;
		}
		if (!hasCameraPermission(activity)) {
			return true;
		}
		return ArCoreApk.getInstance().checkAvailability(activity) != ArCoreApk.Availability.SUPPORTED_INSTALLED;
	}
public static boolean shouldSetupARCore ( Activity activity , XRMode xrMode ) { if ( XRMode . ARCORE != xrMode ) { return false ; } if ( ! hasCameraPermission ( activity ) ) { return true ; } return ArCoreApk . getInstance ( ) . checkAvailability ( activity ) != ArCoreApk . Availability . SUPPORTED_INSTALLED ; }
Returns true if we should start the process of setting up ARCore for the app.
Returns true if we should start the process of setting up ARCore for the app .
// Validate we have the correct XR mode. // Check if the CAMERA permission is available. // Check that ARCore is installed and up-to-date.