Stay organized with collections
Save and categorize content based on your preferences.
Event
class Event
A previously logged event read from the logs. Instances are thread safe.
Summary
Public methods
getData
fun getData(): Any!
Return |
Any! |
one of Integer, Long, Float, String, null, or Object[] of same. |
getProcessId
fun getProcessId(): Int
Return |
Int |
the process ID which wrote the log entry |
getTag
fun getTag(): Int
Return |
Int |
the type tag code of the entry |
getThreadId
fun getThreadId(): Int
Return |
Int |
the thread ID which wrote the log entry |
getTimeNanos
fun getTimeNanos(): Long
Return |
Long |
the wall clock time when the entry was written |
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,["# EventLog.Event\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEvent\n=====\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/util/EventLog.Event \"View this page in Java\") \n\n```\nclass Event\n```\n\n|---|----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.util.EventLog.Event](#) |\n\nA previously logged event read from the logs. Instances are thread safe.\n\nSummary\n-------\n\n| Public methods ||\n|------------------------------------------------------------------------------|--------------------------------------------|\n| [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)! | [getData](#getData())`()` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getProcessId](#getProcessId())`()` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getTag](#getTag())`()` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getThreadId](#getThreadId())`()` \u003cbr /\u003e |\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [getTimeNanos](#getTimeNanos())`()` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getData\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getData(): Any!\n```\n\n| Return ||\n|-----------------------------------------------------------------------------|-------------------------------------------------------------------|\n| [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)! | one of Integer, Long, Float, String, null, or Object\\[\\] of same. |\n\n### getProcessId\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getProcessId(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the process ID which wrote the log entry |\n\n### getTag\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getTag(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|--------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the type tag code of the entry |\n\n### getThreadId\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getThreadId(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|-----------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the thread ID which wrote the log entry |\n\n### getTimeNanos\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getTimeNanos(): Long\n```\n\n| Return ||\n|------------------------------------------------------------------------------|------------------------------------------------|\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | the wall clock time when the entry was written |"]]