Pairing agent
Generated reference for ovok_flutter: pairing agent.
- Stable unknown
- Release candidate not available
- Development since 0.2.0-dev.51+80996d9
AndroidPairingAgent
class AndroidPairingAgent implements BluetoothPairingAgentEnters a device's fixed PIN when Android asks for it, through this package's Android plugin.
Constructors
AndroidPairingAgent.new
AndroidPairingAgent()Creates the agent; it talks to the plugin registered with the app.
fixedPinOf
String? fixedPinOf(String deviceKey)The fixed PIN the device with deviceKey asks for when it pairs, or null when it asks none.
| Parameter | Type | Kind | Default |
|---|---|---|---|
deviceKey | String | positional |
pinToEnter
String? pinToEnter(String deviceKey, {BluetoothPairingAgent? pairingAgent})The PIN to show the user while the device with deviceKey pairs, because no agent enters it; null otherwise.
| Parameter | Type | Kind | Default |
|---|---|---|---|
deviceKey | String | positional | |
pairingAgent | BluetoothPairingAgent? | named |
platformPairingAgent
BluetoothPairingAgent? platformPairingAgent()The agent for this platform: Android lets an app enter a PIN, iOS leaves it to the user.
Last updated on