loadFeedAd static method

Future<List<int>> loadFeedAd(
  1. String posId, {
  2. int width = 375,
  3. int height = 0,
  4. int count = 1,
})

加载信息流广告列表 posId 广告位 id width 宽度 height 高度 count 获取广告数量,建议 1~3 个

Implementation

static Future<List<int>> loadFeedAd(String posId,
    {int width = 375, int height = 0, int count = 1}) async {
  final List<dynamic> result = await _methodChannel.invokeMethod(
    'loadFeedAd',
    {
      'posId': posId,
      'width': width,
      'height': height,
      'count': count,
    },
  );
  return List<int>.from(result);
}