Plug-in Overview

This plug-in measures the sound pressure level of the environment using the device’s microphone.

  • Plug-in ID: org.ambientdynamix.contextplugins.ambientsound

Supported Context Types

Context Type Privacy Risk Level Data Types Description
<PLUGID> LOW IAmbientSoundContextInfo Represents the ambient sound level of the device.
Descriptions of the data types above can be found in the JavaDocs at the end of this page.

Web App Usage

Integrate Dynamix into your Web app, as described here.

Add context support as follows:

Your app can scan for the current ambient sound pressure level using the following code:

See the JavaDocs below for details on the available context event data. Context events can be handled like this in your Web app’s dynamix_listener.js file:

Native App Usage

Integrate Dynamix into your native app, as described here.

Add context support as follows:

Your app can scan for the current ambient sound pressure level using the following code:

[DataType JAR Download data-type-download=””]

Context events can be handled like this:

[Context Info Blurb context-info-blurb=””]