Class AuthorizationAction
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
AuthorizationAction
授權動作,使用者點選後會前往 AuthorizationUrl。
CardService.newAuthorizationAction().setAuthorizationUrl('http://google.com/');
內容詳盡的說明文件
setAuthorizationUrl(authorizationUrl)
設定使用者從授權提示前往的授權網址。必填。
參數
| 名稱 | 類型 | 說明 |
authorizationUrl | String | 要設定的授權網址。 |
回攻員
AuthorizationAction - 這個物件,用於鏈結。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-04-13 (世界標準時間)。
[null,null,["上次更新時間:2026-04-13 (世界標準時間)。"],[],["The `AuthorizationAction` object directs users to a specified URL when clicked. The core functionality involves using the `setAuthorizationUrl(authorizationUrl)` method to define this URL. This method requires a string parameter, `authorizationUrl`, which is the destination the user will be sent to. This method returns the `AuthorizationAction` object, allowing for method chaining. The `CardService.newAuthorizationAction()` creates the action to use with the `setAuthorizationUrl`.\n"]]