Skip to content

plauzul/cordova-plugin-mediabuttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-mediabuttons

This plugin listens for MEDIA_BUTTON events and sends it to javascript

Methods

  • cordova.plugins.MediaButtons.startActionMedia()
  • cordova.plugins.MediaButtons.stopActionMedia()

cordova.plugins.MediaButtons.startActionMedia

Start the media session to listen to MEDIA_BUTTON events Every action sends to the action button event in the DOM document

Example

    cordova.plugins.MediaButtons.startActionMedia();
    
    document.addEventListener('actionbutton', () => {
      // code here
    });

cordova.plugins.MediaButtons.stopActionMedia

Stop listening to MEDIA_BUTTON events

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published