[]
        
(Showing Draft Content)

GC.Spread.Common.Events

Class: Events

Spread.Common.Events

Table of contents

Constructors

Events

Constructors

constructor

new Events()

Define the events supported by UserManager.

Events

CurrentUserChanged

Static CurrentUserChanged: string

Indicates the event when the current user is changed.

param GC.Spread.Common.IUser oldCurrentUser The old current user.

param GC.Spread.Common.IUser newCurrentUser The new current user.

example

GC.Spread.Common.UserManager.bind(GC.Spread.Common.Events.CurrentUserChanged, (event, args) => {
    console.log(event);
    console.log(args.oldCurrentUser);
    console.log(args.newCurrentUser);
});