次の方法で共有


AudioManager.GetVolumeGroupIdForAttributes(AudioAttributes) Method

Definition

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.

Java documentation for android.media.AudioManager.getVolumeGroupIdForAttributes(android.media.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.

Applies to