FirebaseMLModelDownloader Framework Reference

ModelDownloadType

public enum ModelDownloadType

Possible ways to get a custom model.

  • Get local model stored on device if available. If no local model on device, this is the same as latestModel.

    Declaration

    Swift

    case localModel
  • Get local model on device if available and update to latest model from server in the background. If no local model on device, this is the same as latestModel.

    Declaration

    Swift

    case localModelUpdateInBackground
  • Get latest model from server. Does not make a network call for model file download if local model matches the latest version on server.

    Declaration

    Swift

    case latestModel