Added in API level 31

LogMessage


class LogMessage
kotlin.Any
   ↳ android.media.MediaDrm.LogMessage

A LogMessage records an event in the MediaDrm framework or vendor plugin.

Summary

Public methods
String

Description of the recorded event.

Int

Priority of the recorded event.

Long

Timing of the recorded event measured in milliseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).

String

Public methods

getMessage

Added in API level 31
fun getMessage(): String

Description of the recorded event.

Return
String This value cannot be null.

getPriority

Added in API level 31
fun getPriority(): Int

Priority of the recorded event.

Possible priority constants are defined in Log, e.g.:

Return
Int Value is android.util.Log#ASSERT, android.util.Log#ERROR, android.util.Log#WARN, android.util.Log#INFO, android.util.Log#DEBUG, or android.util.Log#VERBOSE

getTimestampMillis

Added in API level 31
fun getTimestampMillis(): Long

Timing of the recorded event measured in milliseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).

toString

Added in API level 31
fun toString(): String
Return
String a string representation of the object.