Class: ObjectChangedEvent

Properties
bubbles boolean

Whether this event bubbles.

compoundOperationNames Array of string

The list of names from the hierarchy of compound operations that initiated this event.

events Array of gapi.drive.realtime.BaseModelEvent

The specific events that document the changes that occurred on the object.

isLocal boolean

True if this event originated in the local session.

isRedo boolean

True if this event originated from a redo call.

isUndo boolean

True if this event originated from an undo call.

preventDefault void

Prevents an event from performing its default action. In the Realtime API, this function is only present for compatibility with the DOM event interface and therefore it does nothing.

sessionId string

The id of the session that initiated this event.

target Object

The collaborative object that initiated this event.

type string

The type of the event.

userId string

The user id of the user that initiated this event.

Method
stopPropagation() void

Stops an event which bubbles from propagating to the target's parent.

new ObjectChangedEvent(target, sessionId, userId, compoundOperationNames, isLocal, isUndo, isRedo, events)

Parameters

Name Type Optional Description

target

gapi.drive.realtime.CollaborativeObject

 

The collaborative object that initiated the event.

Value must not be null.

sessionId

string

 

The id of the session that initiated the event.

userId

string

 

The user id of the user that initiated the event.

compoundOperationNames

Array of string

 

The list of names from the hierarchy of compound operations that initiated the event.

Value must not be null.

isLocal

boolean

 

True if the event originated in the local session.

isUndo

boolean

 

True if the event originated from an undo call.

isRedo

boolean

 

True if the event originated from a redo call.

events

Array of gapi.drive.realtime.BaseModelEvent

 

The specific events that document the changes that occurred on the object.

Value must not be null.

Extends
gapi.drive.realtime.BaseModelEvent

Properties

bubbles  boolean

Whether this event bubbles.

Inherited from
gapi.drive.realtime.BaseModelEvent#bubbles

compoundOperationNames  Array of string

The list of names from the hierarchy of compound operations that initiated this event.

Inherited from
gapi.drive.realtime.BaseModelEvent#compoundOperationNames

events  Array of gapi.drive.realtime.BaseModelEvent

The specific events that document the changes that occurred on the object.

isLocal  boolean

True if this event originated in the local session.

Inherited from
gapi.drive.realtime.BaseModelEvent#isLocal

isRedo  boolean

True if this event originated from a redo call.

Inherited from
gapi.drive.realtime.BaseModelEvent#isRedo

isUndo  boolean

True if this event originated from an undo call.

Inherited from
gapi.drive.realtime.BaseModelEvent#isUndo

preventDefault

Prevents an event from performing its default action. In the Realtime API, this function is only present for compatibility with the DOM event interface and therefore it does nothing.

Inherited from
gapi.drive.realtime.BaseModelEvent#preventDefault

sessionId  string

The id of the session that initiated this event.

Inherited from
gapi.drive.realtime.BaseModelEvent#sessionId

target  Object

The collaborative object that initiated this event.

Inherited from
gapi.drive.realtime.BaseModelEvent#target

type  string

The type of the event.

Inherited from
gapi.drive.realtime.BaseModelEvent#type

userId  string

The user id of the user that initiated this event.

Inherited from
gapi.drive.realtime.BaseModelEvent#userId

Method

stopPropagation()

Stops an event which bubbles from propagating to the target's parent.

Inherited from
gapi.drive.realtime.BaseModelEvent#stopPropagation

Send feedback about...

Realtime API
Realtime API