Added in API level 24

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
equals(other: Any?)

Any!

Returns the payload contained in this log entry or null if there is no payload.

Long

Returns the id of the event, where the id monotonically increases for each event.

Int

Returns severity level for the event.

Int

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

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<SecurityLog.SecurityEvent!>

Public methods

describeContents

Added in API level 24
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

Added in API level 24
fun getData(): Any!

Returns the payload contained in this log entry or null if there is no payload.

getId

Added in API level 28
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

Added in API level 28
fun getLogLevel(): Int

Returns severity level for the event.

Return
Int Value is one of the following:

getTag

Added in API level 24
fun getTag(): Int

Returns the tag of this log entry, which specifies entry's semantics.

Return
Int Value is one of the following:

getTimeNanos

Added in API level 24
fun getTimeNanos(): Long

Returns the timestamp in nano seconds when this event was logged.

hashCode

fun hashCode(): Int
Return
Int a hash code value for this object.

writeToParcel

Added in API level 24
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:

Properties

CREATOR

Added in API level 24
static val CREATOR: Parcelable.Creator<SecurityLog.SecurityEvent!>