ZEGOCLOUD / zego_uikit_prebuilt_live_audio_room_flutter

MIT License
5 stars 6 forks source link

How can i use onIMRecvBroadcastMessage #2

Closed digarahayu closed 9 months ago

digarahayu commented 9 months ago

how to use onIMRecvBroadcastMessage when i use ZegoUIKitPrebuiltLiveAudioRoom. how i can trigger all event that available on ZegoExpressEngine

yoer commented 9 months ago

import 'package:zego_express_engine/zego_express_engine.dart';

void xx() {
  final expressEvent = ExpressEvent();

  ZegoUIKit().registerExpressEvent(expressEvent);
}

class ExpressEvent extends ZegoUIKitExpressEventInterface {
  @override
  void onIMRecvBroadcastMessage(
      String roomID, List<ZegoBroadcastMessageInfo> messageList) {
    // TODO: implement onIMRecvBroadcastMessage
    super.onIMRecvBroadcastMessage(roomID, messageList);
  }
}
yoer commented 9 months ago

You can inherit ZegoUIKitExpressEventInterface and listen to all event callbacks related to ZegoExpressEngine here

digarahayu commented 9 months ago

I can't find it in documentation Btw thanks ,finally it's works

yoer commented 9 months ago

ZegoUIKitExpressEventInterface

Armysniper46 commented 5 months ago

hi how to use it im in the lost here

yoer commented 5 months ago

hi how to use it im in the lost here i'm sorry? what's your question?