IEvsController

Interface defines a controller accessory

See also

Functions

Link copied to clipboard
abstract fun getControllerType(): String

Returns the controller type string

Link copied to clipboard
abstract fun isScanning(): Boolean

Return true if an active controller scan exist

Link copied to clipboard

Adds a callback listener of the controller to receive the controller events

Link copied to clipboard
abstract fun requestBatteryState(callback: (batPercent: Int) -> Unit): Boolean

Sends a single request to receive to controller battery percentage

Link copied to clipboard
abstract fun startScan(callback: IEvsScanCallback): Boolean

Request to scan for controller devices

Link copied to clipboard
abstract fun stopScan()

Stops an active controller scan

Link copied to clipboard

Removes a registered listener