lightbulb_outline Please take our October 2018 developer survey. Start survey

PointerCoordsBuilder

public class PointerCoordsBuilder
extends Object

java.lang.Object
   ↳ androidx.test.core.view.PointerCoordsBuilder


Builder for MotionEvent.PointerCoords.

Summary

Public methods

MotionEvent.PointerCoords build()
static PointerCoordsBuilder newBuilder()
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)

Inherited methods

From class java.lang.Object

Public methods

newBuilder

PointerCoordsBuilder newBuilder ()

Returns
PointerCoordsBuilder

setCoords

PointerCoordsBuilder setCoords (float x, 
                float y)

Parameters
x float

y float

Returns
PointerCoordsBuilder

setOrientation

PointerCoordsBuilder setOrientation (float orientation)

Parameters
orientation float

Returns
PointerCoordsBuilder

setPressure

PointerCoordsBuilder setPressure (float pressure)

Parameters
pressure float

Returns
PointerCoordsBuilder

setSize

PointerCoordsBuilder setSize (float size)

Parameters
size float

Returns
PointerCoordsBuilder

setTool

PointerCoordsBuilder setTool (float toolMajor, 
                float toolMinor)

Parameters
toolMajor float

toolMinor float

Returns
PointerCoordsBuilder

setTouch

PointerCoordsBuilder setTouch (float touchMajor, 
                float touchMinor)

Parameters
touchMajor float

touchMinor float

Returns
PointerCoordsBuilder