Loading...
Searching...
No Matches
Android-specific Platform Controller

Classes

struct  VuPlatformARCoreInfo
 ARCore-specific info for the platform-based Vuforia Fusion Provider. More...
 

Functions

VuResult vuPlatformControllerGetARCoreInfo (const VuController *controller, VuPlatformARCoreInfo *arCoreInfo)
 Get information about the ARCore Fusion Provider Platform.
 

Detailed Description

Android platform-specific functionality accessed via the PlatformController

Function Documentation

◆ vuPlatformControllerGetARCoreInfo()

VuResult vuPlatformControllerGetARCoreInfo ( const VuController * controller,
VuPlatformARCoreInfo * arCoreInfo )

Get information about the ARCore Fusion Provider Platform.

The information contained in the returned struct can be used to allow applications to interact with the underlying ARCore session to gain access to functionality not currently available through the Vuforia API. For example additional lighting information or plane boundaries.

Note
Call this function after Vuforia Engine has been started and the Vuforia State contains a camera frame.
If a VuErrorHandler callback (passed via VuErrorHandlerConfig) has been received with the error code VU_ENGINE_ERROR_PLATFORM_FUSION_PROVIDER_INFO_INVALIDATED, the App must poll this API until it successfully returns the new ARCore pointers. However, this polling must not be done inside the VuErrorHandler callback itself, but rather after the callback returns (i.e. the control is passed back to Vuforia Engine).
Parameters
controllerPlatform controller retrieved from Engine (see vuEngineGetPlatformController)
arCoreInfoARCore-specific info for the platform-based Vuforia Fusion Provider
Returns
VU_FAILED if Vuforia is not running, is not using the ARCore Fusion Provider Platform, or if the ARCore pointers are not ready to be retrieved yet, VU_SUCCESS otherwise