Represents a command to pause Showcase for a product when it is already initialized and playing.
This class sends a command to the Metabox API to pause showcase for a product if it is already initialized and playing.
To listen for changes after sending this command, listen to the 'showcaseStatusChanged' event.
What does it unlock?
Pauses the showcase/timeline playback. Can be called independently without requiring any flag parameters.
Practical Application
Pauses showcase animation playback. The showcase remains initialized and can be resumed with
PlayShowcase. Use when you need to temporarily freeze the animation (e.g., on a "Pause" button click).
AI Coding Best Practices
Call api.sendCommandToMetabox(new PauseShowcase()). No parameters. Subscribe to showcaseStatusChanged
to confirm 'pause' state. Use PlayShowcase to resume or StopShowcase to reset.
//Subscribe to the event before sending the command to ensure you capture the response api.addEventListener('showcaseStatusChanged', (data:ShowCaseStatus) => { console.log('Showcase status value after changed:', data); });
Represents a command to pause Showcase for a product when it is already initialized and playing. This class sends a command to the Metabox API to pause showcase for a product if it is already initialized and playing.
To listen for changes after sending this command, listen to the 'showcaseStatusChanged' event.
What does it unlock?
Pauses the showcase/timeline playback. Can be called independently without requiring any flag parameters.
Practical Application
Pauses showcase animation playback. The showcase remains initialized and can be resumed with PlayShowcase. Use when you need to temporarily freeze the animation (e.g., on a "Pause" button click).
AI Coding Best Practices
Call
api.sendCommandToMetabox(new PauseShowcase()). No parameters. Subscribe to showcaseStatusChanged to confirm 'pause' state. Use PlayShowcase to resume or StopShowcase to reset.Example