Media key driver for Cordova
platforms: android
$ cordova plugin add com.lexa.keydriver

KeyDriver Android Plugin for Cordova 3.X

By Sardar Yumatov (

Adding the Plugin to your project

  1. To install the plugin, use the Cordova CLI and enter the following:

cordova plugin add

  1. Confirm that the following is in your res/xml/config.xml file:

<plugin name="KeyDriver" value="com.lexa.keydriver.KeyDriver" />

Sample code


Using the plugin

The plugin creates the object window.plugins.keydriver with the following methods:



Copyright 2014 Oleksiy Nesterov

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.