VolumeEvents: Listen to volume change events

1.Introduction

Description: With this extension you can listen to volume change events and get volume values of different stream types
Latest Version: 1
Released:  March 4,2021
Last Updated:  March 4,2021

2.Blocks

image

3.Documentation

  • Volume Changed
    Event triggered when volume changes
    image
    previousVolume ~ int
    currentVolume ~ int
  • Get Max Volume
    Returns max volume value of given stream type
    image
    Accepts int
    Returns : int
  • Get Min Volume
    Returns min volume value of given stream type
    image
    Accepts int
    Returns : int
  • Get Volume
    Returns current volume value of given stream type
    image
    Accepts int
    Returns : int
  • Start Listening
    Starts listening to volume changes
    image
  • Stop Listening
    Stops listening to volume changes
    image
  • Stream Type
    Sets audio stream type i.e. which stream volume changes should listener listen to
    image
    Accepts int
    Default Value : 3

Stream Values
VOICE_CALL -> 0
SYSTEM -> 1
RING -> 2
NOTIFICATION -> 5
MUSIC -> 3
DTMF -> 8
ALARM -> 4

4.Download

Download Link: com.sunny.VolumeEvents.aix (8.4 KB)

Hope it helps!

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments