Trouble using shake on Android / IOS

Can anyone provide an example of using driver.shake() from the Java client library? We are trying to implement this for an Android and an iOS application. It appears that it isn’t implemented in Appium yet / ever? But other threads are stating that it is implemented. Can someone confirm?

I can confirm it works for me in a ruby test suite for an iOS app.

Did u get any solution to shake the device?
thanks