AXIsProcessTrustedWithOptions

Function AXIsProcessTrustedWithOptions 

Source
pub unsafe extern "C-unwind" fn AXIsProcessTrustedWithOptions(
    options: Option<&CFDictionary>,
) -> bool
Available on crate feature AXUIElement only.
Expand description

Returns whether the current process is a trusted accessibility client.

Parameter options: A dictionary of options, or NULL to specify no options. The following options are available:

KEY: kAXTrustedCheckOptionPrompt VALUE: ACFBooleanRef indicating whether the user will be informed if the current process is untrusted. This could be used, for example, on application startup to always warn a user if accessibility is not enabled for the current process. Prompting occurs asynchronously and does not affect the return value.

Returns: Returns TRUE if the current process is a trusted accessibility client, FALSE if it is not.

ยงSafety

options generics must be of the correct type.