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

The in-application host controller for the reward-advert web page. More...

#include <RewardWebViewController.h>

Inheritance diagram for RewardWebViewController:
Collaboration diagram for RewardWebViewController:

Instance Methods

(void) - setNavigationBarHidden:
 Set whether the advert screen hides its navigation bar.
(void) - updateIndicator:
 Show or hide the loading overlay.
(void) - loadRequestWithURL:parameters:
 Load the reward-advert page from a URL with request parameters.
(void) - showVideoViewWithQuery:
 Present the reward-video view for query through RewardCore.
(void) - appliListClosed
 Close the advert list from an external request.
(void) - closeNotice:
 Relay a close notice through ApplilinkViewManager.
(void) - viewDealloc
 Tear down the advert web view and release its subviews.
(void) - clearDelegate
 Clear the SDK delegate and detach the web view's delegate.
(void) - willAnimateRotationToInterfaceOrientation:duration:
 Re-lay the advert web view for a rotation, driven by RewardCore.

Properties

id< SdkViewDelegate > sdkDelegate
 The SDK delegate that receives the advert lifecycle notices.
UIView * parentView
 The host view the advert web view is added to.
UIView * baseView
 The container view that hosts the web view and navigation bar.
UIWebView * webView
 The web view that renders the reward-advert page.
UINavigationBar * navigationBar
 The navigation bar carrying the advert title and close button.
ApplilinkIndicator * indicator
 The loading overlay shown while the advert page loads.
BOOL isNavigationBarHidden
 Whether the advert screen hides its navigation bar.
BOOL webViewBounces
 Whether the web view's scroll view is allowed to bounce.
RewardWebViewControllerWebViewStatus webViewStatus
 The current load state of the advert web view.

Detailed Description

The in-application host controller for the reward-advert web page.

Method Documentation

◆ appliListClosed

- (void) appliListClosed

Close the advert list from an external request.

Cancels the pending indicator activation, marks the view closed, stops any in-flight load, and tears the advert web view down.

Ghidra address:
0x24d090
Ghidra address:
0x24d090

◆ clearDelegate

- (void) clearDelegate

Clear the SDK delegate and detach the web view's delegate.

Ghidra address:
0x24f208

◆ closeNotice:

- (void) closeNotice: (nullable id) view

Relay a close notice through ApplilinkViewManager.

Parameters
viewThe view reporting the close.
Ghidra address:
0x24dc64

◆ loadRequestWithURL:parameters:

- (void) loadRequestWithURL: (nullable NSString *) url
parameters: (nullable NSDictionary *) parameters 

Load the reward-advert page from a URL with request parameters.

Resets the load state, attaches the controller's view to parentView (or the main window), builds a thirty-second, no-cache mutable request with the parameters appended to the URL, lazily creates the web view, aligns it to the current status-bar orientation, and starts the load.

Parameters
urlThe reward-advert page URL string.
parametersThe request parameters to append as a query string.
Ghidra address:
0x24cd7c

◆ setNavigationBarHidden:

- (void) setNavigationBarHidden: (BOOL) navigationBarHidden

Set whether the advert screen hides its navigation bar.

This is the SDK-facing alias for isNavigationBarHidden used by RewardCore; it stores straight into the backing ivar, distinct from the synthesized -setIsNavigationBarHidden:.

Parameters
navigationBarHiddenYES to hide the navigation bar.
Ghidra address:
0x24cd64
Ghidra address:
0x24cd64

◆ showVideoViewWithQuery:

- (void) showVideoViewWithQuery: (nullable NSString *) query

Present the reward-video view for query through RewardCore.

Parameters
queryThe video request query.
Ghidra address:
0x24d018

◆ updateIndicator:

- (void) updateIndicator: (BOOL) show

Show or hide the loading overlay.

Parameters
showYES to show the overlay, NO to hide it.
Ghidra address:
0x24d130
Ghidra address:
0x24d130

◆ viewDealloc

- (void) viewDealloc

Tear down the advert web view and release its subviews.

Ghidra address:
0x24cc54

◆ willAnimateRotationToInterfaceOrientation:duration:

- (void) willAnimateRotationToInterfaceOrientation: (UIInterfaceOrientation) orientation
duration: (NSTimeInterval) duration 

Re-lay the advert web view for a rotation, driven by RewardCore.

Ignores orientation and re-lays for the application's current statusBarOrientation instead.

Parameters
orientationThe interface orientation being rotated to (ignored).
durationThe rotation animation duration.
Ghidra address:
0x24f058
Ghidra address:
0x24f058

Property Documentation

◆ navigationBar

- (UINavigationBar*) navigationBar
readwritenonatomicstrong

The navigation bar carrying the advert title and close button.

Created only when the navigation bar is not hidden.

◆ parentView

- (UIView*) parentView
readwritenonatomicstrong

The host view the advert web view is added to.

When nil the advert is added to [ApplilinkCore mainWindow] instead.

◆ sdkDelegate

- (id<SdkViewDelegate>) sdkDelegate
readwritenonatomicweak

The SDK delegate that receives the advert lifecycle notices.

Held weakly: the controller forwards each notice to it but does not own it, and clears the reference once the closing or open-failure notice has been sent.

◆ webViewBounces

- (BOOL) webViewBounces
readwritenonatomicassign

Whether the web view's scroll view is allowed to bounce.

The stored value is inverted by -setWebViewBounces:, then cleared after -loadView applies it to the scroll view.


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