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