A gradient-backed board that uploads a .jcf chart and shares the outcome.
More...
#include <JcfUpLoadView.h>
|
| (instancetype) | - initWithData:delegate:ctrl: |
| | Builds the board, its label, the confirmation buttons, and the spinner, then arms the owned JcfUploader .
|
| (void) | - pushCancel: |
| | Cancel/End button action: ends the modal through -uploadEnd .
|
| (void) | - pushUploadOK: |
| | Upload-OK button action: shows the spinner, swaps the confirmation buttons for the single Cancel button, and begins the licence-agreement step.
|
| (void) | - licenseStart |
| | Presents the licence-agreement overlay, whose callbacks gate the upload.
|
| (void) | - uploadStart |
| | Updates the label to the in-progress text and starts the owned JcfUploader .
|
| (void) | - startUpload |
| | Unused entry point (an empty body in the binary).
|
| (void) | - uploadEnd |
| | Tells the delegate -uploadEnd: that the modal has finished.
|
| (void) | - uploadError:msgStr: |
| | JcfUploaderDelegate : the upload failed; shows the message and an OK button.
|
| (void) | - uploadNG:ngWords: |
| | JcfUploaderDelegate : the upload was rejected for NG words; shows the rejection message with the three offending words and an OK button.
|
| (void) | - uploadSuccess:uploadInfo: |
| | JcfUploaderDelegate : the upload succeeded; stores the sequence id and share text, shows the success message, and reveals the Twitter (and, when available, Facebook) share buttons.
|
| (void) | - agreementError:msgStr: |
| | LicenseAgreementView callback: the agreement step failed; shows the message, an OK button, and removes the overlay.
|
| (void) | - agreementSuccess: |
| | LicenseAgreementView callback: the agreement was accepted; starts the upload and removes the overlay.
|
| (void) | - agreementFailed: |
| | LicenseAgreementView callback: the agreement was declined; ends the modal.
|
| (void) | - socialSend: |
| | Presents the share composer for the given social service.
|
| (void) | - uploadSendTwitter: |
| | Twitter share button action: posts through -socialSend: with the Twitter service.
|
| (void) | - uploadSendFacebook: |
| | Facebook share button action: posts through -socialSend: with the Facebook service, when the Social framework is available.
|
| (void) | - uploadSuccess:uploadInfo: |
| | The upload succeeded, with the server's returned info.
|
| (void) | - uploadNG:ngWords: |
| | The upload was rejected for NG words (title, editor, and comment).
|
| (void) | - uploadError:msgStr: |
| | The upload failed, with an optional user-facing message.
|
|
| (Class) | + layerClass |
| | The layer class backing the board: a CAGradientLayer .
|
A gradient-backed board that uploads a .jcf chart and shares the outcome.
◆ agreementError:msgStr:
| - (void) agreementError: |
|
(nullable id) | sender |
| msgStr: |
|
(nullable NSString *) | msg |
LicenseAgreementView callback: the agreement step failed; shows the message, an OK button, and removes the overlay.
- Parameters
-
| sender | The licence view. |
| msg | The user-facing message, or nil to use the default failure text. |
- Ghidra address:
- 0x1f4d2c
◆ agreementFailed:
| - (void) agreementFailed: |
|
(nullable id) | sender |
|
LicenseAgreementView callback: the agreement was declined; ends the modal.
- Parameters
-
- Ghidra address:
- 0x1f4ea8
◆ agreementSuccess:
| - (void) agreementSuccess: |
|
(nullable id) | sender |
|
LicenseAgreementView callback: the agreement was accepted; starts the upload and removes the overlay.
- Parameters
-
- Ghidra address:
- 0x1f4e60
◆ initWithData:delegate:ctrl:
| - (instancetype) initWithData: |
|
(nullable NSData *) | data |
| delegate: |
|
(nullable id< JcfUpLoadViewDelegate >) | delegateArg |
| ctrl: |
|
(nullable UIViewController *) | ctrl |
Builds the board, its label, the confirmation buttons, and the spinner, then arms the owned JcfUploader .
The board is 320 wide on a pad and 300 otherwise, 360 tall either way. The board opens on a confirmation: the upload OK (btnUpOK ) and upload Cancel (btnUpCancel ) buttons flank the centre and are visible, while the post-result btnCancel starts fully transparent. The JcfUploader is created but not started; the upload only begins once the licence step completes.
- Parameters
-
| data | The chart data to upload, handed to the JcfUploader . |
| delegateArg | The object told the outcome; held weakly. |
| ctrl | The controller used to present the share sheet; held strongly. |
- Returns
- The initialised view.
- Ghidra address:
- 0x1f31b0
◆ layerClass
The layer class backing the board: a CAGradientLayer .
- Returns
- The
CAGradientLayer class.
- Ghidra address:
- 0x1f319c
- Ghidra address:
- 0x1f319c
◆ licenseStart
Presents the licence-agreement overlay, whose callbacks gate the upload.
- Ghidra address:
- 0x1f4468
◆ pushCancel:
| - (void) pushCancel: |
|
(nullable id) | sender |
|
Cancel/End button action: ends the modal through -uploadEnd .
- Parameters
-
- Ghidra address:
- 0x1f4304
◆ pushUploadOK:
| - (void) pushUploadOK: |
|
(nullable id) | sender |
|
Upload-OK button action: shows the spinner, swaps the confirmation buttons for the single Cancel button, and begins the licence-agreement step.
- Parameters
-
- Ghidra address:
- 0x1f4310
◆ socialSend:
| - (void) socialSend: |
|
(nullable NSString *) | serviceType |
|
Presents the share composer for the given social service.
- Parameters
-
| serviceType | The SLServiceType to compose for. |
- Ghidra address:
- 0x1f4eb4
◆ startUpload
Unused entry point (an empty body in the binary).
- Ghidra address:
- 0x1f4528
◆ uploadEnd
Tells the delegate -uploadEnd: that the modal has finished.
- Ghidra address:
- 0x1f452c
◆ uploadError:msgStr:
| - (void) uploadError: |
|
(nullable JcfUploader *) | uploader |
| msgStr: |
|
(nullable NSString *) | msg |
JcfUploaderDelegate : the upload failed; shows the message and an OK button.
- Parameters
-
| uploader | The failed uploader. |
| msg | The user-facing message, or nil to use the default failure text. |
- Ghidra address:
- 0x1f45d0
◆ uploadNG:ngWords:
| - (void) uploadNG: |
|
(nullable JcfUploader *) | uploader |
| ngWords: |
|
(nullable NSArray *) | ngWords |
JcfUploaderDelegate : the upload was rejected for NG words; shows the rejection message with the three offending words and an OK button.
- Parameters
-
| uploader | The uploader. |
| ngWords | The three NG words (title, editor, and comment). |
- Ghidra address:
- 0x1f46d8
◆ uploadSendFacebook:
| - (void) uploadSendFacebook: |
|
(nullable id) | sender |
|
Facebook share button action: posts through -socialSend: with the Facebook service, when the Social framework is available.
- Parameters
-
- Ghidra address:
- 0x1f5058
◆ uploadSendTwitter:
| - (void) uploadSendTwitter: |
|
(nullable id) | sender |
|
Twitter share button action: posts through -socialSend: with the Twitter service.
- Parameters
-
- Ghidra address:
- 0x1f5040
◆ uploadStart
Updates the label to the in-progress text and starts the owned JcfUploader .
- Ghidra address:
- 0x1f44d8
◆ uploadSuccess:uploadInfo:
| - (void) uploadSuccess: |
|
(nullable JcfUploader *) | uploader |
| uploadInfo: |
|
(nullable NSDictionary *) | uploadInfo |
JcfUploaderDelegate : the upload succeeded; stores the sequence id and share text, shows the success message, and reveals the Twitter (and, when available, Facebook) share buttons.
- Parameters
-
| uploader | The uploader. |
| uploadInfo | The server's returned info, keyed by SeqID and SNSMes . |
- Ghidra address:
- 0x1f48ac
The documentation for this class was generated from the following files: