Skip to main content
Version: 20 Mar 2024

MLFacialExpression

NameSpace: MagicLeap

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

Public Methods

MLResult.Code GetEyeData

Get the latest eye data from the Facial Expression system.

public static MLResult.Code GetEyeData(
out EyeData data
)

Parameters

TypeNameDescription
out EyeDatadataA structure containing information about eye expressions.

MLResult.Code UpdateSettings

Updates Facial Expression system with new settings.

public static MLResult.Code UpdateSettings(
in Settings settings
)

Parameters

TypeNameDescription
in SettingssettingsA structure containing settings for the facial expressions.

Returns:


Protected Methods

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

EyeExpressionType

Available facial expressions.

EnumeratorValueDescription
BlinkLeft0Blinking the left eye.
BlinkRightBlinking of the right eye.
LidTightenerLeftLower Lid upward movement of the left eye.
LidTightenerRightLower Lid upward movement of the right eye.
EyeOpennessLeftUpper lid upward movement of the left eye.
EyeOpennessRightUpper lid upward movement of the right eye.
CheekRaiserLeftUpward cheek movement, left.
CheekRaiserRightUpward cheek movement, right.
BrowLowererLeftDownward brow movement, left.
BrowLowererRightDownward brow movement, right.
BrowRaiserLeftUpward brow movement, left side.
BrowRaiserRightUpward brow movement, right side.