huddle01_flutter_client 1.0.6 huddle01_flutter_client: ^1.0.6 copied to clipboard
The Huddle01 Flutter SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.
Huddle01 Flutter SDK #
People-powered Communication
Community ยท Documentation
Flutter SDK #
The Huddle01 Flutter SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.
Pre Requisites #
Before using the Flutter SDK, you must have Flutter installed on your machine. You can install Flutter using one of the following method:
- Use the official flutter docs website
After installing Flutter verify it's installed by running the following command in your terminal:
flutter --version
Installing the packages: #
To get started with the Huddle01 Flutter SDK, you can install the package using:
flutter pub add huddle01_flutter_client
Initializing the SDK: #
After installing the package, you can initialize the SDK
String projectId = 'YOUR-PROJECT-ID';
// Initialize your huddleClient
HuddleClient huddleClient = HuddleClient(
projectId: 'ENTER_YOUR_PROJECT_KEY',
);
Joining the room: #
Once you initialise huddleClient
you can access various methods such as joinRoom
. You can generate roomId using this API and an access token to join that particular room using our Server SDK. The access token should always be generated on a backend server.
Add the joinRoom()
and leaveRoom()
methods for joining and leaving functionalities.
String roomId = 'YOUR-ROOM-ID';
String token = 'YOUR-TOKEN';
// Join Room
huddleClient.joinRoom(roomId, token);
// Leave Room
huddleClient.leaveRoom();
๐ก For more information head to https://docs.huddle01.com/docs/Flutter
๐ก For any help reach out to us on Discord