Licensing
ArtistAPhoto is a commercial SDK with a free trial mode.
Trial Mode (No License)
Without a license key, the SDK operates in trial mode:
| Feature | Trial Mode |
|---|---|
| All editing features | Available |
| Preview (toCanvas) | No watermark |
| Export (toBlob, toDataURL, download) | With watermark |
Activating Your License
import { ArtistAPhoto, LicenseError } from 'artistasdk';
async function activateLicense() {
try {
const licenseInfo = await ArtistAPhoto.setLicenseKey('YOUR-LICENSE-KEY');
console.log('License activated!', licenseInfo);
} catch (error) {
if (error instanceof LicenseError) {
console.error('License error:', error.code, error.message);
}
}
}License Methods
| Method | Description |
|---|---|
| setLicenseKey(key) | Activate a license key |
| isLicenseValid() | Check if license is valid |
| getLicenseInfo() | Get license details |
| clearLicense() | Deactivate license (returns to trial) |
| refreshLicense() | Force re-validation |