ios_updateScreenCaptureMouseCursor method

Future<int?> ios_updateScreenCaptureMouseCursor(
  1. ByteRTCMouseCursorCaptureState mouseCursorCaptureState
)

@platform ios @hidden(iOS) @detail api @hiddensdk(audiosdk) @author liyi.000 @brief Update the processing settings for the mouse when capturing screen video streams through the capture module provided by the RTC SDK. The mouse is shown by default. @param mouseCursorCaptureState See ByteRTCMouseCursorCaptureState{@link #ByteRTCMouseCursorCaptureState}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note Before calling this API, you must have turned on internal screen capture by calling startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters}.

Implementation

Future<int?> ios_updateScreenCaptureMouseCursor(
    $p_i.ByteRTCMouseCursorCaptureState mouseCursorCaptureState) async {
  $() => ($instance as $p_i.ByteRTCEngine)
      .updateScreenCaptureMouseCursor(mouseCursorCaptureState);

  if (Platform.isIOS) {
    return $();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}