תצוגה לכיתה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כיתה מופשטת לכל התצוגות.
חתימה
export abstract class View
פרטים
Methods
שם |
תיאור |
getId() |
הפונקציה מחזירה את ViewId של התצוגה. |
getLabel() |
(הווצא משימוש) |
setLabel(label) |
(הווצא משימוש) |
setMimeTypes(mimeTypes) |
הגדרת סוגי ה-MIME שכלולים בתצוגה. אם נדרש יותר מסוג MIME אחד, צריך להפריד ביניהם באמצעות פסיקים. אם לא תגדירו סוגי MIME, קבצים מכל סוגי ה-MIME יוצגו בתצוגה. |
setQuery(query) |
בתצוגות שכוללות חיפושים, כדאי לאכלס מראש את שאילתת החיפוש במונחים האלה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# Class View\n\nAn abstract class for all views.\n\nSignature\n---------\n\n export abstract class View\n\nDetails\n-------\n\n| Final | No |\n|-------|----|\n\nMethods\n-------\n\n| Name | Description |\n|---------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`getId()`](./picker.view.getid) | Returns the `ViewId` of the view. |\n| [~~`getLabel()`~~](./picker.view.getlabel) | *(Deprecated)* |\n| [~~`setLabel(label)`~~](./picker.view.setlabel) | *(Deprecated)* |\n| [`setMimeTypes(mimeTypes)`](./picker.view.setmimetypes) | Sets the MIME types included in the view. Use commas to separate MIME types if more than one is required. If you don't set MIME types, files of all MIME types are displayed in the view. |\n| [`setQuery(query)`](./picker.view.setquery) | For views involving searches, prepopulate the search query with these terms. |"]]