JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkStore.h
Go to the documentation of this file.
1
13
14#import <Foundation/Foundation.h>
15
17
18NS_ASSUME_NONNULL_BEGIN
19
27@protocol SdkViewDelegate <NSObject>
28@optional
39- (void)closeNotice:(nonnull id)webView;
44- (void)viewReady:(nonnull id)webView;
49- (void)repeatNotice:(nonnull id)webView;
54- (void)storeNotice:(nonnull id)webView;
60- (void)linkErrorNotice:(nonnull id)webView error:(nonnull NSError *)error;
65- (void)failOpenNoticeWithError:(nullable NSError *)error;
70- (void)failLinkNoticeWithError:(nullable NSError *)error;
75- (void)openCancelWithError:(nullable NSError *)error;
80- (void)appStoreOpenedNoticeWithAppParam:(nullable ApplilinkParameters *)appParam;
85- (void)appStoreCloseNoticeWithAppParam:(nullable ApplilinkParameters *)appParam;
90- (void)appStoreClosedNoticeWithAppParam:(nullable ApplilinkParameters *)appParam;
96- (void)appStoreFailLoadNoticeWithError:(nullable NSError *)error
97 appParam:(nullable ApplilinkParameters *)appParam;
102- (void)appStoreTransitionNoticeWithAppParam:(nullable ApplilinkParameters *)appParam;
103@end
104
108@interface ApplilinkStore : NSObject <SdkViewDelegate>
109
112@property(weak, nonatomic, nullable) id<SdkViewDelegate> sdkDelegate;
115@property(copy, nonatomic, nullable) ApplilinkParameters *applilinkParams;
116
121+ (instancetype)sharedInstance;
122
131- (BOOL)showSKStore:(nullable NSString *)appStoreId
132 appParam:(nullable ApplilinkParameters *)appParam
133 delegate:(nullable id<SdkViewDelegate>)delegate;
134
139- (void)closeSKStore;
140
141@end
142
143NS_ASSUME_NONNULL_END
144
145// code: language=Objective-C
146// kate: hl Objective-C;
147// vim: set ft=objc :
Carries one advert request's model, location, alignment and caller request code.
Definition ApplilinkParameters.h:21
The SDK's App Store product-page facade singleton.
Definition ApplilinkStore.h:108
instancetype sharedInstance()
The lazily-created shared singleton.
Definition ApplilinkStore.m:62
void closeSKStore()
Dismisses the presented App Store product page.
Definition ApplilinkStore.m:91
id< SdkViewDelegate > sdkDelegate
The caller's delegate, told when the store opens/closes.
Definition ApplilinkStore.h:112
ApplilinkParameters * applilinkParams
The advert request parameters for the presented store.
Definition ApplilinkStore.h:115
The delegate the SDK's advert, App Store, and web views all report back through.
Definition ApplilinkStore.h:27
void openedNotice()
The advert opened.
void startedNotice()
The advert started.
void closeNotice()
The advert closed.