This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* MIT License */ | |
| #import <Foundation/Foundation.h> | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> | |
| #import <os/log.h> | |
| /* this is a way to detect volume button press on jailed iOS device */ | |
| /* if you cannot use private frameworks, you could probably look into MPVolumeView*/ | |
| /* but i never tried it myself. you may also look into AVAudioSession's outputVolume*/ |