setAllowsExternalPlayback method

  1. @override
Future<SetAllowsExternalPlaybackResponse> setAllowsExternalPlayback(
  1. SetAllowsExternalPlaybackRequest request
)
override

On iOS and macOS, sets the allowsExternalPlayback option, and does nothing on other platforms.

Implementation

@override
Future<SetAllowsExternalPlaybackResponse> setAllowsExternalPlayback(
    SetAllowsExternalPlaybackRequest request) async {
  return SetAllowsExternalPlaybackResponse.fromMap(
      (await _channel.invokeMethod<Map<dynamic, dynamic>>(
          'setAllowsExternalPlayback', request.toMap()))!);
}