CompassView

Interface for compass view.

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

interface CompassView

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
requestLayout
Link copied to clipboard

Call this when something has changed which has invalidated the layout of this view. This will schedule a layout pass of the view tree.

abstract fun requestLayout()
setCompassAlpha
Link copied to clipboard

Set the alpha value of the compass.

abstract fun setCompassAlpha(float: Float)
setCompassMargins
Link copied to clipboard

Set the margins of the compass view.

abstract fun setCompassMargins(@Px() left: Int, @Px() top: Int, @Px() right: Int, @Px() bottom: Int)
toString
Link copied to clipboard
open override fun toString(): String

Properties

compassGravity
Link copied to clipboard

Returns the gravity value of the CompassView.

abstract var compassGravity: Int
compassImage
Link copied to clipboard

The CompassView image as a Drawable.

abstract var compassImage: Drawable
compassRotation
Link copied to clipboard

The direction of the CompassView.

abstract var compassRotation: Float
isCompassEnabled
Link copied to clipboard

Whether the compass view is enabled.

abstract var isCompassEnabled: Boolean
isCompassVisible
Link copied to clipboard

Whether the compass view is visible.

abstract var isCompassVisible: Boolean

Inheritors

CompassViewImpl
Link copied to clipboard