@@ -171,9 +171,9 @@ <h1>CentralManager</h1>
171
171
< li class ="item ">
172
172
< div >
173
173
< code >
174
- < a name ="/s:14RxBluetoothKit14CentralManagerC07centralE0So09CBCentralE0Cv "> </ a >
174
+ < a name ="/s:14RxBluetoothKit14CentralManagerC07centralE0So09CBCentralE0Cvp "> </ a >
175
175
< a name ="//apple_ref/swift/Property/centralManager " class ="dashAnchor "> </ a >
176
- < a class ="token " href ="#/s:14RxBluetoothKit14CentralManagerC07centralE0So09CBCentralE0Cv "> centralManager</ a >
176
+ < a class ="token " href ="#/s:14RxBluetoothKit14CentralManagerC07centralE0So09CBCentralE0Cvp "> centralManager</ a >
177
177
</ code >
178
178
</ div >
179
179
< div class ="height-container ">
@@ -193,7 +193,7 @@ <h4>Declaration</h4>
193
193
</ div >
194
194
</ div >
195
195
< div class ="slightly-smaller ">
196
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L28 "> Show on GitHub</ a >
196
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L28 "> Show on GitHub</ a >
197
197
</ div >
198
198
</ section >
199
199
</ div >
@@ -272,7 +272,7 @@ <h4>Parameters</h4>
272
272
</ table >
273
273
</ div >
274
274
< div class ="slightly-smaller ">
275
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L68-L78 "> Show on GitHub</ a >
275
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L68-L78 "> Show on GitHub</ a >
276
276
</ div >
277
277
</ section >
278
278
</ div >
@@ -304,7 +304,7 @@ <h4>Declaration</h4>
304
304
</ div >
305
305
</ div >
306
306
< div class ="slightly-smaller ">
307
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L83-L85 "> Show on GitHub</ a >
307
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L83-L85 "> Show on GitHub</ a >
308
308
</ div >
309
309
</ section >
310
310
</ div >
@@ -323,9 +323,9 @@ <h3 class="section-name">State</h3>
323
323
< li class ="item ">
324
324
< div >
325
325
< code >
326
- < a name ="/s:14RxBluetoothKit14CentralManagerC5stateAA0B5StateOv "> </ a >
326
+ < a name ="/s:14RxBluetoothKit14CentralManagerC5stateAA0B5StateOvp "> </ a >
327
327
< a name ="//apple_ref/swift/Property/state " class ="dashAnchor "> </ a >
328
- < a class ="token " href ="#/s:14RxBluetoothKit14CentralManagerC5stateAA0B5StateOv "> state</ a >
328
+ < a class ="token " href ="#/s:14RxBluetoothKit14CentralManagerC5stateAA0B5StateOvp "> state</ a >
329
329
</ code >
330
330
</ div >
331
331
< div class ="height-container ">
@@ -345,7 +345,7 @@ <h4>Declaration</h4>
345
345
</ div >
346
346
</ div >
347
347
< div class ="slightly-smaller ">
348
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L90-L92 "> Show on GitHub</ a >
348
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L90-L92 "> Show on GitHub</ a >
349
349
</ div >
350
350
</ section >
351
351
</ div >
@@ -381,7 +381,7 @@ <h4>Return Value</h4>
381
381
< p > Observable that emits < code > next</ code > event whenever state changes.</ p >
382
382
</ div >
383
383
< div class ="slightly-smaller ">
384
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L98-L100 "> Show on GitHub</ a >
384
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L98-L100 "> Show on GitHub</ a >
385
385
</ div >
386
386
</ section >
387
387
</ div >
@@ -479,7 +479,7 @@ <h4>Return Value</h4>
479
479
< p > Infinite stream of scanned peripherals.</ p >
480
480
</ div >
481
481
< div class ="slightly-smaller ">
482
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L127-L168 "> Show on GitHub</ a >
482
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L127-L168 "> Show on GitHub</ a >
483
483
</ div >
484
484
</ section >
485
485
</ div >
@@ -561,7 +561,7 @@ <h4>Return Value</h4>
561
561
< p > < code > Observable</ code > which emits next event after connection is established.</ p >
562
562
</ div >
563
563
< div class ="slightly-smaller ">
564
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L182-L185 "> Show on GitHub</ a >
564
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L182-L185 "> Show on GitHub</ a >
565
565
</ div >
566
566
</ section >
567
567
</ div >
@@ -627,7 +627,7 @@ <h4>Return Value</h4>
627
627
< code > < a href ="../Classes/Service.html "> Service</ a > </ code > s with UUIDs specified in the < code > serviceUUIDs</ code > parameter.</ p >
628
628
</ div >
629
629
< div class ="slightly-smaller ">
630
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L195-L198 "> Show on GitHub</ a >
630
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L195-L198 "> Show on GitHub</ a >
631
631
</ div >
632
632
</ section >
633
633
</ div >
@@ -680,7 +680,7 @@ <h4>Return Value</h4>
680
680
< p > Retrieved < code > < a href ="../Classes/Peripheral.html "> Peripheral</ a > </ code > s.</ p >
681
681
</ div >
682
682
< div class ="slightly-smaller ">
683
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L204-L207 "> Show on GitHub</ a >
683
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L204-L207 "> Show on GitHub</ a >
684
684
</ div >
685
685
</ section >
686
686
</ div >
@@ -746,7 +746,7 @@ <h4>Return Value</h4>
746
746
< p > Observable which emits next events when < code > peripheral</ code > was connected.</ p >
747
747
</ div >
748
748
< div class ="slightly-smaller ">
749
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0 /Source/CentralManager.swift#L216-L224 "> Show on GitHub</ a >
749
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1 /Source/CentralManager.swift#L216-L224 "> Show on GitHub</ a >
750
750
</ div >
751
751
</ section >
752
752
</ div >
@@ -800,10 +800,109 @@ <h4>Parameters</h4>
800
800
< h4 > Return Value</ h4 >
801
801
< p > Observable which emits next events when < code > < a href ="../Classes/Peripheral.html "> Peripheral</ a > </ code > instance was disconnected.
802
802
It provides optional error which may contain more information about the cause of the disconnection
803
- if it wasn’t the < code > cancelConnection </ code > call.</ p >
803
+ if it wasn’t the < code > cancelPeripheralConnection </ code > call.</ p >
804
804
</ div >
805
805
< div class ="slightly-smaller ">
806
- < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.0/Source/CentralManager.swift#L233-L249 "> Show on GitHub</ a >
806
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1/Source/CentralManager.swift#L233-L249 "> Show on GitHub</ a >
807
+ </ div >
808
+ </ section >
809
+ </ div >
810
+ </ li >
811
+ </ ul >
812
+ </ div >
813
+ < div class ="task-group ">
814
+ < div class ="task-name-container ">
815
+ < a name ="/State%20restoration "> </ a >
816
+ < a name ="//apple_ref/swift/Section/State restoration " class ="dashAnchor "> </ a >
817
+ < a href ="#/State%20restoration ">
818
+ < h3 class ="section-name "> State restoration</ h3 >
819
+ </ a >
820
+ </ div >
821
+ < ul >
822
+ < li class ="item ">
823
+ < div >
824
+ < code >
825
+ < a name ="/s:14RxBluetoothKit14CentralManagerCACSo13DispatchQueueC5queue_s10DictionaryVySSyXlGSg7optionsyAA13RestoredStateVcSg013onWillRestoreL0tcfc "> </ a >
826
+ < a name ="//apple_ref/swift/Method/init(queue:options:onWillRestoreState:) " class ="dashAnchor "> </ a >
827
+ < a class ="token " href ="#/s:14RxBluetoothKit14CentralManagerCACSo13DispatchQueueC5queue_s10DictionaryVySSyXlGSg7optionsyAA13RestoredStateVcSg013onWillRestoreL0tcfc "> init(queue:options:onWillRestoreState:)</ a >
828
+ </ code >
829
+ </ div >
830
+ < div class ="height-container ">
831
+ < div class ="pointer-container "> </ div >
832
+ < section class ="section ">
833
+ < div class ="pointer "> </ div >
834
+ < div class ="abstract ">
835
+ < p > Creates new < code > CentralManager</ code > instance, which supports bluetooth state restoration.</ p >
836
+ < div class ="aside aside-warning ">
837
+ < p class ="aside-title "> Warning</ p >
838
+ If you pass background queue to the method make sure to observe results on main thread
839
+ for UI related code.
840
+
841
+ </ div >
842
+ < div class ="aside aside-seealso ">
843
+ < p class ="aside-title "> Seealso</ p >
844
+ < p > < code > < a href ="../Structs/RestoredState.html "> RestoredState</ a > </ code > </ p >
845
+
846
+ </ div >
847
+
848
+ </ div >
849
+ < div class ="declaration ">
850
+ < h4 > Declaration</ h4 >
851
+ < div class ="language ">
852
+ < p class ="aside-title "> Swift</ p >
853
+ < pre class ="highlight swift "> < code > < span class ="kd "> public</ span > < span class ="n "> convenience</ span > < span class ="nf "> init</ span > < span class ="p "> (</ span > < span class ="nv "> queue</ span > < span class ="p "> :</ span > < span class ="kt "> DispatchQueue</ span > < span class ="o "> =</ span > < span class ="o "> .</ span > < span class ="n "> main</ span > < span class ="p "> ,</ span >
854
+ < span class ="nv "> options</ span > < span class ="p "> :</ span > < span class ="p "> [</ span > < span class ="kt "> String</ span > < span class ="p "> :</ span > < span class ="kt "> AnyObject</ span > < span class ="p "> ]?</ span > < span class ="o "> =</ span > < span class ="kc "> nil</ span > < span class ="p "> ,</ span >
855
+ < span class ="nv "> onWillRestoreState</ span > < span class ="p "> :</ span > < span class ="kt "> < a href ="../Typealiases.html#/s:14RxBluetoothKit18OnWillRestoreStatea "> OnWillRestoreState</ a > </ span > < span class ="p "> ?</ span > < span class ="o "> =</ span > < span class ="kc "> nil</ span > < span class ="p "> )</ span > </ code > </ pre >
856
+
857
+ </ div >
858
+ </ div >
859
+ < div >
860
+ < h4 > Parameters</ h4 >
861
+ < table class ="graybox ">
862
+ < tbody >
863
+ < tr >
864
+ < td >
865
+ < code >
866
+ < em > queue</ em >
867
+ </ code >
868
+ </ td >
869
+ < td >
870
+ < div >
871
+ < p > Queue on which bluetooth callbacks are received. By default main thread is used
872
+ and all operations and events are executed and received on main thread.</ p >
873
+ </ div >
874
+ </ td >
875
+ </ tr >
876
+ < tr >
877
+ < td >
878
+ < code >
879
+ < em > options</ em >
880
+ </ code >
881
+ </ td >
882
+ < td >
883
+ < div >
884
+ < p > An optional dictionary containing initialization options for a central manager.
885
+ For more info about it please refer to < a href ="https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBCentralManager_Class/index.html "> Central Manager initialization options</ a > </ p >
886
+ </ div >
887
+ </ td >
888
+ </ tr >
889
+ < tr >
890
+ < td >
891
+ < code >
892
+ < em > onWillRestoreState</ em >
893
+ </ code >
894
+ </ td >
895
+ < td >
896
+ < div >
897
+ < p > Closure called when state has been restored.</ p >
898
+ </ div >
899
+ </ td >
900
+ </ tr >
901
+ </ tbody >
902
+ </ table >
903
+ </ div >
904
+ < div class ="slightly-smaller ">
905
+ < a href ="https://github.com/Polidea/RxBluetoothKit/tree/5.0.1/Source/CentralManager+RestoredState.swift#L24-L31 "> Show on GitHub</ a >
807
906
</ div >
808
907
</ section >
809
908
</ div >
@@ -813,7 +912,7 @@ <h4>Return Value</h4>
813
912
</ section >
814
913
</ section >
815
914
< section id ="footer ">
816
- < p > © 2018 < a class ="link " href ="https://polidea.com " target ="_blank " rel ="external "> Polidea</ a > . All rights reserved. (Last updated: 2018-03-14 )</ p >
915
+ < p > © 2018 < a class ="link " href ="https://polidea.com " target ="_blank " rel ="external "> Polidea</ a > . All rights reserved. (Last updated: 2018-04-10 )</ p >
817
916
< p > Generated by < a class ="link " href ="https://github.com/realm/jazzy " target ="_blank " rel ="external "> jazzy ♪♫ v0.9.1</ a > , a < a class ="link " href ="http://realm.io " target ="_blank " rel ="external "> Realm</ a > project.</ p >
818
917
</ section >
819
918
</ article >
0 commit comments