|
JubeatPlus 3.9.11
|
The timing-adjust calibration view controller. More...
#include <SettingsTimingAdjustViewController.h>


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. | |
The timing-adjust calibration view controller.
| - (void) alertSelect: | (nonnull NSDictionary *) | info |
The auto-calibration alert callback: on the OK button, shows the "done" confirmation.
| info | The alert-manager info dictionary carrying the tapped button index. |
Reimplemented from <AlertViewManagerDelegate>.
| - (void) appResume: | (nullable NSNotification *) | notification |
App-resume notification handler: resumes the preview and the animation.
| notification | The resume notification. |
| - (void) appSuspended: | (nullable NSNotification *) | notification |
App-suspend notification handler: pauses the animation and preview and forces the paused state.
| notification | The suspend notification. |
| - (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.
| sender | The slider. |
| - (void) dealloc |
Drops the preview view and removes the notification observers, then chains up.
| - (void) finishMusic: | (nullable NSNotification *) | notification |
Background-music-finished notification handler: forces the paused state and stops the preview.
| notification | The finish notification. |
| - (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) loop: | (nullable CADisplayLink *) | sender |
Display-link callback: draws one preview frame.
| sender | The display link. |
| - (void) pauseAnimation |
Pauses the display link, if any.
| - (void) refreshValue |
Formats the current slider value into the value label.
| - (void) resumeAnimation |
Unpauses the display link, if any.
| - (BOOL) shouldAutorotate |
Returns YES to permit autorotation.
YES. | - (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation |
Allows portrait and portrait-upside-down only.
| interfaceOrientation | The orientation being queried. |
YES for portrait orientations. | - (nullable NSString *) soundName: | (nullable NSString *) | name |
Builds the theme-prefixed sound-effect resource name for the given base name.
| name | The base sound-effect name (for example MUSIC_SELECT or SKIP ). |
SD_RPL_MUSIC_SELECT ). | - (void) startAnimation |
Creates the CADisplayLink targeting -loop: and adds it to the current run loop.
| - (void) stopAnimation |
Invalidates and clears the display link, if any.
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
Returns the portrait and portrait-upside-down mask.
| - (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.
| sender | The button. |
| - (void) tapAutoSetting: | (nullable id) | sender |
Presents the auto-calibration confirmation alert (Cancel / OK).
| sender | The control that fired the action. |
| - (void) viewDidAppear: | (BOOL) | animated |
Chains up to UIViewController .
| animated | Whether the appearance is animated. |
| - (void) viewDidDisappear: | (BOOL) | animated |
Drops the preview view, removes the notification observers, then chains up.
| animated | Whether the disappearance is animated. |
| - (void) viewWillAppear: | (BOOL) | animated |
Chains up to UIViewController .
| animated | Whether the appearance is animated. |
| - (void) viewWillDisappear: | (BOOL) | animated |
Pauses the preview and flushes NSUserDefaults , then chains up.
| animated | Whether the disappearance is animated. |
|
readwritenonatomicstrong |
The display link driving the preview animation.