volume_key_board 0.0.1 copy "volume_key_board: ^0.0.1" to clipboard
volume_key_board: ^0.0.1 copied to clipboard

PlatformiOS

A Flutter plugin to listen for volume key press events on Android and iOS platforms.

volume_key_board #

Pub support

A Flutter plugin to listen for volume key press events on Android and iOS platforms.

Features #

  • Listen for volume up and volume down key press events.
  • Works on both Android and iOS platforms.
  • Android implemented with Dart natively.

Installation #

To use this plugin, add volume_key_board as a dependency in your pubspec.yaml file.

Usage #

Add the package to your pubspec.yaml:

dependencies:
  volume_key_board: <latest_version>
import 'package:volume_key_board/volume_key_board.dart';

/// addListener
VolumeKeyBoard.instance.addListener(( event) {
    if (event == VolumeKey.up) {
    } else if (event == VolumeKey.down) {
    }
});

/// removeListener
VolumeKeyBoard.instance.removeListener();
1
likes
160
pub points
75%
popularity

Publisher

unverified uploader

A Flutter plugin to listen for volume key press events on Android and iOS platforms.

Homepage
Repository (GitHub)
View/report issues

Topics

#volumeup #volumedown #volumepress

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on volume_key_board