88 < script src ="js/jquery.min.js " defer > </ script >
99 < script src ="js/jazzy.js " defer > </ script >
1010
11+ < script src ="js/lunr.min.js " defer > </ script >
12+ < script src ="js/typeahead.jquery.js " defer > </ script >
13+ < script src ="js/jazzy.search.js " defer > </ script >
1114 </ head >
1215 < body >
1316 < a name ="//apple_ref/swift/Section/Classes " class ="dashAnchor "> </ a >
1417 < a title ="Classes Reference "> </ a >
1518 < header >
1619 < div class ="content-wrapper ">
17- < p > < a href ="index.html "> RxBluetoothKit 5.3 .0 Docs</ a > (80 % documented)</ p >
20+ < p > < a href ="index.html "> RxBluetoothKit 6.0 .0 Docs</ a > (82 % documented)</ p >
1821 < p class ="header-right "> < a href ="https://github.com/Polidea/RxBluetoothKit "> < img src ="img/gh.png "/> View on GitHub</ a > </ p >
22+ < p class ="header-right ">
23+ < form role ="search " action ="search.json ">
24+ < input type ="text " placeholder ="Search documentation " data-typeahead >
25+ </ form >
26+ </ p >
1927 </ div >
2028 </ header >
2129 < div class ="content-wrapper ">
@@ -190,10 +198,10 @@ <h1>Classes</h1>
190198 < p > CentralManager is a class implementing ReactiveX API which wraps all Core Bluetooth Manager’s functions allowing to
191199discover, connect to remote peripheral devices and more.
192200You can start using this class by discovering available services of nearby peripherals. Before calling any
193- public < code > CentralManager</ code > ‘s functions you should make sure that Bluetooth is turned on and powered on. It can be done
194- by calling and observing returned value of < code > observeState ()</ code > and then chaining it with < code > scanForPeripherals(_:options:) </ code > : </ p >
195- < pre class =" highlight swift " > < code > < span class =" k " > let </ span > < span class =" nv " > disposable </ span > < span class =" o " > = </ span > < span class =" n " > centralManager </ span > < span class =" o " > . </ span > < span class =" n " > observeState </ span >
196- < span class ="o " > . </ span > < span class ="nf " > startWith </ span > < span class ="p " > ( </ span > < span class ="n "> centralManager</ span > < span class ="o "> .</ span > < span class ="n " > state </ span > < span class ="p "> )</ span >
201+ public < code > CentralManager</ code > ‘s functions you should make sure that Bluetooth is turned on and powered on.
202+ It can be done by calling and observing returned value of < code > observeStateWithInitialValue ()</ code > and then
203+ chaining it with < code > scanForPeripherals(_:options:) </ code > : </ p >
204+ < pre class =" highlight swift " > < code > < span class ="k " > let </ span > < span class ="nv " > disposable </ span > < span class ="o " > = </ span > < span class ="n "> centralManager</ span > < span class ="o "> .</ span > < span class ="nf " > observeStateWithInitialValue </ span > < span class ="p "> ( )</ span >
197205 < span class ="o "> .</ span > < span class ="n "> filter</ span > < span class ="p "> {</ span > < span class ="nv "> $0</ span > < span class ="o "> ==</ span > < span class ="o "> .</ span > < span class ="n "> poweredOn</ span > < span class ="p "> }</ span >
198206 < span class ="o "> .</ span > < span class ="nf "> take</ span > < span class ="p "> (</ span > < span class ="mi "> 1</ span > < span class ="p "> )</ span >
199207 < span class ="o "> .</ span > < span class ="n "> flatMap</ span > < span class ="p "> {</ span > < span class ="n "> centralManager</ span > < span class ="o "> .</ span > < span class ="nf "> scanForPeripherals</ span > < span class ="p "> (</ span > < span class ="kc "> nil</ span > < span class ="p "> )</ span > < span class ="p "> }</ span >
@@ -221,15 +229,11 @@ <h4>Declaration</h4>
221229 </ div >
222230 </ div >
223231 < div class ="slightly-smaller ">
224- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.3 .0/Source/CentralManager.swift#L27-L309 "> Show on GitHub</ a >
232+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/6.0 .0/Source/CentralManager.swift#L27-L342 "> Show on GitHub</ a >
225233 </ div >
226234 </ section >
227235 </ div >
228236 </ li >
229- </ ul >
230- </ div >
231- < div class ="task-group ">
232- < ul >
233237 < li class ="item ">
234238 < div >
235239 < code >
@@ -252,19 +256,16 @@ <h4>Declaration</h4>
252256 < div class ="language ">
253257 < p class ="aside-title "> Swift</ p >
254258 < pre class ="highlight swift "> < code > < span class ="kd "> public</ span > < span class ="kd "> class</ span > < span class ="kt "> Characteristic</ span > </ code > </ pre >
259+ < pre class ="highlight swift "> < code > < span class ="kd "> extension</ span > < span class ="kt "> Characteristic</ span > < span class ="p "> :</ span > < span class ="kt "> Equatable</ span > </ code > </ pre >
255260
256261 </ div >
257262 </ div >
258263 < div class ="slightly-smaller ">
259- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.3 .0/Source/Characteristic.swift#L6-L180 "> Show on GitHub</ a >
264+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/6.0 .0/Source/Characteristic.swift#L6-L180 "> Show on GitHub</ a >
260265 </ div >
261266 </ section >
262267 </ div >
263268 </ li >
264- </ ul >
265- </ div >
266- < div class ="task-group ">
267- < ul >
268269 < li class ="item ">
269270 < div >
270271 < code >
@@ -289,19 +290,16 @@ <h4>Declaration</h4>
289290 < div class ="language ">
290291 < p class ="aside-title "> Swift</ p >
291292 < pre class ="highlight swift "> < code > < span class ="kd "> public</ span > < span class ="kd "> class</ span > < span class ="kt "> Descriptor</ span > </ code > </ pre >
293+ < pre class ="highlight swift "> < code > < span class ="kd "> extension</ span > < span class ="kt "> Descriptor</ span > < span class ="p "> :</ span > < span class ="kt "> Equatable</ span > </ code > </ pre >
292294
293295 </ div >
294296 </ div >
295297 < div class ="slightly-smaller ">
296- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.3 .0/Source/Descriptor.swift#L8-L104 "> Show on GitHub</ a >
298+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/6.0 .0/Source/Descriptor.swift#L8-L104 "> Show on GitHub</ a >
297299 </ div >
298300 </ section >
299301 </ div >
300302 </ li >
301- </ ul >
302- </ div >
303- < div class ="task-group ">
304- < ul >
305303 < li class ="item ">
306304 < div >
307305 < code >
@@ -328,15 +326,11 @@ <h4>Declaration</h4>
328326 </ div >
329327 </ div >
330328 < div class ="slightly-smaller ">
331- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.3 .0/Source/Logging.swift#L6-L105 "> Show on GitHub</ a >
329+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/6.0 .0/Source/Logging.swift#L6-L105 "> Show on GitHub</ a >
332330 </ div >
333331 </ section >
334332 </ div >
335333 </ li >
336- </ ul >
337- </ div >
338- < div class ="task-group ">
339- < ul >
340334 < li class ="item ">
341335 < div >
342336 < code >
@@ -360,19 +354,16 @@ <h4>Declaration</h4>
360354 < div class ="language ">
361355 < p class ="aside-title "> Swift</ p >
362356 < pre class ="highlight swift "> < code > < span class ="kd "> public</ span > < span class ="kd "> class</ span > < span class ="kt "> Peripheral</ span > </ code > </ pre >
357+ < pre class ="highlight swift "> < code > < span class ="kd "> extension</ span > < span class ="kt "> Peripheral</ span > < span class ="p "> :</ span > < span class ="kt "> Equatable</ span > </ code > </ pre >
363358
364359 </ div >
365360 </ div >
366361 < div class ="slightly-smaller ">
367- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.3 .0/Source/Peripheral.swift#L10-L873 "> Show on GitHub</ a >
362+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/6.0 .0/Source/Peripheral.swift#L10-L873 "> Show on GitHub</ a >
368363 </ div >
369364 </ section >
370365 </ div >
371366 </ li >
372- </ ul >
373- </ div >
374- < div class ="task-group ">
375- < ul >
376367 < li class ="item ">
377368 < div >
378369 < code >
@@ -390,9 +381,8 @@ <h4>Declaration</h4>
390381advertise, to publish L2CAP channels and more.
391382You can start using this class by adding services and starting advertising.
392383Before calling any public < code > PeripheralManager</ code > ‘s functions you should make sure that Bluetooth is turned on and powered on. It can be done
393- by < code > observeState()</ code > , observing it’s value and then chaining it with < code > add(_:)</ code > and < code > startAdvertising(_:)</ code > :</ p >
394- < pre class ="highlight swift "> < code > < span class ="k "> let</ span > < span class ="nv "> disposable</ span > < span class ="o "> =</ span > < span class ="n "> centralManager</ span > < span class ="o "> .</ span > < span class ="n "> observeState</ span >
395- < span class ="o "> .</ span > < span class ="nf "> startWith</ span > < span class ="p "> (</ span > < span class ="n "> centralManager</ span > < span class ="o "> .</ span > < span class ="n "> state</ span > < span class ="p "> )</ span >
384+ by < code > observeStateWithInitialValue()</ code > , observing it’s value and then chaining it with < code > add(_:)</ code > and < code > startAdvertising(_:)</ code > :</ p >
385+ < pre class ="highlight swift "> < code > < span class ="k "> let</ span > < span class ="nv "> disposable</ span > < span class ="o "> =</ span > < span class ="n "> centralManager</ span > < span class ="o "> .</ span > < span class ="nf "> observeStateWithInitialValue</ span > < span class ="p "> ()</ span >
396386 < span class ="o "> .</ span > < span class ="n "> filter</ span > < span class ="p "> {</ span > < span class ="nv "> $0</ span > < span class ="o "> ==</ span > < span class ="o "> .</ span > < span class ="n "> poweredOn</ span > < span class ="p "> }</ span >
397387 < span class ="o "> .</ span > < span class ="nf "> take</ span > < span class ="p "> (</ span > < span class ="mi "> 1</ span > < span class ="p "> )</ span >
398388 < span class ="o "> .</ span > < span class ="n "> flatMap</ span > < span class ="p "> {</ span > < span class ="n "> centralManager</ span > < span class ="o "> .</ span > < span class ="nf "> add</ span > < span class ="p "> (</ span > < span class ="n "> myService</ span > < span class ="p "> )</ span > < span class ="p "> }</ span >
@@ -414,15 +404,11 @@ <h4>Declaration</h4>
414404 </ div >
415405 </ div >
416406 < div class ="slightly-smaller ">
417- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.3 .0/Source/PeripheralManager.swift#L22-L376 "> Show on GitHub</ a >
407+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/6.0 .0/Source/PeripheralManager.swift#L21-L387 "> Show on GitHub</ a >
418408 </ div >
419409 </ section >
420410 </ div >
421411 </ li >
422- </ ul >
423- </ div >
424- < div class ="task-group ">
425- < ul >
426412 < li class ="item ">
427413 < div >
428414 < code >
@@ -450,15 +436,11 @@ <h4>Declaration</h4>
450436 </ div >
451437 </ div >
452438 < div class ="slightly-smaller ">
453- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.3 .0/Source/ScannedPeripheral.swift#L6-L22 "> Show on GitHub</ a >
439+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/6.0 .0/Source/ScannedPeripheral.swift#L6-L22 "> Show on GitHub</ a >
454440 </ div >
455441 </ section >
456442 </ div >
457443 </ li >
458- </ ul >
459- </ div >
460- < div class ="task-group ">
461- < ul >
462444 < li class ="item ">
463445 < div >
464446 < code >
@@ -481,11 +463,12 @@ <h4>Declaration</h4>
481463 < div class ="language ">
482464 < p class ="aside-title "> Swift</ p >
483465 < pre class ="highlight swift "> < code > < span class ="kd "> public</ span > < span class ="kd "> class</ span > < span class ="kt "> Service</ span > </ code > </ pre >
466+ < pre class ="highlight swift "> < code > < span class ="kd "> extension</ span > < span class ="kt "> Service</ span > < span class ="p "> :</ span > < span class ="kt "> Equatable</ span > </ code > </ pre >
484467
485468 </ div >
486469 </ div >
487470 < div class ="slightly-smaller ">
488- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.3 .0/Source/Service.swift#L6-L81 "> Show on GitHub</ a >
471+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/6.0 .0/Source/Service.swift#L6-L81 "> Show on GitHub</ a >
489472 </ div >
490473 </ section >
491474 </ div >
@@ -495,8 +478,8 @@ <h4>Declaration</h4>
495478 </ section >
496479 </ section >
497480 < section id ="footer ">
498- < p > © 2019 < a class ="link " href ="https://polidea.com " target ="_blank " rel ="external "> Polidea</ a > . All rights reserved. (Last updated: 2019-07-26 )</ p >
499- < p > Generated by < a class ="link " href ="https://github.com/realm/jazzy " target ="_blank " rel ="external "> jazzy ♪♫ v0.10.0 </ a > , a < a class ="link " href ="https://realm.io " target ="_blank " rel ="external "> Realm</ a > project.</ p >
481+ < p > © 2020 < a class ="link " href ="https://polidea.com " target ="_blank " rel ="external "> Polidea</ a > . All rights reserved. (Last updated: 2020-09-04 )</ p >
482+ < p > Generated by < a class ="link " href ="https://github.com/realm/jazzy " target ="_blank " rel ="external "> jazzy ♪♫ v0.13.5 </ a > , a < a class ="link " href ="https://realm.io " target ="_blank " rel ="external "> Realm</ a > project.</ p >
500483 </ section >
501484 </ article >
502485 </ div >
0 commit comments