contentAd static method

void contentAd(
  1. String posId, {
  2. dynamic contentAdListener(
    1. ZJEvent ret
    )?,
})

原生展示视频内容

Implementation

static void contentAd(
  /// 广告位ID
  String posId, {
  /// 回调。具体事件见 example
  Function(ZJEvent ret)? contentAdListener,
}) {
  ZJSdkMessageChannel.setContentAdListener(contentAdListener);
  _sdkMethodChannel.invokeMethod("contentAd", {
    "posId": posId,
  });
}