mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-14 08:57:53 -05:00
42 lines
936 B
JavaScript
42 lines
936 B
JavaScript
//
|
|
// VolumeSlider.js
|
|
// Volume Slider PhoneGap Plugin
|
|
//
|
|
// Created by Tommy-Carlos Williams on 20/07/25.
|
|
// Copyright 2011 Tommy-Carlos Williams. All rights reserved.
|
|
// MIT Licensed
|
|
//
|
|
|
|
var VolumeSlider = function(){
|
|
|
|
}
|
|
|
|
/**
|
|
* Create a volume slider.
|
|
*/
|
|
VolumeSlider.prototype.createVolumeSlider = function(originx,originy,width,height) {
|
|
PhoneGap.exec(null, null, "VolumeSlider","createVolumeSlider", [originx, originy, width, height]);
|
|
};
|
|
|
|
/**
|
|
* Show the volume slider
|
|
*/
|
|
VolumeSlider.prototype.showVolumeSlider = function() {
|
|
PhoneGap.exec(null, null, "VolumeSlider","showVolumeSlider", []);
|
|
};
|
|
/**
|
|
* Hide the volume slider
|
|
*/
|
|
VolumeSlider.prototype.hideVolumeSlider = function() {
|
|
PhoneGap.exec(null, null, "VolumeSlider","hideVolumeSlider", []);
|
|
};
|
|
|
|
|
|
PhoneGap.addConstructor(function(){
|
|
if(!window.plugins)
|
|
{
|
|
window.plugins = {};
|
|
}
|
|
window.plugins.volumeSlider = new VolumeSlider();
|
|
});
|