Språk

MediaDrm.SessionException(Int32, String) Constructor

Definition

Creates a DRM session exception with a stored error code and detail message.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=29)]
public SessionException(int errorCode, string? detailMessage);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=29)>]
new Android.Media.MediaDrm.SessionException : int * string -> Android.Media.MediaDrm.SessionException

Parameters

errorCode
Int32

The DRM error identifier to store in the exception.

detailMessage
String

The detail text passed to the runtime-exception constructor.

Attributes

Remarks

This overload initializes the vendor error, OEM error and error context to zero. Creating the exception does not itself run a DRM operation.

Applies to