ModelOptions

class ModelOptions : NSObject

Options for specifying a custom model.

  • The name of a model downloaded from the cloud.

    Declaration

    Swift

    var cloudModelName: String? { get }
  • The name of a model stored locally on the device.

    Declaration

    Swift

    var localModelName: String? { get }
  • Creates a new instance of ModelOptions with the given cloud and/or local model name. At least one model name must be provided. If both cloud and local model names are provided, then the cloud model takes priority.

    Declaration

    Swift

    init(cloudModelName: String?, localModelName: String?)

    Parameters

    cloudModelName

    The cloud custom model name. Pass nil if only the provided local model name should be used.

    localModelName

    The local custom model name. Pass nil if only the provided cloud model name should be used.

    Return Value

    Custom model options instance with the given model name(s).

  • Unavailable.