Search Results for

    Show / Hide Table of Contents

    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

    true to indicate that an attempt to compact the file should be made.

    Remarks

    The compaction will be skipped if another process is accessing it.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX