RepeatedActionThrottler class
A Throttler that passes through all actions but will only let an action be repeated once every 2 seconds.
- Extends
Properties
repeat |
Methods
throttled(Extended |
Property Details
repeatInterval
number repeatInterval
Property Value
number
Method Details
throttled(ExtendedMediaSessionActionDetails | MediaSessionActionDetails, MediaSessionActionHandler)
function throttled(details: ExtendedMediaSessionActionDetails | MediaSessionActionDetails, handler?: MediaSessionActionHandler)
Parameters
- details
-
ExtendedMediaSessionActionDetails | MediaSessionActionDetails
- handler
-
MediaSessionActionHandler