onSnapshotComplete property
final
Finished Taking a Local Screenshot
- Parameters:
- data(Uint8List):
- Screenshot data. If it is
nullptr
, it indicates that the SDK failed to take the screenshot.
- Screenshot data. If it is
- format(TRTCVideoPixelFormat):
- Screenshot data format. Only
TRTCVideoPixelFormat_BGRA32
is supported now.
- Screenshot data format. Only
- height(int):
- Screenshot height.
- length(int):
- Screenshot data length. In BGRA32 format, length = width * height * 4.
- type(TRTCVideoStreamType):
- Video stream type.
- userId(String):
- User ID. If it is empty, the screenshot is a local image.
- width(int):
- Screenshot width.
- data(Uint8List):
Implementation
final void Function(String userId, TRTCVideoStreamType type, Uint8List data, int length, int width, int heigth, TRTCVideoPixelFormat format)? onSnapshotComplete;