Share via


DrmErrorEvent Constructors

Definition

Overloads

DrmErrorEvent(IntPtr, JniHandleOwnership)

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

DrmErrorEvent(Int32, DrmErrorEventType, String)

Creates a DrmErrorEvent object with the specified parameters.

DrmErrorEvent(Int32, DrmErrorEventType, String, IDictionary<String,Object>)

Creates a DrmErrorEvent object with the specified parameters.

DrmErrorEvent(IntPtr, JniHandleOwnership)

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

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

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

DrmErrorEvent(Int32, DrmErrorEventType, String)

Creates a DrmErrorEvent object with the specified parameters.

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

Parameters

uniqueId
Int32

Unique session identifier.

type
DrmErrorEventType

Type of the event. Must be any of the event types defined above.

message
String

Message description. It can be null.

Attributes

Remarks

Creates a DrmErrorEvent object with the specified parameters.

Java documentation for android.drm.DrmErrorEvent.DrmErrorEvent(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

DrmErrorEvent(Int32, DrmErrorEventType, String, IDictionary<String,Object>)

Creates a DrmErrorEvent object with the specified parameters.

[Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/util/HashMap;)V", "")]
public DrmErrorEvent (int uniqueId, Android.Drm.DrmErrorEventType 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.DrmErrorEvent : int * Android.Drm.DrmErrorEventType * string * System.Collections.Generic.IDictionary<string, Java.Lang.Object> -> Android.Drm.DrmErrorEvent

Parameters

uniqueId
Int32

Unique session identifier.

type
DrmErrorEventType

Type of the event. Must be any of the event types defined above.

message
String

Message description.

attributes
IDictionary<String,Object>

Attributes for extensible information. Could be any information provided by the plug-in. It can be null.

Attributes

Remarks

Creates a DrmErrorEvent object with the specified parameters.

Java documentation for android.drm.DrmErrorEvent.DrmErrorEvent(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