AgoraPipContentViewLayout

Layout configuration for picture-in-picture video streams.

class AgoraPipContentViewLayout {
  final int? padding;
  final int? spacing;
  final int? row;
  final int? column;
  const AgoraPipContentViewLayout({this.padding, this.spacing, this.row, this.column});
}
Since
Available since v4.6.2.

This class defines the arrangement of multiple video streams in a flowing layout, where video streams are arranged from left to right and top to bottom.

Properties

padding
Padding around the entire layout in pixels. Used to create space between the layout edges and the video streams. If null, no padding is applied.
spacing
Horizontal and vertical spacing between video streams in pixels. Used to create consistent spacing between adjacent video streams. If null, video streams are placed directly next to each other.
row
Maximum number of rows allowed in the layout. Once the maximum number of rows is reached, no new rows are created even if more video streams exist. If null, rows are created as needed to accommodate all video streams. Must be greater than 0 or null.
column
Maximum number of video streams per row. Once the maximum is reached, a new row is started. If null, video streams will flow to fill the available width. Must be greater than 0 or null.