InterfaceFactory

class InterfaceFactory @Inject constructor(nopInterfaceFactory: NopInterfaceFactory, specMap: Map<InterfaceId, @JvmSuppressWildcards Provider<InterfaceSpec<*>>>)

Entry point for create radio backend instances given a specific address.

This class is responsible for building and dissecting radio addresses based upon their interface type and the "rest" of the address (which varies per implementation).

Constructors

Link copied to clipboard
@Inject
constructor(nopInterfaceFactory: NopInterfaceFactory, specMap: Map<InterfaceId, @JvmSuppressWildcards Provider<InterfaceSpec<*>>>)

Functions

Link copied to clipboard
fun addressValid(address: String?): Boolean
Link copied to clipboard
Link copied to clipboard
fun toInterfaceAddress(interfaceId: InterfaceId, rest: String): String