There are plans for releasing a newer version of the Agora App Builder Core, with the new release you'll have access to Agora AppBuilder Extension API's. Extension API's will enable to enhance/add newer functionalities to your app without ever touching the core code base.
发布评论
评论(1)
假设您是最新版本的 agoraappbuilder core(2.1.0)
是您可以实现用例的方法
用户加入,用户disconnect
在应用程序中导航到
{app-name}/src/pages/videocall.tsx
导航到您的<<<代码> propsprovider 组件。
它可能看起来像这样,
寻找
回调
props,回调
props采用对象类型:如果要注册用户jojo的回调或离线(断开连接),则可以将回调传递到您的
propsprovider
与接收到的消息相似,您可以使用
事件
对象。在您的
videocall
组件中使用:一旦您访问
事件
对象,请注册您的自定义事件public
和private 消息。
有计划发布较新版本的Agora App Builder Core,新版本将可以访问Agora AppBuilder Extension API。 Extension API将使您无需触摸核心代码库来增强/添加新功能。
Assuming you are on the latest version of AgoraAppBuilder Core (2.1.0)
Here are the ways you can achieve your use cases
user join, user disconnect
In your app navigate to
{APP-Name}/src/pages/VideoCall.tsx
Navigate to your
PropsProvider
component.It might look something like this,
look for the
callbacks
props,callbacks
props take an object type:If you want to register callbacks for userJoined or offline(disconnect), you can pass the callbacks to your
PropsProvider
Similarly for message received notifications, you can use the
events
object.Within your
VideoCall
component use:Once you have access to the
events
object, register your custom events for handlingpublic
andprivate
messages.There are plans for releasing a newer version of the Agora App Builder Core, with the new release you'll have access to Agora AppBuilder Extension API's. Extension API's will enable to enhance/add newer functionalities to your app without ever touching the core code base.