ArVirtualTryOn class

Unified entry point for rigid 3D accessory try-on.

Hand/foot/body modes use MediaPipe and Three.js in a browser or Android WebView. They are visual previews, not physical sizing or cloth simulation.

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
no setter

Static Methods

defaultSize(ArTarget target) → double
Suggested longest dimension in meters; tune for each asset.
open({required String modelUri, required ArTarget target, double? modelSizeM, double offsetX = 0, double? offsetY, double? offsetZ, double rotationX = 0, double rotationY = 0, double rotationZ = 0, ArTryOnCamera camera = ArTryOnCamera.rear}) → Future<void>
Opens a local picker result or supported model URI.
openUrl({required String url, required ArTarget target, double? modelSizeM, double offsetX = 0, double? offsetY, double? offsetZ, double rotationX = 0, double rotationY = 0, double rotationZ = 0, ArTryOnCamera camera = ArTryOnCamera.rear}) → Future<void>
Open a direct HTTPS GLB URL (CORS required in a browser).
pickAndOpen({required ArTarget target, double? modelSizeM, double offsetX = 0, double? offsetY, double? offsetZ, double rotationX = 0, double rotationY = 0, double rotationZ = 0, ArTryOnCamera camera = ArTryOnCamera.rear}) → Future<ArGlbFile?>
Select a local GLB and open the specified target.
supportsTarget(ArTarget target) → bool
Platform-level availability, not a hardware or model readiness check.