Class: VolumeEventData

Class: VolumeEventData

  • VolumeEventData provides data about changes in receiver volume or mute status.

  • The VolumeEventData constructor takes the current volume and mute status as parameters.

  • Key properties include isMute (a boolean indicating if the device is muted) and volume (a number representing the current volume between 0 and 1).

  • Both the isMute and volume properties can potentially be null.

Constructor

VolumeEventData

new VolumeEventData(volume, isMute)

Parameter

volume

number

Current volume in range 0 to 1 (1 is max volume).

Value may be null.

isMute

boolean

True if device is muted.

Value may be null.

Properties

isMute

nullable boolean

True if device is muted.

volume

nullable number

Current volume in range 0 to 1 (1 is max volume).

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-18 UTC.