Pikkart-AR SDK  3.5
Android SDK References
com.pikkart.ar.geo.MarkerViewAdapter Class Reference

Class to override to change the marker icon.

Public Member Functions

 MarkerViewAdapter (Context context, int width, int height)
 
View getView (GeoElement geoElement)
 
View getSelectedView (GeoElement geoElement)
 

Protected Member Functions

View getMarkerView ()
 

Constructor & Destructor Documentation

◆ MarkerViewAdapter()

com.pikkart.ar.geo.MarkerViewAdapter.MarkerViewAdapter ( Context  context,
int  width,
int  height 
)

MarkerViewAdapter constructor.

Parameters
context
widthThe width of the icon.
heightThe height of the icon.

Member Function Documentation

◆ getMarkerView()

View com.pikkart.ar.geo.MarkerViewAdapter.getMarkerView ( )
protected

Call to obtain the ImageView with id equals to "image" and change the image.

◆ getView()

View com.pikkart.ar.geo.MarkerViewAdapter.getView ( GeoElement  geoElement)

Override to modify the image of MarkerView depending on geoElement.

◆ getSelectedView()

View com.pikkart.ar.geo.MarkerViewAdapter.getSelectedView ( GeoElement  geoElement)

Override to modify the image of MarkerView depending on geoElement when selected.