Delegate RealmConfiguration.ShouldCompactDelegate
A callback, invoked when opening a Realm for the first time during the life of a process to determine if it should be compacted before being returned to the user.
Namespace:Realms
Assembly:Realm.dll
Syntax
public delegate bool ShouldCompactDelegate(ulong totalBytes, ulong bytesUsed);
Parameters
| Type | Name | Description |
|---|---|---|
| UInt64 | totalBytes | Total file size (data + free space). |
| UInt64 | bytesUsed | Total data size. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
Remarks
The compaction will be skipped if another process is accessing it.