Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
TAGFunctionCallMacroHandler 通訊協定參考資料
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
總覽
應用程式實作的通訊協定,用於計算函式呼叫巨集的值。
成員函式說明文件
| - (id) valueForMacro: |
|
(NSString *) |
macroName |
| 參數: |
|
(NSDictionary *) |
參數 |
|
|
| |
傳回物件,也就是巨集的計算值。
處理常式會提供巨集名稱以及已命名參數的字典。
- 參數:
-
| macroName | 註冊處理常式時使用的名稱相同。方便您為多個函式呼叫巨集註冊單一處理常式。 |
| 參數 | 函式呼叫的已命名參數。字典可能包含 NSString、NSNumber (雙精度浮點值、整數)、NSDictionary 或 NSArray。 |
- 傳回:
- 評估結果,可能是
NSString 或 NSNumber。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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"]]