sdk-maps-ui-extensions / com.tomtom.online.sdk.map.ui.zoom / ZoomButtonsGroup

ZoomButtonsGroup

open class ZoomButtonsGroup : FrameLayout, ZoomingControlsView

Group of buttons that contains a zoom in and zoom out button.

Constructors

<init>

ZoomButtonsGroup(context: Context!)

Default constructor that uses context to inflate this group and initialize both zoom buttons with their click listeners. At default visibility of this group is hidden, so call ZoomButtonsGroup#show().

ZoomButtonsGroup(context: Context!, attrs: AttributeSet!)

Custom constructor that uses context to inflate this group and initialize both zoom buttons with their click listeners. It also gives the ability to provide a custom set of attributes. By default, visibility of this group is hidden so call ZoomButtonsGroup#show().

ZoomButtonsGroup(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Custom constructor that uses context to inflate this group and initialize both zoom buttons with their click listeners. Also it gives the ability to provide a custom set of attributes and a reference to the default style resource. By default, visibility of this group is hidden so call ZoomButtonsGroup#show().

Functions

getView

open fun getView(): ZoomButtonsGroup

getZoomInButton

open fun getZoomInButton(): ZoomButton!

Returns the zoom in button.

getZoomOutButton

open fun getZoomOutButton(): ZoomButton!

Returns the zoom out button.

hide

open fun hide(): Unit

setMargins

open fun setMargins(left: Int, top: Int, right: Int, bottom: Int): Unit

setZoomButtonsClickListener

open fun setZoomButtonsClickListener(zoomClickListener: ZoomingControlsView.ZoomButtonsClickListener!): Unit

show

open fun show(): Unit