AmplifyModelRegistration

public protocol AmplifyModelRegistration

Protocol that defines a contract between the consumer and the DataStore plugin. All models have to be registered and have an associated version.

  • Function called during plugin initialization. Implementations must register all the available models here.

    Declaration

    Swift

    func registerModels(registry: ModelRegistry.Type)
  • The version associated with the current schema.

    Declaration

    Swift

    var version: String { get }