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 |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| Boolean | |
| 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. |
| Int |
hashCode() |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<SecurityLog.SecurityEvent!> | |
Public methods
describeContents
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
obj |
the reference object with which to compare. |
| Return | |
|---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
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 one of the following: |
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
Flatten this object in to a Parcel.
| 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 the following:
|