Class ARSessionOptions
java.lang.Object
com.codename1.ar.ARSessionOptions
Configuration for an ARSession. Fluent builder.
The defaults open a world tracking session that detects horizontal planes and estimates lighting, which suits the common place-content-on-a-surface use case.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhich surface orientations the session detects.The registered reference images as a newly allocated array.The tracking configuration to run.booleanTrue when the session estimates real-world lighting.lightEstimation(boolean on) Whether to estimate real-world lighting.planeDetection(ARPlaneDetection detection) Which surface orientations to detect.referenceImages(ARReferenceImage[] images) Reference images the session should detect.trackingMode(ARTrackingMode mode) The tracking configuration to run.
-
Constructor Details
-
ARSessionOptions
public ARSessionOptions()
-
-
Method Details
-
trackingMode
The tracking configuration to run. DefaultARTrackingMode#WORLD. -
planeDetection
Which surface orientations to detect. DefaultARPlaneDetection#HORIZONTAL. Ignored in face tracking sessions. -
lightEstimation
Whether to estimate real-world lighting. Default true. -
referenceImages
Reference images the session should detect. When any are registered, detected images are delivered asARImageAnchors through the anchor listener. Default none. -
getTrackingMode
The tracking configuration to run. -
getPlaneDetection
Which surface orientations the session detects. -
isLightEstimation
public boolean isLightEstimation()True when the session estimates real-world lighting. -
getReferenceImages
The registered reference images as a newly allocated array.
-