在 API 级别 XE22 中添加
一个在给定宽限期内从左到右以动画形式呈现的滑块, timeInMs,然后在运行相应的回调后自行关闭。 在宽限期结束或取消之前保持可见状态。
用法示例:
GracePeriod slider = Slider.from(view).startGracePeriod(listener);
// animates for timeInMs milliseconds and then dismisses itself,
// unless slider.cancel() is called in the meanwhile
| 嵌套类 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 接口 | Slider.GracePeriod.Listener | 监听器回调。 | |||||||||
| 公共方法 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 抽象 无效 |
cancel()
|
||||||||||
公共方法
在 API 级别 XE22 中添加
<ph type="x-smartling-placeholder"></ph> 公开 抽象 无效 取消 ()
取消宽限期。如果在宽限期内来电,则关闭 宽限期。如果宽限期已正常完成,不执行任何操作。