Skip to content

Permission.IsAllowed

property · Permission · cAlgo.API

DesktopCLICloud

True if Permission is given by user otherwise false.

Environment behaviour

CLI — works differently. IsAllowed is always true and Request returns true without showing a prompt.

Cloud — works differently. IsAllowed is always true and Request returns true without showing a prompt.

Definition

bool IsAllowed {get;}
permission.IsAllowed: bool

Returns bool

Examples

Print("Clipboard access allowed: {0}", Permissions.ClipboardPermission.IsAllowed);
api.Print(f"Clipboard access allowed: {api.Permissions.ClipboardPermission.IsAllowed}")