How to use allowInvisibleElements

Hey all,

I’m currently using uiautomator2 in Android Native, and wants to use allowInvisibleElements.
Can anyone help me?

Docs on allowInvisibleElements is https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/settings.md.

Thanks.

http://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Device#update_settings-instance_method

In Ruby client, you can update the setting like the above.
If you use the other clients, you also can update the setting with ‘update_settings’ related method.