Class PartitionSyncConfiguration
A PartitionSyncConfiguration is used to setup a Realm that can be synchronized between devices using Atlas Device Sync.
Inherited Members
Namespace: Realms.Sync
Assembly: Realm.dll
Syntax
public class PartitionSyncConfiguration : SyncConfigurationBase
Constructors
| Edit this page View SourcePartitionSyncConfiguration(ObjectId?, User, string?)
Initializes a new instance of the PartitionSyncConfiguration class.
Declaration
public PartitionSyncConfiguration(ObjectId? partition, User user, string? optionalPath = null)
Parameters
Type | Name | Description |
---|---|---|
ObjectId? | partition | The partition identifying the remote Realm that will be synchronized. |
User | user | A valid User. |
string | optionalPath | Path to the realm, must be a valid full path for the current platform, relative subdirectory, or just filename. |
PartitionSyncConfiguration(Guid?, User, string?)
Initializes a new instance of the PartitionSyncConfiguration class.
Declaration
public PartitionSyncConfiguration(Guid? partition, User user, string? optionalPath = null)
Parameters
Type | Name | Description |
---|---|---|
Guid? | partition | The partition identifying the remote Realm that will be synchronized. |
User | user | A valid User. |
string | optionalPath | Path to the realm, must be a valid full path for the current platform, relative subdirectory, or just filename. |
PartitionSyncConfiguration(long?, User, string?)
Initializes a new instance of the PartitionSyncConfiguration class.
Declaration
public PartitionSyncConfiguration(long? partition, User user, string? optionalPath = null)
Parameters
Type | Name | Description |
---|---|---|
long? | partition | The partition identifying the remote Realm that will be synchronized. |
User | user | A valid User. |
string | optionalPath | Path to the realm, must be a valid full path for the current platform, relative subdirectory, or just filename. |
PartitionSyncConfiguration(string?, User, string?)
Initializes a new instance of the PartitionSyncConfiguration class.
Declaration
public PartitionSyncConfiguration(string? partition, User user, string? optionalPath = null)
Parameters
Type | Name | Description |
---|---|---|
string | partition | The partition identifying the remote Realm that will be synchronized. |
User | user | A valid User. |
string | optionalPath | Path to the realm, must be a valid full path for the current platform, relative subdirectory, or just filename. |
Properties
| Edit this page View SourceOnProgress
Gets or sets a callback that is invoked when download progress is made when using GetInstanceAsync(RealmConfigurationBase?, CancellationToken). This will only be invoked for the initial download of the Realm and will not be invoked as further download progress is made during the lifetime of the Realm. It is ignored when using GetInstance(RealmConfigurationBase?).
Declaration
public Action<SyncProgress>? OnProgress { get; set; }
Property Value
Type | Description |
---|---|
Action<SyncProgress> | A callback that will be periodically invoked as the Realm is downloaded. |
Partition
Gets the partition identifying the Realm this configuration is describing.
Declaration
public RealmValue Partition { get; }
Property Value
Type | Description |
---|---|
RealmValue | The partition value for the Realm. |