to top
Datalogic APIs
public static class

PoseManager.Pose.Builder

extends Object
java.lang.Object
   ↳ com.datalogic.device.configuration.PoseManager.Pose.Builder

Class Overview

The builder for the PoseManager.Pose.

Summary

Public Constructors
Builder()
Create a new Builder for the PoseManager.Pose object, with the following default values: The name and gravity vector must be set before building the Profile object.
Public Methods
PoseManager.Pose build()
Build and return a newly created Pose object.
PoseManager.Pose.Builder withDetectionEnabled(boolean detectionEnabled)
Set if the detection of this pose is enabled.
PoseManager.Pose.Builder withGravityVector(PoseManager.GravityVector gravityVector)
Set the gravity vector.
PoseManager.Pose.Builder withInPoseSettings(PoseManager.PoseSettings inPoseSettings)
Set the in pose settings.
PoseManager.Pose.Builder withName(String name)
Set the pose name.
PoseManager.Pose.Builder withOutOfPoseSettings(PoseManager.PoseSettings outOfPoseSettings)
Set the out of pose settings.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Added in revision 47

Create a new Builder for the PoseManager.Pose object, with the following default values:

The name and gravity vector must be set before building the Profile object.

Public Methods

public PoseManager.Pose build ()

Added in revision 47

Build and return a newly created Pose object. The created object is guaranteed to be valid and ready to use.

Returns
  • The Pose object.
Throws
IllegalStateException if the name or gravity vector is not set or is invalid.

public PoseManager.Pose.Builder withDetectionEnabled (boolean detectionEnabled)

Added in revision 47

Set if the detection of this pose is enabled.

Parameters
detectionEnabled true to enable detection, false otherwise.
Returns
  • This builder instance.

public PoseManager.Pose.Builder withGravityVector (PoseManager.GravityVector gravityVector)

Added in revision 47

Set the gravity vector.

Parameters
gravityVector The gravity vector of the pose.
Returns
  • This builder instance.

public PoseManager.Pose.Builder withInPoseSettings (PoseManager.PoseSettings inPoseSettings)

Added in revision 47

Set the in pose settings.

Parameters
inPoseSettings The in pose settings.
Returns
  • This builder instance.

public PoseManager.Pose.Builder withName (String name)

Added in revision 47

Set the pose name. The name must be non empty and unique among all poses. It is used to identify the pose when creating it.

Parameters
name The name of the pose.
Returns
  • This builder instance.
Throws
IllegalArgumentException if the name is empty or null.

public PoseManager.Pose.Builder withOutOfPoseSettings (PoseManager.PoseSettings outOfPoseSettings)

Added in revision 47

Set the out of pose settings.

Parameters
outOfPoseSettings The out of pose settings.
Returns
  • This builder instance.