to top
Datalogic APIs
public static class

PoseManager.Pose

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

Class Overview

Represents a single device pose, defined by a name, gravity vector and associated settings. A pose can have actions configured for when the device enters or exits it.

Summary

Nested Classes
class PoseManager.Pose.Builder The builder for the PoseManager.Pose
Public Methods
PoseManager.GravityVector getGravityVector()
Get the gravity vector.
PoseManager.PoseSettings getInPoseSettings()
Get the settings used when the device enters this pose.
String getName()
Get the unique pose name.
PoseManager.PoseSettings getOutOfPoseSettings()
Get the settings used when the device exits this pose.
boolean isDetectionEnabled()
Check if the detection of this device pose is on.
void setDetectionEnabled(boolean detectionEnabled)
Set if the detection of this pose is enabled.
void setGravityVector(PoseManager.GravityVector gravityVector)
Set the gravity vector.
void setInPoseSettings(PoseManager.PoseSettings inPoseSettings)
Modify the settings used when the device enters this pose.
void setName(String name)
Set the unique pose name.
void setOutOfPoseSettings(PoseManager.PoseSettings outOfPoseSettings)
Modify the settings used when the device exits this pose.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public PoseManager.GravityVector getGravityVector ()

Added in revision 47

Get the gravity vector.

Returns
  • The gravity vector.

public PoseManager.PoseSettings getInPoseSettings ()

Added in revision 47

Get the settings used when the device enters this pose.

Returns
  • The in pose settings.

public String getName ()

Added in revision 47

Get the unique pose name.

Returns
  • The unique pose name.

public PoseManager.PoseSettings getOutOfPoseSettings ()

Added in revision 47

Get the settings used when the device exits this pose.

Returns
  • The out of pose settings.

public boolean isDetectionEnabled ()

Added in revision 47

Check if the detection of this device pose is on.

Returns
  • true if the detection is on, false otherwise.

public void setDetectionEnabled (boolean detectionEnabled)

Added in revision 47

Set if the detection of this pose is enabled.

Parameters
detectionEnabled true to enable the detection of this pose, false otherwise.

public void setGravityVector (PoseManager.GravityVector gravityVector)

Added in revision 47

Set the gravity vector.

Parameters
gravityVector The gravity vector.

public void setInPoseSettings (PoseManager.PoseSettings inPoseSettings)

Added in revision 47

Modify the settings used when the device enters this pose.

Parameters
inPoseSettings The in pose settings.

public void setName (String name)

Added in revision 47

Set the unique pose name. The check on the uniqueness of this name will be done only when setting this pose inside the list of poses in the ConfigurationManager Blob Property with ID POSE_MANAGER_DEVICE_POSES.

Parameters
name The unique pose name.
Throws
IllegalArgumentException if the name is empty or null.

public void setOutOfPoseSettings (PoseManager.PoseSettings outOfPoseSettings)

Added in revision 47

Modify the settings used when the device exits this pose.

Parameters
outOfPoseSettings The out of pose settings.