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 RealmConfiguration.ShouldCompactDelegate(ulong totalBytes, ulong bytesUsed)
Parameters
Type | Name | Description |
---|---|---|
ulong | totalBytes | Total file size (data + free space). |
ulong | bytesUsed | Total data size. |
Returns
Type | Description |
---|---|
bool |
|
Remarks
The compaction will be skipped if another process is accessing it.