DiscardUnsyncedChangesHandler class Sync
A client reset strategy where any not yet synchronized data is automatically discarded and a fresh copy of the synchronized realm is obtained.
If you set DiscardUnsyncedChangesHandler callback as clientResetHandler
argument of Configuration.flexibleSync,
the local Realm
will be discarded and replaced with the server side Realm
.
All local changes will be lost.
- Inheritance
-
- Object
- ClientResetHandler
- DiscardUnsyncedChangesHandler
Constructors
- DiscardUnsyncedChangesHandler({BeforeResetCallback? onBeforeReset, AfterResetCallback? onAfterReset, ClientResetCallback? onManualResetFallback})
-
Creates an instance of
DiscardUnsyncedChangesHandler
.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAfterReset → AfterResetCallback?
-
The callback that will be executed just after the client reset happens.
no setter
- onBeforeReset → BeforeResetCallback?
-
The callback that will be executed just before the client reset happens.
no setter
- onManualReset → ClientResetCallback?
-
The callback that handles the ClientResetError.
finalinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited