MLKitSmartReply Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Type Definitions
The following type definitions are available globally.
-
A block containing a suggestion result or nil
if there’s an error.
Parameters
-
@enum SmartReplyResultStatus
This enum specifies the status of the smart reply result.
Declaration
Objective-C
typedef
NSInteger
MLKSmartReplyResultStatus
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eGlobally available type definitions provide developers with tools for handling smart reply suggestions and results within their applications.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKSmartReplyCallback\u003c/code\u003e is a block that returns a suggestion result or an error, enabling developers to process smart reply outcomes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKSmartReplyResultStatus\u003c/code\u003e is an enumeration that defines the status of a smart reply result, allowing developers to understand the outcome of the smart reply process.\u003c/p\u003e\n"]]],["The content defines two types for smart reply functionality: `MLKSmartReplyCallback` and `MLKSmartReplyResultStatus`. `MLKSmartReplyCallback` is a block that returns a suggestion result or an error. It accepts two parameters: `result` (a suggestion or `nil`) and `error` (an error or `nil`). `MLKSmartReplyResultStatus` is an enumeration representing the status of a smart reply result. Both are available globally, as indicated by the type definition.\n"],null,["# MLKitSmartReply Framework Reference\n\nType Definitions\n================\n\nThe following type definitions are available globally.\n- `\n ``\n ``\n `\n\n ### [MLKSmartReplyCallback](#/c:MLKSmartReply.h@T@MLKSmartReplyCallback)\n\n `\n ` \n A block containing a suggestion result or `nil` if there's an error. \n\n #### Declaration\n\n Objective-C \n\n typedef void (^MLKSmartReplyCallback)(/ml-kit/reference/ios/mlkitsmartreply/api/reference/Classes/MLKSmartReplySuggestionResult *_Nullable,\n NSError *_Nullable)\n\n #### Parameters\n\n |----------------|----------------------------------------------------------------|\n | ` `*result*` ` | A suggestion result for the text or `nil` if there's an error. |\n | ` `*error*` ` | The error or `nil`. |\n\n- `\n ``\n ``\n `\n\n ### [MLKSmartReplyResultStatus](#/c:MLKSmartReplySuggestionResult.h@T@MLKSmartReplyResultStatus)\n\n `\n ` \n @enum SmartReplyResultStatus\n This enum specifies the status of the smart reply result. \n\n #### Declaration\n\n Objective-C \n\n typedef NSInteger MLKSmartReplyResultStatus"]]