A view controller presenting the support inquiry page in a UIWebView.
More...
#include <SettingsInquiryViewController.h>
A view controller presenting the support inquiry page in a UIWebView.
◆ 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
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
-
| url | The 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
-
| interfaceOrientation | The 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
-
| uiWebView | The web view loading the resource. |
| resource | The resource being loaded. |
| request | The outgoing request, stamped with the user agent. |
| redirectResponse | The redirect that led here, or nil when there was none. |
| dataSource | The 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
-
| webView | The web view reporting the failure. |
| error | The 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
-
| webView | The web view asking. |
| request | The request it is about to load. |
| navigationType | What 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
-
| webView | The 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
-
| webView | The web view that started loading. |
- Ghidra address:
- 0xd8de4
- Ghidra address:
- 0xd8de4
The documentation for this class was generated from the following files: