Aller au contenu principal

BleService

Class: BleService(context: Context)

Serves as the main entry point for interacting with the Bluetooth Low Energy (BLE) SDK.

Before using any BLE functionality, you must initialize the SDK by calling BleService.configure()

Types

Companion

object Companion

Constructor

BleService(context: Context)

Creates a new instance of BleService.

Parameters:

  • context - The application context.

Static Methods (Companion Object)

configure()

fun configure(context: Context): BleService

Configures the BleService. This function should be called first.

getTerminal(terminalId: String)

fun getTerminal(terminalId: String): BleTerminal

Get an instance of BleTerminal associated with the given terminal ID.

Parameters:

  • terminalId - The unique identifier for the desired BLE terminal.

Returns: BleTerminal instance

isConfigured()

fun isConfigured(): Boolean

Checks if the given BleTerminal instance is configured.

Returns: true if configured, false otherwise

clear()

fun clear()

Clears the configured instance.

See Also