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

A view controller presenting the support inquiry page in a UIWebView. More...

#include <SettingsInquiryViewController.h>

Inheritance diagram for SettingsInquiryViewController:
Collaboration diagram for SettingsInquiryViewController:

Instance Methods

(instancetype) - init
 Initialises the controller and builds its request and title from the inquiry URL.
(void) - initPageView
 Builds the web view and loading indicator, then loads the inquiry request.
(instancetype) - initWithURL:
 Initialises the controller to load an explicit URL instead of the inquiry URL.
(void) - webViewDidStartLoad:
 Clears the shared URL cache when a load starts.
(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:
 Intercepts the page's openurl:// links: rewrites them to https:// , opens them externally, and pops this controller.
(void) - webViewDidFinishLoad:
 Stops and removes the loading indicator when a load finishes.
(void) - webView:didFailLoadWithError:
 Shows a network-error alert on a load failure.
(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 support inquiry page in a UIWebView.

Method Documentation

◆ init

- (instancetype) init

Initialises the controller and builds its request and title from the inquiry URL.

Returns
The initialised controller.
Ghidra address:
0xd8908
Ghidra address:
0xd8908

◆ initPageView

- (void) initPageView

Builds the web view and loading indicator, then loads the inquiry request.

Called after the view is available; the request is built from +[ScratchUtil getInquiryURL].

Ghidra address:
0xd8964
Ghidra address:
0xd8964

◆ initWithURL:

- (instancetype) initWithURL: (nullable NSString *) url

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

Parameters
urlThe URL string to load.
Returns
The initialised controller.
Ghidra address:
0xd8ccc

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the controller supports autorotation; always YES.

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

◆ 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:
0xd9270
Ghidra address:
0xd9270

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

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

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

◆ 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:
0xd8e2c

◆ webView:didFailLoadWithError:

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

Shows a network-error alert on a load failure.

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

◆ webView:shouldStartLoadWithRequest:navigationType:

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

Intercepts the page's openurl:// links: rewrites them to https:// , opens them externally, and pops this controller.

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:
0xd8f74
Ghidra address:
0xd8f74

◆ webViewDidFinishLoad:

- (void) webViewDidFinishLoad: (UIWebView *) webView

Stops and removes the loading indicator when a load finishes.

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

◆ webViewDidStartLoad:

- (void) webViewDidStartLoad: (UIWebView *) webView

Clears the shared URL cache when a load starts.

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

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