MLKitEntityExtraction 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
-
@枚举 DateTimeGranularity
从文本中提取的时间戳的精确度。
例如,“明天”的粒度为 .day
,而“12:51”的粒度为 .minute
。
声明
Objective-C
enum MLKDateTimeGranularity {}
-
@enum PaymentCardNetwork
可以检测到的受支持支付卡网络。
声明
Objective-C
enum MLKPaymentCardNetwork {}
-
@enum ParcelTrackingCarrier
可检测到的受支持包裹跟踪运输公司。
声明
Objective-C
enum MLKParcelTrackingCarrier {}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["Three global enumerations are defined: `MLKDateTimeGranularity`, `MLKPaymentCardNetwork`, and `MLKParcelTrackingCarrier`. `MLKDateTimeGranularity` specifies the precision of a timestamp extracted from text, like `.day` or `.minute`. `MLKPaymentCardNetwork` lists the detectable payment card networks. `MLKParcelTrackingCarrier` enumerates the supported parcel tracking carriers that can be identified. Each enumeration is accessible globally and is defined using an Objective-C declaration.\n"],null,[]]