ArkitArService class
ARKit implementation of ArService for iOS.
Uses arkit_plugin to provide plane detection, hit testing, and 3D marker rendering via ARKit's SceneKit integration.
Distance measurement pattern ported from arkit_flutter_plugin examples: measure_page.dart and distance_tracking_page.dart.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onPlaneDetected
→ Stream<
ArPlane> -
Stream of detected planes.
no setteroverride
- platform → ArPlatform
-
Which platform is active.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trackingState → ArTrackingState
-
Current tracking state.
no setteroverride
Methods
-
addDistanceLine(
String markerIdA, String markerIdB, ArMeasurement measurement) → Future< void> -
Add a distance line between two markers.
override
-
addMarker(
ArHitResult hitResult, {String? label}) → Future< String> -
Add a measurement marker at a hit result position.
override
-
attachController(
ARKitController controller) → void - Initialize with an ARKitController from the ARKitSceneView widget.
-
clearMarkers(
) → Future< void> -
Remove all markers.
override
-
dispose(
) → Future< void> -
Clean up resources.
override
-
hitTest(
double screenX, double screenY) → Future< List< ArHitResult> > -
Perform a hit test at screen coordinates (normalized 0-1).
override
-
isSupported(
) → Future< bool> -
Whether AR is supported on this device.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeMarker(
String markerId) → Future< void> -
Remove a marker by its ID.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited