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


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.