contentAd static method
原生展示视频内容
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,
});
}