RoutePlayer

class RoutePlayer(val service: SoundscapeService, context: Context)

Constructors

Link copied to clipboard
constructor(service: SoundscapeService, context: Context)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun play()
Link copied to clipboard
fun startBeacon(beaconLocation: LngLatAlt, beaconName: String)

startBeacon creates a temporary route with a single waypoint and starts playing it. This means that the same UI code can be used to control the beacon as for a real route.

Link copied to clipboard
Link copied to clipboard
fun startRoute(routeId: Long)

startRoute starts playback of a route from the database.

Link copied to clipboard
fun stopRoute()
Link copied to clipboard
open override fun toString(): String