DrmInfo.Put(String, Object) Method

Definition

Adds optional information as key-value pairs to this object.

[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetPut_Ljava_lang_String_Ljava_lang_Object_Handler")]
public virtual void Put (string? key, Java.Lang.Object? value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetPut_Ljava_lang_String_Ljava_lang_Object_Handler")>]
abstract member Put : string * Java.Lang.Object -> unit
override this.Put : string * Java.Lang.Object -> unit

Parameters

key
String

Key to add.

value
Object

Value to add.

Attributes

Remarks

Adds optional information as key-value pairs to this object. To add a custom object to the DrmInfo object, you must override the #toString implementation.

Java documentation for android.drm.DrmInfo.put(java.lang.String, java.lang.Object).

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