public class TransformedMotionEvent
Modifier and Type | Class and Description |
---|---|
static class |
TransformedMotionEvent.TransformDiff |
Modifier and Type | Method and Description |
---|---|
static float |
calcSnapArea(float radius,
float snapRangeInPixel,
float pixelDensity) |
static float |
distance(float pos1X,
float pos1Y,
float pos2X,
float pos2Y) |
static float |
distance(kotlin.Array[] pos1,
kotlin.Array[] pos2) |
int |
getActionMasked()
Return the kind of action being performed. Consider using
and MotionEvent#getActionIndex to retrieve the separate masked action and pointer index. |
kotlin.Array[] |
getInterpolatedPosition(kotlin.Array[] dest) |
int |
getPointerCount()
The number of pointers of data contained in this event. Always >= 1.
|
kotlin.Array[] |
getPosition(int index)
Get the transformed pos of the point.
|
kotlin.Array[] |
getPosition(int index,
kotlin.Array[] dest)
Get the transformed pos of the point.
|
MotionEvent |
getRawEvent() |
TransformedMotionEvent |
getScreenEvent() |
TransformedMotionEvent.TransformDiff |
getTransformDifference()
Return the differences to the checkpoint. The initial values are (xDiff = 0, yDiff = 0; angleDiff = 0; distanceDiff, scale = 1)
|
boolean |
hasClicked()
Check if the event is a click.
|
boolean |
hasDoubleTapped() |
boolean |
hasFixedCenterPoint()
Return if the event has a fixed center point to emulate a multitouch rotating and scaling Event.
|
boolean |
isCheckpoint()
If this return true you must saveImage your current state. The TransformDifference values will be at the start values. (xDiff = 0, yDiff = 0; angleDiff = 0; distanceDiff, scale = 1;)
|
boolean |
isRelease() |
static float |
mapFromSnapSystem(float angle,
kotlin.Array[] sortedSnapPoints,
float snapArea) |
static float |
mapToSnapSystem(float angle,
kotlin.Array[] sortedSnapPoints,
float snapArea) |
static TransformedMotionEvent |
obtain(MotionEvent event) |
static TransformedMotionEvent |
obtain(MotionEvent event,
Matrix matrix) |
void |
recycle() |
void |
setFixedCenterPoint(kotlin.Array[] pos)
Set a center point to emulate a multitouch rotating and scaling Event
|
void |
setFixedCenterPoint(float x,
float y)
Set a center point to emulate a multitouch rotating and scaling Event
|
public static TransformedMotionEvent obtain(MotionEvent event)
public static TransformedMotionEvent obtain(MotionEvent event, Matrix matrix)
public void recycle()
public static float distance(float pos1X, float pos1Y, float pos2X, float pos2Y)
public static float distance(kotlin.Array[] pos1, kotlin.Array[] pos2)
public TransformedMotionEvent.TransformDiff getTransformDifference()
Return the differences to the checkpoint. The initial values are (xDiff = 0, yDiff = 0; angleDiff = 0; distanceDiff, scale = 1)
public int getPointerCount()
The number of pointers of data contained in this event. Always >= 1.
public void setFixedCenterPoint(kotlin.Array[] pos)
Set a center point to emulate a multitouch rotating and scaling Event
pos
- org.jetbrains.dokka.NodeRenderContent@674e116e: center point array {x, y}.public void setFixedCenterPoint(float x, float y)
Set a center point to emulate a multitouch rotating and scaling Event
x
- org.jetbrains.dokka.NodeRenderContent@16d3c249: center point x.y
- org.jetbrains.dokka.NodeRenderContent@f6b5436: center point y.public boolean isCheckpoint()
If this return true you must saveImage your current state. The TransformDifference values will be at the start values. (xDiff = 0, yDiff = 0; angleDiff = 0; distanceDiff, scale = 1;)
#getTransformDifference()
public MotionEvent getRawEvent()
public TransformedMotionEvent getScreenEvent()
public boolean hasFixedCenterPoint()
Return if the event has a fixed center point to emulate a multitouch rotating and scaling Event.
public boolean hasClicked()
Check if the event is a click.
public boolean hasDoubleTapped()
public boolean isRelease()
public int getActionMasked()
Return the kind of action being performed. Consider using
and MotionEvent#getActionIndex to retrieve the separate masked action and pointer index.ly.img.android.pesdk.utils.TransformedMotionEvent$getActionMasked()
ly.img.android.pesdk.utils.TransformedMotionEvent$getActionMasked()
public kotlin.Array[] getPosition(int index)
Get the transformed pos of the point.
index
- org.jetbrains.dokka.NodeRenderContent@962c52c: point index @see #getPointerCountpublic kotlin.Array[] getPosition(int index, kotlin.Array[] dest)
Get the transformed pos of the point.
index
- org.jetbrains.dokka.NodeRenderContent@4b99edbe: point index @see #getPointerCountpublic kotlin.Array[] getInterpolatedPosition(kotlin.Array[] dest)
public static float calcSnapArea(float radius, float snapRangeInPixel, float pixelDensity)
public static float mapToSnapSystem(float angle, kotlin.Array[] sortedSnapPoints, float snapArea)
public static float mapFromSnapSystem(float angle, kotlin.Array[] sortedSnapPoints, float snapArea)