HMSPeerListIterator class
100ms HMSPeerListIterator
HMSPeerListIterator contains the info about the peer list iterator
limit returns the maximum number of peers that can be returned in a single call to next.
totalCount returns the total number of peers present with the iterator based on the filters applied with PeerListIteratorOptions while making
getPeerListIterator
method call
uid returns the unique id of the peer list iterator
Constructors
- HMSPeerListIterator({required int limit, required String uid, required dynamic totalCount})
- HMSPeerListIterator.fromMap(Map map)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int
-
maximum number of peers that can be returned in a single call to next
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalCount → int
-
no setter
- uid → String
-
unique id of the peer list iterator
final
Methods
-
hasNext(
) → Future - This method is used to check if there are more peers to be returned
-
next(
) → Future - This method is used to get the next set of peers
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited