snapshot method

Future<V2TXLiveCode> snapshot()

Capture the local image during stream ingest

Return:

  • V2TXLIVE_OK: Succeed
  • V2TXLIVE_ERROR_REFUSED: Stream ingest has been stopped, and screenshot operations are not allowed

Implementation

Future<V2TXLiveCode> snapshot() async {
  var result = await _channel.invokeMethod('snapshot', {});
  return _liveCodeWithResult(result);
}