1.0.0 • Published 2 years ago

nativescript-ringer v1.0.0

Weekly downloads
20
License
-
Repository
-
Last release
2 years ago

NativeScript Ringer Plugin

A plugin for controlling the ringer volume and mode in NativeScript Android apps.

Installation

Run the following command from the root of your project:

$ tns plugin add nativescript-ringer

Usage

To use the ringer module you must first require() it:

var ringer = require("nativescript-ringer");

After you have a reference to the module you can make calls to its methods like in the examples below.

Increase Volume:

ringer.increaseVolume();

Decrease Volume:

ringer.decreaseVolume();

Set Volume to a specific value (0-6):

ringer.setVolume(6);

Mute Volume:

ringer.mute();

UnMute Volume:

ringer.unmute();

Toggle Mute:

ringer.toggleMute();

Set Ringer Mode ("silent", "vibrate", or "normal"):

ringer.setMode("vibrate");
1.0.0

2 years ago

1.0.0-beta1

2 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago