Navigation
API > API/Runtime > API/Runtime/AugmentedReality
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UARDependencyHandler
References
| Module | AugmentedReality |
| Header | /Engine/Source/Runtime/AugmentedReality/Public/ARDependencyHandler.h |
| Include | #include "ARDependencyHandler.h" |
Syntax
class UARDependencyHandler :
public UObject,
public IModularFeature
Remarks
Helper class that allows the user to explicitly request AR service installation and permission granting. Recommended flow for explicit management:
Call "GetARDependencyHandler" to get a handler, if valid:
Call "CheckARServiceAvailability" to check availability, if the device is supported:
Call "InstallARService" to install AR service dependency, if installed:
Call "RequestARSessionPermission" to request permission, if granted:
Call "UARBlueprintLibrary::StartARSession" to start the session. Alternatively, you can also call "StartARSessionLatent" which handles dependency and permission internally.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CheckARServiceAvailability
(
UObject* WorldContextObject, |
Latent action to check AR availability on the current platform. | |
| UARDependencyHandler * | |||
| FName | |||
| void | InstallARService
(
UObject* WorldContextObject, |
Latent action to install AR service on the current platform. | |
| void | RequestARSessionPermission
(
UObject* WorldContextObject, |
Latent action to request permission to run the supplied session configuration. | |
| void | StartARSessionLatent
(
UObject* WorldContextObject, |
Latent action to start AR session. |