AudioAttributes.Builder.SetContentType(AudioContentType) Method

Definition

Sets the attribute describing the content type of the audio signal, such as speech, or music.

[Android.Runtime.Register("setContentType", "(I)Landroid/media/AudioAttributes$Builder;", "GetSetContentType_IHandler")]
public virtual Android.Media.AudioAttributes.Builder? SetContentType(Android.Media.AudioContentType contentType);
[<Android.Runtime.Register("setContentType", "(I)Landroid/media/AudioAttributes$Builder;", "GetSetContentType_IHandler")>]
abstract member SetContentType : Android.Media.AudioContentType -> Android.Media.AudioAttributes.Builder
override this.SetContentType : Android.Media.AudioContentType -> Android.Media.AudioAttributes.Builder

Parameters

contentType
AudioContentType

the content type values, one of AudioAttributes.CONTENT_TYPE_MOVIE, AudioAttributes.CONTENT_TYPE_MUSIC, AudioAttributes.CONTENT_TYPE_SONIFICATION, AudioAttributes.CONTENT_TYPE_SPEECH, AudioAttributes.CONTENT_TYPE_UNKNOWN. Value is one of the following: AudioAttributes.CONTENT_TYPE_UNKNOWN AudioAttributes.CONTENT_TYPE_SPEECH AudioAttributes.CONTENT_TYPE_MUSIC AudioAttributes.CONTENT_TYPE_MOVIE AudioAttributes.CONTENT_TYPE_SONIFICATION

Returns

the same Builder instance.

Attributes

Remarks

Sets the attribute describing the content type of the audio signal, such as speech, or music.

Android reference for android.media.AudioAttributes.Builder.setContentType.

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