@obslysdk/screenshot
v2.0.0
Published
This library adds screenshot functionality to the @obslysdk/browser SDK. Screenshots can be captured in multiple ways, providing enhanced debugging and analysis capabilities.
Readme
@obslysdk/screenshot
This library adds screenshot functionality to the @obslysdk/browser SDK. Screenshots can be captured in multiple ways, providing enhanced debugging and analysis capabilities.
Features
- On-Demand Screenshots: Capture screenshots imperatively using specific methods.
- Automatic Screenshots: Screenshots can also be triggered automatically during:
- UI Events
- Navigation Events
- Rage Click Events
Installation
To enable this functionality, simply install the @obslysdk/screenshot package using your preferred bundler or package manager:
npm install @obslysdk/screenshotConfiguration
After installing the package, you must import the library in the main entry point of your web application before executing the init method of the @obslysdk/browser SDK. This ensures that all features and configurations are properly loaded.
// Import the rules library
import '@obslysdk/screenshot';
// Initialize the SDK after importing the screenshots
import { init } from '@obslysdk/browser';
init({
... //configuration options
});