次の方法で共有


MediaFormat.SetString(String, String) Method

Definition

Sets the value of a string key.

[Android.Runtime.Register("setString", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public void SetString (string name, string? value);
[<Android.Runtime.Register("setString", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
member this.SetString : string * string -> unit

Parameters

name
String
value
String
Attributes

Remarks

Sets the value of a string key.

If value is null, it sets a null value that behaves similarly to a missing key. This could be used prior to API level android os.Build.VERSION_CODES#Q to effectively remove a key.

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

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