Slider.GracePeriod

此项为 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 监听器回调。
公共方法
抽象 无效
取消()

公共方法

在 API 级别 XE22 中添加

public abstract void cancel ()

取消宽限期。如果在宽限期内调用,则关闭宽限期。如果宽限期已正常完成,则不会执行任何操作。