class AutoRotateImageSource : ImageSourceView, OrientationSensor.OrientationListener
Rotate on device rotation it use the OrientationSensor Class. To use it the OrientationSensor must be start on Activity resume and stop on Activity pause.
AutoRotateImageSource(context: Context) AutoRotateImageSource(context: Context, attrs: AttributeSet) AutoRotateImageSource(context: Context, attrs: AttributeSet, defStyleAttr: int) |
fun onAttachedToWindow(): void |
|
fun onDetachedFromWindow(): void |
|
fun onOrientationChange(screenOrientation: OrientationSensor.ScreenOrientation): void
Would be set by the OrientationSensor Event. |
class AcceptButton : AutoRotateImageSource, OnClickListener
|
|
class CancelButton : AutoRotateImageSource, OnClickListener
|