码迷,mamicode.com
首页 > 其他好文 > 详细

BluetoothAdapter.LeScanCallback

时间:2018-03-30 18:29:24      阅读:689      评论:0      收藏:0      [点我收藏+]

标签:sig   device   href   content   static   api level   bluetooth   ide   callback   

added in API level 18
BluetoothAdapter.LeScanCallback

public static interface BluetoothAdapter.LeScanCallback 

android.bluetooth.BluetoothAdapter.LeScanCallback


回调接口,用于传输LE扫描结果。

 

Summary(摘要)

公共方法

abstract void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord)

LE设备用 startLeScan(BluetoothAdapter.LeScanCallback)函数在一个设备开始扫描期间的创建的回调报告。

 

Public methods(公共方法)

onLeScan

added in API level 18
void onLeScan (BluetoothDevice device, 
                int rssi, 
                byte[] scanRecord)

LE设备用 startLeScan(BluetoothAdapter.LeScanCallback)函数在一个设备开始扫描期间的创建的回调报告。

 

参数
device BluetoothDevice: 识别了的远程设备。

 

rssi int: 蓝牙硬件所报告的远程设备的RSSI值。0表示没有RSSI值可用。

 

scanRecord  byte: 远程设备提供的广告记录的内容。

BluetoothAdapter.LeScanCallback

标签:sig   device   href   content   static   api level   bluetooth   ide   callback   

原文地址:https://www.cnblogs.com/bky1225987336/p/8677237.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!