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

A view controller presenting the notification page in a UIWebView. More...

#include <NotificationPageViewController.h>

Inheritance diagram for NotificationPageViewController:
Collaboration diagram for NotificationPageViewController:

Instance Methods

(void) - initPage:
 Builds the web view and loading indicator and stores the delegate; does not load a request (see notificationRequest ).
(void) - notificationRequest
 Loads the notification request into the web view.
(instancetype) - init:
 Initialises the controller for the application notification URL.
(instancetype) - initWithURL:delegate:
 Initialises the controller to load an explicit URL instead of the notification URL.
(nullable NSURLRequest *) - uiWebView:resource:willSendRequest:redirectResponse:fromDataSource:
 Resource-load hook that stamps the app's user agent onto every outgoing request.
(BOOL) - webView:shouldStartLoadWithRequest:navigationType:
 Gates the page's navigation.
(void) - stopIndicator
 Stops and removes the loading indicator.
(void) - webView:didFailLoadWithError:
 Shows a network-error alert on a load failure, then stops the indicator.
(void) - webViewDidStartLoad:
 Clears the shared URL cache when a load starts.
(void) - webViewDidFinishLoad:
 Stops the indicator when a load finishes and disables the WebKit touch-callout menu.
(void) - moveStore:packID:
 Tells the delegate to move to the jubeat store at a given pack.
(void) - viewWillDisappear:
 Closes any open alert when the view disappears.
(void) - errorIDDownload:msgStr:
 EditorIDManager callback: editor identifier provisioning failed.
(void) - successIDDownload:
 EditorIDManager callback: editor identifier provisioning succeeded.
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Whether to rotate to a given interface orientation; portrait and portrait-upside-down only.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The supported interface orientations: portrait and portrait-upside-down.
(BOOL) - shouldAutorotate
 Whether the controller supports autorotation; always YES.

Detailed Description

A view controller presenting the notification page in a UIWebView.

Method Documentation

◆ errorIDDownload:msgStr:

- (void) errorIDDownload: (nullable id) manager
msgStr: (nullable NSString *) msgStr 

EditorIDManager callback: editor identifier provisioning failed.

Loads the notification request regardless.

Parameters
managerThe manager that failed.
msgStrThe server-supplied message, or nil.
Ghidra address:
0x1eb404

Reimplemented from <EditorIDManagerDelegate>.

◆ init:

- (instancetype) init: (nullable id< NotificationPageViewControllerDelegate >) delegate

Initialises the controller for the application notification URL.

When an editor identifier exists it loads immediately, otherwise it provisions one through an EditorIDManager .

Parameters
delegateThe delegate to receive store-navigation events. Held weakly.
Returns
The initialised controller.
Ghidra address:
0x1ea914

◆ initPage:

- (void) initPage: (nullable id< NotificationPageViewControllerDelegate >) delegate

Builds the web view and loading indicator and stores the delegate; does not load a request (see notificationRequest ).

Parameters
delegateThe delegate to receive store-navigation events. Held weakly.
Ghidra address:
0x1ea528

◆ initWithURL:delegate:

- (instancetype) initWithURL: (nullable NSURL *) url
delegate: (nullable id< NotificationPageViewControllerDelegate >) delegate 

Initialises the controller to load an explicit URL instead of the notification URL.

Parameters
urlThe URL to load.
delegateThe delegate to receive store-navigation events. Held weakly.
Returns
The initialised controller.
Ghidra address:
0x1eaa8c

◆ moveStore:packID:

- (void) moveStore: (nullable id) store
packID: (nullable NSString *) packID 

Tells the delegate to move to the jubeat store at a given pack.

Parameters
storeThe store target (unused by the binary beyond being forwarded).
packIDThe pack identifier to open.
Ghidra address:
0x1eb314

◆ notificationRequest

- (void) notificationRequest

Loads the notification request into the web view.

Builds it from -[JubeatAppDelegate notificationURL] when none was supplied at initialisation.

Ghidra address:
0x1ea82c
Ghidra address:
0x1ea82c

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the controller supports autorotation; always YES.

Returns
Always YES.
Ghidra address:
0x1eb434
Ghidra address:
0x1eb434

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Whether to rotate to a given interface orientation; portrait and portrait-upside-down only.

Parameters
interfaceOrientationThe orientation asked about.
Returns
YES for the two portrait orientations, NO otherwise.
Ghidra address:
0x1eb41c
Ghidra address:
0x1eb41c

◆ stopIndicator

- (void) stopIndicator

Stops and removes the loading indicator.

Ghidra address:
0x1eb108

◆ successIDDownload:

- (void) successIDDownload: (nullable id) manager

EditorIDManager callback: editor identifier provisioning succeeded.

Loads the notification request.

Parameters
managerThe manager that finished.
Ghidra address:
0x1eb410

Reimplemented from <EditorIDManagerDelegate>.

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The supported interface orientations: portrait and portrait-upside-down.

Returns
Both portrait orientations.
Ghidra address:
0x1eb42c
Ghidra address:
0x1eb42c

◆ uiWebView:resource:willSendRequest:redirectResponse:fromDataSource:

- (nullable NSURLRequest *) uiWebView: (nullable id) uiWebView
resource: (nullable id) resource
willSendRequest: (nullable NSMutableURLRequest *) request
redirectResponse: (nullable NSURLResponse *) redirectResponse
fromDataSource: (nullable id) dataSource 

Resource-load hook that stamps the app's user agent onto every outgoing request.

Parameters
uiWebViewThe web view loading the resource.
resourceThe resource being loaded.
requestThe outgoing request, stamped with the user agent.
redirectResponseThe redirect that led here, or nil when there was none.
dataSourceThe data source driving the load.
Returns
The request to send.
Ghidra address:
0x1eabc0

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

Closes any open alert when the view disappears.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0x1eb3bc
Ghidra address:
0x1eb3bc

◆ webView:didFailLoadWithError:

- (void) webView: (UIWebView *) webView
didFailLoadWithError: (NSError *) error 

Shows a network-error alert on a load failure, then stops the indicator.

Parameters
webViewThe web view reporting the failure.
errorThe load failure.
Ghidra address:
0x1eb164
Ghidra address:
0x1eb164

◆ webView:shouldStartLoadWithRequest:navigationType:

- (BOOL) webView: (UIWebView *) webView
shouldStartLoadWithRequest: (NSURLRequest *) request
navigationType: (UIWebViewNavigationType) navigationType 

Gates the page's navigation.

Only a user-clicked link is inspected: a twitter:// link is blocked, an openurl:// link is opened externally as https:// , and a jbtstore://.../pack/<id> link is delivered to the delegate. Returns NO for a handled link and YES otherwise.

Parameters
webViewThe web view asking.
requestThe request it is about to load.
navigationTypeWhat triggered the navigation.
Returns
NO for a handled link, YES otherwise.
Ghidra address:
0x1ead08
Ghidra address:
0x1ead08

◆ webViewDidFinishLoad:

- (void) webViewDidFinishLoad: (UIWebView *) webView

Stops the indicator when a load finishes and disables the WebKit touch-callout menu.

Parameters
webViewThe web view that finished loading.
Ghidra address:
0x1eb2a4
Ghidra address:
0x1eb2a4

◆ webViewDidStartLoad:

- (void) webViewDidStartLoad: (UIWebView *) webView

Clears the shared URL cache when a load starts.

Parameters
webViewThe web view that started loading.
Ghidra address:
0x1eb25c
Ghidra address:
0x1eb25c

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