public class RotationEvent extends APIBean
| Constructor and Description |
|---|
RotationEvent()
Default constructor.
|
RotationEvent(ICapabilitiesOrientation origin,
ICapabilitiesOrientation destination,
RotationEventState state,
long timestamp)
Convenience constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ICapabilitiesOrientation |
getDestination()
Gets the destination orientation of the event.
|
ICapabilitiesOrientation |
getOrigin()
Get the origin orientation of the event.
|
RotationEventState |
getState()
Gets the current state of the event.
|
long |
getTimestamp()
Gets the timestamp in milliseconds of the event.
|
void |
setDestination(ICapabilitiesOrientation destination)
Sets the destination orientation of the event.
|
void |
setOrigin(ICapabilitiesOrientation origin)
Set the origin orientation of the event.
|
void |
setState(RotationEventState state)
Sets the current state of the event.
|
void |
setTimestamp(long timestamp)
Sets the timestamp in milliseconds of the event.
|
public RotationEvent()
public RotationEvent(ICapabilitiesOrientation origin, ICapabilitiesOrientation destination, RotationEventState state, long timestamp)
origin - Source orientation when the event was fired.destination - Destination orientation when the event was fired.state - State of the event (WillBegin, DidFinish).timestamp - Timestamp in milliseconds when the event was fired.public ICapabilitiesOrientation getDestination()
public void setDestination(ICapabilitiesOrientation destination)
destination - Destination orientation.public ICapabilitiesOrientation getOrigin()
public void setOrigin(ICapabilitiesOrientation origin)
origin - Origin orientationpublic RotationEventState getState()
public void setState(RotationEventState state)
state - The state of the event.public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - Timestamp of the event.