Added in API level 32

OnSpatializerStateChangedListener


interface OnSpatializerStateChangedListener
android.media.Spatializer.OnSpatializerStateChangedListener

An interface to be notified of changes to the state of the spatializer effect.

Summary

Public methods
abstract Unit

Called when the availability of the spatializer effect changes

abstract Unit

Called when the enabled state of the spatializer effect changes

Public methods

onSpatializerAvailableChanged

Added in API level 32
abstract fun onSpatializerAvailableChanged(
    spat: Spatializer,
    available: Boolean
): Unit

Called when the availability of the spatializer effect changes

Parameters
spat Spatializer: the Spatializer instance whose state changed This value cannot be null.
available Boolean: true if the spatializer effect is available and capable of processing the audio for the current configuration of the device, false otherwise.

See Also

onSpatializerEnabledChanged

Added in API level 32
abstract fun onSpatializerEnabledChanged(
    spat: Spatializer,
    enabled: Boolean
): Unit

Called when the enabled state of the spatializer effect changes

Parameters
spat Spatializer: the Spatializer instance whose state changed This value cannot be null.
enabled Boolean: true if the spatializer effect is enabled on the device, false otherwise

See Also