Gravity change on tilt?

Hello everybody! I’m making a simple games for mobile devices,
Basically I’d like to make a menu where there are random objects bouncing on the screen and on the button such as PLAY QUIT etc…
I wanted to make the gravity change if you tilt the phone or you move it… however I have no idea how to do it…
There are on TILT and on ACCELERATION events but I don’t know how to use them…couldn’t find any useful documentation at all.
is this doable only with Blueprints or is necessary c++ code?
Thank you for your time