Package com.journeyapps.barcodescanner
Class RotationListener
- java.lang.Object
-
- com.journeyapps.barcodescanner.RotationListener
-
public class RotationListener extends Object
Hack to detect when screen rotation is reversed, since that does not cause a configuration change. If it is changed through something other than the sensor (e.g. programmatically), this may not work. See http://stackoverflow.com/q/9909037
-
-
Constructor Summary
Constructors Constructor Description RotationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlisten(Context context, RotationCallback callback)voidstop()
-
-
-
Method Detail
-
listen
public void listen(Context context, RotationCallback callback)
-
stop
public void stop()
-
-