Delphi IOS BLE Agent

Source: Internet
Author: User
<span id="Label3"></p><p><p>Proxy method</p></p><p><p><em>Centralmanagerdidupdatestate:</em></p></p><p><p><em>Peripheralmanagerdidupdatestate: Proxy Method.</em></p></p><p><p></p></p><p><p>Centralmanager:willrestorestate</p></p><p><p>Peripheralmanager:willrestorestate: Proxy method</p></p><p><p></p></p><pre class="prettyprint perl"><pre class="prettyprint perl"><code><span class="variable">*)central willRestoreState:(NSDictionary <span class="variable">*)<span class="keyword">state{ NSArray <span class="variable">*peripherals = <span class="keyword">state[CBCentralManagerRestoredStatePeripheralsKey]; <span class="regexp">// TODO: ...}<br><br>D:\Program Files (x86)\Embarcadero\Studio\17.0\source\rtl\net\System.Mac.Bluetooth.pas<br>D:\Program Files (x86)\Embarcadero\Studio\17.0\source\rtl\osx\Macapi.Bluetooth.pas<br><br>\17.0\source\rtl\net\System.Mac.Bluetooth.pas(3481):<br>    procedure centralManagerDidUpdateState(central: CBCentralManager); cdecl;<br>    [MethodName(‘centralManager:willRestoreState:‘)]<br><br>procedure TInternalBluetoothLEManager.centralManagerDidUpdateState(central: CBCentralManager);<br><br><br></span></span></span></span></span></span></code></pre></pre><p><p>Delphi implements the Centralmanagerdidupdatestate method</p></p><pre><pre><span style="color: #0000ff;">procedure</span> <span style="color: #000000;">tinternalbluetoothlemanager.centralmanagerdidupdatestate (central:cbcentralmanager);</span> <span style="color: #0000ff;">begin</span> <span style="color: #0000ff;">if</span> <span style="color: #0000ff;"></span> and <span style="color: #0000ff;"></span> then <span style="color: #0000ff;">begin</span> <span style="color: #000000;"> fwaitingtodiscover:</span>=<span style="color: #000000;"> False; Central.scanforperipheralswithservices (ffilteruuidlist, fscanoptions); </span> <span style="color: #0000ff;">End</span> <span style="color: #000000;">;</span> <span style="color: #0000ff;">End</span>;</pre></pre><p><p></p></p><p><p>Delphi IOS BLE Agent</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.