forked from aydenp/Ultrasound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ABVolumeHUDManager.h
35 lines (32 loc) · 1.48 KB
/
ABVolumeHUDManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// ABVolumeHUDManager.h
// Ultrasound
//
// Created by Ayden Panhuyzen on 8/27/18.
// Copyright © 2018 Ayden Panhuyzen. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ABVolumeHUDVisibilityManager.h"
#import "ABVolumeHUDVolumeModeInfo.h"
#import "ABVolumeHUDVolumeInfoProviding.h"
#import "ABVolumeHUDTapticFeedbackProviding.h"
#import "ABVolumeHUDTheme.h"
#define kVolumeChangeNotification @"kABVolumeHUDVolumeChangedNotificationName"
#define kVolumeModeChangeNotification @"kABVolumeHUDVolumeModeChangedNotificationName"
#define kControlVisibilityChangedNotification @"kABVolumeHUDControlVisibilityChangedNotificationName"
#define kThemeChangedNotification @"kABVolumeHUDThemeChangedNotificationName"
@interface ABVolumeHUDManager : NSObject
+ (instancetype)sharedManager;
@property (nonatomic, retain) UIView *targetView;
@property (nonatomic, setter=setOLEDMode:) BOOL oledMode;
@property (nonatomic, readonly) ABVolumeHUDVisibilityManager *visibilityManager;
@property (nonatomic, retain) NSObject <ABVolumeHUDVolumeInfoProviding>*volumeInfoProvider;
@property (nonatomic, retain) NSObject <ABVolumeHUDTapticFeedbackProviding>*tapticFeedbackProvider;
@property (nonatomic, retain) NSObject <ABVolumeHUDTheme>*theme;
@property (nonatomic, assign) UIInterfaceOrientation orientation;
- (void)createViewIfDoesntExist;
- (void)volumeChangedTo:(CGFloat)volume withMode:(ABVolumeHUDVolumeMode)mode;
- (void)volumeChangedTo:(CGFloat)volume;
- (BOOL)oledMode;
- (void)setOLEDMode:(BOOL)oledMode;
@end