Udostępnij za pośrednictwem


DrmEvent Constructors

Definition

Overloads

DrmEvent(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

DrmEvent(Int32, Int32, String)

Creates a DrmEvent object with the specified parameters.

DrmEvent(Int32, Int32, String, IDictionary<String,Object>)

Creates a DrmEvent object with the specified parameters.

DrmEvent(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected DrmEvent (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Drm.DrmEvent : nativeint * Android.Runtime.JniHandleOwnership -> Android.Drm.DrmEvent

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

DrmEvent(Int32, Int32, String)

Creates a DrmEvent object with the specified parameters.

[Android.Runtime.Register(".ctor", "(IILjava/lang/String;)V", "")]
protected DrmEvent (int uniqueId, int type, string? message);
[<Android.Runtime.Register(".ctor", "(IILjava/lang/String;)V", "")>]
new Android.Drm.DrmEvent : int * int * string -> Android.Drm.DrmEvent

Parameters

uniqueId
Int32

Unique session identifier.

type
Int32

Type of information.

message
String

Message description.

Attributes

Remarks

Creates a DrmEvent object with the specified parameters.

Java documentation for android.drm.DrmEvent.DrmEvent(int, int, 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

DrmEvent(Int32, Int32, String, IDictionary<String,Object>)

Creates a DrmEvent object with the specified parameters.

[Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/util/HashMap;)V", "")]
protected DrmEvent (int uniqueId, int type, string? message, System.Collections.Generic.IDictionary<string,Java.Lang.Object>? attributes);
[<Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/util/HashMap;)V", "")>]
new Android.Drm.DrmEvent : int * int * string * System.Collections.Generic.IDictionary<string, Java.Lang.Object> -> Android.Drm.DrmEvent

Parameters

uniqueId
Int32

Unique session identifier.

type
Int32

Type of information.

message
String

Message description.

attributes
IDictionary<String,Object>

Attributes for extensible information.

Attributes

Remarks

Creates a DrmEvent object with the specified parameters.

Java documentation for android.drm.DrmEvent.DrmEvent(int, int, java.lang.String, java.util.HashMap<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