You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To improve the usability and clarity of our SDK, we need to introduce two new functions: isEditMode() and isPreviewMode(). These functions will help developers determine the current mode of the UVE (User View Environment). Each function should return a boolean value indicating whether the UVE is in edit mode or preview mode, respectively.
Background
While developing the Future Time Machine (FTM), we encountered challenges in hiding custom Edit elements within examples. Initially, the UVE was designed to only support Edit Mode. However, with the introduction of Preview Mode, the isInsideEditor function became insufficient for distinguishing between edit and preview states. Therefore, we need these two new functions to provide developers with a clear way to identify when their custom Edit tools should be displayed or hidden in the UVE.
Task
Implement isEditMode() to return true if the UVE is in edit mode, otherwise false.
Implement isPreviewMode() to return true if the UVE is in preview mode, otherwise false.
Ensure both functions are included in the public API.
Document both functions, including usage examples.
Update the description of isInsideEditor to mention that it will return true if either isEditMode() or isPreviewMode() returns true.
Update the examples to reflect the usage of isEditMode() and isPreviewMode().
Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average
Acceptance Criteria
Acceptance Criteria
isEditMode() returns true when the UVE is in edit mode and false otherwise.
isPreviewMode() returns true when the UVE is in preview mode and false otherwise.
Both functions are added to the public API.
Documentation for both functions is complete and includes usage examples.
The isInsideEditor description is updated to mention isEditMode() and isPreviewMode().
Examples are updated to demonstrate the use of isEditMode() and isPreviewMode().
All changes are thoroughly tested to ensure correct functionality.
Documentation
Provide clear documentation for isEditMode() and isPreviewMode(), explaining their purpose and usage.
Include code examples demonstrating how to use each function.
Update the isInsideEditor documentation to reference isEditMode() and isPreviewMode().
The text was updated successfully, but these errors were encountered:
Parent Issue
#30943
Overview
To improve the usability and clarity of our SDK, we need to introduce two new functions:
isEditMode()
andisPreviewMode()
. These functions will help developers determine the current mode of the UVE (User View Environment). Each function should return a boolean value indicating whether the UVE is in edit mode or preview mode, respectively.Background
While developing the Future Time Machine (FTM), we encountered challenges in hiding custom
Edit
elements within examples. Initially, the UVE was designed to only support Edit Mode. However, with the introduction of Preview Mode, theisInsideEditor
function became insufficient for distinguishing between edit and preview states. Therefore, we need these two new functions to provide developers with a clear way to identify when their custom Edit tools should be displayed or hidden in the UVE.Task
isEditMode()
to returntrue
if the UVE is in edit mode, otherwisefalse
.isPreviewMode()
to returntrue
if the UVE is in preview mode, otherwisefalse
.isInsideEditor
to mention that it will returntrue
if eitherisEditMode()
orisPreviewMode()
returnstrue
.isEditMode()
andisPreviewMode()
.Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average
Acceptance Criteria
Acceptance Criteria
isEditMode()
returnstrue
when the UVE is in edit mode andfalse
otherwise.isPreviewMode()
returnstrue
when the UVE is in preview mode andfalse
otherwise.isInsideEditor
description is updated to mentionisEditMode()
andisPreviewMode()
.isEditMode()
andisPreviewMode()
.Documentation
isEditMode()
andisPreviewMode()
, explaining their purpose and usage.isInsideEditor
documentation to referenceisEditMode()
andisPreviewMode()
.The text was updated successfully, but these errors were encountered: