Stay organized with collections
Save and categorize content based on your preferences.
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
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. |
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Spatializer.OnSpatializerStateChangedListener\n\nAdded in [API level 32](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSpatializer.OnSpatializerStateChangedListener\n=============================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/Spatializer.OnSpatializerStateChangedListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nSpatializer.OnSpatializerStateChangedListener\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------------|\n| android.media.Spatializer.OnSpatializerStateChangedListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface to be notified of changes to the state of the spatializer effect.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onSpatializerAvailableChanged](/reference/android/media/Spatializer.OnSpatializerStateChangedListener#onSpatializerAvailableChanged(android.media.Spatializer,%20boolean))`(`[Spatializer](/reference/android/media/Spatializer)` spat, boolean available) ` Called when the availability of the spatializer effect changes |\n| ` abstract void` | ` `[onSpatializerEnabledChanged](/reference/android/media/Spatializer.OnSpatializerStateChangedListener#onSpatializerEnabledChanged(android.media.Spatializer,%20boolean))`(`[Spatializer](/reference/android/media/Spatializer)` spat, boolean enabled) ` Called when the enabled state of the spatializer effect changes |\n\nPublic methods\n--------------\n\n### onSpatializerAvailableChanged\n\nAdded in [API level 32](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onSpatializerAvailableChanged (Spatializer spat, \n boolean available)\n```\n\nCalled when the availability of the spatializer effect changes\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `spat` | `Spatializer`: the `Spatializer` instance whose state changed This value cannot be `null`. \u003cbr /\u003e |\n| `available` | `boolean`: `true` if the spatializer effect is available and capable of processing the audio for the current configuration of the device, `false` otherwise. \u003cbr /\u003e |\n\n**See also:**\n\n- [Spatializer.isAvailable()](/reference/android/media/Spatializer#isAvailable()) \n\n### onSpatializerEnabledChanged\n\nAdded in [API level 32](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onSpatializerEnabledChanged (Spatializer spat, \n boolean enabled)\n```\n\nCalled when the enabled state of the spatializer effect changes\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------|\n| `spat` | `Spatializer`: the `Spatializer` instance whose state changed This value cannot be `null`. \u003cbr /\u003e |\n| `enabled` | `boolean`: `true` if the spatializer effect is enabled on the device, `false` otherwise \u003cbr /\u003e |\n\n**See also:**\n\n- [Spatializer.isEnabled()](/reference/android/media/Spatializer#isEnabled())"]]