Most visited

Recently visited

Added in API level 24

GestureDescription.StrokeDescription

public static class GestureDescription.StrokeDescription
extends Object

java.lang.Object
    android.accessibilityservice.GestureDescription.StrokeDescription


不断变化的描述可以成为手势的一部分。

摘要(Summary)

Public constructors

GestureDescription.StrokeDescription(Path path, long startTime, long duration)

公共方法(Public methods)

long getDuration()

获取中风的持续时间

Path getPath()

检索此笔画的路径副本

long getStartTime()

获取笔画的开始时间

继承方法(Inherited methods)

From class java.lang.Object

Public constructors

GestureDescription.StrokeDescription

Added in API level 24
GestureDescription.StrokeDescription (Path path, 
                long startTime, 
                long duration)

参数(Parameters)
path Path: The path to follow. Must have exactly one contour. The bounds of the path must not be negative. The path must not be empty. If the path has zero length (for example, a single moveTo()), the stroke is a touch that doesn't move.
startTime long: The time, in milliseconds, from the time the gesture starts to the time the stroke should start. Must not be negative.
duration long: The duration, in milliseconds, the stroke takes to traverse the path. Must not be negative.

公共方法(Public methods)

getDuration

Added in API level 24
long getDuration ()

获取中风的持续时间

返回(Returns)
long the duration for this stroke

getPath

Added in API level 24
Path getPath ()

检索此笔画的路径副本

返回(Returns)
Path A copy of the path

getStartTime

Added in API level 24
long getStartTime ()

获取笔画的开始时间

返回(Returns)
long the start time for this stroke.

Hooray!