PointerCoordsBuilder


public class PointerCoordsBuilder


Builder for PointerCoords.

Summary

Public methods

MotionEvent.PointerCoords
static PointerCoordsBuilder
PointerCoordsBuilder
setCoords(float x, float y)
PointerCoordsBuilder
setOrientation(float orientation)
PointerCoordsBuilder
setPressure(float pressure)
PointerCoordsBuilder
setSize(float size)
PointerCoordsBuilder
setTool(float toolMajor, float toolMinor)
PointerCoordsBuilder
setTouch(float touchMajor, float touchMinor)

Public methods

build

public MotionEvent.PointerCoords build()

newBuilder

public static PointerCoordsBuilder newBuilder()

setCoords

public PointerCoordsBuilder setCoords(float x, float y)

setOrientation

public PointerCoordsBuilder setOrientation(float orientation)

setPressure

public PointerCoordsBuilder setPressure(float pressure)

setSize

public PointerCoordsBuilder setSize(float size)

setTool

public PointerCoordsBuilder setTool(float toolMajor, float toolMinor)

setTouch

public PointerCoordsBuilder setTouch(float touchMajor, float touchMinor)