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

A UIWebView sheet that shows the challenge login/information page and routes its custom link schemes back to a delegate. More...

#include <ChallengeLoginInformationView.h>

Inheritance diagram for ChallengeLoginInformationView:
Collaboration diagram for ChallengeLoginInformationView:

Instance Methods

(instancetype) - initWithFrame:dispURL:btnType:
 The designated initialiser.
(instancetype) - initWithFrame:
 Builds the sheet's subviews and starts loading.
(void) - notificationRequest
 Loads the sheet's request into the web view, building one from dispURL when firstRequest is not already set.
(void) - closeMessage:
 Close-button action: plays the close sound when independent, then notifies the delegate.
(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 custom link schemes; returns NO for a handled link and YES to let the web view load the request.
(void) - stopIndicator
 Stops and removes the loading indicator.
(void) - webView:didFailLoadWithError:
 Shows a network-error alert and stops the indicator on a load failure.
(void) - webViewDidStartLoad:
 Clears the shared URL cache when a load starts.
(void) - webViewDidFinishLoad:
 Stops the indicator and disables the WebKit touch callout when a load finishes.

Properties

BOOL bIndependMenu
 Whether this sheet stands alone (plays its own close sound); backed by _bIndependMenu .
id< ChallengeLoginInformationViewDelegate > aDelegate
 The owner told about close and pack-link events.

Detailed Description

A UIWebView sheet that shows the challenge login/information page and routes its custom link schemes back to a delegate.

Method Documentation

◆ closeMessage:

- (void) closeMessage: (nullable id) sender

Close-button action: plays the close sound when independent, then notifies the delegate.

Parameters
senderThe close button.
Ghidra address:
0xaf9e0

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the sheet's subviews and starts loading.

Funnelled to by the designated initialiser.

Parameters
frameThe view's initial frame.
Returns
The initialised view.
Ghidra address:
0xaf244
Ghidra address:
0xaf244

◆ initWithFrame:dispURL:btnType:

- (instancetype) initWithFrame: (CGRect) frame
dispURL: (nullable NSString *) dispURL
btnType: (int) btnType 

The designated initialiser.

Parameters
frameThe sheet's frame in its superview.
dispURLThe page URL to load; when nil the challenge information URL is used.
btnTypeThe close-button art selector; 1 uses the "back" image, otherwise "cancel".
Returns
The initialised sheet.
Ghidra address:
0xaf19c

◆ notificationRequest

- (void) notificationRequest

Loads the sheet's request into the web view, building one from dispURL when firstRequest is not already set.

Ghidra address:
0xaf914

◆ stopIndicator

- (void) stopIndicator

Stops and removes the loading indicator.

Ghidra address:
0xb00a8

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

◆ webView:didFailLoadWithError:

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

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

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

◆ webView:shouldStartLoadWithRequest:navigationType:

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

Intercepts the page's custom link schemes; returns NO for a handled link and YES to let the web view load the request.

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

◆ webViewDidFinishLoad:

- (void) webViewDidFinishLoad: (UIWebView *) webView

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

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

◆ webViewDidStartLoad:

- (void) webViewDidStartLoad: (UIWebView *) webView

Clears the shared URL cache when a load starts.

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

Property Documentation

◆ aDelegate

- (id<ChallengeLoginInformationViewDelegate>) aDelegate
readwritenonatomicweak

The owner told about close and pack-link events.

Held weakly; backed by _aDelegate .


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