-
- All Implemented Interfaces:
public interface VehicleController
-
-
Method Summary
Modifier and Type Method Description abstract Unit
setLocation(Location location)
abstract Unit
setIcon(Bitmap bitmap)
abstract Unit
setIcon(@DrawableRes() Integer resourceId)
abstract Boolean
setModel(@RawRes() Integer resourceId)
abstract Unit
setModel(ByteArray data)
-
-
Method Detail
-
setLocation
abstract Unit setLocation(Location location)
Update the Vehicle Location
- Parameters:
location
- the new vehicle location from gps source or driveSession
-
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
-
-
-
-