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 checkLckError 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 contextHandle common cases — Storage, permissions, state conflicts
User-friendly messages — Don’t show raw error codes to users
Good Error Handling Pattern
Related
- LckResult — Contains LckError when operations fail
- Error Handling Guide