FlutterPresentationDisplay class
Constructors
- FlutterPresentationDisplay.new()
- Constructor to initialize event and method channels
Properties
-
connectedDisplaysChangedStream
→ Stream<
int?> -
Stream to listen for changes in connected displays (events from native side)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDisplays(
{String? category}) → Future< List< Display> ?> - Retrieves a list of available displays, optionally filtered by category
-
getNameByDisplayId(
int displayId, {String? category}) → Future< String?> - Gets the name of a display by its ID, optionally filtered by category
-
getNameByIndex(
int index, {String? category}) → Future< String?> - Gets the name of a display by its index in the list of displays
-
hideSecondaryDisplay(
{required int displayId}) → Future< bool?> - Hides the secondary display (presentation) for the given display ID
-
listenDataFromMainDisplay(
dynamic onDataReceived(dynamic)) → void - Listens for data sent from the main display Calls the provided callback function when data is received
-
listenDataFromPresentationDisplay(
dynamic onDataReceived(dynamic)) → void - Listens for data sent from the secondary display (presentation) Calls the provided callback function when data is received
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showSecondaryDisplay(
{required int displayId, required String routerName}) → Future< bool?> - Shows the secondary display (presentation) with the given display ID and router name
-
toString(
) → String -
A string representation of this object.
inherited
-
transferDataToMain(
dynamic arguments) → Future< bool?> - Transfers data to the main display through the native platform
-
transferDataToPresentation(
dynamic arguments) → Future< bool?> - Transfers data to the secondary display (presentation) through the native platform
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited