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

A modal peer-host picker for sharing music, laid over a dimmed gradient board. More...

#include <MusicShareView.h>

Inheritance diagram for MusicShareView:
Collaboration diagram for MusicShareView:

Instance Methods

(instancetype) - initWithFrame:
 Builds the whole modal: the gradient board, its host icon and join-background images, the status message label, the (initially detached) host table with its inner shadow, the Cancel button, and the activity indicator.
(void) - pushCancel:
 Cancel button action: tells the controller to cancel the share.
(void) - changeClientModeSearch
 Enters the searching state: shows "Searching hosts", makes the host table selectable, and adds the table and its inner-shadow overlay to the board.
(void) - changeClientModeConnecting
 Enters the connecting state: locks the host table against selection and shows "Connecting".
(void) - changeClientModeConnected
 Enters the connected state: detaches the host table as data source and delegate, fades it and its shadow out and removes them, and starts the activity indicator spinning.
(void) - addHost:
 Adds a discovered host, taking its display name from the peer itself, and reloads the table with an inserted row.
(void) - removeHostTmp:
 Removes a host row, resetting the message to "Searching hosts" once the list empties.
(void) - addHost:name:
 Adds a discovered host under an explicit display name and reloads the table with an inserted row.
(void) - removeHost:
 Removes a host row, resetting the message to "Searching hosts" once the list empties.

Class Methods

(Class) + layerClass
 Backs the view with a CAGradientLayer .

Properties

MusicSelectViewController * controller
 The owning controller, told which host to connect to and when the panel is cancelled.

Detailed Description

A modal peer-host picker for sharing music, laid over a dimmed gradient board.

Method Documentation

◆ addHost:

- (void) addHost: (nonnull MCPeerID *) host

Adds a discovered host, taking its display name from the peer itself, and reloads the table with an inserted row.

Parameters
hostThe peer that was found.
Ghidra address:
0x1842c4

◆ addHost:name:

- (void) addHost: (nonnull MCPeerID *) host
name: (nonnull NSString *) name 

Adds a discovered host under an explicit display name and reloads the table with an inserted row.

Parameters
hostThe peer that was found.
nameThe display name to show for that peer.
Ghidra address:
0x184704

◆ changeClientModeConnected

- (void) changeClientModeConnected

Enters the connected state: detaches the host table as data source and delegate, fades it and its shadow out and removes them, and starts the activity indicator spinning.

Ghidra address:
0x183f78
Ghidra address:
0x184144
Ghidra address:
0x184208

◆ changeClientModeConnecting

- (void) changeClientModeConnecting

Enters the connecting state: locks the host table against selection and shows "Connecting".

Ghidra address:
0x183ec0

◆ changeClientModeSearch

- (void) changeClientModeSearch

Enters the searching state: shows "Searching hosts", makes the host table selectable, and adds the table and its inner-shadow overlay to the board.

Ghidra address:
0x183db0

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the whole modal: the gradient board, its host icon and join-background images, the status message label, the (initially detached) host table with its inner shadow, the Cancel button, and the activity indicator.

The board takes the frame it is given; there is no per-idiom or per-theme sizing here.

Parameters
frameThe board's frame, sized by the caller.
Returns
The initialised panel.
Ghidra address:
0x1832ec
Ghidra address:
0x1832ec

◆ layerClass

+ (Class) layerClass

Backs the view with a CAGradientLayer .

Returns
The CAGradientLayer class.
Ghidra address:
0x1832d8
Ghidra address:
0x1832d8

◆ pushCancel:

- (void) pushCancel: (nullable id) sender

Cancel button action: tells the controller to cancel the share.

Parameters
senderThe Cancel button. Unused.
Ghidra address:
0x183d6c

◆ removeHost:

- (void) removeHost: (nonnull MCPeerID *) host

Removes a host row, resetting the message to "Searching hosts" once the list empties.

Byte-for-byte identical to -removeHostTmp: in the binary.

Parameters
hostThe peer to remove.
Ghidra address:
0x18492c

◆ removeHostTmp:

- (void) removeHostTmp: (nonnull MCPeerID *) host

Removes a host row, resetting the message to "Searching hosts" once the list empties.

Byte-for-byte identical to -removeHost: in the binary.

Parameters
hostThe peer to remove.
Ghidra address:
0x1844f4

Property Documentation

◆ controller

- (MusicSelectViewController*) controller
readwritenonatomicweak

The owning controller, told which host to connect to and when the panel is cancelled.

Held weakly (the controller owns the view).


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