首页 > 移动平台 > 详细

delphi IOS BLE 代理

时间:2016-01-10 11:38:35      阅读:403      评论:0      收藏:0      [点我收藏+]

代理方法

centralManagerDidUpdateState:

peripheralManagerDidUpdateState:代理方法。

 

centralManager:willRestoreState

peripheralManager:willRestoreState:代理方法

 

- (void)centralManager:(CBCentralManager *)central willRestoreState:(NSDictionary *)state
{
    NSArray *peripherals = state[CBCentralManagerRestoredStatePeripheralsKey];

    // TODO: ...
}

D:\Program Files (x86)\Embarcadero\Studio\17.0\source\rtl\net\System.Mac.Bluetooth.pas
D:\Program Files (x86)\Embarcadero\Studio\17.0\source\rtl\osx\Macapi.Bluetooth.pas

\17.0\source\rtl\net\System.Mac.Bluetooth.pas(3481):
    procedure centralManagerDidUpdateState(central: CBCentralManager); cdecl;
    [MethodName(‘centralManager:willRestoreState:‘)]

procedure TInternalBluetoothLEManager.centralManagerDidUpdateState(central: CBCentralManager);


delphi实现了centralManagerDidUpdateState方法

procedure TInternalBluetoothLEManager.centralManagerDidUpdateState(central: CBCentralManager);
begin
  if (central.state = CBCentralManagerStatePoweredOn) and FWaitingToDiscover then
  begin
     FWaitingToDiscover := False;
     central.scanForPeripheralsWithServices(FFilterUUIDList, FScanOptions);
  end;
end;

 

delphi IOS BLE 代理

原文:http://www.cnblogs.com/cb168/p/5118030.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!