FIRTranslatorOptions


@interface FIRTranslatorOptions : NSObject

Options for Translator.

  • The source language of the input.

    Declaration

    Objective-C

    @property (readonly, nonatomic) FIRTranslateLanguage sourceLanguage;
  • The target language to translate the input into.

    Declaration

    Objective-C

    @property (readonly, nonatomic) FIRTranslateLanguage targetLanguage;
  • Creates a new instance of translator options with the given source and target languages.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithSourceLanguage:(FIRTranslateLanguage)sourceLanguage
                targetLanguage:(FIRTranslateLanguage)targetLanguage;

    Parameters

    sourceLanguage

    The source language for the translator.

    targetLanguage

    The target language for the translator.

    Return Value

    A new instance of TranslatorOptions with the given source and target language.

  • UNAVAILABLE

    Declaration

    Objective-C

    - (nonnull instancetype)init;