IEvsConnectable

interface IEvsConnectable

Interface defines a connectable device

Inheritors

Functions

Link copied to clipboard
abstract fun connect(): Boolean

Request the device to connect

Link copied to clipboard
abstract fun connectSecured(): Boolean

Request the device to connect using secure channel, for supported devices

Link copied to clipboard
abstract fun disconnect(): Boolean

Request the device to disconnect

Link copied to clipboard
abstract fun getDeviceId(): String?

Return the device id\address

Link copied to clipboard
abstract fun getDeviceName(): String?

Return the device name

Link copied to clipboard

Return true if a getDeviceId is not null or empty

Link copied to clipboard
abstract fun isAdapterEnabled(): Boolean

Return true if the adapter is enabled

Link copied to clipboard
abstract fun isConnected(): Boolean

Return true if the device is connected

Link copied to clipboard
abstract fun isConnecting(): Boolean

Return true if the device is connecting

Link copied to clipboard
abstract fun setDeviceInfo(deviceId: String?, name: String?)

Sets the device information in order to enable connection

Link copied to clipboard

Return true if connect was called