Twilio Flex - activity 更改后获取代理属性

Twilio Flex - Getting Agent properties after change of activity

我需要获取更改 activity 的代理属性,有没有办法获取代理属性?

async init(flex, manager) {
  flex.Actions.addListener("afterSetActivity", (payload) => {
    // Would like to access agent properties here
  }
}

唯一可以设置 activity 的代理是您可以使用 manager.workerClient 获得的登录代理。