You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

  1. //
  2. // Realm.h
  3. // FLEX
  4. //
  5. // Created by Tim Oliver on 16/02/2016.
  6. // Copyright © 2016 Realm. All rights reserved.
  7. //
  8. #if __has_include(<Realm/Realm.h>)
  9. #else
  10. @class RLMObject, RLMResults, RLMRealm, RLMRealmConfiguration, RLMSchema, RLMObjectSchema, RLMProperty;
  11. @interface RLMRealmConfiguration : NSObject
  12. @property (nonatomic, copy) NSURL *fileURL;
  13. @end
  14. @interface RLMRealm : NSObject
  15. @property (nonatomic, readonly) RLMSchema *schema;
  16. + (RLMRealm *)realmWithConfiguration:(RLMRealmConfiguration *)configuration error:(NSError **)error;
  17. - (RLMResults *)allObjects:(NSString *)className;
  18. @end
  19. @interface RLMSchema : NSObject
  20. @property (nonatomic, readonly) NSArray<RLMObjectSchema *> *objectSchema;
  21. - (RLMObjectSchema *)schemaForClassName:(NSString *)className;
  22. @end
  23. @interface RLMObjectSchema : NSObject
  24. @property (nonatomic, readonly) NSString *className;
  25. @property (nonatomic, readonly) NSArray<RLMProperty *> *properties;
  26. @end
  27. @interface RLMProperty : NSString
  28. @property (nonatomic, readonly) NSString *name;
  29. @end
  30. @interface RLMResults : NSObject <NSFastEnumeration>
  31. @property (nonatomic, readonly) NSInteger count;
  32. @end
  33. @interface RLMObject : NSObject
  34. @end
  35. #endif