diff --git a/CHANGELOG.md b/CHANGELOG.md index 9af979e0a5..616288e5fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ for most certificates. Notably, it will now work out of the box for Realm Cloud ### Bug fixes - When constructing queries that compare an invalid/unmanaged RealmObject (e.g. `realm.All().Where(f => f.Bar == someBar)`), -a meaningful exception will now be thrown rather than an obscure ArgumentNullException. +a meaningful exception will now be thrown rather than an obscure ArgumentNullException. +- Added `ShouldCompactOnLaunch` to the PCL version of the library. ([dotnet-private#125](https://github.com/realm/realm-dotnet-private/issues/125)) ### Breaking Changes diff --git a/Platform.PCL/Realm.PCL/RealmConfigurationPCL.cs b/Platform.PCL/Realm.PCL/RealmConfigurationPCL.cs index 0160f33b53..f6acd6f198 100644 --- a/Platform.PCL/Realm.PCL/RealmConfigurationPCL.cs +++ b/Platform.PCL/Realm.PCL/RealmConfigurationPCL.cs @@ -80,6 +80,15 @@ public class RealmConfiguration : RealmConfigurationBase /// public MigrationCallbackDelegate MigrationCallback { get; set; } + /// + /// Gets or sets the compact on launch callback. + /// + /// + /// The that will be invoked when opening a Realm for the first time + /// to determine if it should be compacted before being returned to the user. + /// + public ShouldCompactDelegate ShouldCompactOnLaunch { get; set; } + /// /// Gets or sets the that is used when creating a new without specifying a configuration. ///