Package komposten.leapjna.leapc.events
Class LEAP_POLICY_EVENT
java.lang.Object
com.sun.jna.Structure
komposten.leapjna.leapc.events.LEAP_POLICY_EVENT
- All Implemented Interfaces:
LEAP_EVENT
@FieldOrder({"reserved","current_policy"})
public class LEAP_POLICY_EVENT
extends Structure
implements LEAP_EVENT
The response from a request to get or set a policy.
LeapC.LeapPollConnection(Pointer, int, LEAP_CONNECTION_MESSAGE)
creates this
struct when the response becomes available.
- Since:
- LeapJna 1.0.0, Ultraleap Orion SDK 3.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.jna.Structure
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
A bitfield containing the policies effective at the time the policy event was processed.int
Reserved for future use.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
reserved
public int reservedReserved for future use. -
current_policy
public int current_policyA bitfield containing the policies effective at the time the policy event was processed. UsegetCurrentPolicy()
to get the policies as an array ofeLeapPolicyFlag
values.
-
-
Constructor Details
-
LEAP_POLICY_EVENT
-
-
Method Details
-
getCurrentPolicy
- Returns:
- An array containing the current
eLeapPolicyFlag
s.
-