API reference
API reference
Select your platform
No SDKs available
No versions available

OperationResultExtensions Class

Extension methods for OVRSpatialAnchor.OperationResult.
An OVRSpatialAnchor.OperationResult represents the result of an asynchronous operation of a method in the OVRSpatialAnchor class.
An operation may either succeed, in which case IsSuccess is true, or fail, in which case IsError is true and the value of the OVRSpatialAnchor.OperationResult will provide the reason for the failure.

Static Methods

IsError ( res )
Tests whether an OVRSpatialAnchor.OperationResult represents an error.
Signature
static bool IsError(this OVRSpatialAnchor.OperationResult res)
Parameters
res: this OVRSpatialAnchor.OperationResult  The value to test.
Returns
bool  Returns true if res is an error result, otherwise false.
IsSuccess ( res )
Tests whether an OVRSpatialAnchor.OperationResult represents an unqualified success.
Signature
static bool IsSuccess(this OVRSpatialAnchor.OperationResult res)
Parameters
res: this OVRSpatialAnchor.OperationResult  The value to test.
Returns
bool  Returns true if res is a successful result, otherwise false.
IsWarning ( res )
(Obsolete) Tests whether an OVRSpatialAnchor.OperationResult represents a warning (also known as a "qualified success").
DeprecatedA warning (or "qualified success") means that the operation didn't fail, but succeeded with some additional information.
There are no OVRSpatialAnchor.OperationResult values that represent warnings, so this method need not be used.
Signature
static bool IsWarning(this OVRSpatialAnchor.OperationResult res)
Parameters
res: this OVRSpatialAnchor.OperationResult  The value to test.
Returns
bool  Returns true if res is a warning, otherwise false.