Stay organized with collections
Save and categorize content based on your preferences.
LogMessage
class 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
fun getMessage(): String
Description of the recorded event.
Return |
String |
This value cannot be null . |
getPriority
fun getPriority(): Int
Priority of the recorded event.
Possible priority constants are defined in Log
, e.g.:
getTimestampMillis
fun getTimestampMillis(): Long
Timing of the recorded event measured in milliseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).
toString
fun toString(): String
Return |
String |
a string representation of the object. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaDrm.LogMessage\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nLogMessage\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaDrm.LogMessage \"View this page in Java\") \n\n```\nclass LogMessage\n```\n\n|---|----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.MediaDrm.LogMessage](#) |\n\nA [LogMessage](#) records an event in the [MediaDrm](/reference/kotlin/android/media/MediaDrm) framework or vendor plugin.\n\nSummary\n-------\n\n| Public methods ||\n|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getMessage](#getMessage())`()` Description of the recorded event. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPriority](#getPriority())`()` Priority of the recorded event. |\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [getTimestampMillis](#getTimestampMillis())`()` Timing of the recorded event measured in milliseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getMessage\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMessage(): String\n```\n\nDescription of the recorded event.\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | This value cannot be `null`. |\n\n### getPriority\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getPriority(): Int\n```\n\nPriority of the recorded event.\n\nPossible priority constants are defined in [Log](../util/Log.html#), e.g.:\n\n- [Log.ASSERT](../util/Log.html#ASSERT:kotlin.Int)\n- [Log.ERROR](../util/Log.html#ERROR:kotlin.Int)\n- [Log.WARN](../util/Log.html#WARN:kotlin.Int)\n- [Log.INFO](../util/Log.html#INFO:kotlin.Int)\n- [Log.DEBUG](../util/Log.html#DEBUG:kotlin.Int)\n- [Log.VERBOSE](../util/Log.html#VERBOSE:kotlin.Int)\n\n| Return ||\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | Value is [android.util.Log#ASSERT](../util/Log.html#ASSERT:kotlin.Int), [android.util.Log#ERROR](../util/Log.html#ERROR:kotlin.Int), [android.util.Log#WARN](../util/Log.html#WARN:kotlin.Int), [android.util.Log#INFO](../util/Log.html#INFO:kotlin.Int), [android.util.Log#DEBUG](../util/Log.html#DEBUG:kotlin.Int), or [android.util.Log#VERBOSE](../util/Log.html#VERBOSE:kotlin.Int) |\n\n### getTimestampMillis\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getTimestampMillis(): Long\n```\n\nTiming of the recorded event measured in milliseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). \n\n### toString\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun toString(): String\n```\n\n| Return ||\n|----------------------------------------------------------------------------------|----------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |"]]