onSnapshotComplete property

(void Function(String userId, TRTCVideoStreamType type, Uint8List data, int length, int width, int heigth, TRTCVideoPixelFormat format)?) onSnapshotComplete
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.
    • format(TRTCVideoPixelFormat):
      • Screenshot data format. Only TRTCVideoPixelFormat_BGRA32 is supported now.
    • 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.

Implementation

final void Function(String userId, TRTCVideoStreamType type, Uint8List data, int length, int width, int heigth, TRTCVideoPixelFormat format)? onSnapshotComplete;