AI-generated Key Takeaways
-
Globally available type definitions provide developers with tools for handling smart reply suggestions and results within their applications.
-
MLKSmartReplyCallbackis a block that returns a suggestion result or an error, enabling developers to process smart reply outcomes. -
MLKSmartReplyResultStatusis an enumeration that defines the status of a smart reply result, allowing developers to understand the outcome of the smart reply process.
Type Definitions
The following type definitions are available globally.
-
A block containing a suggestion result or
nilif there’s an error.Declaration
Objective-C
typedef void (^MLKSmartReplyCallback)(MLKSmartReplySuggestionResult *_Nullable, NSError *_Nullable)Parameters
resultA suggestion result for the text or
nilif there’s an error.errorThe error or
nil. -
@enum SmartReplyResultStatus This enum specifies the status of the smart reply result.
Declaration
Objective-C
typedef NSInteger MLKSmartReplyResultStatus