addRoute

abstract fun addRoute(options: RouteOptions): Route

Adds a new Route based on the given RouteOptions.

Return

Route instance with the assigned UniqueId.

Parameters

options

RouteOptions describing the desired properties of the Route.

Throws

Throws the exception when there is a problem with the provided options.