contentAd static method

void contentAd(
  1. String posId, {
  2. dynamic contentAdListener(
    1. ZJEvent ret
    )?,
  3. int type = 0,
})

原生展示视频内容

Implementation

static void contentAd(
  /// 广告位ID
  String posId, {
  /// 回调。具体事件见 example
  Function(ZJEvent ret)? contentAdListener,

  /// 样式
  int type = 0,
}) {
  ZJSdkMessageChannel.setContentAdListener(contentAdListener);
  _sdkMethodChannel.invokeMethod("contentAd", {"posId": posId, "type": type});
}