Hibit_iOS/Pods/BaiduMobAdSDK/BaiduMobAdSDK.framework/Headers/BaiduMobAdNativeCouponSuspensionView.h
2024-06-07 11:41:02 +08:00

47 lines
1.3 KiB
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// BaiduMobAdNativeSaleCardView.h
// BaiduMobAdSDK
//
// Created by sunmingzhe01 on 2024/3/26.
// Copyright © 2024 Baidu Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class BaiduMobAdNativeAdObject;
@class BaiduMobAdNativeCouponSuspensionView;
typedef NS_ENUM(NSInteger, BaiduMobAdNativeCouponSuspensionType) {
BaiduMobAdNativeCouponCardView = 0, // 优惠券样式组件尺寸95*124
BaiduMobAdNativeCouponIconView // 挂件样式,80*102
};
NS_ASSUME_NONNULL_BEGIN
@protocol BaiduMobAdNativeCouponSuspensionViewDelegate <NSObject>
/// 优惠券悬浮组件关闭
- (void)baiduMobAdNativeCouponSuspensionClickClose:(BaiduMobAdNativeCouponSuspensionView *)suspensionView;
@end
@interface BaiduMobAdNativeCouponSuspensionView : UIView
/// 组件初始化不建议修改frame可通过动画调整整体大小
- (instancetype)initNativeCouponSuspensionView:(BaiduMobAdNativeAdObject *)adObject;
/// delegate
@property (nonatomic, weak) id <BaiduMobAdNativeCouponSuspensionViewDelegate> delegate;
/// 获取当前广告的组件样式
- (BaiduMobAdNativeCouponSuspensionType)getNativeCouponSuspensionViewType;
/// 组件渲染
- (void)renderCouponSuspensionView;
/// 销毁组件,回收内存
- (void)destoryCouponSuspensionView;
@end
NS_ASSUME_NONNULL_END