setupMultiDisplay method

  1. @override
Future<void> setupMultiDisplay(
  1. List<String> entrypoints, {
  2. bool portBased = false,
})
override

Initializes the multi-display functionality with the specified configuration.

Parameters:

  • entrypoints: A list of entry point identifiers for the displays
  • portBased: Whether to use port-based communication (default: false)

This method must be called before using any multi-display features. The entrypoints parameter defines the entry points that will be available for displaying content on secondary screens.

Implementation

@override
Future<void> setupMultiDisplay(
  List<String> entrypoints, {
  bool portBased = false,
}) async {
  await methodChannel.invokeMethod('setupMultiDisplay', {
    'entrypoints': entrypoints,
    'portBased': portBased,
  });
}