setActionHandler static method

void setActionHandler(
  1. String action,
  2. MediaSessionActionHandler callback
)

Sets an action handler for a media session action, such as play or pause.

Implementation

static void setActionHandler(
  String action,
  MediaSessionActionHandler callback,
) =>
    _setActionHandler(action, js.allowInterop(callback));