Basic Workflow
Every nono application follows the same pattern:- Check support - Verify sandboxing is available
- Build capabilities - Define what the process can access
- Apply sandbox - Lock down the process (irreversible)
- Run application - Execute your code within the sandbox
Step 1: Check Platform Support
Always verify sandboxing is available before relying on it:Step 2: Build Capabilities
Create aCapabilitySet and grant the permissions your application needs:
Access Modes
Step 3: Apply the Sandbox
Once you’ve defined capabilities, apply them:Step 4: Run Your Application
After applying the sandbox, your code runs with restricted permissions:Complete Example
Here’s a complete sandboxed application:Query Without Applying
UseQueryContext to check permissions without applying the sandbox:
- Validating configurations before deployment
- Building permission-checking UIs
- Testing capability sets
Next Steps
API Reference
Full documentation for all classes and functions
Examples
Real-world usage patterns and recipes