AudioManager.GetVolumeGroupIdForAttributes(AudioAttributes) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the volume group id associated to the given AudioAttributes
.
[Android.Runtime.Register("getVolumeGroupIdForAttributes", "(Landroid/media/AudioAttributes;)I", "GetGetVolumeGroupIdForAttributes_Landroid_media_AudioAttributes_Handler", ApiSince=34)]
public virtual int GetVolumeGroupIdForAttributes (Android.Media.AudioAttributes attributes);
[<Android.Runtime.Register("getVolumeGroupIdForAttributes", "(Landroid/media/AudioAttributes;)I", "GetGetVolumeGroupIdForAttributes_Landroid_media_AudioAttributes_Handler", ApiSince=34)>]
abstract member GetVolumeGroupIdForAttributes : Android.Media.AudioAttributes -> int
override this.GetVolumeGroupIdForAttributes : Android.Media.AudioAttributes -> int
Parameters
- attributes
- AudioAttributes
The AudioAttributes
to consider.
Returns
android.media.audiopolicy.AudioVolumeGroup
id supporting the given
AudioAttributes
if found,
android.media.audiopolicy.AudioVolumeGroup.DEFAULT_VOLUME_GROUP
otherwise.
- Attributes
Remarks
Returns the volume group id associated to the given AudioAttributes
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.