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

The timing-adjust calibration view controller. More...

#include <SettingsTimingAdjustViewController.h>

Inheritance diagram for SettingsTimingAdjustViewController:
Collaboration diagram for SettingsTimingAdjustViewController:

Instance Methods

(instancetype) - init
 Sets the navigation title, seeds delaySector from NSUserDefaults , subscribes to the app suspend/resume notifications, and starts the display-link animation.
(void) - loadView
 Builds the whole calibration UI: the background image, the four labels, the slider, the rounded preview container, the preview AdjustTestView , and the play/pause button.
(void) - viewWillAppear:
 Chains up to UIViewController .
(void) - viewDidAppear:
 Chains up to UIViewController .
(void) - viewWillDisappear:
 Pauses the preview and flushes NSUserDefaults , then chains up.
(void) - viewDidDisappear:
 Drops the preview view, removes the notification observers, then chains up.
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Allows portrait and portrait-upside-down only.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 Returns the portrait and portrait-upside-down mask.
(BOOL) - shouldAutorotate
 Returns YES to permit autorotation.
(void) - tapAutoSetting:
 Presents the auto-calibration confirmation alert (Cancel / OK).
(void) - alertSelect:
 The auto-calibration alert callback: on the OK button, shows the "done" confirmation.
(void) - dealloc
 Drops the preview view and removes the notification observers, then chains up.
(void) - changeTiming:
 Slider value-changed action: snaps the slider, maps it to delaySector , updates the value label and preview offset, and persists the offset.
(void) - refreshValue
 Formats the current slider value into the value label.
(void) - switchPrev:
 Play/pause button action: toggles playback, swaps the button icon, and starts or pauses the preview and its looping test sound.
(void) - appSuspended:
 App-suspend notification handler: pauses the animation and preview and forces the paused state.
(void) - appResume:
 App-resume notification handler: resumes the preview and the animation.
(void) - finishMusic:
 Background-music-finished notification handler: forces the paused state and stops the preview.
(void) - startAnimation
 Creates the CADisplayLink targeting -loop: and adds it to the current run loop.
(void) - pauseAnimation
 Pauses the display link, if any.
(void) - resumeAnimation
 Unpauses the display link, if any.
(void) - stopAnimation
 Invalidates and clears the display link, if any.
(void) - loop:
 Display-link callback: draws one preview frame.
(nullable NSString *) - soundName:
 Builds the theme-prefixed sound-effect resource name for the given base name.
Instance Methods inherited from <AlertViewManagerDelegate>
(void) - alertClose:
 Sent when a UIAlertController -based alert finishes dismissing.

Properties

CADisplayLink * displayLink
 The display link driving the preview animation.

Detailed Description

The timing-adjust calibration view controller.

Method Documentation

◆ alertSelect:

- (void) alertSelect: (nonnull NSDictionary *) info

The auto-calibration alert callback: on the OK button, shows the "done" confirmation.

Parameters
infoThe alert-manager info dictionary carrying the tapped button index.
Ghidra address:
0x17582c

Reimplemented from <AlertViewManagerDelegate>.

◆ appResume:

- (void) appResume: (nullable NSNotification *) notification

App-resume notification handler: resumes the preview and the animation.

Parameters
notificationThe resume notification.
Ghidra address:
0x175f60

◆ appSuspended:

- (void) appSuspended: (nullable NSNotification *) notification

App-suspend notification handler: pauses the animation and preview and forces the paused state.

Parameters
notificationThe suspend notification.
Ghidra address:
0x175ec0

◆ changeTiming:

- (void) changeTiming: (nullable id) sender

Slider value-changed action: snaps the slider, maps it to delaySector , updates the value label and preview offset, and persists the offset.

Parameters
senderThe slider.
Ghidra address:
0x1759fc

◆ dealloc

- (void) dealloc

Drops the preview view and removes the notification observers, then chains up.

Ghidra address:
0x17596c

◆ finishMusic:

- (void) finishMusic: (nullable NSNotification *) notification

Background-music-finished notification handler: forces the paused state and stops the preview.

Parameters
notificationThe finish notification.
Ghidra address:
0x175fa0

◆ init

- (instancetype) init

Sets the navigation title, seeds delaySector from NSUserDefaults , subscribes to the app suspend/resume notifications, and starts the display-link animation.

Returns
The initialised controller.
Ghidra address:
0x1745e0
Ghidra address:
0x1745e0

◆ loadView

- (void) loadView

Builds the whole calibration UI: the background image, the four labels, the slider, the rounded preview container, the preview AdjustTestView , and the play/pause button.

Ghidra address:
0x174740

◆ loop:

- (void) loop: (nullable CADisplayLink *) sender

Display-link callback: draws one preview frame.

Parameters
senderThe display link.
Ghidra address:
0x17633c

◆ pauseAnimation

- (void) pauseAnimation

Pauses the display link, if any.

Ghidra address:
0x1761a0

◆ refreshValue

- (void) refreshValue

Formats the current slider value into the value label.

Ghidra address:
0x175b04

◆ resumeAnimation

- (void) resumeAnimation

Unpauses the display link, if any.

Ghidra address:
0x176224

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Returns YES to permit autorotation.

Returns
YES.
Ghidra address:
0x175670
Ghidra address:
0x175670

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Allows portrait and portrait-upside-down only.

Parameters
interfaceOrientationThe orientation being queried.
Returns
YES for portrait orientations.
Ghidra address:
0x175658
Ghidra address:
0x175658

◆ soundName:

- (nullable NSString *) soundName: (nullable NSString *) name

Builds the theme-prefixed sound-effect resource name for the given base name.

Parameters
nameThe base sound-effect name (for example MUSIC_SELECT or SKIP ).
Returns
The theme-prefixed resource name (for example SD_RPL_MUSIC_SELECT ).
Ghidra address:
0x176354

◆ startAnimation

- (void) startAnimation

Creates the CADisplayLink targeting -loop: and adds it to the current run loop.

Ghidra address:
0x17606c

◆ stopAnimation

- (void) stopAnimation

Invalidates and clears the display link, if any.

Ghidra address:
0x1762a8

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

Returns the portrait and portrait-upside-down mask.

Returns
The supported orientation mask.
Ghidra address:
0x175668
Ghidra address:
0x175668

◆ switchPrev:

- (void) switchPrev: (nullable id) sender

Play/pause button action: toggles playback, swaps the button icon, and starts or pauses the preview and its looping test sound.

Parameters
senderThe button.
Ghidra address:
0x175cb8

◆ tapAutoSetting:

- (void) tapAutoSetting: (nullable id) sender

Presents the auto-calibration confirmation alert (Cancel / OK).

Parameters
senderThe control that fired the action.
Ghidra address:
0x175678

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

Chains up to UIViewController .

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0x1754f0
Ghidra address:
0x1754f0

◆ viewDidDisappear:

- (void) viewDidDisappear: (BOOL) animated

Drops the preview view, removes the notification observers, then chains up.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0x1755b8
Ghidra address:
0x1755b8

◆ viewWillAppear:

- (void) viewWillAppear: (BOOL) animated

Chains up to UIViewController .

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0x1754b8
Ghidra address:
0x1754b8

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

Pauses the preview and flushes NSUserDefaults , then chains up.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0x175528
Ghidra address:
0x175528

Property Documentation

◆ displayLink

- (CADisplayLink*) displayLink
readwritenonatomicstrong

The display link driving the preview animation.

Ghidra address:
0x176444 (getter)
Ghidra address:
0x176454 (setter)

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