A slider that animates from left to right during the given grace period in timeInMs and then dismisses itself after running the appropriate callback. Remains visible until grace period runs out or is cancelled.
GracePeriod slider = Slider.from(view).startGracePeriod(listener); // animates for timeInMs milliseconds and then dismisses itself, // unless slider.cancel() is called in the meanwhile
public abstract void cancel ()
Cancels grace period. If called during the grace period, dismisses the grace period. Does nothing if grace period already completed normally.