unpin method
- 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
-
pinType(optional): Specifies which media stream to unpin. Defaults to PinType.SHARE_AND_CAM.Possible values:
- PinType.SHARE_AND_CAM: Unpins both camera and screen-share streams
- PinType.CAM: Unpins only the camera stream
- PinType.SHARE: Unpins only the screen-share stream
Returns
- A
Future<void>that completes once the native SDK accepts the request, or throws a VideoSDKError carrying itscodeandname.
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);