-
- All Implemented Interfaces:
public interface VehicleControllerControls vehicle behavior on the map view.
Access from the map view controller registry after the view is ready.
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetLocation(Location location)Update the Vehicle Location abstract UnitsetIcon(Bitmap bitmap)Set a 2D representation for the vehicle abstract UnitsetIcon(@DrawableRes() Integer resourceId)Set a 2D representation for the vehicle abstract BooleansetModel(@RawRes() Integer resourceId)Set a 3D representation for the vehicle abstract UnitsetModel(ByteArray data)Set a 3D representation for the vehicle -
-
Method Detail
-
setLocation
abstract Unit setLocation(Location location)
Update the Vehicle Location
- Parameters:
location- the new vehicle location from gps source or navigation service
-
setIcon
abstract Unit setIcon(Bitmap bitmap)
Set a 2D representation for the vehicle
- Parameters:
bitmap- the image to represent the vehicle with
-
setIcon
abstract Unit setIcon(@DrawableRes() Integer resourceId)
Set a 2D representation for the vehicle
- Parameters:
resourceId- the resource to represent the vehicle with
-
setModel
abstract Boolean setModel(@RawRes() Integer resourceId)
Set a 3D representation for the vehicle
- Parameters:
resourceId- the 3d model from resource/raw folder
-
setModel
abstract Unit setModel(ByteArray data)
Set a 3D representation for the vehicle
- Parameters:
data- the 3d model data loaded as a byte array
-
-
-
-