HMSPreviewListener class abstract

HMSPreviewListener listens to updates when you preview.

Just implement it and get the preview updates.

Check out the Sample App how we are using it.

Constructors

HMSPreviewListener()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAudioDeviceChanged({HMSAudioDevice? currentAudioDevice, List<HMSAudioDevice>? availableAudioDevice}) → void
whenever a new audio device is plugged in or audio output is changed we get the onAudioDeviceChanged update This callback is only fired on Android devices. On iOS, this callback will not be triggered.
onHMSError({required HMSException error}) → void
when an error is caught onError will be called
onPeerListUpdate({required List<HMSPeer> addedPeers, required List<HMSPeer> removedPeers}) → void
Upon joining a room with existing peers, onPeerListUpdated will be called with the list of peers present in the room instead of getting onPeerUpdate for each peer in the room. Subsequent peer joins/leaves would be notified via both onPeerUpdate and onPeerListUpdated
onPeerUpdate({required HMSPeer peer, required HMSPeerUpdate update}) → void
This will be called whenever there is an update on an existing peer or a new peer got added/existing peer is removed.
onPreview({required HMSRoom room, required List<HMSTrack> localTracks}) → void
when you want to preview listen to this callback
onRoomUpdate({required HMSRoom room, required HMSRoomUpdate update}) → void
This is called when there is a change in any property of the Room
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited