unpin method

Future<void> unpin([
  1. PinType pinType = PinType.SHARE_AND_CAM
])

Unpins the participant’s media streams.

  • This method allows you to unpin the participant’s camera stream, screen-share stream, or both. Unpinning removes the participant’s media from the pinned state in the UI layout.

Parameters

Returns

  • A Future<void> that completes once the native SDK accepts the request, or throws a VideoSDKError carrying its code and name.

Example

// Unpin only the participant's camera
await participant.unpin(PinType.CAM);

// Unpin both camera and screen share (default)
await participant.unpin();

Implementation

Future<void> unpin([PinType pinType = PinType.SHARE_AND_CAM]) =>
    _unpin(pinType);