CompassView

interface CompassView

Interface for compass view.

The compass view implementation class should implement both the CompassView interface and a View class(e.g ImageView).

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
requestLayout
Link copied to clipboard
abstract fun requestLayout()
Call this when something has changed which has invalidated the layout of this view.
setCompassAlpha
Link copied to clipboard
abstract fun setCompassAlpha(float: Float)
Set the alpha value of the compass.
setCompassMargins
Link copied to clipboard
abstract fun setCompassMargins(@Px() left: Int, @Px() top: Int, @Px() right: Int, @Px() bottom: Int)
Set the margins of the compass view.
toString
Link copied to clipboard
open fun toString(): String

Properties

compassGravity
Link copied to clipboard
abstract var compassGravity: Int
Returns the gravity value of the CompassView.
compassImage
Link copied to clipboard
abstract var compassImage: Drawable
The CompassView image as a Drawable.
compassRotation
Link copied to clipboard
abstract var compassRotation: Float
The direction of the CompassView.
isCompassEnabled
Link copied to clipboard
abstract var isCompassEnabled: Boolean
Whether the compass view is enabled.
isCompassVisible
Link copied to clipboard
abstract var isCompassVisible: Boolean
Whether the compass view is visible.

Inheritors

CompassViewImpl
Link copied to clipboard