Skip to main content
Version: 20 Mar 2024

MLHeadsetFit

NameSpace: MagicLeap

MLHeadsetFit Summary placeholder. More...

Inherits from:
MLAutoAPISingleton< MLHeadsetFit >,
MLLazySingleton< T >

Detailed Description

public class MLHeadsetFit : MLAutoAPISingleton< MLHeadsetFit > 

Details*

MLHeadsetFit description goes here.


Public Methods

MLResult GetState

Gets information about the user's current headset fit.

public static MLResult GetState(
out State state
)

Parameters

TypeNameDescription
out StatestateHeadset fit state

Protected Methods

OnApplicationPause

Handle Unity application pause and resume

protected virtual override void OnApplicationPause(
bool pauseStatus
)

Parameters

TypeNameDescription
boolpauseStatusIf the application is now paused or not

Reimplements: OnApplicationPause


StartAPI

Start the API.

protected virtual override MLResult.Code StartAPI()

Reimplements: StartAPI


StopAPI

Stop the API.

protected virtual override MLResult.Code StopAPI()

Reimplements: StopAPI


Public Enums

Status

Represents the different fit status that the system can report. If status is neither NotWorn nor Unknown, then headset is being worn.

EnumeratorValueDescription
Unknown0Headset fit status not available for unknown reason.
NotWornHeadset not worn.
GoodFitGood fit.
BadFitBad fit.