npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

native-audio-settings

v1.0.2

Published

This Capacitor plugin allows retrieving the current media volume level on a device. The plugin includes methods to read the volume level on both Android and iOS platforms.

Downloads

943

Readme

native-audio-settings

This plugin is designed to provide easy access to native audio settings on both Android and iOS platforms within the Capacitor framework.

Description

The plugin offers a unified API to retrieve and monitor audio settings, allowing developers to seamlessly integrate audio-related functionalities into their Capacitor applications.

Install

npm install native-audio-settings
npx cap sync

API

getMainVolume()

getMainVolume() => Promise<{ mainVolume: number; maxMainVolume: number; }>

Returns: Promise<{ mainVolume: number; maxMainVolume: number; }>


getNotificationVolume()

getNotificationVolume() => Promise<{ notificationVolume: number; maxNotificationVolume: number; }>

Returns: Promise<{ notificationVolume: number; maxNotificationVolume: number; }>


addListener('notificationVolumeChange', ...)

addListener(eventName: 'notificationVolumeChange', listenerFunc: (info: { notificationVolume: number; maxNotificationVolume: number; }) => void) => Promise<{ remove: () => void; }>

| Param | Type | | ------------------ | ---------------------------------------------------------------------------------------------- | | eventName | 'notificationVolumeChange' | | listenerFunc | (info: { notificationVolume: number; maxNotificationVolume: number; }) => void |

Returns: Promise<{ remove: () => void; }>


Contributing

We appreciate your contribution to enhance and expand the project. To ensure a smooth and rewarding collaboration process, please follow these guidelines.

Creating an Issue

Before starting development work, please create an Issue to discuss the changes you want to implement. This allows for feedback and a shared understanding of the purpose and scope of your proposed contribution.

Working on a Fork

Create a fork of this repository and work in your fork instead of the main repository. This ensures that your changes can be reviewed before being integrated into the main project.

Code Convention Compliance

Adhere to existing code conventions and style in the project. A consistent codebase facilitates review and maintenance.

Creating a Pull Request

Open a pull request against the main repository when your work is ready for review. Please provide a clearly formulated description of your changes and additions.

Review and Feedback

Expect constructive review of your work. Be prepared to make changes and answer questions during the review process.

Testing

Ensure that your changes are thoroughly tested.

Have Fun

Most importantly, have fun! Contributing to open source is a positive experience, and we appreciate your effort.

Authors and acknowledgment

None yet, but bring it on!

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Project status

Development of the native-audio-settings plugin is ongoing, with regular updates and enhancements. If you are interested in contributing or becoming a maintainer, please reach out.