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

A grey plate holding one aspect-fill image view, loaded over the network on demand. More...

#include <BannerView.h>

Inheritance diagram for BannerView:
Collaboration diagram for BannerView:

Instance Methods

(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.

Properties

UIImageView * imageView
 The image view filling the banner.
StorePromotion * promotion
 The promotion whose artwork this banner shows.

Detailed Description

A grey plate holding one aspect-fill image view, loaded over the network on demand.

Method Documentation

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame
Initial value:
{
NSURLSessionDataTask *task

Builds the grey plate and its clipped, aspect-filling image view.

Parameters
frameThe 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
sessionThe 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
cornerRadiusThe radius to apply to both layers.
Ghidra address:
0x1bb028
Ghidra address:
0x1bb028

Property Documentation

◆ imageView

- (UIImageView*) imageView
readnonatomicassign

The image view filling the banner.

Readonly: it is built by the initialiser and never replaced.

◆ promotion

- (StorePromotion*) promotion
readwritenonatomicstrong

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: