The following protocols are available globally.
A type which can be stored in a Realm List or Results.
Declaring additional types as conforming to this protocol will not make them actually work. Most of the logic for how to store values in Realm is not implemented in Swift and there is currently no extension mechanism for supporting more types.
public protocol RealmCollectionValue: Equatable
Types of properties which can be used with the minimum and maximum value APIs.
public protocol MinMaxType
Types of properties which can be used with the sum and average value APIs.
public protocol AddableType
Objects of types which conform to
ThreadConfinedcan be managed by a Realm, which will make them bound to a thread-specific
Realminstance. Managed objects must be explicitly exported and imported to be passed between threads.
Managed instances of objects conforming to this protocol can be converted to a thread-safe reference for transport between threads by passing to the
Note that only types defined by Realm can meaningfully conform to this protocol, and defining new classes which attempt to conform to it will not make them work withSee more
public protocol ThreadConfined