Delegate ClientResetHandlerBase.AfterResetCallback
Callback that indicates a Client Reset has just happened.
Namespace: Realms.Sync.ErrorHandling
Assembly: Realm.dll
Syntax
public delegate void ClientResetHandlerBase.AfterResetCallback(Realm beforeFrozen, Realm after)
Parameters
Type | Name | Description |
---|---|---|
Realm | beforeFrozen | The frozen Realm as it was before the reset. |
Realm | after | The Realm after the client reset. In order to modify this realm a write transaction needs to be started. |
Remarks
The lifetime of the Realm instances supplied is tied to the callback, so don't store references to the Realm or objects obtained from it for use outside of the callback. If you need to preserve the state as it was, use WriteCopy(RealmConfigurationBase) to create a backup.