SecurityEvent
class SecurityEvent : Parcelable
| kotlin.Any | |
| ↳ | android.app.admin.SecurityLog.SecurityEvent |
A class representing a security event log entry.
Summary
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Any! |
getData()Returns the payload contained in this log entry or |
| Long |
getId()Returns the id of the event, where the id monotonically increases for each event. |
| Int |
Returns severity level for the event. |
| Int |
getTag()Returns the tag of this log entry, which specifies entry's semantics. |
| Long |
Returns the timestamp in nano seconds when this event was logged. |
| Unit |
writeToParcel(dest: Parcel, flags: Int) |
| Properties | |
|---|---|
| static Parcelable.Creator<SecurityLog.SecurityEvent!> | |
Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getData
fun getData(): Any!
Returns the payload contained in this log entry or null if there is no payload.
getId
fun getId(): Long
Returns the id of the event, where the id monotonically increases for each event. The id is reset when the device reboots, and when security logging is enabled.
getLogLevel
fun getLogLevel(): Int
Returns severity level for the event.
| Return | |
|---|---|
Int |
Value is android.app.admin.SecurityLog#LEVEL_INFO, android.app.admin.SecurityLog#LEVEL_WARNING, or android.app.admin.SecurityLog#LEVEL_ERROR |
getTag
fun getTag(): Int
Returns the tag of this log entry, which specifies entry's semantics.
getTimeNanos
fun getTimeNanos(): Long
Returns the timestamp in nano seconds when this event was logged.
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
| Parameters | |
|---|---|
dest |
Parcel: The Parcel in which the object should be written. This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |