Prerequisites

🚧 Content coming soon.

Dependency Installation

🚧 Content coming soon.

SDK Initialization

Initialize the SDK in your Application or main Activity:
class MyApp : Application() {
    override fun onCreate() {
        super.onCreate()
        Sdk.initSdk(
            context = this,
            appKey = "YOUR_APP_KEY",
            bleAgentListener = myBleAgentListener,
            hostName = "YourAppName",
            extra = null
        )
    }
}

// Application
bleAgentListener = object : BleAgentListener {
    // Implement on your own
}
bleAgentListener?.let { Sdk.initSdk(context, "plaud-zoem8KYd-1748487531106", it, hostName, null) }
Implement BleAgentListener to receive device scan, connection, and other callbacks.

Quick Start

1. Scan for Devices

bleAgent.scanBle(true) // Start scanning

2. Connect to a Device

bleAgent.connectionBLE(device, bindToken, null, null, 10000, 5000)

3. Get Device Status

bleAgent.getState(onRequest, onResponse)

4. Start Recording

bleAgent.startRecord(scene, onRequest, onResponse)
For more details, please refer to the API Reference.