Added in API level 32
Spatializer.OnSpatializerStateChangedListener
public
static
interface
Spatializer.OnSpatializerStateChangedListener
android.media.Spatializer.OnSpatializerStateChangedListener |
An interface to be notified of changes to the state of the spatializer effect.
Summary
Public methods | |
---|---|
abstract
void
|
onSpatializerAvailableChanged(Spatializer spat, boolean available)
Called when the availability of the spatializer effect changes |
abstract
void
|
onSpatializerEnabledChanged(Spatializer spat, boolean enabled)
Called when the enabled state of the spatializer effect changes |
Public methods
onSpatializerAvailableChanged
Added in API level 32
public abstract void onSpatializerAvailableChanged (Spatializer spat, boolean available)
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
public abstract void onSpatializerEnabledChanged (Spatializer spat, boolean enabled)
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: