A grey plate holding one aspect-fill image view, loaded over the network on demand.
More...
#include <BannerView.h>
|
| (instancetype) | - initWithFrame: |
| | Builds the grey plate and its clipped, aspect-filling image view.
|
| (void) | - setCornerRadius: |
| | Rounds both the banner's own corners and its image view's, to the same radius.
|
| (void) | - loadImageWithSession: |
| | Starts fetching the promotion's artwork.
|
A grey plate holding one aspect-fill image view, loaded over the network on demand.
◆ initWithFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
|
Initial value:{
NSURLSessionDataTask *task
Builds the grey plate and its clipped, aspect-filling image view.
- Parameters
-
| frame | The view's initial frame. |
- Returns
- The initialised view.
- Ghidra address:
- 0x1bae8c
- Ghidra address:
- 0x1bae8c
◆ loadImageWithSession:
| - (void) loadImageWithSession: |
|
(nullable NSURLSession *) | session |
|
Starts fetching the promotion's artwork.
Does nothing when the promotion's address does not parse as a URL. The task replaces any previous one, and the image view is captured weakly so a banner that goes away mid-flight does not keep it alive.
- Parameters
-
| session | The session to create the data task on. |
- Ghidra address:
- 0x1bb0c0
◆ setCornerRadius:
| - (void) setCornerRadius: |
|
(CGFloat) | cornerRadius |
|
Rounds both the banner's own corners and its image view's, to the same radius.
- Parameters
-
| cornerRadius | The radius to apply to both layers. |
- Ghidra address:
- 0x1bb028
- Ghidra address:
- 0x1bb028
◆ imageView
| - (UIImageView*) imageView |
|
readnonatomicassign |
The image view filling the banner.
Readonly: it is built by the initialiser and never replaced.
◆ promotion
The promotion whose artwork this banner shows.
Read by -loadImageWithSession: to find the address to fetch.
The documentation for this class was generated from the following files: