示例#1
-1
static bool amIAuthorized () {
    if (AXAPIEnabled() != 0) {
        return true;
    }
    if (AXIsProcessTrusted() != 0) {
        return true;
    }
    return false;
}
示例#2
-1
static bool hasAccessibilityAPIAuthorization ()
{
    if (AXAPIEnabled() != 0) {
        return true;
    }

    if (AXIsProcessTrusted() != 0) {
        return true;
    }

    return false;
}