Rate this page:

MessageEvent

Interface that represents messenger events related to messages (send, update, remove).

Extends MessengerEvent which provides service information (IM user id, action, event type).

Props

imUserId

Copy URL
val imUserId: 

Long

The IM id for the user that initiated the event.

Note that IM user id is always 0 for the ErrorEvent events.

Returns

  • type:

    Long

action

Copy URL
val action: 

MessengerAction

The action that triggered this event.

Returns

type

Copy URL
val type: 

MessengerEventType

The messenger event type.

Returns

message

Copy URL
val message: 

Message

The message information.

Returns

sequence

Copy URL
val sequence: 

Long

The sequence number for this event.

Returns

  • type:

    Long

timestamp

Copy URL
val timestamp: 

Long

The UNIX timestamp (seconds) that specifies the time the message event has been provoked.

Returns

  • type:

    Long