You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`authToken`| After you've created the meeting, <br/> add each participant to the meeting <br/> using the [Add Participant API](/api?v=v2#/operations/add_participant)<br/> (The presetName created earlier <br/> must be passed in the body <br/> of the Add Participant API request) <br/> The API response contains the `authToken`. |
136
-
|`baseUrl`| The base URL of the Dyte server. Default value is `https://api.dyte.io/v2`. This is an optional argument. |
137
-
|`enableAudio`| A boolean value to enable or disable audio in the meeting. Default value is `true`. This is an optional argument. |
138
-
|`enableVideo`| A boolean value to enable or disable video in the meeting. Default value is `true`. This is an optional argument. |
|`authToken`| After you've created the meeting, <br/> add each participant to the meeting <br/> using the [Add Participant API](/api?v=v2#/operations/add_participant)<br/> (The presetName created earlier <br/> must be passed in the body <br/> of the Add Participant API request) <br/> The API response contains the `authToken`. |
135
+
|`baseUrl`| The base URL of the Dyte server. Default value is `https://api.dyte.io/v2`. This is an optional argument. |
136
+
|`enableAudio`| A boolean value to enable or disable audio in the meeting. Default value is `true`. This is an optional argument. |
137
+
|`enableVideo`| A boolean value to enable or disable video in the meeting. Default value is `true`. This is an optional argument. |
139
138
140
139
```dart
141
140
final meetingInfo = DyteMeetingInfoV2(
@@ -238,13 +237,19 @@ Successful joining of meeting is indicated by `onMeetingRoomJoined` callback.
238
237
239
238
Once the meeting is over, you can leave the meeting room.
240
239
240
+
Once leave meeting is completed or you decide to `release()` the meeting [called when user exits the SDK without joining the meeting room, say user exited from setup/waiting room], make sure to cleanup all listeners by calling `dyteClient.cleanAllNativeListeners()`.
241
+
241
242
To leave the meeting room, call `leaveRoom()` method on the `dyteClient` as
242
243
shown below.
243
244
244
245
```dart
245
246
dyteClient.leaveRoom();
246
247
```
247
248
249
+
### Cleanup listeners
250
+
251
+
Introduced in `dyte_core: 0.3.6`, `cleanAllNativeListeners()` method which needs to be called when you're done with current session of dyte meeting. It interally calls individual new clean methods for each listener `cleanNativeMeetingRoomEventsListener()`, `cleanNativeParticipantEventListener()`, `cleanNativePollListener()`, `cleanNativeRecordingListener()`, `cleanNativeStageEventsListener()`, `cleanNativeSelfParticipantEventListener()`, `cleanNativeChatListener()`, `cleanNativeDataUpdateListener()`, `cleanNativeLivestreamListener()`, `cleanNativePluginEventsListener()`.
252
+
248
253
By registering state observers, you receive callbacks for this action on the
249
254
meeting object.
250
255
@@ -260,6 +265,8 @@ class RoomStateNotifier implements DyteMeetingRoomEventsListener {
260
265
261
266
@override
262
267
void onMeetingRoomLeaveCompleted() {
268
+
dyteClient.removeMeetingRoomEventsListener(this);
269
+
dyteClient.cleanupAppListeners();
263
270
/// on meeting room left
264
271
}
265
272
@@ -292,5 +299,8 @@ end
292
299
293
300
<head>
294
301
<title>Flutter Core Quickstart</title>
295
-
<metaname="description"content="Dive into the core of Flutter development with Dyte. Explore essential documentation to streamline your Flutter app integration."/>
302
+
<meta
303
+
name="description"
304
+
content="Dive into the core of Flutter development with Dyte. Explore essential documentation to streamline your Flutter app integration."
0 commit comments