接口 WindowLifecycleListener<T>
- 类型参数:
T- The type of Event in the window (e.g. Tuple).
public interface WindowLifecycleListener<T>
A callback for expiry, activation of events tracked by the
WindowManager-
方法概要
修饰符和类型方法说明default voidCalled on activation of the window due to theTriggerPolicyvoidCalled on expiry of events from the window due toEvictionPolicy
-
方法详细资料
-
onExpiry
Called on expiry of events from the window due toEvictionPolicy- 参数:
events- the expired events
-
onActivation
Called on activation of the window due to theTriggerPolicy- 参数:
events- the list of current events in the window.newEvents- the newly added events since last activation.expired- the expired events since last activation.referenceTime- the reference (event or processing) time that resulted in activation
-