Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > serialization > workspaceComments > WorkspaceCommentSerializer > save
Menampilkan status semua komentar ruang kerja di ruang kerja yang ditentukan.
Tanda Tangan:
save(workspace: Workspace): State[] | null;
Parameter
Hasil:
State[] | null
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-04 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-04 UTC."],[[["The `save` method, part of the `WorkspaceCommentSerializer` class within Blockly's serialization functionality, extracts the state of all workspace comments associated with a given workspace."],["It takes a `Workspace` object as input to identify the specific workspace for comment extraction."],["The output is either an array of `State` objects, each representing the serialized data of a workspace comment, or `null` if no comments are found."]]],["The `save()` method, part of the `WorkspaceCommentSerializer` class, retrieves and returns the state of all workspace comments within a specified workspace. It accepts a `Workspace` object as a parameter. The method's return value is either an array of `State` objects, representing the saved state of each comment, or `null` if there are no comments.\n"]]