Permissions
Last updated
permission "request" "file viewer"
// creates a permission popup that the user can accept or denypermission "give" permission_name application_name
// allows an osl file to give another osl file a permissionlog window.permissions
// logs all the permissions that your window has, as an array
log window.parent.permissions
// allows you to see the permissions of the window that created yours// Check if we have camera permission
if window.hasPermission("camera") (
// Start using camera
) else (
// Request camera permission first
)
// Check if we can simulate inputs
if window.hasPermission("simulate inputs") (
// Simulate keyboard/mouse input
)
// Example: Check multiple permissions
if window.hasPermission("notifications") and window.hasPermission("sound") (
// Play notification sound
)