sdk-maps-ui-extensions / com.tomtom.online.sdk.map.ui.currentlocation / BasicCurrentLocationView / <init>

<init>

BasicCurrentLocationView(context: Context!)

Constructor that uses context to initialize view, click actions, and set the image resource.

Parameters

context - Context!: View context.

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

Custom constructor that uses context to initialize view, click actions and set image resource. Also it allows to provide custom set of attributes.

Parameters

context - Context!: view context.

attrs - AttributeSet!: set of custom attributes.

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

Custom constructor that uses context to initialize view, click actions and set image resource. Also it allows to provide custom set of attributes and a reference to default style resource.

Parameters

context - Context!: view context.

attrs - AttributeSet!: set of custom attributes.

defStyleAttr - Int: attribute that contains a reference to a style resource, that supplies default values for styled attributes. Should be different than 0 in this constructor, otherwise use BasicCurrentLocationView#BasicCurrentLocationView(Context, AttributeSet).