Class AuthorizationAction
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การให้สิทธิ์การดำเนินการ
การดำเนินการให้สิทธิ์ที่จะส่งผู้ใช้ไปยัง AuthorizationUrl เมื่อคลิก
CardService.newAuthorizationAction().setAuthorizationUrl('http://google.com/');
เอกสารประกอบโดยละเอียด
setAuthorizationUrl(authorizationUrl)
ตั้งค่า URL การให้สิทธิ์ที่ระบบจะนำผู้ใช้ไปยังจากข้อความแจ้งการให้สิทธิ์ ต้องระบุ
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
authorizationUrl | String | URL การให้สิทธิ์ที่จะตั้งค่า |
รีเทิร์น
AuthorizationAction
— ออบเจ็กต์นี้สําหรับการต่อเชื่อม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],["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"],null,[]]