The Android XR SDK has reached Developer Preview 4, and we want your feedback! Try things out, and visit our support page to reach out.

XRGoogleCloudAuthResult

The authentication result from Google Cloud APIs.

Summary

Inheritance

Inherits from: IEquatable< XRGoogleCloudAuthResult >

Constructors and Destructors

XRGoogleCloudAuthResult(OpenXRResultStatus status, XRGoogleCloudAuthError error)
Constructs auth result with OpenXRResultStatus and XRGoogleCloudAuthError.
XRGoogleCloudAuthResult(OpenXRResultStatus status)
Constructs auth result with OpenXRResultStatus.
XRGoogleCloudAuthResult(XRGoogleCloudAuthError error)
Constructs auth result with XRGoogleCloudAuthError.

Public attributes

CloudAuthError
The cause of authentication error when invoking a Google Cloud API.
Status
OpenXRResultStatus
Represents the status of a completed OpenXR operation.

Public functions

Equals(object obj)
override bool
Equals(XRGoogleCloudAuthResult other)
bool
GetHashCode()
override int
ToString()
override string

Public attributes

CloudAuthError

XRGoogleCloudAuthError Google::XR::Extensions::XRGoogleCloudAuthResult::CloudAuthError

The cause of authentication error when invoking a Google Cloud API.

Status

OpenXRResultStatusGoogle::XR::Extensions::XRGoogleCloudAuthResult::Status

Represents the status of a completed OpenXR operation.

Use OpenXRResultStatus.IsSuccess() to confirm if succeed. Otherwise, check OpenXRResultStatus.nativeStatusCode or CloudAuthError for more details.

Public functions

Equals

overrideboolGoogle::XR::Extensions::XRGoogleCloudAuthResult::Equals(
objectobj
)

Equals

boolGoogle::XR::Extensions::XRGoogleCloudAuthResult::Equals(
XRGoogleCloudAuthResult other
)

GetHashCode

overrideintGoogle::XR::Extensions::XRGoogleCloudAuthResult::GetHashCode()

ToString

overridestringGoogle::XR::Extensions::XRGoogleCloudAuthResult::ToString()

XRGoogleCloudAuthResult

Google::XR::Extensions::XRGoogleCloudAuthResult::XRGoogleCloudAuthResult(
OpenXRResultStatusstatus,
XRGoogleCloudAuthError error
)

Constructs auth result with OpenXRResultStatus and XRGoogleCloudAuthError.

Details
Parameters
status
The OpenXRResultStatus returned from relevant OpenXR APIs.
error
The XRGoogleCloudAuthError chained to the output.

XRGoogleCloudAuthResult

Google::XR::Extensions::XRGoogleCloudAuthResult::XRGoogleCloudAuthResult(
OpenXRResultStatusstatus
)

Constructs auth result with OpenXRResultStatus.

The OpenXR calls failed before accessing Google Cloud services, thus CloudAuthError defaults to XRGoogleCloudAuthError.None.

Details
Parameters
status
The OpenXRResultStatus returned from relevant OpenXR APIs.

XRGoogleCloudAuthResult

Google::XR::Extensions::XRGoogleCloudAuthResult::XRGoogleCloudAuthResult(
XRGoogleCloudAuthError error
)

Constructs auth result with XRGoogleCloudAuthError.

The authentication setup failed, and the Status can be ignored.

Details
Parameters
error
A XRGoogleCloudAuthError from dependent features.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年07月30日 UTC.