updateCoverBounds static method
iOS 使用 - 遇到点击穿透的情况使用该方法
- isCovered 是否覆盖
- x,y,w,h 覆盖范围 (x,y 从广告展示位置开始)
Implementation
static void updateCoverBounds(
bool isCovered,
double x,
double y,
double w,
double h,
) {
if (defaultTargetPlatform == TargetPlatform.iOS) {
_methodChannel.invokeMethod("updateCoverBounds",
{'isCovered': isCovered, 'x': x, 'y': y, 'w': w, 'h': h});
}
}