|
JubeatPlus 3.9.11
|
The Applilink recommend SDK's shared advert controller. More...
#include <RecommendCore.h>


Instance Methods | |
| (instancetype) | - init |
| Initialise the recommend core, serialising the super initialisation on its work queue. | |
| (BOOL) | - isInitialized |
| Whether the recommend core is fully initialised. | |
| (void) | - clearInitialize |
| Reset the initialisation flag and clear the cached advert data, expiry, and cache folder. | |
| (BOOL) | - isInstalledAppliWithScheme: |
Whether an application registered under scheme is installed on the device. | |
| (void) | - startWithCallback: |
| Start the recommend SDK, posting the application install once per install. | |
| (void) | - startSessionWithCallback: |
Start a recommend session, calling callback when it completes. | |
| (void) | - appliListWithCallBack: |
| Fetch the installed-application list, gating the request on a fresh session. | |
| (void) | - appliListCacheWithCallBack: |
| Return the cached installed-application list, fetching it when absent. | |
| (void) | - getAdStatusWithAdModel:callback: |
Query the advert status for adModel. | |
| (void) | - getUnreadCountWithAdModel:adLocation:callback: |
Query the unread advert count for adModel at adLocation. | |
| (void) | - getAdDisplayStatusWithAdModel:adLocation:callback: |
Query the advert-display status for adModel at adLocation. | |
| (void) | - getAllAdStatusWithCallback: |
| Query the advert status for every advert model. | |
| (void) | - clearAllAdData |
| Clear every cached advert-data record. | |
| (void) | - reloadAllAdData |
| Clear and re-fetch every cached advert-data record. | |
| (void) | - openAdScreenWithParentView:adModel:adLocation:verticalAlign:requestCode:delegate: |
Open the advert screen inside parentView. | |
| (void) | - openAdAreaWithParentView:rect:adModel:adLocation:verticalAlign:requestCode:delegate: |
Open the advert area inside parentView. | |
| (void) | - openFullViewControllerWithAdModel:adLocation:verticalAlign:requestCode:delegate: |
| Open a full-screen advert view controller. | |
| (void) | - openMovieViewControllerWithAdModel:adLocation:verticalAlign:requestCode:delegate: |
| Open a full-screen movie advert view controller. | |
| (void) | - closeAdScreen |
| Close the advert screen. | |
| (void) | - showVideoViewWithQuery: |
Present a video advert view for query inside the current advert-screen view. | |
| (void) | - rotateWithInterfaceOrientation:duration: |
| Rotate any open recommend-advert screen to a new interface orientation. | |
| (int) | - redirectViewContollerWithRequest: |
| Handle an advert-screen redirect request using the current advert parameters. | |
| (int) | - redirectWithRequest: |
| Handle an advert-screen redirect request with no advert parameters. | |
| (int) | - redirectWithRequest:appParam: |
| Handle an advert-screen redirect request, dispatching Applilink deep links. | |
| (nullable id) | - getTemporaryCacheWithAdModel: |
Return the cached banner status for adModel, expiring stale entries. | |
| (BOOL) | - canUseBannerCache |
| Whether the banner cache may be used, clearing it when no UDID is available. | |
| (void) | - clearAdStatus |
| Clear the cached banner status. | |
| (void) | - clearSession |
| Clear every stored HTTP cookie, ending the recommend session. | |
| (void) | - postAnalysisListRegistWithAdType:AdModel:adLocation:impressionId: |
| Register an impression list for the displayed adverts. | |
| (void) | - showOwnAdWithAdLocation:toAppliId:creativeId: |
| Show a first-party advert with the default advert model. | |
| (void) | - showOwnAdWithAdLocation:adModel:toAppliId:creativeId: |
Show a first-party advert for adModel. | |
| (void) | - touchOwnAdWithAdLocation:toAppliId:creativeId:requestCode:delegate: |
| Register a first-party advert touch with the default advert model. | |
| (void) | - touchOwnAdWithAdLocation:adModel:toAppliId:creativeId:requestCode:delegate: |
Register a first-party advert touch for adModel. | |
| (void) | - linkActionWithDefaultScheme:adIdTo:adType:adModel:delegate: |
| Launch the click link action for a first-party advert. | |
| (void) | - linkActionWithURL:delegate: |
| Launch the click link action for a movie advert against a fully formed URL. | |
| (void) | - setUniqueAdWithAdLocation:impressionId: |
Store, or clear, the unique-advert impression identifier for adLocation. | |
| (nullable id) | - getUniqueAdWithAdLocation: |
Return the stored unique-advert impression identifier for adLocation. | |
| (void) | - failLoadWithError: |
| Report a load failure for the click link connection. | |
| (void) | - finishLoadWithResponse: |
| Report a load completion for the click link connection. | |
| (BOOL) | - redirectStartLoad: |
| Handle a redirect while loading the click link connection. | |
| (void) | - releaseAdScreenViewController |
| Release the advert-screen view controller. | |
| (void) | - releaseInterstitialViewController |
| Release the full-screen (interstitial) advert view controller. | |
| (void) | - appListDidStart |
| Notify the delegate that the installed-application list started. | |
| (void) | - appListDidAppear |
| Notify the delegate that the installed-application list appeared. | |
| (void) | - appListDidDisappear |
| Notify the delegate that the installed-application list disappeared. | |
| (void) | - appListFailOpenWithError: |
| Report an installed-application list open failure to the delegate. | |
| (void) | - appListFailLoadWithError: |
| Report an installed-application list load failure to the delegate. | |
| (void) | - appListFailWithError: |
| Report an installed-application list failure to the delegate. | |
| (void) | - appListSoundUseStart |
| Notify the delegate that the advert list started using sound. | |
| (void) | - appListSoundUseFinish |
| Notify the delegate that the advert list finished using sound. | |
| (void) | - startedNotice |
| Notify the delegate that the advert started. | |
| (void) | - openedNotice |
| Notify the delegate that the advert opened. | |
| (void) | - closeNotice |
| Notify the delegate that the advert closed. | |
| (void) | - failOpenNoticeWithError: |
| Report an advert open failure to the delegate. | |
| (void) | - failLinkNoticeWithError: |
| Report an advert link failure to the delegate. | |
| (void) | - appStoreOpenedNoticeWithAppParam: |
| Notify the delegate that the App Store advert opened. | |
| (void) | - appStoreCloseNoticeWithAppParam: |
| Notify the delegate that the App Store advert is about to close. | |
| (void) | - appStoreClosedNoticeWithAppParam: |
| Notify the delegate that the App Store advert closed. | |
| (void) | - appStoreFailLoadNoticeWithError:appParam: |
| Report an App Store advert load failure, launching a pending deep link if one is held. | |
| (void) | - appStoreTransitionNoticeWithAppParam: |
| Notify the delegate that the App Store advert transitioned. | |
| (nullable NSString *) | - getMovideEndUrlWithAdIdFrom:adIdTo:adModel:adLocation:impressionId:creativeId:displayNumber:installFlg: |
| Build the movie-end reporting URL from its request parameters. | |
| Instance Methods inherited from <ApplilinkURLConnectionDelegate> | |
| (void) | - finishLoadWithResponse: |
| Sent when the request completes, with the body decoded as a UTF-8 string. | |
| Instance Methods inherited from <SdkViewDelegate> | |
| (void) | - closeNotice: |
An ApplilinkWebView "close" link was followed. | |
| (void) | - viewReady: |
An ApplilinkWebView finished loading and is ready. | |
| (void) | - repeatNotice: |
An ApplilinkWebView "repeat" link was followed. | |
| (void) | - storeNotice: |
An ApplilinkWebView "store" link was followed. | |
| (void) | - linkErrorNotice:error: |
An ApplilinkWebView load error occurred. | |
| (void) | - openCancelWithError: |
| The delegate cancelled an advert open. | |
Class Methods | |
| (instancetype) | + sharedInstance |
| The shared recommend-core instance. | |
| (void) | + clearData |
| Clear recommend SDK data, except when the server environment is disabled ("0"). | |
Properties | |
| int | initializeFlg |
| Whether the recommend core has been initialised. | |
| RecommendFullScreenController * | interstitialViewController |
| The full-screen (interstitial) advert view controller currently presented, if any. | |
| RecommendWebViewController * | adScreenViewController |
| The advert-screen web view controller currently presented, if any. | |
| id< ApplilinkViewDelegate > | applilinkDelegate |
| The delegate that receives Applilink advert-screen lifecycle callbacks. | |
| ApplilinkParameters * | applilinkParams |
| The advert-request parameters for the advert-screen presentation in flight. | |
| NSString * | urlString |
| The pending App Store deep-link URL string, held between a redirect and its launch. | |
| BOOL | navigationBarHidden |
| Whether the advert screen hides its navigation bar. | |
| BOOL | adScreenviewCloseFlg |
| Whether the advert screen has already been closed, guarding a double close. | |
| BOOL | redirectFlg |
| Whether a redirect (App Store or external application launch) is in flight. | |
| id< ApplilinkViewDelegate > | adAreaDelegate |
| The delegate that receives advert-area lifecycle callbacks. | |
| id< InterstitiaViewDelegate > | adScreenDelegate |
| The delegate that receives interstitial advert-screen lifecycle callbacks. | |
| id< ApplilinkViewDelegate > | uniqueAdDelegate |
| The delegate that receives first-party advert (click) lifecycle callbacks. | |
| ApplilinkParameters * | uniqueApplilinkParams |
| The advert-request parameters for the first-party advert click in flight. | |
The Applilink recommend SDK's shared advert controller.
| - (void) appliListCacheWithCallBack: | (nullable void(^)(id _Nullable list, NSError *_Nullable error)) | callback |
Return the cached installed-application list, fetching it when absent.
| callback | The completion callback invoked with the list and an error. |
| - (void) appliListWithCallBack: | (nullable void(^)(id _Nullable list, NSError *_Nullable error)) | callback |
Fetch the installed-application list, gating the request on a fresh session.
| callback | The completion callback invoked with the list and an error. |
| - (void) appListDidAppear |
Notify the delegate that the installed-application list appeared.
| - (void) appListDidDisappear |
Notify the delegate that the installed-application list disappeared.
| - (void) appListDidStart |
Notify the delegate that the installed-application list started.
| - (void) appListFailLoadWithError: | (nullable NSError *) | error |
Report an installed-application list load failure to the delegate.
| error | The load error. |
| - (void) appListFailOpenWithError: | (nullable NSError *) | error |
Report an installed-application list open failure to the delegate.
| error | The open error. |
| - (void) appListFailWithError: | (nullable NSError *) | error |
Report an installed-application list failure to the delegate.
| error | The failure error. |
| - (void) appListSoundUseFinish |
Notify the delegate that the advert list finished using sound.
| - (void) appListSoundUseStart |
Notify the delegate that the advert list started using sound.
| - (void) appStoreClosedNoticeWithAppParam: | (nullable ApplilinkParameters *) | appParam |
Notify the delegate that the App Store advert closed.
| appParam | The advert parameters. |
Reimplemented from <SdkViewDelegate>.
| - (void) appStoreCloseNoticeWithAppParam: | (nullable ApplilinkParameters *) | appParam |
Notify the delegate that the App Store advert is about to close.
| appParam | The advert parameters. |
Reimplemented from <SdkViewDelegate>.
| - (void) appStoreFailLoadNoticeWithError: | (nullable NSError *) | error | |
| appParam: | (nullable ApplilinkParameters *) | appParam |
Report an App Store advert load failure, launching a pending deep link if one is held.
| error | The load error. |
| appParam | The advert parameters. |
Reimplemented from <SdkViewDelegate>.
| - (void) appStoreOpenedNoticeWithAppParam: | (nullable ApplilinkParameters *) | appParam |
Notify the delegate that the App Store advert opened.
| appParam | The advert parameters. |
Reimplemented from <SdkViewDelegate>.
| - (void) appStoreTransitionNoticeWithAppParam: | (nullable ApplilinkParameters *) | appParam |
Notify the delegate that the App Store advert transitioned.
| appParam | The advert parameters. |
Reimplemented from <SdkViewDelegate>.
| - (BOOL) canUseBannerCache |
Whether the banner cache may be used, clearing it when no UDID is available.
YES when at least one UDID is present. | - (void) clearAdStatus |
Clear the cached banner status.
| - (void) clearAllAdData |
Clear every cached advert-data record.
| + (void) clearData |
Clear recommend SDK data, except when the server environment is disabled ("0").
| - (void) clearInitialize |
Reset the initialisation flag and clear the cached advert data, expiry, and cache folder.
| - (void) clearSession |
Clear every stored HTTP cookie, ending the recommend session.
| - (void) closeAdScreen |
Close the advert screen.
| - (void) closeNotice |
Notify the delegate that the advert closed.
Reimplemented from <SdkViewDelegate>.
| - (void) failLinkNoticeWithError: | (nullable NSError *) | error |
Report an advert link failure to the delegate.
| error | The link error. |
Reimplemented from <SdkViewDelegate>.
| - (void) failLoadWithError: | (nullable NSError *) | error |
Report a load failure for the click link connection.
| error | The load error. |
Reimplemented from <ApplilinkURLConnectionDelegate>.
| - (void) failOpenNoticeWithError: | (nullable NSError *) | error |
Report an advert open failure to the delegate.
| error | The open error. |
Reimplemented from <SdkViewDelegate>.
| - (void) finishLoadWithResponse: | (nullable id) | response |
Report a load completion for the click link connection.
| response | The load response. |
| - (void) getAdDisplayStatusWithAdModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| callback: | (nullable void(^)(NSDictionary *_Nullable status, NSError *_Nullable error)) | callback |
Query the advert-display status for adModel at adLocation.
| adModel | The advert-model identifier. |
| adLocation | The ad-location identifier. |
| callback | The display-status callback. |
| - (void) getAdStatusWithAdModel: | (int) | adModel | |
| callback: | (nullable void(^)(NSInteger status, NSError *_Nullable error)) | callback |
Query the advert status for adModel.
| adModel | The advert-model identifier. |
| callback | The status callback. |
| - (void) getAllAdStatusWithCallback: | (nullable void(^)(NSError *_Nullable error)) | callback |
Query the advert status for every advert model.
| callback | The status callback. |
| - (nullable NSString *) getMovideEndUrlWithAdIdFrom: | (nullable NSString *) | adIdFrom | |
| adIdTo: | (nullable NSString *) | adIdTo | |
| adModel: | (nullable NSString *) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| impressionId: | (nullable NSString *) | impressionId | |
| creativeId: | (nullable NSString *) | creativeId | |
| displayNumber: | (nullable NSString *) | displayNumber | |
| installFlg: | (nullable NSString *) | installFlg |
Build the movie-end reporting URL from its request parameters.
| adIdFrom | The source advert identifier. |
| adIdTo | The destination advert identifier. |
| adModel | The advert-model string. |
| adLocation | The ad-location identifier. |
| impressionId | The impression identifier. |
| creativeId | The creative identifier. |
| displayNumber | The display-number string. |
| installFlg | The install-flag string. |
nil when any argument is nil. | - (id) getTemporaryCacheWithAdModel: | (int) | adModel |
Return the cached banner status for adModel, expiring stale entries.
| adModel | The advert-model identifier. |
nil when absent or expired. | - (nullable id) getUniqueAdWithAdLocation: | (nullable NSString *) | adLocation |
Return the stored unique-advert impression identifier for adLocation.
| adLocation | The ad-location identifier. |
nil. | - (void) getUnreadCountWithAdModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| callback: | (nullable void(^)(NSInteger status, NSError *_Nullable error)) | callback |
Query the unread advert count for adModel at adLocation.
| adModel | The advert-model identifier. |
| adLocation | The ad-location identifier. |
| callback | The status callback. |
| - (instancetype) init |
Initialise the recommend core, serialising the super initialisation on its work queue.
| - (BOOL) isInitialized |
Whether the recommend core is fully initialised.
YES when initializeFlg equals one. | - (BOOL) isInstalledAppliWithScheme: | (nullable NSString *) | scheme |
Whether an application registered under scheme is installed on the device.
| scheme | The custom URL scheme to probe. |
YES when the scheme can be opened. | - (void) linkActionWithDefaultScheme: | (nullable NSString *) | defaultScheme | |
| adIdTo: | (nullable NSString *) | adIdTo | |
| adType: | (nullable NSString *) | adType | |
| adModel: | (nullable NSString *) | adModel | |
| delegate: | (nullable id) | delegate |
Launch the click link action for a first-party advert.
| defaultScheme | The advert's default URL scheme. |
| adIdTo | The destination advert identifier. |
| adType | The advert-type string. |
| adModel | The advert-model string. |
| delegate | The advert delegate. |
| - (void) linkActionWithURL: | (nullable NSString *) | url | |
| delegate: | (nullable id) | delegate |
Launch the click link action for a movie advert against a fully formed URL.
| url | The click URL string. |
| delegate | The advert delegate. |
| - (void) openAdAreaWithParentView: | (nullable UIView *) | parentView | |
| rect: | (CGRect) | rect | |
| adModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| verticalAlign: | (int) | verticalAlign | |
| requestCode: | (nullable id) | requestCode | |
| delegate: | (nullable id) | delegate |
Open the advert area inside parentView.
| parentView | The view that hosts the advert area. |
| rect | The advert area's frame within parentView. |
| adModel | The advert-model identifier. |
| adLocation | The ad-location identifier. |
| verticalAlign | The vertical-alignment identifier. |
| requestCode | The caller's request code. |
| delegate | The advert delegate. |
| - (void) openAdScreenWithParentView: | (nullable UIView *) | parentView | |
| adModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| verticalAlign: | (int) | verticalAlign | |
| requestCode: | (nullable id) | requestCode | |
| delegate: | (nullable id) | delegate |
Open the advert screen inside parentView.
| parentView | The view that hosts the advert screen. |
| adModel | The advert-model identifier. |
| adLocation | The ad-location identifier. |
| verticalAlign | The vertical-alignment identifier. |
| requestCode | The caller's request code. |
| delegate | The advert delegate. |
| - (void) openedNotice |
Notify the delegate that the advert opened.
Reimplemented from <SdkViewDelegate>.
| - (void) openFullViewControllerWithAdModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| verticalAlign: | (int) | verticalAlign | |
| requestCode: | (nullable id) | requestCode | |
| delegate: | (nullable id) | delegate |
Open a full-screen advert view controller.
| adModel | The advert-model identifier. |
| adLocation | The ad-location identifier. |
| verticalAlign | The vertical-alignment identifier. |
| requestCode | The caller's request code. |
| delegate | The advert delegate. |
| - (void) openMovieViewControllerWithAdModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| verticalAlign: | (int) | verticalAlign | |
| requestCode: | (nullable id) | requestCode | |
| delegate: | (nullable id) | delegate |
Open a full-screen movie advert view controller.
| adModel | The advert-model identifier. |
| adLocation | The ad-location identifier. |
| verticalAlign | The vertical-alignment identifier. |
| requestCode | The caller's request code. |
| delegate | The advert delegate. |
| - (void) postAnalysisListRegistWithAdType: | (int) | adType | |
| AdModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| impressionId: | (nullable NSString *) | impressionId |
Register an impression list for the displayed adverts.
| adType | The advert-type identifier. |
| adModel | The advert-model identifier. |
| adLocation | The ad-location identifier. |
| impressionId | The impression identifier. |
| - (BOOL) redirectStartLoad: | (nullable NSURLRequest *) | request |
Handle a redirect while loading the click link connection.
| request | The redirect request. |
NO; the redirect is handled internally. Reimplemented from <ApplilinkURLConnectionDelegate>.
| - (int) redirectViewContollerWithRequest: | (nullable NSURLRequest *) | request |
Handle an advert-screen redirect request using the current advert parameters.
| request | The redirect request. |
| - (int) redirectWithRequest: | (nullable NSURLRequest *) | request |
Handle an advert-screen redirect request with no advert parameters.
| request | The redirect request. |
| - (int) redirectWithRequest: | (nullable NSURLRequest *) | request | |
| appParam: | (nullable ApplilinkParameters *) | appParam |
Handle an advert-screen redirect request, dispatching Applilink deep links.
A URL under the applilink://ext-app:80 scheme is parsed into its ad identifier, country code, category id, ad type, and store id, then either launched through an external application, opened in the App Store, or forwarded to the advert screen. Ordinary URLs are handed back to the caller to load.
| request | The redirect request; its URL may be rewritten in place. |
| appParam | The advert parameters to report on failure, or nil. |
| - (void) releaseAdScreenViewController |
Release the advert-screen view controller.
| - (void) releaseInterstitialViewController |
Release the full-screen (interstitial) advert view controller.
| - (void) reloadAllAdData |
Clear and re-fetch every cached advert-data record.
| - (void) rotateWithInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation | |
| duration: | (NSTimeInterval) | duration |
Rotate any open recommend-advert screen to a new interface orientation.
| interfaceOrientation | The target UIInterfaceOrientation. |
| duration | The animation duration. |
| - (void) setUniqueAdWithAdLocation: | (nullable NSString *) | adLocation | |
| impressionId: | (nullable NSString *) | impressionId |
Store, or clear, the unique-advert impression identifier for adLocation.
| adLocation | The ad-location identifier. |
| impressionId | The impression identifier, or nil to clear it. |
| + (instancetype) sharedInstance |
The shared recommend-core instance.
| - (void) showOwnAdWithAdLocation: | (nullable NSString *) | adLocation | |
| adModel: | (int) | adModel | |
| toAppliId: | (nullable NSString *) | appliId | |
| creativeId: | (nullable NSString *) | creativeId |
Show a first-party advert for adModel.
| adLocation | The ad-location identifier. |
| adModel | The advert-model identifier. |
| appliId | The advert application identifier. |
| creativeId | The advert creative identifier. |
| - (void) showOwnAdWithAdLocation: | (nullable NSString *) | adLocation | |
| toAppliId: | (nullable NSString *) | appliId | |
| creativeId: | (nullable NSString *) | creativeId |
Show a first-party advert with the default advert model.
| adLocation | The ad-location identifier. |
| appliId | The advert application identifier. |
| creativeId | The advert creative identifier. |
| - (void) showVideoViewWithQuery: | (nullable NSString *) | query |
Present a video advert view for query inside the current advert-screen view.
| query | The video request query. |
| - (void) startedNotice |
Notify the delegate that the advert started.
Reimplemented from <SdkViewDelegate>.
| - (void) startSessionWithCallback: | (nullable void(^)(NSError *_Nullable error)) | callback |
Start a recommend session, calling callback when it completes.
| callback | The completion callback. |
| - (void) startWithCallback: | (nullable void(^)(NSError *_Nullable error)) | callback |
Start the recommend SDK, posting the application install once per install.
| callback | The completion callback invoked with an error, or nil on success. |
| - (void) touchOwnAdWithAdLocation: | (nullable NSString *) | adLocation | |
| adModel: | (int) | adModel | |
| toAppliId: | (nullable NSString *) | appliId | |
| creativeId: | (nullable NSString *) | creativeId | |
| requestCode: | (nullable id) | requestCode | |
| delegate: | (nullable id) | delegate |
Register a first-party advert touch for adModel.
| adLocation | The ad-location identifier. |
| adModel | The advert-model identifier. |
| appliId | The advert application identifier. |
| creativeId | The advert creative identifier. |
| requestCode | The caller's request code. |
| delegate | The advert delegate. |
| - (void) touchOwnAdWithAdLocation: | (nullable NSString *) | adLocation | |
| toAppliId: | (nullable NSString *) | appliId | |
| creativeId: | (nullable NSString *) | creativeId | |
| requestCode: | (nullable id) | requestCode | |
| delegate: | (nullable id) | delegate |
Register a first-party advert touch with the default advert model.
| adLocation | The ad-location identifier. |
| appliId | The advert application identifier. |
| creativeId | The advert creative identifier. |
| requestCode | The caller's request code. |
| delegate | The advert delegate. |