DefaultBluetoothAgent

class DefaultBluetoothAgent(    messageSender: MessageSender,     contextManager: ContextManagerInterface,     focusManager: FocusManagerInterface,     focusChannelName: String,     bluetoothProvider: BluetoothProvider?,     focusChangeHandler: DefaultBluetoothAgent.OnFocusChangeHandler?) : AbstractCapabilityAgent, BluetoothAgentInterface

Constructors

Link copied to clipboard
fun DefaultBluetoothAgent(    messageSender: MessageSender,     contextManager: ContextManagerInterface,     focusManager: FocusManagerInterface,     focusChannelName: String,     bluetoothProvider: BluetoothProvider?,     focusChangeHandler: DefaultBluetoothAgent.OnFocusChangeHandler?)

Types

Link copied to clipboard
object Companion

This class handles providing configuration for the bluetooth Capability agent

Link copied to clipboard
interface OnFocusChangeHandler
Link copied to clipboard
data class StateContext(val hostController: BluetoothHost?, val activeDevice: BluetoothDevice?) : BaseContextState
Link copied to clipboard
class StreamingChangeHandler(    focusManager: FocusManagerInterface,     focusChannelName: String,     executor: ExecutorService,     focusChangeHandler: DefaultBluetoothAgent.OnFocusChangeHandler) : BluetoothProvider.OnStreamStateChangeListener, ChannelObserver

Functions

Link copied to clipboard
open override fun cancelDirective(messageId: String)
Link copied to clipboard
open override fun handleDirective(messageId: String): Boolean
Link copied to clipboard
open override fun preHandleDirective(directive: Directive, result: DirectiveHandlerResult)
Link copied to clipboard
open override fun provideState(    contextSetter: ContextSetterInterface,     namespaceAndName: NamespaceAndName,     contextType: ContextType,     stateRequestToken: Int)
Link copied to clipboard
open override fun sendBluetoothEvent(event: BluetoothAgentInterface.BluetoothEvent): Boolean

Send a local Bluetooth event to the server (DeviceGateway).

Link copied to clipboard
open override fun setListener(listener: BluetoothAgentInterface.Listener)

Set a listener

Properties

Link copied to clipboard
open override val configurations: Map<NamespaceAndName, BlockingPolicy>
Link copied to clipboard
override val namespaceAndName: NamespaceAndName