Skip to main content

What Problem Does This Solve?

When an LCK operation fails (starting recording, capturing a photo, changing settings), you need to know why it failed. Was it a permission issue? Storage full? Already recording? Wrong platform? LckError provides specific error codes so you can handle failures appropriately—show the right error message, retry the operation, or disable features.

When to Use This

You’ll check LckError whenever an LckResult indicates failure:

Common Error Scenarios

Storage Issues

Permission Errors

State Errors

Platform/Compatibility


Error Categories

Initialization & Setup Errors

Permission Errors

Recording State Errors

Runtime Errors

Storage Errors

Missing Features

Camera/Monitor Errors

Unknown


Complete Error Reference


Best Practices

Always check IsOk — Never assume operations succeed
Log errors — Include result.Message for context
Handle common cases — Storage, permissions, state conflicts
User-friendly messages — Don’t show raw error codes to users

Good Error Handling Pattern