The Android XR SDK has reached Developer Preview 4, and we want your feedback! Try things out, and visit our support page to reach out.

ARFaceManagerExtensions

Extensions to AR Foundation's ARFaceManager.

Summary

Public static functions

TryGetFaceTrackerMode(this ARFaceManager faceManager, out XRFaceTrackerMode faceTrackerMode)
bool
Extension method to ARFaceManager that attempts to retrieve current face tracking modality.

Public static functions

TryGetFaceTrackerMode

boolTryGetFaceTrackerMode(
thisARFaceManagerfaceManager,
outXRFaceTrackerMode faceTrackerMode
)

Extension method to ARFaceManager that attempts to retrieve current face tracking modality.

Details
Parameters
faceManager
ARFaceManager to get the modality from.
faceTrackerMode
XRFaceTrackerMode to fill out with up-to-date data, if the method returns .
Returns
Returns if successful and faceTrackerMode was filled out with up-to-date data, returns otherwise.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年07月30日 UTC.