Anyone successfully setup ios simulator and/or android emulator to go thru a proxy

I’m trying to setup a test for iOS simulator or Android emulator but it requires that i set the simulator/emulator network to a proxy server host:port.

Is this supported by Appium just like selenium web driver? Or has anybody have done the same setup successfully? Can you please share your setup.