PixelSensorAsyncOperation
NameSpace: PixelSensors
A class that represents any asynchronous operation that the pixel sensor performs
Inherited by:
MagicLeap.OpenXR.Features.PixelSensors.PixelSensorConfigureOperation,
MagicLeap.OpenXR.Features.PixelSensors.PixelSensorStartOperation,
MagicLeap.OpenXR.Features.PixelSensors.PixelSensorStopOperation
Public Fields
OperationResult
public PixelSensorAsyncOperationResult OperationResult { get; set; }
Type | Description |
---|---|
PixelSensorAsyncOperationResult | Represents the progress of an async Pixel sensor operation |
Protected Fields
IncomingValidStatus
protected abstract HashSet< PixelSensorStatus > IncomingValidStatus { get; set; }
Type | Description |
---|---|
abstract HashSet< PixelSensorStatus > | The status of a sensor |
OperationFinishStatus
protected abstract PixelSensorStatus OperationFinishStatus { get; set; }
Type | Description |
---|---|
abstract PixelSensorStatus | The status of a sensor |
OperationStartStatus
protected abstract PixelSensorStatus OperationStartStatus = new() { get; set; }
Type | Description |
---|---|
abstract PixelSensorStatus | The status of a sensor |
Public Methods
void PollOperation
public void PollOperation()
void Start
public void Start(
IEnumerable< uint > streams
)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable< uint > | streams |
Protected Methods
OnOperationSucceeded
protected virtual void OnOperationSucceeded()
OperationCompleted
protected virtual abstract bool OperationCompleted()
StartOperation
protected virtual abstract bool StartOperation()
Public Attributes
DidOperationFinish
public bool DidOperationFinish => OperationResult.DidOperationFinish || OperationResult.DidOperationFail;
Protected Attributes
Future
protected XrFuture Future;
OperationFailedStatus
protected PixelSensorStatus OperationFailedStatus => PixelSensorStatus.Undefined;
Type | Description |
---|---|
PixelSensorStatus | The status of a sensor |