contentAd static method

void contentAd(
  1. String posId, {
  2. String userId = "",
  3. dynamic contentAdListener(
    1. IPDEvent ret
    )?,
})

原生展示视频内容

Implementation

static void contentAd(
  /// 广告位ID
  String posId, {
  /// 用户ID,选填
  String userId = "",

  /// 回调。具体事件见 example
  Function(IPDEvent ret)? contentAdListener,
}) {
  IPDSdkMessageChannel.setContentAdListener(contentAdListener);
  _sdkMethodChannel.invokeMethod("contentAd", {
    "posId": posId,
    "userId": userId,
  });
}