Freigeben über


AudioAttributes.Builder Constructors

Definition

Overloads

AudioAttributes.Builder()

Constructs a new Builder with the defaults.

AudioAttributes.Builder(AudioAttributes)

Constructs a new Builder from a given AudioAttributes

AudioAttributes.Builder(IntPtr, JniHandleOwnership)

AudioAttributes.Builder()

Constructs a new Builder with the defaults.

[Android.Runtime.Register(".ctor", "()V", "")]
public Builder ();
Attributes

Remarks

Constructs a new Builder with the defaults. By default, usage and content type are respectively AudioAttributes#USAGE_UNKNOWN and AudioAttributes#CONTENT_TYPE_UNKNOWN, and flags are 0. It is recommended to configure the usage (with #setUsage(int)) or deriving attributes from a legacy stream type (with #setLegacyStreamType(int)) before calling #build() to override any default playback behavior in terms of routing and volume management.

Java documentation for android.media.AudioAttributes.Builder.AudioAttributes$Builder().

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

AudioAttributes.Builder(AudioAttributes)

Constructs a new Builder from a given AudioAttributes

[Android.Runtime.Register(".ctor", "(Landroid/media/AudioAttributes;)V", "")]
public Builder (Android.Media.AudioAttributes? aa);
[<Android.Runtime.Register(".ctor", "(Landroid/media/AudioAttributes;)V", "")>]
new Android.Media.AudioAttributes.Builder : Android.Media.AudioAttributes -> Android.Media.AudioAttributes.Builder

Parameters

aa
AudioAttributes

the AudioAttributes object whose data will be reused in the new Builder.

Attributes

Remarks

Constructs a new Builder from a given AudioAttributes

Java documentation for android.media.AudioAttributes.Builder.AudioAttributes$Builder(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

AudioAttributes.Builder(IntPtr, JniHandleOwnership)

protected Builder (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.AudioAttributes.Builder : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.AudioAttributes.Builder

Parameters

javaReference
IntPtr

nativeint

Remarks

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