Basically there are three major types: Hall Sensor, Anisotropic Magnetoresistive (AMR) or Giant Magnetoresistive (GMR).As your device Samsung Galaxy J7 lacks inbuilt magnetometer. Compass usage is not possible.
Capture a Screenshot - Samsung Galaxy J7 V / Galaxy J7.
To capture a screenshot, press and hold the Power (located on the right edge) and Home buttons (located at the bottom) at the same time. To view the screenshot you've taken, from a Home screen, navigate: Apps > Galalery.
Vivo V5 Plus is good option in as per your requirement. It offers great performance, besides coming with excellent front-facing camera. So if you love selfies, this is probably the best phone for you to consider.Vivo V5 Plus