ios_sendScreenCaptureExtensionMessage method

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

@platform ios @hidden(macOS) @detail api @hiddensdk(audiosdk) @author wangzhanqiang @brief 向屏幕共享 Extension 发送自定义消息 @param messsage 发送给 Extension 的消息内容 @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - 在 startScreenCapture:bundleId:{@link #ByteRTCEngine#startScreenCapture:bundleId} 后调用该方法。 - 通过 onReceiveMessageFromApp:{@link #ByteRtcScreenCapturerExtDelegate#onReceiveMessageFromApp} 回调发送的消息。

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}');
  }
}