ee.data.authenticateViaPopup
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מוצג חלון קופץ שמבקש את הרשאת המשתמש. הפונקציה הזו צריכה להיקרא רק אם הארגומנט opt_onImmediateFailed של הפונקציה ee.data.authenticate() נקרא בעבר.
יכול להיות שייחסם על ידי תוכנות לחסימת חלונות קופצים אם הוא מופעל מחוץ ל-handler שהופעל על ידי המשתמש.
שימוש | החזרות |
---|
ee.data.authenticateViaPopup(success, error) | |
ארגומנט | סוג | פרטים |
---|
success | פונקציה, אופציונלי | הפונקציה שמופעלת אם האימות מצליח. |
error | פונקציה, אופציונלי | הפונקציה שמופעלת אם האימות נכשל, והודעת השגיאה מועברת אליה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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. |"]]