Skip to main content
Version: 12 Dec 2024

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; }

TypeDescription
PixelSensorAsyncOperationResultRepresents the progress of an async Pixel sensor operation

Protected Fields

IncomingValidStatus


protected abstract HashSet< PixelSensorStatus > IncomingValidStatus { get; set; }

TypeDescription
abstract HashSet< PixelSensorStatus >The status of a sensor

OperationFinishStatus


protected abstract PixelSensorStatus OperationFinishStatus { get; set; }

TypeDescription
abstract PixelSensorStatusThe status of a sensor

OperationStartStatus


protected abstract PixelSensorStatus OperationStartStatus = new() { get; set; }

TypeDescription
abstract PixelSensorStatusThe status of a sensor

Public Methods

void PollOperation

public void PollOperation()

void Start

public void Start(
IEnumerable< uint > streams
)

Parameters

TypeNameDescription
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;

TypeDescription
PixelSensorStatusThe status of a sensor