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

A view controller presenting the jubeatLab editor page in a UIWebView. More...

#include <SettingsEditorPageViewController.h>

Inheritance diagram for SettingsEditorPageViewController:
Collaboration diagram for SettingsEditorPageViewController:

Instance Methods

(nullable NSURLRequest *) - createEditorPageURL
 Builds the request for the editor page: an NSURLRequest wrapping +[jubeatLabAccess getUserPageURL] .
(void) - openStartPage
 Loads the stored next request into the web view.
(void) - sessionCreate
 Opens a jubeatLab session: builds a jubeatLabAccess session client bound to this controller and starts it.
(instancetype) - init
 Initialises the controller: builds the web view and its editor-page request, then either opens a session (when an editor identifier exists) or provisions one through an EditorIDManager .
(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) - webView:didFailLoadWithError:
 Shows a communication-error alert on a load failure.
(void) - webViewDidStartLoad:
 Clears the shared URL cache when a load starts.
(void) - jubeatLabAccessProceed:
 jubeatLab callback sent as the session proceeds.
(void) - jubeatLabAccessError:
 jubeatLab callback sent when the session fails: clears the session and shows a communication-error alert.
(void) - jubeatLabAccessFinished:
 jubeatLab callback sent when the session finishes.
(void) - successIDDownload:
 EditorIDManager callback: editor identifier provisioning succeeded.
(void) - errorIDDownload:msgStr:
 EditorIDManager callback: editor identifier provisioning failed.
(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.
(void) - viewWillDisappear:
 Closes any open alert when the view disappears.
(void) - socialSend:
 Presents the social share composer for a service type, seeded with the stored share text.
(void) - sendTwitter
 Shares to Twitter.
(void) - sendFaceBook
 Shares to Facebook.

Detailed Description

A view controller presenting the jubeatLab editor page in a UIWebView.

Method Documentation

◆ createEditorPageURL

- (NSURLRequest *) createEditorPageURL

Builds the request for the editor page: an NSURLRequest wrapping +[jubeatLabAccess getUserPageURL] .

Returns
The request. Despite the "URL" name the binary returns an NSURLRequest .
Ghidra address:
0x1f7a88
Ghidra address:
0x1f7a88

◆ errorIDDownload:msgStr:

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

EditorIDManager callback: editor identifier provisioning failed.

Shows the server message (or a communication-error alert when it is absent).

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

Reimplemented from <EditorIDManagerDelegate>.

◆ init

- (instancetype) init

Initialises the controller: builds the web view and its editor-page request, then either opens a session (when an editor identifier exists) or provisions one through an EditorIDManager .

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

◆ jubeatLabAccessError:

- (void) jubeatLabAccessError: (nullable id) access

jubeatLab callback sent when the session fails: clears the session and shows a communication-error alert.

Parameters
accessThe jubeatLab client.
Ghidra address:
0x1f8268

◆ jubeatLabAccessFinished:

- (void) jubeatLabAccessFinished: (nullable id) access

jubeatLab callback sent when the session finishes.

On a keychain-switch status it replaces the keychain and re-opens a session; on success it opens the start page; on any other status with a server message it shows that message.

Parameters
accessThe jubeatLab client.
Ghidra address:
0x1f838c

◆ jubeatLabAccessProceed:

- (void) jubeatLabAccessProceed: (nullable id) access

jubeatLab callback sent as the session proceeds.

Does nothing.

Parameters
accessThe jubeatLab client.
Ghidra address:
0x1f8264

◆ openStartPage

- (void) openStartPage

Loads the stored next request into the web view.

Ghidra address:
0x1f7af0

◆ sendFaceBook

- (void) sendFaceBook

Shares to Facebook.

Ghidra address:
0x1f895c

◆ sendTwitter

- (void) sendTwitter

Shares to Twitter.

Ghidra address:
0x1f8944

◆ sessionCreate

- (void) sessionCreate

Opens a jubeatLab session: builds a jubeatLabAccess session client bound to this controller and starts it.

Ghidra address:
0x1f7b18

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the controller supports autorotation; always YES.

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

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

◆ socialSend:

- (void) socialSend: (nullable NSString *) serviceType

Presents the social share composer for a service type, seeded with the stored share text.

Parameters
serviceTypeThe SLServiceType constant to compose for.
Ghidra address:
0x1f87f4

◆ successIDDownload:

- (void) successIDDownload: (nullable id) manager

EditorIDManager callback: editor identifier provisioning succeeded.

Opens a session, or reports an error when the identifier is still absent.

Parameters
managerThe manager that finished.
Ghidra address:
0x1f859c

Reimplemented from <EditorIDManagerDelegate>.

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

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

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

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

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

Closes any open alert when the view disappears.

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

◆ webView:didFailLoadWithError:

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

Shows a communication-error alert on a load failure.

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

◆ webView:shouldStartLoadWithRequest:navigationType:

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

Gates the page's navigation.

A request to the session-failed URL re-opens a session; a clicked twitter:// link is turned into share text and sent to Twitter; any other clicked link is stored as the next request. 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:
0x1f7f44
Ghidra address:
0x1f7f44

◆ webViewDidStartLoad:

- (void) webViewDidStartLoad: (UIWebView *) webView

Clears the shared URL cache when a load starts.

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

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