updateAvailableActions method

  1. @override
Future<void> updateAvailableActions(
  1. Set<MediaAction>? actions
)
override

Updates the set of media actions available in system controls.

Actions not in actions will be disabled (hidden or greyed out) in the notification and lock screen. Pass null to enable all actions.

Implementation

@override
Future<void> updateAvailableActions(Set<MediaAction>? actions) async {
  await methodChannel.invokeMethod(
    'updateAvailableActions',
    actions?.map((a) => a.name).toList(),
  );
}