|
|
@ -304,7 +304,7 @@ class BleServicePlugin : FlutterPlugin, MethodCallHandler, ActivityAware, |
|
|
} |
|
|
} |
|
|
"clearAssociations" -> { |
|
|
"clearAssociations" -> { |
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { |
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { |
|
|
// bleCompanionManager.clearAllAssociations() |
|
|
bleCompanionManager.clearPairedMacAddress() |
|
|
result.success(true) |
|
|
result.success(true) |
|
|
} else { |
|
|
} else { |
|
|
result.error("UNSUPPORTED", "设备不支持Companion Device Manager", null) |
|
|
result.error("UNSUPPORTED", "设备不支持Companion Device Manager", null) |
|
|
|