AutoRotateImageSource

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.

open class AutoRotateImageSource : ImageSourceView

Constructors

AutoRotateImageSource
Link copied to clipboard
open fun AutoRotateImageSource(context: Context)
AutoRotateImageSource
Link copied to clipboard
open fun AutoRotateImageSource(context: Context, attrs: AttributeSet)
AutoRotateImageSource
Link copied to clipboard
open fun AutoRotateImageSource(context: Context, attrs: AttributeSet, defStyleAttr: Int)

Functions

getStateHandler
Link copied to clipboard
fun getStateHandler(): Void
onAttachedToWindow
Link copied to clipboard
open fun onAttachedToWindow()
onDetachedFromWindow
Link copied to clipboard
open fun onDetachedFromWindow()
onOrientationChange
Link copied to clipboard

Would be set by the OrientationSensor Event.

open fun onOrientationChange(screenOrientation: ScreenOrientation)
onProviderUpdate
Link copied to clipboard
open fun onProviderUpdate(providerName: String)
onSizeChanged
Link copied to clipboard
open fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int)
setContent
Link copied to clipboard
fun setContent(content: ImageSourceView.ContentInfo)
setContentFromWorker
Link copied to clipboard
fun setContentFromWorker(result: ImageSourceView.ContentInfo)
setImageBitmap
Link copied to clipboard
open fun setImageBitmap(bitmap: NonExistentClass)
setImageDrawable
Link copied to clipboard
open fun setImageDrawable(drawable: NonExistentClass)
setImageResource
Link copied to clipboard
open fun setImageResource(resourceId: Int)
setImageSource
Link copied to clipboard
fun setImageSource(source: NonExistentClass)