ByteRTCHttpClientProtocol constructor

ByteRTCHttpClientProtocol([
  1. NativeClassOptions? options
])

Implementation

ByteRTCHttpClientProtocol([NativeClassOptions? options])
    : super(options == null
          ? const NativeClassOptions([],
              className: _$namespace,
              instanceType: InstanceType.manual,
              bridgeKey: 'com.volcengine.rtc.hybrid_runtime',
              methodMap: {
                r"getAsync$timeoutMillisecond$withCallback":
                    r"getAsync:timeoutMillisecond:withCallback:",
                r"postAsync$content$timeoutMillisecond$withCallback":
                    r"postAsync:content:timeoutMillisecond:withCallback:"
              })
          : NativeClassOptions.fromMap({
              ...options.toMap(),
              'bridgeKey': 'com.volcengine.rtc.hybrid_runtime',
            })) {
  registerEvent(r"getAsync:timeoutMillisecond:withCallback:",
      getAsync$timeoutMillisecond$withCallback);

  registerEvent(r"postAsync:content:timeoutMillisecond:withCallback:",
      postAsync$content$timeoutMillisecond$withCallback);
}