Stay organized with collections
Save and categorize content based on your preferences.
Spatializer.OnHeadTrackerAvailableListener
public
static
interface
Spatializer.OnHeadTrackerAvailableListener
android.media.Spatializer.OnHeadTrackerAvailableListener
|
Interface to be notified of changes to the availability of a head tracker on the audio
device to be used by the spatializer effect.
Summary
Public methods
public abstract void onHeadTrackerAvailableChanged (Spatializer spatializer,
boolean available)
Called when the availability of the head tracker changed.
Parameters |
spatializer |
Spatializer : the Spatializer instance for which the head tracker
availability was updated
This value cannot be null . |
available |
boolean : true if the audio device that would output audio processed by
the Spatializer has a head tracker associated with it, 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.OnHeadTrackerAvailableListener\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSpatializer.OnHeadTrackerAvailableListener\n==========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/Spatializer.OnHeadTrackerAvailableListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nSpatializer.OnHeadTrackerAvailableListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------|\n| android.media.Spatializer.OnHeadTrackerAvailableListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface to be notified of changes to the availability of a head tracker on the audio\ndevice to be used by the spatializer effect.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onHeadTrackerAvailableChanged](/reference/android/media/Spatializer.OnHeadTrackerAvailableListener#onHeadTrackerAvailableChanged(android.media.Spatializer,%20boolean))`(`[Spatializer](/reference/android/media/Spatializer)` spatializer, boolean available) ` Called when the availability of the head tracker changed. |\n\nPublic methods\n--------------\n\n### onHeadTrackerAvailableChanged\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onHeadTrackerAvailableChanged (Spatializer spatializer, \n boolean available)\n```\n\nCalled when the availability of the head tracker changed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `spatializer` | `Spatializer`: the `Spatializer` instance for which the head tracker availability was updated This value cannot be `null`. \u003cbr /\u003e |\n| `available` | `boolean`: true if the audio device that would output audio processed by the `Spatializer` has a head tracker associated with it, false otherwise. \u003cbr /\u003e |"]]