[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
在线咨询 立即试用
(Showing Draft Content)

GC.Spread.Common.Events

Class: Events

Spread.Common.Events

Table of contents

Constructors

Events

Constructors

constructor

• new Events()

定义UserManager支持的事件。

Events

CurrentUserChanged

• Static CurrentUserChanged: string

指示当前用户发生更改时的事件。

param {@link GC.Spread.Common.IUser} oldCurrentUser 旧的当前用户。

param {@link GC.Spread.Common.IUser} newCurrentUser 新的当前用户。

example

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