Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
TAGFunctionCallMacroHandler 协议参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
概览
成员函数文档
| - (id) valueForMacro: |
|
(NSString *) |
macroName |
| 参数: |
|
(NSDictionary *) |
参数 |
|
|
| |
返回一个对象,该对象是该宏计算出的值。
为处理程序提供宏名称和命名参数字典。
- 参数:
-
| macroName | 与注册处理程序时使用的名称。提供它只是为了便于为多个函数调用宏注册一个处理程序。 |
| 形参 | 函数调用的具名形参。字典可能包含 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 `TAGFunctionCallMacroHandler` protocol is implemented by an application to compute the value of a function call macro. It has one public method: `valueForMacro:parameters:`. This method receives the macro's name and a dictionary of parameters. The parameters can be strings, numbers, dictionaries, or arrays. The method returns the evaluated macro result, which can be a string or a number. A single handler can be registered for multiple function call macros.\n"]]