BaseRosterStateManager class abstract
This class manages the roster state in order to correctly process and persist roster pushes and facilitate roster versioning requests.
- Implementers
Constructors
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
-
commitRoster(
String? version, List< String> removed, List<XmppRosterItem> modified, List<XmppRosterItem> added) → Future<void> - Overrideable function Commits the roster data to persistent storage.
-
getRosterItems(
) → List< XmppRosterItem> -
getRosterVersion(
) → Future< String?> - Load and cache or return the cached roster version.
-
handleRosterFetch(
RosterRequestResult result) → Future< void> - Handles the result from a roster fetch.
-
handleRosterPush(
RosterPushResult event) → Future< void> - Handles a roster push from the RosterManager.
-
loadRosterCache(
) → Future< RosterCacheLoadResult> - Overrideable function Loads the old cached version of the roster and optionally that roster version from persistent storage into a RosterCacheLoadResult object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
void sendEvent(XmppEvent)) → void - Internal function. Registers functions from the RosterManger against this instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited