MLKitSmartReply 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
-
声明
Swift
typealias SmartReplyCallback = (MLKSmartReplySuggestionResult?, Error?) -> Void
-
@枚举 SmartReplyResultStatus
此枚举指定智能回复结果的状态。
声明
Swift
struct SmartReplyResultStatus : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003eSmartReplyCallback\u003c/code\u003e type defines a block providing a suggestion result or an error for smart reply functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSmartReplyResultStatus\u003c/code\u003e type indicates the status of the smart reply result, whether it was successful or encountered an error.\u003c/p\u003e\n"]]],[],null,["# MLKitSmartReply Framework Reference\n\nType Definitions\n================\n\nThe following type definitions are available globally.\n- `\n ``\n ``\n `\n\n ### [SmartReplyCallback](#/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 Swift \n\n typealias SmartReplyCallback = (MLKSmartReplySuggestionResult?, Error?) -\u003e Void\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 ### [SmartReplyResultStatus](#/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 Swift \n\n struct SmartReplyResultStatus : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable"]]