Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
TAGFunctionCallTagHandler 协议参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
概览
成员函数文档
| - (void) 执行: |
|
(NSString *) |
tagName |
| 参数: |
|
(NSDictionary *) |
参数 |
|
|
| |
系统会为处理程序提供标记名称和命名参数字典。
- 参数:
-
| tagName | 与注册处理程序时使用的名称。提供它只是为了便于为多个函数调用代码注册一个处理程序。 |
| 形参 | 函数调用的具名形参。字典可能包含 NSString、NSNumber(double、int 或 boolean)、NSDictionary 或 NSArray。 |
- 返回:
- 计算出的结果,可以是
NSString 或 NSNumber。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["The `TAGFunctionCallTagHandler` protocol allows applications to implement custom tag execution. The key action is the `execute:parameters:` function, which receives the tag name and a dictionary of parameters. The tag name identifies the handler, allowing a single handler for multiple tags. Parameters can be strings, numbers, dictionaries, or arrays. The function's return value, representing the evaluated result, can be a string or a number.\n"]]