An abstract interface that FMTC will use to communicate with a storage 'backend' (usually one root)
For implementers:
See also FMTCBackendInternal and FMTCBackendInternalThreadSafe, which have the actual method signatures. This is provided as a public means to initialise and uninitialise the backend.
When creating a custom implementation, follow the same pattern as the built-in ObjectBox backend (FMTCObjectBoxBackend).
initialise & uninitialise's implementations should redirect to an implementation in a FMTCBackendInternal, where the setter of FMTCBackendAccess.internal and FMTCBackendAccessThreadSafe.internal may be accessed - see documentation on FMTCBackendAccess for more information.
- Implementers
Constructors
- FMTCBackend()
-
An abstract interface that FMTC will use to communicate with a storage
'backend' (usually one root)
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
initialise(
{String? rootDirectory}) → Future< void> - Initialise this backend, and create the root
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uninitialise(
{bool deleteRoot = false}) → Future< void> - Uninitialise this backend, and release whatever resources it is consuming
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited