ArFacePlacement class
Experimental 3D face try-on using ARCore on Android and MediaPipe/Three.js on Web.
Does not use the ML Kit 2D overlay or create world anchors.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isSupported → bool
-
Platform availability only; individual devices may lack ARCore support.
no setter
Static Methods
-
open(
{required String modelUri, ArFaceRegion region = ArFaceRegion.faceCenter, double modelSizeM = 0.15, double offsetX = 0, double offsetY = 0.025, double offsetZ = 0.06, double rotationX = 0, double rotationY = 0, double rotationZ = 0, bool occlusion = false}) → Future< void> - Opens a front-camera AR screen with a face-relative GLB model.
-
openUrl(
{required String url, ArFaceRegion region = ArFaceRegion.faceCenter, double modelSizeM = 0.15, double offsetX = 0, double offsetY = 0.025, double offsetZ = 0.06, double rotationX = 0, double rotationY = 0, double rotationZ = 0, bool occlusion = false}) → Future< void> - Opens a remote standalone HTTPS GLB. Browser model servers must allow CORS.
-
pickAndOpen(
{ArFaceRegion region = ArFaceRegion.faceCenter, double modelSizeM = 0.15, double offsetX = 0, double offsetY = 0.025, double offsetZ = 0.06, double rotationX = 0, double rotationY = 0, double rotationZ = 0, bool occlusion = false}) → Future< ArGlbFile?> - Pick a GLB and launch native Face AR, returning null on cancellation.
-
pickGlb(
) → Future< ArGlbFile?>