delphi IOS BLE 代理
2016-01-10 10:50
555 查看
代理方法
centralManagerDidUpdateState:
peripheralManagerDidUpdateState:代理方法。
centralManager:willRestoreState
peripheralManager:willRestoreState:代理方法
delphi在
delphi也实现了 initWithDelegate方法
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在
System.Mac.Bluetooth.pas实现了centralManagerDidUpdateState方法
procedure TInternalBluetoothLEManager.centralManagerDidUpdateState(central: CBCentralManager); begin if (central.state = CBCentralManagerStatePoweredOn) and FWaitingToDiscover then begin FWaitingToDiscover := False; central.scanForPeripheralsWithServices(FFilterUUIDList, FScanOptions); end; end;
delphi也实现了 initWithDelegate方法
procedure TInternalBluetoothLEManager.centralManagerWillRestoreState(central: CBCentralManager; dict: NSDictionary); begin end;
相关文章推荐
- delphi BLE 后台
- Delphi IOS class_addMethod
- delphi下中文转UFT-8编码
- delphi IOS 后台状态保存
- delphi IOS 通知 TNotification
- Delphi 2010下载+完美破解
- Delphi类在实现接口时,可以任意的升降接口方法的可见度。
- 你还没成为Delphi QC的成员吗?(转红鱼儿)
- 判断字符是否是汉字,ByteType字符串中判断是否英文
- Delphi内嵌汇编语言BASM精要(转帖)
- Delphi项目构成之单元文件PAS
- Delphi中Interface接口的使用方法
- Delphi项目构成之项目文件DPR
- python4delphi Python could not be properly initialized. We must quit.
- AnsiString 在 Delphi 中虽然不可用,但是,在 C++ 中可以用
- Delphi版的Base64转换函数(修改版)
- GDI+ 在Delphi程序的应用 -- ColorMatrix与图像亮度
- Delphi图像处理 -- 亮度/对比度调整
- 学习笔记:7z在delphi的应用
- Delphi的DateToStr StrToDate格式灵活用法