{"id":20492527,"url":"https://github.com/redmadrobot/volumebuttons","last_synced_at":"2025-04-13T17:06:11.629Z","repository":{"id":56926194,"uuid":"267332842","full_name":"RedMadRobot/VolumeButtons","owner":"RedMadRobot","description":"VolumeButtons provides interface for handle clicks on hardware volume buttons on iOS devices","archived":false,"fork":false,"pushed_at":"2020-05-27T14:03:39.000Z","size":13,"stargazers_count":11,"open_issues_count":1,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-31T15:43:44.453Z","etag":null,"topics":["ios","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedMadRobot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-27T13:53:59.000Z","updated_at":"2024-08-03T04:04:17.000Z","dependencies_parsed_at":"2022-08-21T06:20:18.440Z","dependency_job_id":null,"html_url":"https://github.com/RedMadRobot/VolumeButtons","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMadRobot%2FVolumeButtons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMadRobot%2FVolumeButtons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMadRobot%2FVolumeButtons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMadRobot%2FVolumeButtons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedMadRobot","download_url":"https://codeload.github.com/RedMadRobot/VolumeButtons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224819468,"owners_count":17375271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","swift"],"created_at":"2024-11-15T17:29:28.292Z","updated_at":"2024-11-15T17:29:29.245Z","avatar_url":"https://github.com/RedMadRobot.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VolumeButtons\n\n[![Version](https://img.shields.io/cocoapods/v/VolumeButtons.svg?style=flat)](https://cocoapods.org/pods/VolumeButtons)\n[![License](https://img.shields.io/cocoapods/l/VolumeButtons.svg?style=flat)](https://cocoapods.org/pods/VolumeButtons)\n[![Platform](https://img.shields.io/cocoapods/p/VolumeButtons.svg?style=flat)](https://cocoapods.org/pods/VolumeButtons)\n\nVolumeButtons is simple way to handling clicks on hardware volume buttons on iPhone or iPad. \n\n## Usage\n\n```swift\nself.volumeButtonHandler = VolumeButtonHandler(containerView: view)\nvolumeButtonHandler.buttonClosure = { button in\n    // ...\n}\nvolumeButtonHandler.start()\n```\n\n## How it works\n\nVolumeButtonHandler class keeps track of volume changes in an audio session. When you increase or decrease the volume level, the value will be reset to the initial one, thus pressing the buttons is determined without changing the volume of the media player. You need to pass in `init` some view of your View Controller for placing hidden instance `MPVolumeView` used for controlling volume level.\n\n## Requirements\n\niOS 11 and newer.\n\n## Installation\n\nVolumeButtons is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'VolumeButtons'\n```\n\n## References\n\nThis project based on Objective-C code [JPSVolumeButtonHandler](https://github.com/jpsim/JPSVolumeButtonHandler)  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredmadrobot%2Fvolumebuttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredmadrobot%2Fvolumebuttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredmadrobot%2Fvolumebuttons/lists"}