ee.data.authenticateViaPopup
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงป๊อปอัปที่ขอสิทธิ์จากผู้ใช้ ควรเรียกใช้เฉพาะในกรณีที่ ee.data.authenticate() เรียกอาร์กิวเมนต์ opt_onImmediateFailed ในอดีต
ตัวบล็อกป๊อปอัปอาจบล็อกได้หากเรียกใช้นอกตัวแฮนเดิลที่ผู้ใช้เริ่มต้น
การใช้งาน | การคืนสินค้า |
---|
ee.data.authenticateViaPopup(success, error) | |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
success | ฟังก์ชัน (ไม่บังคับ) | ฟังก์ชันที่จะเรียกใช้หากการตรวจสอบสิทธิ์สำเร็จ |
error | ฟังก์ชัน (ไม่บังคับ) | ฟังก์ชันที่จะเรียกใช้หากการตรวจสอบสิทธิ์ไม่สำเร็จ โดยส่งข้อความแสดงข้อผิดพลาด |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis function triggers a popup for user authentication, but only if a previous authentication attempt failed.\u003c/p\u003e\n"],["\u003cp\u003ePopup blockers may prevent the authentication popup if not initiated by a user action.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eee.data.authenticateViaPopup()\u003c/code\u003e allows specifying success and error callback functions.\u003c/p\u003e\n"]]],[],null,["# ee.data.authenticateViaPopup\n\n\u003cbr /\u003e\n\nShows a popup asking for the user's permission. Should only be called if ee.data.authenticate() called its opt_onImmediateFailed argument in the past.\n\n\u003cbr /\u003e\n\nMay be blocked by pop-up blockers if called outside a user-initiated handler.\n\n| Usage | Returns |\n|---------------------------------------------------------|---------|\n| `ee.data.authenticateViaPopup(`*success* `, `*error*`)` | |\n\n| Argument | Type | Details |\n|-----------|--------------------|--------------------------------------------------------------------------|\n| `success` | Function, optional | The function to call if authentication succeeds. |\n| `error` | Function, optional | The function to call if authentication fails, passing the error message. |"]]