rtcEngine$onLocalSnapshotTakenToFile$filePath$width$height$errorCode$taskId method

FutureOr<void> rtcEngine$onLocalSnapshotTakenToFile$filePath$width$height$errorCode$taskId(
  1. ByteRTCEngine engine,
  2. ByteRTCVideoSource videoSource,
  3. NSString filePath,
  4. NSInteger width,
  5. NSInteger height,
  6. ByteRTCSnapshotErrorCode errorCode,
  7. NSInteger taskId,
)

@detail callback @valid since 3.60. @brief Triggered after calling takeLocalSnapshotToFile:{@link #ByteRTCEngine#takeLocalSnapshotToFile} to report whether the snapshot is taken successfully and provide details of the snapshot image. @param engine ByteRTCEngine object. @param videoSource Video source. See ByteRTCVideoSource{@link #ByteRTCVideoSource} @param filePath The path where the snapshot file is saved. @param width The width (px) of the snapshot image. @param height The height (px) of the snapshot image. @param errorCode The error code for the snapshot task. See ByteRTCSnapshotErrorCode{@link #ByteRTCSnapshotErrorCode} for specific indications. @param taskId The index of the snapshot task, which matches the return value of takeLocalSnapshotToFile:{@link #ByteRTCEngine#takeLocalSnapshotToFile}.

Implementation

FutureOr<void>
    rtcEngine$onLocalSnapshotTakenToFile$filePath$width$height$errorCode$taskId(
        ByteRTCEngine engine,
        ByteRTCVideoSource videoSource,
        NSString filePath,
        NSInteger width,
        NSInteger height,
        ByteRTCSnapshotErrorCode errorCode,
        NSInteger taskId) async {}