Latest 1.0.0
Homepage https://github.com/DeveloperLx/LxVolumeManager
License Apache
Platforms ios 6.0, requires ARC
Frameworks Foundation, CoreGraphics, MediaPlayer
Authors

Control and observe iOS system volume.

Installation

You only need drag LxVolumeManager.h and LxVolumeManager.m to your project.

Support

Minimum support iOS version: iOS 6.0

Usage

UISlider * _volumeSlider;

_volumeSlider.minimumValue = 0;
_volumeSlider.maximumValue = 1;
_volumeSlider.value = LxVolumeManager.currentVolume;
[_volumeSlider addTarget:self action:@selector(sliderValueChanged:) forControlEvents:UIControlEventValueChanged];

- (void)sliderValueChanged:(UISlider *)slider
{
    [LxVolumeManager setVolume:slider.value];
}

[LxVolumeManager beginObserveVolumeChange:^(CGFloat volume) {
    _volumeSlider.value = volume;
}];

[LxVolumeManager stopObserveVolumeChange];

License

LxVolumeManager is available under the Apache License 2.0. See the LICENSE file for more info.

Latest podspec

{
    "name": "LxVolumeManager",
    "version": "1.0.0",
    "license": "Apache",
    "summary": "Control and observe iOS system volume.",
    "homepage": "https://github.com/DeveloperLx/LxVolumeManager",
    "authors": {
        "DeveloperLx": "[email protected]"
    },
    "source": {
        "git": "https://github.com/DeveloperLx/LxVolumeManager.git",
        "tag": "1.0.0",
        "submodules": true
    },
    "requires_arc": true,
    "platforms": {
        "ios": "6.0"
    },
    "public_header_files": "LxVolumeManager/*.h",
    "source_files": "LxVolumeManager/*",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "MediaPlayer"
    ]
}

Pin It on Pinterest

Share This