Implement Flutter UI Kit

After the required permissions are granted and a valid token is obtained, you can start using the enx_uikit_flutter framework.

Pre-requisites

To use the Enx_UIKit_Flutter Framework user must have the following:

  • A valid Token to join the room
  • Camera permission
  • Mic permission

Implementation

Import Necessary Packages

Go to your class and import enx_uikit_flutter.

import 'package:enx_uikit_flutter/enx_uikit_flutter.dart';

Initialize and Set Up the EnxVideoViewclass

Initiate the EnxVideoView class to pass a valid token and to handle callback.

// embedUrl is optional, used to import settings of Low Code
Chnage EnxVideoView callbacks
EnxVideoView(token: token, embedUrl: "Low Code Host URL,
connectError: (Map<dynamic, dynamic> map) {
`//Here is the reason, will carry information about cause of error
`print('connectError' + jsonEncode(map));},
disconnect: (Map<dynamic, dynamic> map) {
//Here is the reason, will carry information about cause of disconnection
print('disconnect' + jsonEncode(map));}
OnPageSlide : (EnxPageSlideEventName enxPageSlideEventName, bool isShow) {
//enxPage slideEventName is return s the page name
//isShow boolean return page open /close
}
onUserDataReceived: (Map<dynamic, dynamic> map) {
//received user Data
} );