takeLocalSnapshot method
@detail api
@hiddensdk(audiosdk)
@author wangfujun.911
@brief Take a snapshot of the local video.
@param callback See ISnapshotResultCallback{@link #ISnapshotResultCallback}.
@return The index of the local snapshot task, starting from 1.
@note
- The snapshot is taken with all video effects on, like rotation, and mirroring.
- You can take the snapshot either using SDK internal video capture or customized capture.
Implementation
FutureOr<long> takeLocalSnapshot(ISnapshotResultCallback callback) async {
return await nativeCall('takeLocalSnapshot', [callback]);
}