Aracılığıyla paylaş


MediaFormat.SetFeatureEnabled(String, Boolean) Method

Definition

Sets whether a feature is to be enabled (true) or disabled (false).

[Android.Runtime.Register("setFeatureEnabled", "(Ljava/lang/String;Z)V", "")]
public void SetFeatureEnabled (string feature, bool enabled);
[<Android.Runtime.Register("setFeatureEnabled", "(Ljava/lang/String;Z)V", "")>]
member this.SetFeatureEnabled : string * bool -> unit

Parameters

feature
String

the name of a MediaCodecInfo.CodecCapabilities feature.

enabled
Boolean
Attributes

Remarks

Sets whether a feature is to be enabled (true) or disabled (false).

If enabled is true, the feature is requested to be present. Otherwise, the feature is requested to be not present.

Java documentation for android.media.MediaFormat.setFeatureEnabled(java.lang.String, boolean).

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

See also