Appium settings API option missing [SOLVED]

Hi,
I’m using latest Appium (v1.11.1) and Java-client 7.0.0 and I have come to this great featureThe Settings API of Appium. I’m trying to enable ‘allowInvisibleElements’, but I can’t seem to find it in Settings enum. I have tried this:

((AndroidDriver) driver.getDriver()).setSetting(Setting ... 

… but enum in class Setting is missing.

What am I doing wrong here?

Found out that it’s a bug on java-client. Enums are missing: Ticket on gitHub

You can still do it, just use the lower API layer. Check https://github.com/appium/appium/issues/11854