OpenXRAndroidGoogleCloudAuthExtension
Inherits: OpenXRExtensionWrapper
Wraps the XR_ANDROID_google_cloud_auth extension.
Description
Wraps the XR_ANDROID_google_cloud_auth extension, which provides authentication for Google Cloud services used by other Android XR extensions such as OpenXRAndroidGeospatialExtension.
Methods
bool |
is_authenticated ( ) const |
bool |
is_enabled ( ) const |
OpenXRFutureResult |
set_google_cloud_auth_api_key ( String api_key ) |
OpenXRFutureResult |
|
OpenXRFutureResult |
set_google_cloud_auth_token ( String auth_token ) |
Method Descriptions
bool is_authenticated ( ) const
Returns true if any of the authentication methods have been successfully completed.
See set_google_cloud_auth_api_key, set_google_cloud_auth_keyless, and set_google_cloud_auth_token.
bool is_enabled ( ) const
Returns true if the XR_ANDROID_google_cloud_auth extension is supported by the OpenXR runtime.
OpenXRFutureResult set_google_cloud_auth_api_key ( String api_key )
Sets Google Cloud authentication using an API key. Returns an OpenXRFutureResult that completes when authentication is finished.
OpenXRFutureResult set_google_cloud_auth_keyless ( )
Sets Google Cloud authentication using keyless authentication. Returns an OpenXRFutureResult that completes when authentication is finished.
OpenXRFutureResult set_google_cloud_auth_token ( String auth_token )
Sets Google Cloud authentication using an auth token. Returns an OpenXRFutureResult that completes when authentication is finished.