|
JubeatPlus 3.9.11
|
Hosts the jubeatLab chart download web page and drives its download modal. More...
#include <JcfDownloadPageViewController.h>


Instance Methods | |
| (void) | - initPageView |
| Builds the web view and loading indicator, registers for the suspend notification, and loads the pending request. | |
| (instancetype) | - initWithMusicID:delegate: |
| Initialises the controller to download by music id (a sequence-search page). | |
| (instancetype) | - initWithSequenceID:delegate: |
| Initialises the controller to download by sequence id (a sequence-detail page). | |
| (instancetype) | - initWithURL:delegate: |
| Initialises the controller to load a raw URL, opening a top-page session first. | |
| (nullable NSURLRequest *) | - uiWebView:resource:willSendRequest:redirectResponse:fromDataSource: |
Informal UIWebView resource-load delegate: stamps the jubeatLab User-Agent on every outgoing request. | |
| (void) | - webViewDidStartLoad: |
UIWebViewDelegate : clears the shared URL cache when a load starts. | |
| (void) | - pushClose: |
Close action: persists defaults and tells the delegate -customWebViewClose:seqIndex: . | |
| (BOOL) | - webView:shouldStartLoadWithRequest:navigationType: |
UIWebViewDelegate : intercepts the jubeatLab session-failed URL, the jubeatplus custom scheme (download and Twitter share), and lets other requests through. | |
| (void) | - webViewDidFinishLoad: |
UIWebViewDelegate : stops and removes the loading indicator when the load finishes. | |
| (void) | - webView:didFailLoadWithError: |
UIWebViewDelegate : shows the failure alert. | |
| (void) | - removeDownloadView |
| Tears down the download modal and its dimming cover, and restores the navigation chrome. | |
| (void) | - jcfDownloadEnd: |
JcfDownloadViewDelegate : the modal finished; fades it out, tells the delegate, and clears the downloading flag. | |
| (void) | - jcfDownloadMoveStore:packID: |
JcfDownloadViewDelegate : the modal requested a store jump; fades it out and tells the delegate -moveStore:packID: . | |
| (BOOL) | - shouldAutorotateToInterfaceOrientation: |
| Portrait-only autorotation predicate. | |
| (UIInterfaceOrientationMask) | - supportedInterfaceOrientations |
| The supported orientations mask: portrait only. | |
| (BOOL) | - shouldAutorotate |
Whether the controller may autorotate: always YES. | |
| (void) | - dealloc |
Removes the suspend observer, then chains to super . | |
| (void) | - openStartPage |
Loads the pending nextUrlRequest into the web view. | |
| (void) | - sessionCreate |
| Opens a top-page jubeatLab session and starts it. | |
| (void) | - jubeatLabAccessProceed: |
jubeatLabAccess delegate: progress callback (empty). | |
| (void) | - jubeatLabAccessError: |
jubeatLabAccess delegate: the session request failed; clears the downloader and shows the failure alert. | |
| (void) | - jubeatLabAccessFinished: |
jubeatLabAccess delegate: the session request finished; dispatches on the response Status (open the page, refresh the keychain and retry, or show the server message). | |
| (void) | - successIDDownload: |
EditorIDManagerDelegate : identifier provisioning succeeded; opens a session or reports the error. | |
| (void) | - errorIDDownload:msgStr: |
EditorIDManagerDelegate : identifier provisioning failed; shows an alert. | |
| (void) | - viewWillDisappear: |
| Dismisses any presented alert on the way off screen. | |
| (void) | - socialSend: |
Presents an SLComposeViewController for a social service, seeded with socialString . | |
| (void) | - sendTwitter |
| Presents the Twitter share composer. | |
| (void) | - sendFaceBook |
| Presents the Facebook share composer, when the Social framework is available. | |
| (void) | - appSuspended: |
| Suspend-notification handler: dismisses an open share composer. | |
| (void) | - viewDidAppear: |
| Builds the page on first appearance and, for the raw-URL flow, opens a session or provisions an editor identifier. | |
| Instance Methods inherited from <AlertViewManagerDelegate> | |
| (void) | - alertSelect: |
Sent when the user taps a button in an alert built with makeAlert:. | |
| (void) | - alertClose: |
Sent when a UIAlertController -based alert finishes dismissing. | |
Properties | |
| BOOL | bFromNavigate |
| Whether the controller was pushed onto a navigation stack (hides the back button while the modal is up rather than disabling the left bar button). | |
| BOOL | bCloseStoreMove |
| Whether closing the controller should trigger a store move. | |
Hosts the jubeatLab chart download web page and drives its download modal.
| - (void) appSuspended: | (nullable NSNotification *) | notification |
Suspend-notification handler: dismisses an open share composer.
| notification | The notification. |
| - (void) dealloc |
Removes the suspend observer, then chains to super .
| - (void) errorIDDownload: | (nullable id) | manager | |
| msgStr: | (nullable NSString *) | msgStr |
EditorIDManagerDelegate : identifier provisioning failed; shows an alert.
| manager | The manager. |
| msgStr | The failure message, or nil to use the default communication-error text. |
Reimplemented from <EditorIDManagerDelegate>.
| - (void) initPageView |
Builds the web view and loading indicator, registers for the suspend notification, and loads the pending request.
| - (instancetype) initWithMusicID: | (unsigned int) | musicID | |
| delegate: | (nullable id< JcfDownloadPageViewControllerDelegate >) | delegate |
Initialises the controller to download by music id (a sequence-search page).
| musicID | The music id whose sequences to search. |
| delegate | The object told when the page closes. Held weakly. |
| - (instancetype) initWithSequenceID: | (nullable NSString *) | sequenceID | |
| delegate: | (nullable id< JcfDownloadPageViewControllerDelegate >) | delegate |
Initialises the controller to download by sequence id (a sequence-detail page).
| sequenceID | The sequence id to open. |
| delegate | The object told when the page closes. Held weakly. |
| - (instancetype) initWithURL: | (nullable NSString *) | url | |
| delegate: | (nullable id< JcfDownloadPageViewControllerDelegate >) | delegate |
Initialises the controller to load a raw URL, opening a top-page session first.
| url | The URL string to load. |
| delegate | The object told when the page closes. Held weakly. |
| - (void) jcfDownloadEnd: | (nullable JcfDownloadView *) | view |
JcfDownloadViewDelegate : the modal finished; fades it out, tells the delegate, and clears the downloading flag.
| view | The modal. |
Reimplemented from <JcfDownloadViewDelegate>.
| - (void) jcfDownloadMoveStore: | (nullable JcfDownloadView *) | view | |
| packID: | (nullable NSString *) | packID |
JcfDownloadViewDelegate : the modal requested a store jump; fades it out and tells the delegate -moveStore:packID: .
| view | The modal. |
| packID | The comprised-pack identifier. |
Reimplemented from <JcfDownloadViewDelegate>.
| - (void) jubeatLabAccessError: | (nullable jubeatLabAccess *) | access |
jubeatLabAccess delegate: the session request failed; clears the downloader and shows the failure alert.
| access | The failed downloader. |
| - (void) jubeatLabAccessFinished: | (nullable jubeatLabAccess *) | access |
jubeatLabAccess delegate: the session request finished; dispatches on the response Status (open the page, refresh the keychain and retry, or show the server message).
| access | The finished downloader. |
| - (void) jubeatLabAccessProceed: | (nullable jubeatLabAccess *) | access |
jubeatLabAccess delegate: progress callback (empty).
| access | The downloader. |
| - (void) openStartPage |
Loads the pending nextUrlRequest into the web view.
| - (void) pushClose: | (nullable id) | sender |
Close action: persists defaults and tells the delegate -customWebViewClose:seqIndex: .
Ignored while the download modal is up.
| sender | The sender. |
| - (void) removeDownloadView |
Tears down the download modal and its dimming cover, and restores the navigation chrome.
| - (void) sendFaceBook |
Presents the Facebook share composer, when the Social framework is available.
| - (void) sendTwitter |
Presents the Twitter share composer.
| - (void) sessionCreate |
Opens a top-page jubeatLab session and starts it.
| - (BOOL) shouldAutorotate |
Whether the controller may autorotate: always YES.
| - (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation |
Portrait-only autorotation predicate.
| interfaceOrientation | The proposed orientation. |
YES for the two portrait orientations. | - (void) socialSend: | (nullable NSString *) | serviceType |
Presents an SLComposeViewController for a social service, seeded with socialString .
| serviceType | The social service type constant. |
| - (void) successIDDownload: | (nullable id) | manager |
EditorIDManagerDelegate : identifier provisioning succeeded; opens a session or reports the error.
| manager | The manager. |
Reimplemented from <EditorIDManagerDelegate>.
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
The supported orientations mask: portrait only.
| - (nullable NSURLRequest *) uiWebView: | (nullable id) | webView | |
| resource: | (nullable id) | resource | |
| willSendRequest: | (nullable NSURLRequest *) | request | |
| redirectResponse: | (nullable NSURLResponse *) | redirectResponse | |
| fromDataSource: | (nullable id) | dataSource |
Informal UIWebView resource-load delegate: stamps the jubeatLab User-Agent on every outgoing request.
| webView | The web view. |
| resource | The resource identifier. |
| request | The request about to be sent. |
| redirectResponse | The redirect response, if any. |
| dataSource | The data source. |
User-Agent header set. | - (void) viewDidAppear: | (BOOL) | animated |
Builds the page on first appearance and, for the raw-URL flow, opens a session or provisions an editor identifier.
| animated | Whether the appearance is animated. |
| - (void) viewWillDisappear: | (BOOL) | animated |
Dismisses any presented alert on the way off screen.
| animated | Whether the disappearance is animated. |
| - (void) webView: | (nullable UIWebView *) | webView | |
| didFailLoadWithError: | (nullable NSError *) | error |
UIWebViewDelegate : shows the failure alert.
| webView | The web view. |
| error | The load error. |
| - (BOOL) webView: | (nullable UIWebView *) | webView | |
| shouldStartLoadWithRequest: | (nullable NSURLRequest *) | request | |
| navigationType: | (UIWebViewNavigationType) | navigationType |
UIWebViewDelegate : intercepts the jubeatLab session-failed URL, the jubeatplus custom scheme (download and Twitter share), and lets other requests through.
| webView | The web view. |
| request | The request about to load. |
| navigationType | The navigation type. |
YES to allow the load, NO to intercept it. | - (void) webViewDidFinishLoad: | (nullable UIWebView *) | webView |
UIWebViewDelegate : stops and removes the loading indicator when the load finishes.
| webView | The web view. |
| - (void) webViewDidStartLoad: | (nullable UIWebView *) | webView |
UIWebViewDelegate : clears the shared URL cache when a load starts.
| webView | The web view. |
|
readwritenonatomicassign |
Whether closing the controller should trigger a store move.
|
readwritenonatomicassign |
Whether the controller was pushed onto a navigation stack (hides the back button while the modal is up rather than disabling the left bar button).