TranslateRemoteModel

class TranslateRemoteModel : RemoteModel

A translate model that is stored remotely on the server and downloaded on the device.

  • The language associated with this model.

    Declaration

    Swift

    var language: TranslateLanguage { get }
  • Gets an instance of TranslateRemoteModel configured with the given language, the default Firebase App and the default downloading conditions. This model can be used to trigger a download by calling download(_:) API from ModelManager.

    TranslateRemoteModel uses ModelManager internally. When downloading TranslateRemoteModels, there will be a notification posted for an internal RemoteModel. When listening to the notifications for a TranslateRemoteModel you need to check the model object is a TranslateRemoteModel before using it. Otherwise you may try to use the internal RemoteModel as a TranslateRemoteModel.

    Declaration

    Swift

    class func translateRemoteModel(language: TranslateLanguage) -> TranslateRemoteModel

    Parameters

    language

    The given language.

    Return Value

    A TranslateRemoteModel instance.

  • Gets an instance of TranslateRemoteModel configured with the given language, the given Firebase App and the given downloading conditions.

    Declaration

    Swift

    class func translateRemoteModel(app: FIRApp, language: TranslateLanguage, conditions: FIRModelDownloadConditions) -> TranslateRemoteModel

    Parameters

    app

    The Firebase app.

    language

    The given language.

    conditions

    The downloading conditions for the translate model.

    Return Value

    A TranslateRemoteModel instance.

  • UNAVAILABLE

  • UNAVAILABLE: TranslateRemoteModels cannot be initialized explicitly.