32 lines
780 B
C
32 lines
780 B
C
|
|
//
|
||
|
|
// KBKeyboardSubscriptionView.h
|
||
|
|
// CustomKeyboard
|
||
|
|
//
|
||
|
|
|
||
|
|
#import <UIKit/UIKit.h>
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
|
||
|
|
@class KBKeyboardSubscriptionProduct;
|
||
|
|
@class KBKeyboardSubscriptionView;
|
||
|
|
|
||
|
|
@protocol KBKeyboardSubscriptionViewDelegate <NSObject>
|
||
|
|
@optional
|
||
|
|
- (void)subscriptionViewDidTapClose:(KBKeyboardSubscriptionView *)view;
|
||
|
|
- (void)subscriptionView:(KBKeyboardSubscriptionView *)view didTapPurchaseForProduct:(KBKeyboardSubscriptionProduct *)product;
|
||
|
|
@end
|
||
|
|
|
||
|
|
/// 键盘内的订阅弹层
|
||
|
|
@interface KBKeyboardSubscriptionView : UIView
|
||
|
|
|
||
|
|
@property (nonatomic, weak) id<KBKeyboardSubscriptionViewDelegate> delegate;
|
||
|
|
|
||
|
|
/// 首次展示时调用,内部会自动请求订阅商品
|
||
|
|
- (void)refreshProductsIfNeeded;
|
||
|
|
/// 外部强制刷新
|
||
|
|
- (void)reloadProducts;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_END
|