RLMSyncConfiguration_Private.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 Realm Inc.
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. //
  17. ////////////////////////////////////////////////////////////////////////////
  18. #import <Realm/RLMSyncConfiguration.h>
  19. #import <Realm/RLMConstants.h>
  20. NS_ASSUME_NONNULL_BEGIN
  21. typedef RLM_CLOSED_ENUM(NSUInteger, RLMSyncStopPolicy) {
  22. RLMSyncStopPolicyImmediately,
  23. RLMSyncStopPolicyLiveIndefinitely,
  24. RLMSyncStopPolicyAfterChangesUploaded,
  25. };
  26. @interface RLMSyncConfiguration ()
  27. - (instancetype)initWithUser:(RLMSyncUser *)user
  28. realmURL:(NSURL *)url
  29. isPartial:(BOOL)isPartial
  30. urlPrefix:(nullable NSString *)urlPrefix
  31. stopPolicy:(RLMSyncStopPolicy)stopPolicy
  32. enableSSLValidation:(BOOL)enableSSLValidation
  33. certificatePath:(nullable NSURL *)certificatePath;
  34. @property (nonatomic, readwrite) RLMSyncStopPolicy stopPolicy;
  35. // Internal-only APIs
  36. @property (nullable, nonatomic) NSURL *customFileURL;
  37. @end
  38. NS_ASSUME_NONNULL_END