public abstract static class DragAndDrop.Target extends Object
Modifier and Type | Method and Description |
---|---|
abstract boolean |
drag(DragAndDrop.Source source,
DragAndDrop.Payload payload,
float x,
float y,
int pointer)
Called when the payload is dragged over the target.
|
abstract void |
drop(DragAndDrop.Source source,
DragAndDrop.Payload payload,
float x,
float y,
int pointer)
Called when the payload is dropped on the target.
|
Actor |
getActor() |
void |
reset(DragAndDrop.Source source,
DragAndDrop.Payload payload)
Called when the payload is no longer over the target, whether because the touch was moved or a drop occurred.
|
public Target(Actor actor)
public abstract boolean drag(DragAndDrop.Source source, DragAndDrop.Payload payload, float x, float y, int pointer)
public void reset(DragAndDrop.Source source, DragAndDrop.Payload payload)
#drag(Source, Payload, float, float, int)
returned false.public abstract void drop(DragAndDrop.Source source, DragAndDrop.Payload payload, float x, float y, int pointer)
#drag(Source, Payload, float, float, int)
returned false.public Actor getActor()
Copyright © 2020. All rights reserved.