|
JubeatPlus 3.9.11
|
The applilink recommend-advert web-view container. More...
#include <RecommendWebView.h>


Instance Methods | |
| (instancetype) | - initWithCoder: |
| Initialise from an archive and apply the shared container configuration. | |
| (void) | - setInitParam |
| Apply the shared container configuration (transparent, non-opaque, fully flexible autoresizing, aspect-fit content mode). | |
| (void) | - loadRequestWithAdModel:adLocation:verticalAlign:requestCode:delegate: |
| Load the advert web content for an advert model at an advert location. | |
| (void) | - loadRequestWithAdModel:adLocation:verticalAlign:delegate: |
| Load the advert, choosing the cached-HTML or live path based on the advert model. | |
| (void) | - setScrollEnabled: |
| Set whether the inner web view may scroll, recording it as the bounce state and forwarding it to the inner web view. | |
| (void) | - hiddenIndicator |
| Stop animating and cancel the pending auto-hide of the loading indicator. | |
| (void) | - closeAdArea |
| Tear down both inner advert views before this view leaves the tree. | |
| (void) | - appListDidStart |
| Notify the delegate that the advert list started. | |
| (void) | - appListDidAppear |
| Remove the loading indicator and notify the delegate that the advert list appeared. | |
| (void) | - appListDidDisappear |
| Remove the loading indicator and inner web view, fire the sound-use-finish notice, notify the delegate that the advert list disappeared, and clear the delegate. | |
| (void) | - appListFailLoadWithError: |
| Notify the delegate of an advert-list load failure and clear the delegate. | |
| (void) | - appListFailLinkWithError: |
| Notify the delegate of an advert-list link failure. | |
| (void) | - appListSoundUseStart |
| Notify the delegate that the advert has begun using sound, so the host can pause its own audio. | |
| (void) | - appListSoundUseFinish |
| Notify the delegate that the advert has finished using sound, so the host can resume its own audio. | |
| Instance Methods inherited from <ApplilinkViewDelegate> | |
| (void) | - appListDidStart: |
| The advert flow started, with the originating parameters. | |
| (void) | - appListDidAppear: |
| The advert became visible, with the originating parameters. | |
| (void) | - appListDidDisappear: |
| The advert was dismissed, with the originating parameters. | |
| (void) | - appListFailOpenWithError: |
| The advert failed to open. | |
| (void) | - appListFailOpenWithError:withApplilinkParameters: |
| The advert failed to open, with the originating parameters. | |
| (void) | - appListFailLoadWithError:withApplilinkParameters: |
| The advert failed to load, with the originating parameters. | |
| (void) | - appListFailWithError: |
| The advert failed. | |
| (void) | - appListFailWithError:withApplilinkParameters: |
| The advert failed, with the originating parameters. | |
| (void) | - appListFailLinkWithError:withApplilinkParameters: |
| The advert link failed, with the originating parameters. | |
| (void) | - appListMovieFinish |
| The advert's movie finished. | |
Properties | |
| UIActivityIndicatorView * | indicator |
| The loading activity indicator overlaid while the advert loads. | |
| RecommendAdWebView * | webView |
| The inner web view that renders a live recommend advert. | |
| RecommendAdAreaView * | adAreaWebView |
| The inner area view that renders a cached (local HTML) recommend advert. | |
| id< ApplilinkViewDelegate > | applilinkDelegate |
| The advert delegate notified of the advert-list lifecycle and failures. | |
| ApplilinkParameters * | applilinkParams |
| The request parameters for the advert currently being displayed. | |
| BOOL | webViewBounces |
| Whether the inner web view is allowed to scroll (bounce) when dragged. | |
The applilink recommend-advert web-view container.
| - (void) appListDidAppear |
Remove the loading indicator and notify the delegate that the advert list appeared.
Reimplemented from <ApplilinkViewDelegate>.
| - (void) appListDidDisappear |
Remove the loading indicator and inner web view, fire the sound-use-finish notice, notify the delegate that the advert list disappeared, and clear the delegate.
Reimplemented from <ApplilinkViewDelegate>.
| - (void) appListDidStart |
Notify the delegate that the advert list started.
Reimplemented from <ApplilinkViewDelegate>.
| - (void) appListFailLinkWithError: | (nullable NSError *) | error |
Notify the delegate of an advert-list link failure.
| error | The link failure error. |
Reimplemented from <ApplilinkViewDelegate>.
| - (void) appListFailLoadWithError: | (nullable NSError *) | error |
Notify the delegate of an advert-list load failure and clear the delegate.
| error | The load failure error. |
Reimplemented from <ApplilinkViewDelegate>.
| - (void) appListSoundUseFinish |
Notify the delegate that the advert has finished using sound, so the host can resume its own audio.
Reimplemented from <ApplilinkViewDelegate>.
| - (void) appListSoundUseStart |
Notify the delegate that the advert has begun using sound, so the host can pause its own audio.
Reimplemented from <ApplilinkViewDelegate>.
| - (void) closeAdArea |
Tear down both inner advert views before this view leaves the tree.
| - (void) hiddenIndicator |
Stop animating and cancel the pending auto-hide of the loading indicator.
| - (instancetype) initWithCoder: | (NSCoder *) | coder |
Initialise from an archive and apply the shared container configuration.
| coder | The unarchiver to decode from. |
nil. | - (void) loadRequestWithAdModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| verticalAlign: | (int) | verticalAlign | |
| delegate: | (nullable id< ApplilinkViewDelegate >) | delegate |
Load the advert, choosing the cached-HTML or live path based on the advert model.
When the SDK may be used and the recommend core is initialised: advert models 5 and 100..101 generate a cached HTML file and build a RecommendAdAreaView from it, and every other model dispatches a layout block on the main queue that builds a RecommendAdWebView and issues the request. Failures are reported through ApplilinkCore.
| adModel | The advert-model identifier. |
| adLocation | The advert-location identifier. |
| verticalAlign | The vertical-alignment identifier. |
| delegate | The advert delegate to notify. |
| - (void) loadRequestWithAdModel: | (int) | adModel | |
| adLocation: | (nullable NSString *) | adLocation | |
| verticalAlign: | (int) | verticalAlign | |
| requestCode: | (nullable id) | requestCode | |
| delegate: | (nullable id< ApplilinkViewDelegate >) | delegate |
Load the advert web content for an advert model at an advert location.
Builds the request parameters, then delegates to loadRequestWithAdModel:adLocation:verticalAlign:delegate:.
| adModel | The advert-model identifier. |
| adLocation | The advert-location identifier. |
| verticalAlign | The vertical-alignment identifier. |
| requestCode | The caller's request code echoed back in delegate callbacks. |
| delegate | The advert delegate to notify. |
| - (void) setInitParam |
Apply the shared container configuration (transparent, non-opaque, fully flexible autoresizing, aspect-fit content mode).
| - (void) setScrollEnabled: | (BOOL) | scrollEnabled |
Set whether the inner web view may scroll, recording it as the bounce state and forwarding it to the inner web view.
| scrollEnabled | YES to allow scrolling. |
|
readwritenonatomicweak |
The advert delegate notified of the advert-list lifecycle and failures.
Held weakly: the container forwards each notice to it but does not own it.