AudioAttributes.Builder.SetUsage(AudioUsageKind) 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.
Sets the attribute describing what is the intended use of the audio signal, such as alarm or ringtone.
[Android.Runtime.Register("setUsage", "(I)Landroid/media/AudioAttributes$Builder;", "GetSetUsage_IHandler")]
public virtual Android.Media.AudioAttributes.Builder? SetUsage(Android.Media.AudioUsageKind usage);
[<Android.Runtime.Register("setUsage", "(I)Landroid/media/AudioAttributes$Builder;", "GetSetUsage_IHandler")>]
abstract member SetUsage : Android.Media.AudioUsageKind -> Android.Media.AudioAttributes.Builder
override this.SetUsage : Android.Media.AudioUsageKind -> Android.Media.AudioAttributes.Builder
Parameters
- usage
- AudioUsageKind
the usage to set. Value is one of the following: Unknown Media VoiceCommunication VoiceCommunicationSignalling Alarm Notification NotificationRingtone NotificationCommunicationRequest NotificationCommunicationInstant NotificationCommunicationDelayed NotificationEvent AssistanceAccessibility AssistanceNavigationGuidance AssistanceSonification Game Assistant
Returns
the same Builder instance.
- Attributes
Remarks
Sets the attribute describing what is the intended use of the audio signal, such as alarm or ringtone.
Android reference for android.media.AudioAttributes.Builder.setUsage.
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.