Skip to content

Instantly share code, notes, and snippets.

@kajornsakp
Created April 15, 2019 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kajornsakp/04e77a54299744c83517411c8864d294 to your computer and use it in GitHub Desktop.
Save kajornsakp/04e77a54299744c83517411c8864d294 to your computer and use it in GitHub Desktop.
Identify possible languages
/**
* Identifies possible languages for the given text.
*
* @param text The input text to use for identifying the language. Inputs longer than 200 characters
* are truncated to 200 characters, as longer input does not improve the detection accuracy.
* @param completion Handler to call back on the main queue with identified languages or error.
*/
- (void)identifyPossibleLanguagesForText:(NSString *)text
completion:(FIRIdentifyPossibleLanguagesCallback)completion
NS_SWIFT_NAME(identifyPossibleLanguages(for:completion:));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment