open 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) |
open fun onAttachedToWindow(): Unit |
|
open fun onDetachedFromWindow(): Unit |
|
open fun onOrientationChange(screenOrientation: OrientationSensor.ScreenOrientation!): Unit
Would be set by the OrientationSensor Event. |
open fun drawableStateChanged(): Unit |
|
open fun getScaleType(): ScaleType! |
|
open fun handleMessage(msg: Message!): Boolean |
|
open fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int): Unit |
|
open fun setImageBitmap(bm: Bitmap!): Unit |
|
open fun setImageResource(res: Int): Unit |
|
open fun setImageSource(source: ImageSource!): Unit |
open class AcceptButton : AutoRotateImageSource, OnClickListener
|
|
open class CancelButton : AutoRotateImageSource, OnClickListener
|