目前设计的接口:
当设置时间 > 0 的时候,超时时间会生效, 如果设置 <= 0 ,则不会自动生成
使用: UIExtensionsManager#setInkDrawingTimeout(long timeoutMillis)
/**
* Sets a timeout for Ink drawing. If the drawing action stops and exceeds the timeout,
* an Ink annotation will be automatically created.
* <P>
* The default value is -1, which disables the timeout. If the timeout value is less than or equal to 0, the timeout feature is disabled.
*
* @param timeoutMillis The timeout duration in milliseconds. Default is -1 to disable.
*/
public void setInkDrawingTimeout(long timeoutMillis) {
mInkTimeOut = timeoutMillis;
}
/**
* Gets the current timeout value for Ink drawing.
* <P>
* The default value is -1, which disables the timeout. If the timeout value is less than or equal to 0, the timeout feature is disabled.
*
* @return The timeout duration in milliseconds. Default is -1 to disable.
*/
public long getInkDrawingTimeout() {
return mInkTimeOut;
}