Compartilhar via


RepeatedActionThrottler class

A Throttler that passes through all actions but will only let an action be repeated once every 2 seconds.

Extends

Properties

repeatInterval

Methods

throttled(ExtendedMediaSessionActionDetails | MediaSessionActionDetails, MediaSessionActionHandler)

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