ios_sendScreenCaptureExtensionMessage method

Future<int?> ios_sendScreenCaptureExtensionMessage(
  1. NSData messsage
)

@platform ios @hidden(macOS) @detail api @hiddensdk(audiosdk) @author wangzhanqiang @brief Sends message to screen capture Extension @param messsage Message sent to the Extension @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - Call this API after calling startScreenCapture:bundleId:{@link #ByteRTCEngine#startScreenCapture:bundleId}. - The extension will receive onReceiveMessageFromApp:{@link #ByteRtcScreenCapturerExtDelegate#onReceiveMessageFromApp} when the message is sent.

Implementation

Future<int?> ios_sendScreenCaptureExtensionMessage(
    $p_i.NSData messsage) async {
  $() => ($instance as $p_i.ByteRTCEngine)
      .sendScreenCaptureExtensionMessage(messsage);

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