JubeatPlus 3.9.11
Loading...
Searching...
No Matches
RecommendWebView Class Reference

The applilink recommend-advert web-view container. More...

#include <RecommendWebView.h>

Inheritance diagram for RecommendWebView:
Collaboration diagram for RecommendWebView:

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.

Detailed Description

The applilink recommend-advert web-view container.

Method Documentation

◆ appListDidAppear

- (void) appListDidAppear

Remove the loading indicator and notify the delegate that the advert list appeared.

Ghidra address:
0x27955c

Reimplemented from <ApplilinkViewDelegate>.

◆ appListDidDisappear

- (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.

Ghidra address:
0x279628

Reimplemented from <ApplilinkViewDelegate>.

◆ appListDidStart

- (void) appListDidStart

Notify the delegate that the advert list started.

Ghidra address:
0x2794f4

Reimplemented from <ApplilinkViewDelegate>.

◆ appListFailLinkWithError:

- (void) appListFailLinkWithError: (nullable NSError *) error

Notify the delegate of an advert-list link failure.

Parameters
errorThe link failure error.
Ghidra address:
0x279850

Reimplemented from <ApplilinkViewDelegate>.

◆ appListFailLoadWithError:

- (void) appListFailLoadWithError: (nullable NSError *) error

Notify the delegate of an advert-list load failure and clear the delegate.

Parameters
errorThe load failure error.
Ghidra address:
0x279748

Reimplemented from <ApplilinkViewDelegate>.

◆ appListSoundUseFinish

- (void) appListSoundUseFinish

Notify the delegate that the advert has finished using sound, so the host can resume its own audio.

Ghidra address:
0x279924

Reimplemented from <ApplilinkViewDelegate>.

◆ appListSoundUseStart

- (void) appListSoundUseStart

Notify the delegate that the advert has begun using sound, so the host can pause its own audio.

Ghidra address:
0x2798d4

Reimplemented from <ApplilinkViewDelegate>.

◆ closeAdArea

- (void) closeAdArea

Tear down both inner advert views before this view leaves the tree.

Ghidra address:
0x279418

◆ hiddenIndicator

- (void) hiddenIndicator

Stop animating and cancel the pending auto-hide of the loading indicator.

Ghidra address:
0x2793c4

◆ initWithCoder:

- (instancetype) initWithCoder: (NSCoder *) coder

Initialise from an archive and apply the shared container configuration.

Parameters
coderThe unarchiver to decode from.
Returns
The initialised container, or nil.
Ghidra address:
0x27882c

◆ loadRequestWithAdModel:adLocation:verticalAlign:delegate:

- (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.

Parameters
adModelThe advert-model identifier.
adLocationThe advert-location identifier.
verticalAlignThe vertical-alignment identifier.
delegateThe advert delegate to notify.
Ghidra address:
0x278a94

◆ loadRequestWithAdModel:adLocation:verticalAlign:requestCode:delegate:

- (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:.

Parameters
adModelThe advert-model identifier.
adLocationThe advert-location identifier.
verticalAlignThe vertical-alignment identifier.
requestCodeThe caller's request code echoed back in delegate callbacks.
delegateThe advert delegate to notify.
Ghidra address:
0x27898c

◆ setInitParam

- (void) setInitParam

Apply the shared container configuration (transparent, non-opaque, fully flexible autoresizing, aspect-fit content mode).

Ghidra address:
0x278890

◆ setScrollEnabled:

- (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.

Parameters
scrollEnabledYES to allow scrolling.
Ghidra address:
0x2794bc

Property Documentation

◆ applilinkDelegate

- (id<ApplilinkViewDelegate>) applilinkDelegate
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.


The documentation for this class was generated from the following files: