Skip to content

Provide helper functions for channel buffer 'resize' and 'overflow' commands #132386

@bleroux

Description

@bleroux

Is there an existing issue for this?

Use case

Plugin developpers might need to configure the behaviors of their channel buffers. This is also needed to implement a solution for #125975.

Channel buffer documentation explains how to resize a channel buffer and how to configure the visibility of the error message related to overflow. This feature is implemented with a dedicated control channel that accepts two messages named 'resize' and 'overflow'.
For reference see:
https://github.com/flutter/engine/blob/93e8901490e78c7ba7e319cce4470d9c6478c6dc/lib/ui/channel_buffers.dart#L302-L309

The engine provides a way to call the 'resize' command on Android and iOS, but not on other platforms.
There is no utility method implemented to call the 'overflow' command.

Proposal

Provide helper functions to easily invoke the 'resize' and 'overflow' command on the control channel for all platforms.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: proposalA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions