REST Resource: enterprises.webApps
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: เว็บแอป
การแสดง JSON |
{
"name": string,
"title": string,
"startUrl": string,
"icons": [
{
object (WebAppIcon )
}
],
"displayMode": enum (DisplayMode ),
"versionCode": string
} |
ช่อง |
name |
string
ชื่อของเว็บแอป ซึ่งเซิร์ฟเวอร์สร้างขึ้นในรูปแบบ enterprises/{enterpriseId}/webApps/{packageName} ระหว่างการสร้าง
|
title |
string
ชื่อของเว็บแอปที่แสดงต่อผู้ใช้ (เช่น ในรายชื่อแอปพลิเคชันอื่นๆ หรือเป็นป้ายกำกับสำหรับไอคอน)
|
startUrl |
string
URL เริ่มต้น ซึ่งก็คือ URL ที่ควรโหลดเมื่อผู้ใช้เปิดแอปพลิเคชัน
|
icons[] |
object (WebAppIcon )
รายการไอคอนสำหรับเว็บแอป ต้องมีอย่างน้อย 1 องค์ประกอบ
|
displayMode |
enum (DisplayMode )
โหมดการแสดงผลของเว็บแอป
|
versionCode |
string (int64 format)
เวอร์ชันปัจจุบันของแอป โปรดทราบว่าเวอร์ชันจะเพิ่มขึ้นโดยอัตโนมัติตลอดอายุการใช้งานของเว็บแอป ขณะที่ Google ทำการปรับปรุงภายในเพื่อให้เว็บแอปอัปเดตอยู่เสมอ
|
WebAppIcon
ไอคอนสำหรับเว็บแอป รูปแบบที่รองรับได้แก่ png, jpg และ webp
การแสดง JSON |
{
"imageData": string
} |
ช่อง |
imageData |
string
ไบต์จริงของรูปภาพในสตริงที่เข้ารหัส base64url (c.f. RFC4648, ส่วน 5 "การเข้ารหัสแบบ 64 ด้วย URL และชื่อไฟล์ที่ปลอดภัย") - รูปภาพเป็นประเภท png หรือ jpg
- รูปภาพควรเป็นรูปสี่เหลี่ยมจัตุรัสตามหลัก
- โดยรูปภาพควรมีขนาด 512x512
|
DisplayMode
Enum |
DISPLAY_MODE_UNSPECIFIED |
ไม่ใช้ |
MINIMAL_UI |
เปิดเว็บแอปที่มีชุดองค์ประกอบ UI ของเบราว์เซอร์น้อยที่สุดสำหรับควบคุมการนำทางและดู URL ของหน้าเว็บ |
STANDALONE |
เปิดเว็บแอปเพื่อให้มีรูปลักษณ์เหมือนแอปพลิเคชันที่มาพร้อมเครื่องแบบสแตนด์อโลน องค์ประกอบ UI ของเบราว์เซอร์และ URL ของหน้าเว็บจะมองไม่เห็น แต่แถบสถานะของระบบและปุ่มย้อนกลับจะมองเห็นได้ |
FULL_SCREEN |
เปิดเว็บแอปแบบเต็มหน้าจอโดยไม่มีตัวควบคุมที่มองเห็นได้ คุณมองไม่เห็นองค์ประกอบ UI ของเบราว์เซอร์, URL หน้าเว็บ, แถบสถานะของระบบ และปุ่มย้อนกลับ และเว็บแอปกินพื้นที่แสดงผลทั้งหมดที่มีอยู่ |
เมธอด |
|
สร้างเว็บแอป |
|
ลบเว็บแอป |
|
รับเว็บแอป |
|
แสดงรายการเว็บแอปสำหรับองค์กรที่ระบุ |
|
อัปเดตเว็บแอป |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eA web app resource defines properties like name, title, URL, icons, and display mode, and allows for version control.\u003c/p\u003e\n"],["\u003cp\u003eWeb apps can be managed with methods to create, delete, retrieve, list, and update them.\u003c/p\u003e\n"],["\u003cp\u003eWebAppIcon defines the icon for the web app, supporting PNG, JPG, and WebP formats, ideally in a 512x512 size.\u003c/p\u003e\n"],["\u003cp\u003eDisplayMode allows controlling the web app's presentation, ranging from minimal UI to full-screen mode.\u003c/p\u003e\n"]]],["This describes a WebApp resource, its associated icon, and display settings. WebApps have properties like `name`, `title`, `startUrl`, `icons`, `displayMode`, and `versionCode`. `WebAppIcon` includes image data encoded in base64url. `DisplayMode` settings are `MINIMAL_UI`, `STANDALONE`, or `FULL_SCREEN`. Methods available include `create`, `delete`, `get`, `list`, and `patch`, enabling management of web apps within an enterprise.\n"],null,["# REST Resource: enterprises.webApps\n\n- [Resource: WebApp](#WebApp)\n - [JSON representation](#WebApp.SCHEMA_REPRESENTATION)\n- [WebAppIcon](#WebAppIcon)\n - [JSON representation](#WebAppIcon.SCHEMA_REPRESENTATION)\n- [DisplayMode](#DisplayMode)\n- [Methods](#METHODS_SUMMARY)\n\nResource: WebApp\n----------------\n\nA web app.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"title\": string, \"startUrl\": string, \"icons\": [ { object (/android/management/reference/rest/v1/enterprises.webApps#WebAppIcon) } ], \"displayMode\": enum (/android/management/reference/rest/v1/enterprises.webApps#DisplayMode), \"versionCode\": string } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The name of the web app, which is generated by the server during creation in the form `enterprises/{enterpriseId}/webApps/{packageName}`. |\n| `title` | `string` The title of the web app as displayed to the user (e.g., amongst a list of other applications, or as a label for an icon). |\n| `startUrl` | `string` The start URL, i.e. the URL that should load when the user opens the application. |\n| `icons[]` | `object (`[WebAppIcon](/android/management/reference/rest/v1/enterprises.webApps#WebAppIcon)`)` A list of icons for the web app. Must have at least one element. |\n| `displayMode` | `enum (`[DisplayMode](/android/management/reference/rest/v1/enterprises.webApps#DisplayMode)`)` The display mode of the web app. |\n| `versionCode` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The current version of the app. Note that the version can automatically increase during the lifetime of the web app, while Google does internal housekeeping to keep the web app up-to-date. |\n\nWebAppIcon\n----------\n\nAn icon for a web app. Supported formats are: png, jpg and webp.\n\n| JSON representation |\n|---------------------------------|\n| ``` { \"imageData\": string } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `imageData` | `string` The actual bytes of the image in a base64url encoded string (c.f. RFC4648, section 5 \"Base 64 Encoding with URL and Filename Safe Alphabet\"). - The image type can be png or jpg. - The image should ideally be square. - The image should ideally have a size of 512x512. \u003cbr /\u003e |\n\nDisplayMode\n-----------\n\nThe display mode of the web app.\n\n| Enums ||\n|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `DISPLAY_MODE_UNSPECIFIED` | Not used. |\n| `MINIMAL_UI` | Opens the web app with a minimal set of browser UI elements for controlling navigation and viewing the page URL. |\n| `STANDALONE` | Opens the web app to look and feel like a standalone native application. The browser UI elements and page URL are not visible, however the system status bar and back button are visible. |\n| `FULL_SCREEN` | Opens the web app in full screen without any visible controls. The browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------|----------------------------------------|\n| ### [create](/android/management/reference/rest/v1/enterprises.webApps/create) | Creates a web app. |\n| ### [delete](/android/management/reference/rest/v1/enterprises.webApps/delete) | Deletes a web app. |\n| ### [get](/android/management/reference/rest/v1/enterprises.webApps/get) | Gets a web app. |\n| ### [list](/android/management/reference/rest/v1/enterprises.webApps/list) | Lists web apps for a given enterprise. |\n| ### [patch](/android/management/reference/rest/v1/enterprises.webApps/patch) | Updates a web app. |"]]