5 |
6 | # SwiftyEventBus
7 |
8 | 
9 | [](https://travis-ci.org/Maru-zhang/SwiftyEventBus)
10 | [](https://github.com/Carthage/Carthage)
11 | [](https://codecov.io/gh/Maru-zhang/SwiftyEventBus)
12 | [](https://cocoapods.org/pods/SwiftyEventBus)
13 | [](https://cocoapods.org/pods/SwiftyEventBus)
14 | [](https://cocoapods.org/pods/SwiftyEventBus)
15 |
16 | SwiftyEventBus is a publish/subscribe event bus for iOS and Swift.
17 |
18 | * simplifies the communication between components
19 | * make your code simple and elegant
20 | * type safe
21 | * more advance feature: safety event, sticky event, etc...
22 |
23 | In addition, if you want to read document, please click [here](https://maru-zhang.github.io/SwiftyEventBus/).
24 |
25 | ## Usage
26 |
27 | `SwiftyEventBus` is very easy to use, you just need two steps:
28 |
29 | #### 1.**Register**
30 |
31 | You can register in anywhere with any type, it will always observe until the `EventSubscription` object been released.
32 |
33 | ```swift
34 | class DemoViewController: UIViewController {
35 |
36 | var ob: EventSubscription
!
37 |
38 | override func viewDidLoad() {
39 | super.viewDidLoad()
40 | ob = EventBus.`default`.register { (x: String) in
41 | print(x)
42 | }
43 | }
44 | }
45 | ```
46 |
47 | #### 2.**Post**
48 |
49 | Finally, you just need to post any type that implement `EventPresentable`.
50 |
51 |
52 | ```swift
53 | EventBus.default.post("Foo")
54 | ```
55 |
56 | ### Advance
57 |
58 | #### Safe Post
59 |
60 | Sometime, you maybe post a message that no one obseving, this is unsafety behaviour, then you can use this:
61 |
62 | ```swift
63 | EventBus.default.safePost("Foo")
64 | ```
65 |
66 | If there is no observer subscribe this kind of message, `EventBus.default.safePost("Foo")` will raise `EventBusPostError.useless` Exception, you can catch it and handle this.
67 |
68 | ```swift
69 | /// handle EventBusPostError excetion
70 | do {
71 | try EventBus.default.safePost("foo")
72 | } catch {
73 | // do something
74 | }
75 | ```
76 |
77 | ### Rx-Extension
78 |
79 | if you project using `RxSwift`, maybe you need this to bridge `SwiftyEventBus` to `Rx`.
80 |
81 | ```ruby
82 | pod 'SwiftyEventBus/Rx'
83 | ```
84 |
85 | after that, you can use `SwiftyEventBus` in `RxSwift` world.🎉
86 |
87 | ```swift
88 | var bag: DisposeBag? = DisposeBag()
89 | EventBus.default.rx.register(String.self)
90 | .subscribe(onNext: { (x) in
91 | print(x) /// "foo"
92 | })
93 | .disposed(by: bag!)
94 | EventBus.default.post("foo")
95 | ```
96 |
97 | ## Example
98 |
99 | To run the example project, clone the repo, and run `pod install` from the Example directory first.
100 |
101 | ## Installation
102 |
103 | ### CocoaPods
104 |
105 | SwiftyEventBus is available through [CocoaPods](https://cocoapods.org). To install
106 | it, simply add the following line to your Podfile:
107 |
108 | ```ruby
109 | pod 'SwiftyEventBus'
110 | ```
111 |
112 | ###
113 |
114 | SwiftyEventBus is also available on `Carthage`, please add this to `Cartfile`:
115 |
116 | ```
117 | github "Maru-zhang/SwiftyEventBus"
118 | ```
119 |
120 | ## Author
121 |
122 | Maru-zhang, maru-zhang@foxmail.com
123 |
124 | ## License
125 |
126 | SwiftyEventBus is available under the MIT license. See the LICENSE file for more info.
127 |
128 |
129 |
--------------------------------------------------------------------------------
/SwiftyEventBus.xcodeproj/xcshareddata/xcschemes/SwiftyEventBus.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
46 |
47 |
53 |
54 |
55 |
56 |
58 |
64 |
65 |
66 |
67 |
68 |
74 |
75 |
76 |
77 |
78 |
79 |
89 |
90 |
96 |
97 |
98 |
99 |
100 |
101 |
107 |
108 |
114 |
115 |
116 |
117 |
119 |
120 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/docs/css/highlight.css:
--------------------------------------------------------------------------------
1 | /* Credit to https://gist.github.com/wataru420/2048287 */
2 | .highlight {
3 | /* Comment */
4 | /* Error */
5 | /* Keyword */
6 | /* Operator */
7 | /* Comment.Multiline */
8 | /* Comment.Preproc */
9 | /* Comment.Single */
10 | /* Comment.Special */
11 | /* Generic.Deleted */
12 | /* Generic.Deleted.Specific */
13 | /* Generic.Emph */
14 | /* Generic.Error */
15 | /* Generic.Heading */
16 | /* Generic.Inserted */
17 | /* Generic.Inserted.Specific */
18 | /* Generic.Output */
19 | /* Generic.Prompt */
20 | /* Generic.Strong */
21 | /* Generic.Subheading */
22 | /* Generic.Traceback */
23 | /* Keyword.Constant */
24 | /* Keyword.Declaration */
25 | /* Keyword.Pseudo */
26 | /* Keyword.Reserved */
27 | /* Keyword.Type */
28 | /* Literal.Number */
29 | /* Literal.String */
30 | /* Name.Attribute */
31 | /* Name.Builtin */
32 | /* Name.Class */
33 | /* Name.Constant */
34 | /* Name.Entity */
35 | /* Name.Exception */
36 | /* Name.Function */
37 | /* Name.Namespace */
38 | /* Name.Tag */
39 | /* Name.Variable */
40 | /* Operator.Word */
41 | /* Text.Whitespace */
42 | /* Literal.Number.Float */
43 | /* Literal.Number.Hex */
44 | /* Literal.Number.Integer */
45 | /* Literal.Number.Oct */
46 | /* Literal.String.Backtick */
47 | /* Literal.String.Char */
48 | /* Literal.String.Doc */
49 | /* Literal.String.Double */
50 | /* Literal.String.Escape */
51 | /* Literal.String.Heredoc */
52 | /* Literal.String.Interpol */
53 | /* Literal.String.Other */
54 | /* Literal.String.Regex */
55 | /* Literal.String.Single */
56 | /* Literal.String.Symbol */
57 | /* Name.Builtin.Pseudo */
58 | /* Name.Variable.Class */
59 | /* Name.Variable.Global */
60 | /* Name.Variable.Instance */
61 | /* Literal.Number.Integer.Long */ }
62 | .highlight .c {
63 | color: #999988;
64 | font-style: italic; }
65 | .highlight .err {
66 | color: #a61717;
67 | background-color: #e3d2d2; }
68 | .highlight .k {
69 | color: #000000;
70 | font-weight: bold; }
71 | .highlight .o {
72 | color: #000000;
73 | font-weight: bold; }
74 | .highlight .cm {
75 | color: #999988;
76 | font-style: italic; }
77 | .highlight .cp {
78 | color: #999999;
79 | font-weight: bold; }
80 | .highlight .c1 {
81 | color: #999988;
82 | font-style: italic; }
83 | .highlight .cs {
84 | color: #999999;
85 | font-weight: bold;
86 | font-style: italic; }
87 | .highlight .gd {
88 | color: #000000;
89 | background-color: #ffdddd; }
90 | .highlight .gd .x {
91 | color: #000000;
92 | background-color: #ffaaaa; }
93 | .highlight .ge {
94 | color: #000000;
95 | font-style: italic; }
96 | .highlight .gr {
97 | color: #aa0000; }
98 | .highlight .gh {
99 | color: #999999; }
100 | .highlight .gi {
101 | color: #000000;
102 | background-color: #ddffdd; }
103 | .highlight .gi .x {
104 | color: #000000;
105 | background-color: #aaffaa; }
106 | .highlight .go {
107 | color: #888888; }
108 | .highlight .gp {
109 | color: #555555; }
110 | .highlight .gs {
111 | font-weight: bold; }
112 | .highlight .gu {
113 | color: #aaaaaa; }
114 | .highlight .gt {
115 | color: #aa0000; }
116 | .highlight .kc {
117 | color: #000000;
118 | font-weight: bold; }
119 | .highlight .kd {
120 | color: #000000;
121 | font-weight: bold; }
122 | .highlight .kp {
123 | color: #000000;
124 | font-weight: bold; }
125 | .highlight .kr {
126 | color: #000000;
127 | font-weight: bold; }
128 | .highlight .kt {
129 | color: #445588; }
130 | .highlight .m {
131 | color: #009999; }
132 | .highlight .s {
133 | color: #d14; }
134 | .highlight .na {
135 | color: #008080; }
136 | .highlight .nb {
137 | color: #0086B3; }
138 | .highlight .nc {
139 | color: #445588;
140 | font-weight: bold; }
141 | .highlight .no {
142 | color: #008080; }
143 | .highlight .ni {
144 | color: #800080; }
145 | .highlight .ne {
146 | color: #990000;
147 | font-weight: bold; }
148 | .highlight .nf {
149 | color: #990000; }
150 | .highlight .nn {
151 | color: #555555; }
152 | .highlight .nt {
153 | color: #000080; }
154 | .highlight .nv {
155 | color: #008080; }
156 | .highlight .ow {
157 | color: #000000;
158 | font-weight: bold; }
159 | .highlight .w {
160 | color: #bbbbbb; }
161 | .highlight .mf {
162 | color: #009999; }
163 | .highlight .mh {
164 | color: #009999; }
165 | .highlight .mi {
166 | color: #009999; }
167 | .highlight .mo {
168 | color: #009999; }
169 | .highlight .sb {
170 | color: #d14; }
171 | .highlight .sc {
172 | color: #d14; }
173 | .highlight .sd {
174 | color: #d14; }
175 | .highlight .s2 {
176 | color: #d14; }
177 | .highlight .se {
178 | color: #d14; }
179 | .highlight .sh {
180 | color: #d14; }
181 | .highlight .si {
182 | color: #d14; }
183 | .highlight .sx {
184 | color: #d14; }
185 | .highlight .sr {
186 | color: #009926; }
187 | .highlight .s1 {
188 | color: #d14; }
189 | .highlight .ss {
190 | color: #990073; }
191 | .highlight .bp {
192 | color: #999999; }
193 | .highlight .vc {
194 | color: #008080; }
195 | .highlight .vg {
196 | color: #008080; }
197 | .highlight .vi {
198 | color: #008080; }
199 | .highlight .il {
200 | color: #009999; }
201 |
--------------------------------------------------------------------------------
/docs/docsets/SwiftyEventBus.docset/Contents/Resources/Documents/css/highlight.css:
--------------------------------------------------------------------------------
1 | /* Credit to https://gist.github.com/wataru420/2048287 */
2 | .highlight {
3 | /* Comment */
4 | /* Error */
5 | /* Keyword */
6 | /* Operator */
7 | /* Comment.Multiline */
8 | /* Comment.Preproc */
9 | /* Comment.Single */
10 | /* Comment.Special */
11 | /* Generic.Deleted */
12 | /* Generic.Deleted.Specific */
13 | /* Generic.Emph */
14 | /* Generic.Error */
15 | /* Generic.Heading */
16 | /* Generic.Inserted */
17 | /* Generic.Inserted.Specific */
18 | /* Generic.Output */
19 | /* Generic.Prompt */
20 | /* Generic.Strong */
21 | /* Generic.Subheading */
22 | /* Generic.Traceback */
23 | /* Keyword.Constant */
24 | /* Keyword.Declaration */
25 | /* Keyword.Pseudo */
26 | /* Keyword.Reserved */
27 | /* Keyword.Type */
28 | /* Literal.Number */
29 | /* Literal.String */
30 | /* Name.Attribute */
31 | /* Name.Builtin */
32 | /* Name.Class */
33 | /* Name.Constant */
34 | /* Name.Entity */
35 | /* Name.Exception */
36 | /* Name.Function */
37 | /* Name.Namespace */
38 | /* Name.Tag */
39 | /* Name.Variable */
40 | /* Operator.Word */
41 | /* Text.Whitespace */
42 | /* Literal.Number.Float */
43 | /* Literal.Number.Hex */
44 | /* Literal.Number.Integer */
45 | /* Literal.Number.Oct */
46 | /* Literal.String.Backtick */
47 | /* Literal.String.Char */
48 | /* Literal.String.Doc */
49 | /* Literal.String.Double */
50 | /* Literal.String.Escape */
51 | /* Literal.String.Heredoc */
52 | /* Literal.String.Interpol */
53 | /* Literal.String.Other */
54 | /* Literal.String.Regex */
55 | /* Literal.String.Single */
56 | /* Literal.String.Symbol */
57 | /* Name.Builtin.Pseudo */
58 | /* Name.Variable.Class */
59 | /* Name.Variable.Global */
60 | /* Name.Variable.Instance */
61 | /* Literal.Number.Integer.Long */ }
62 | .highlight .c {
63 | color: #999988;
64 | font-style: italic; }
65 | .highlight .err {
66 | color: #a61717;
67 | background-color: #e3d2d2; }
68 | .highlight .k {
69 | color: #000000;
70 | font-weight: bold; }
71 | .highlight .o {
72 | color: #000000;
73 | font-weight: bold; }
74 | .highlight .cm {
75 | color: #999988;
76 | font-style: italic; }
77 | .highlight .cp {
78 | color: #999999;
79 | font-weight: bold; }
80 | .highlight .c1 {
81 | color: #999988;
82 | font-style: italic; }
83 | .highlight .cs {
84 | color: #999999;
85 | font-weight: bold;
86 | font-style: italic; }
87 | .highlight .gd {
88 | color: #000000;
89 | background-color: #ffdddd; }
90 | .highlight .gd .x {
91 | color: #000000;
92 | background-color: #ffaaaa; }
93 | .highlight .ge {
94 | color: #000000;
95 | font-style: italic; }
96 | .highlight .gr {
97 | color: #aa0000; }
98 | .highlight .gh {
99 | color: #999999; }
100 | .highlight .gi {
101 | color: #000000;
102 | background-color: #ddffdd; }
103 | .highlight .gi .x {
104 | color: #000000;
105 | background-color: #aaffaa; }
106 | .highlight .go {
107 | color: #888888; }
108 | .highlight .gp {
109 | color: #555555; }
110 | .highlight .gs {
111 | font-weight: bold; }
112 | .highlight .gu {
113 | color: #aaaaaa; }
114 | .highlight .gt {
115 | color: #aa0000; }
116 | .highlight .kc {
117 | color: #000000;
118 | font-weight: bold; }
119 | .highlight .kd {
120 | color: #000000;
121 | font-weight: bold; }
122 | .highlight .kp {
123 | color: #000000;
124 | font-weight: bold; }
125 | .highlight .kr {
126 | color: #000000;
127 | font-weight: bold; }
128 | .highlight .kt {
129 | color: #445588; }
130 | .highlight .m {
131 | color: #009999; }
132 | .highlight .s {
133 | color: #d14; }
134 | .highlight .na {
135 | color: #008080; }
136 | .highlight .nb {
137 | color: #0086B3; }
138 | .highlight .nc {
139 | color: #445588;
140 | font-weight: bold; }
141 | .highlight .no {
142 | color: #008080; }
143 | .highlight .ni {
144 | color: #800080; }
145 | .highlight .ne {
146 | color: #990000;
147 | font-weight: bold; }
148 | .highlight .nf {
149 | color: #990000; }
150 | .highlight .nn {
151 | color: #555555; }
152 | .highlight .nt {
153 | color: #000080; }
154 | .highlight .nv {
155 | color: #008080; }
156 | .highlight .ow {
157 | color: #000000;
158 | font-weight: bold; }
159 | .highlight .w {
160 | color: #bbbbbb; }
161 | .highlight .mf {
162 | color: #009999; }
163 | .highlight .mh {
164 | color: #009999; }
165 | .highlight .mi {
166 | color: #009999; }
167 | .highlight .mo {
168 | color: #009999; }
169 | .highlight .sb {
170 | color: #d14; }
171 | .highlight .sc {
172 | color: #d14; }
173 | .highlight .sd {
174 | color: #d14; }
175 | .highlight .s2 {
176 | color: #d14; }
177 | .highlight .se {
178 | color: #d14; }
179 | .highlight .sh {
180 | color: #d14; }
181 | .highlight .si {
182 | color: #d14; }
183 | .highlight .sx {
184 | color: #d14; }
185 | .highlight .sr {
186 | color: #009926; }
187 | .highlight .s1 {
188 | color: #d14; }
189 | .highlight .ss {
190 | color: #990073; }
191 | .highlight .bp {
192 | color: #999999; }
193 | .highlight .vc {
194 | color: #008080; }
195 | .highlight .vg {
196 | color: #008080; }
197 | .highlight .vi {
198 | color: #008080; }
199 | .highlight .il {
200 | color: #009999; }
201 |
--------------------------------------------------------------------------------
/docs/search.json:
--------------------------------------------------------------------------------
1 | {"Protocols/EventBusSafety.html#/s:14SwiftyEventBus0bC6SafetyP4safeAA0bC12SafePostable_pvp":{"name":"safe","abstract":"Undocumented
","parent_name":"EventBusSafety"},"Protocols/EventPresentable.html#/s:14SwiftyEventBus0B11PresentableP17processIdentifierSSvpZ":{"name":"processIdentifier","abstract":"Undocumented
","parent_name":"EventPresentable"},"Protocols/EventBusSafePostable.html#/s:14SwiftyEventBus0bC12SafePostableP4postyqd__KAA0B11PresentableRd__lF":{"name":"post(_:)","abstract":"Safe post a value to all subscriber,","parent_name":"EventBusSafePostable"},"Protocols/EventBusPostable.html#/s:14SwiftyEventBus0bC8PostableP4postyqd__AA0B11PresentableRd__lF":{"name":"post(_:)","abstract":"
Post a value to all subsctiber
","parent_name":"EventBusPostable"},"Protocols/EventBusObservable.html#/s:14SwiftyEventBus0bC10ObservableP8registerAA0B12SubscriptionCyqd__GAA12DispatchModeO2on_AA0bC8PriorityO8priorityyqd__c07messageB0tAA0B11PresentableRd__lF":{"name":"register(on:priority:messageEvent:)","abstract":"Register a message event for specify DataStruct
","parent_name":"EventBusObservable"},"Protocols/EventBusObservable.html":{"name":"EventBusObservable","abstract":"Undocumented
"},"Protocols/EventBusPostable.html":{"name":"EventBusPostable","abstract":"Undocumented
"},"Protocols/EventBusSafePostable.html":{"name":"EventBusSafePostable","abstract":"Undocumented
"},"Protocols/EventPresentable.html":{"name":"EventPresentable","abstract":"Undocumented
"},"Protocols/EventBusSafety.html":{"name":"EventBusSafety","abstract":"Undocumented
"},"Extensions/Reactive.html#/s:14SwiftyEventBus8registerXeXeF":{"name":"register(_:)","abstract":"Reactive wrapper for register(on:)
","parent_name":"Reactive"},"Extensions/EventBusMiddleWare.html#/s:14SwiftyEventBus0bC10ObservableP8registerAA0B12SubscriptionCyqd__GAA12DispatchModeO2on_AA0bC8PriorityO8priorityyqd__c07messageB0tAA0B11PresentableRd__lF":{"name":"register(on:priority:messageEvent:)","parent_name":"EventBusMiddleWare"},"Extensions/EventBusMiddleWare.html#/s:14SwiftyEventBus0bC10MiddleWareC4safeAA0bC12SafePostable_pvp":{"name":"safe","abstract":"Undocumented
","parent_name":"EventBusMiddleWare"},"Extensions/EventBusDangerMiddleWare.html#/s:14SwiftyEventBus0bC12SafePostableP4postyqd__KAA0B11PresentableRd__lF":{"name":"post(_:)","parent_name":"EventBusDangerMiddleWare"},"Extensions/EventBusPureMiddleWare.html#/s:14SwiftyEventBus0bC8PostableP4postyqd__AA0B11PresentableRd__lF":{"name":"post(_:)","parent_name":"EventBusPureMiddleWare"},"Extensions/EventBusPureMiddleWare.html":{"name":"EventBusPureMiddleWare","abstract":"Undocumented
"},"Extensions/EventBusDangerMiddleWare.html":{"name":"EventBusDangerMiddleWare","abstract":"Undocumented
"},"Extensions/EventBusMiddleWare.html":{"name":"EventBusMiddleWare","abstract":"Undocumented
"},"Extensions/Reactive.html":{"name":"Reactive"},"Enums/DispatchMode.html#/s:14SwiftyEventBus12DispatchModeO4sameA2CmF":{"name":"same","abstract":"Undocumented
","parent_name":"DispatchMode"},"Enums/DispatchMode.html#/s:14SwiftyEventBus12DispatchModeO4mainA2CmF":{"name":"main","abstract":"Undocumented
","parent_name":"DispatchMode"},"Enums/EventBusPriority.html#/s:14SwiftyEventBus0bC8PriorityO5valueACSicACmF":{"name":"value","abstract":"Undocumented
","parent_name":"EventBusPriority"},"Enums/EventBusPriority.html#/s:14SwiftyEventBus0bC8PriorityO3lowACvpZ":{"name":"low","abstract":"Undocumented
","parent_name":"EventBusPriority"},"Enums/EventBusPriority.html#/s:14SwiftyEventBus0bC8PriorityO7defaultACvpZ":{"name":"default","abstract":"Undocumented
","parent_name":"EventBusPriority"},"Enums/EventBusPriority.html#/s:14SwiftyEventBus0bC8PriorityO4highACvpZ":{"name":"high","abstract":"Undocumented
","parent_name":"EventBusPriority"},"Enums/EventBusPostError.html#/s:14SwiftyEventBus0bC9PostErrorO7uselessA2CmF":{"name":"useless","abstract":"Undocumented
","parent_name":"EventBusPostError"},"Enums/EventBusPostError.html":{"name":"EventBusPostError","abstract":"The error for posting event
"},"Enums/EventBusPriority.html":{"name":"EventBusPriority","abstract":"The priority of subscriber to revieve message
"},"Enums/DispatchMode.html":{"name":"DispatchMode","abstract":"The subscribe model when code excuting
"},"Classes/EventSubscription.html#/s:14SwiftyEventBus0B12SubscriptionC7disposeyyF":{"name":"dispose()","abstract":"Undocumented
","parent_name":"EventSubscription"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC0C7defaultACvpZ":{"name":"default","abstract":"The default common EventBus instance
","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC0C6domainSSvp":{"name":"domain","abstract":"The domain string that identify different EventBus instance
","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC0CACSS6domain_tcfc":{"name":"init(domain:)","abstract":"The construction of EventBus
","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC8PostableP4postyqd__AA0B11PresentableRd__lF":{"name":"post(_:)","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC10ObservableP8registerAA0B12SubscriptionCyqd__GAA12DispatchModeO2on_AA0bC8PriorityO8priorityyqd__c07messageB0tAA0B11PresentableRd__lF":{"name":"register(on:priority:messageEvent:)","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC0C4safeAA0bC12SafePostable_pvp":{"name":"safe","abstract":"Undocumented
","parent_name":"EventBus"},"Classes/EventBus.html":{"name":"EventBus","abstract":"Undocumented
"},"Classes.html#/s:14SwiftyEventBus0B10SubscriberC":{"name":"EventSubscriber","abstract":"Undocumented
"},"Classes/EventSubscription.html":{"name":"EventSubscription","abstract":"Undocumented
"},"Classes.html":{"name":"Classes","abstract":"The following classes are available globally.
"},"Enums.html":{"name":"Enumerations","abstract":"The following enumerations are available globally.
"},"Extensions.html":{"name":"Extensions","abstract":"The following extensions are available globally.
"},"Protocols.html":{"name":"Protocols","abstract":"The following protocols are available globally.
"}}
--------------------------------------------------------------------------------
/docs/docsets/SwiftyEventBus.docset/Contents/Resources/Documents/search.json:
--------------------------------------------------------------------------------
1 | {"Protocols/EventBusSafety.html#/s:14SwiftyEventBus0bC6SafetyP4safeAA0bC12SafePostable_pvp":{"name":"safe","abstract":"Undocumented
","parent_name":"EventBusSafety"},"Protocols/EventPresentable.html#/s:14SwiftyEventBus0B11PresentableP17processIdentifierSSvpZ":{"name":"processIdentifier","abstract":"Undocumented
","parent_name":"EventPresentable"},"Protocols/EventBusSafePostable.html#/s:14SwiftyEventBus0bC12SafePostableP4postyqd__KAA0B11PresentableRd__lF":{"name":"post(_:)","abstract":"Safe post a value to all subscriber,","parent_name":"EventBusSafePostable"},"Protocols/EventBusPostable.html#/s:14SwiftyEventBus0bC8PostableP4postyqd__AA0B11PresentableRd__lF":{"name":"post(_:)","abstract":"
Post a value to all subsctiber
","parent_name":"EventBusPostable"},"Protocols/EventBusObservable.html#/s:14SwiftyEventBus0bC10ObservableP8registerAA0B12SubscriptionCyqd__GAA12DispatchModeO2on_AA0bC8PriorityO8priorityyqd__c07messageB0tAA0B11PresentableRd__lF":{"name":"register(on:priority:messageEvent:)","abstract":"Register a message event for specify DataStruct
","parent_name":"EventBusObservable"},"Protocols/EventBusObservable.html":{"name":"EventBusObservable","abstract":"Undocumented
"},"Protocols/EventBusPostable.html":{"name":"EventBusPostable","abstract":"Undocumented
"},"Protocols/EventBusSafePostable.html":{"name":"EventBusSafePostable","abstract":"Undocumented
"},"Protocols/EventPresentable.html":{"name":"EventPresentable","abstract":"Undocumented
"},"Protocols/EventBusSafety.html":{"name":"EventBusSafety","abstract":"Undocumented
"},"Extensions/Reactive.html#/s:14SwiftyEventBus8registerXeXeF":{"name":"register(_:)","abstract":"Reactive wrapper for register(on:)
","parent_name":"Reactive"},"Extensions/EventBusMiddleWare.html#/s:14SwiftyEventBus0bC10ObservableP8registerAA0B12SubscriptionCyqd__GAA12DispatchModeO2on_AA0bC8PriorityO8priorityyqd__c07messageB0tAA0B11PresentableRd__lF":{"name":"register(on:priority:messageEvent:)","parent_name":"EventBusMiddleWare"},"Extensions/EventBusMiddleWare.html#/s:14SwiftyEventBus0bC10MiddleWareC4safeAA0bC12SafePostable_pvp":{"name":"safe","abstract":"Undocumented
","parent_name":"EventBusMiddleWare"},"Extensions/EventBusDangerMiddleWare.html#/s:14SwiftyEventBus0bC12SafePostableP4postyqd__KAA0B11PresentableRd__lF":{"name":"post(_:)","parent_name":"EventBusDangerMiddleWare"},"Extensions/EventBusPureMiddleWare.html#/s:14SwiftyEventBus0bC8PostableP4postyqd__AA0B11PresentableRd__lF":{"name":"post(_:)","parent_name":"EventBusPureMiddleWare"},"Extensions/EventBusPureMiddleWare.html":{"name":"EventBusPureMiddleWare","abstract":"Undocumented
"},"Extensions/EventBusDangerMiddleWare.html":{"name":"EventBusDangerMiddleWare","abstract":"Undocumented
"},"Extensions/EventBusMiddleWare.html":{"name":"EventBusMiddleWare","abstract":"Undocumented
"},"Extensions/Reactive.html":{"name":"Reactive"},"Enums/DispatchMode.html#/s:14SwiftyEventBus12DispatchModeO4sameA2CmF":{"name":"same","abstract":"Undocumented
","parent_name":"DispatchMode"},"Enums/DispatchMode.html#/s:14SwiftyEventBus12DispatchModeO4mainA2CmF":{"name":"main","abstract":"Undocumented
","parent_name":"DispatchMode"},"Enums/EventBusPriority.html#/s:14SwiftyEventBus0bC8PriorityO5valueACSicACmF":{"name":"value","abstract":"Undocumented
","parent_name":"EventBusPriority"},"Enums/EventBusPriority.html#/s:14SwiftyEventBus0bC8PriorityO3lowACvpZ":{"name":"low","abstract":"Undocumented
","parent_name":"EventBusPriority"},"Enums/EventBusPriority.html#/s:14SwiftyEventBus0bC8PriorityO7defaultACvpZ":{"name":"default","abstract":"Undocumented
","parent_name":"EventBusPriority"},"Enums/EventBusPriority.html#/s:14SwiftyEventBus0bC8PriorityO4highACvpZ":{"name":"high","abstract":"Undocumented
","parent_name":"EventBusPriority"},"Enums/EventBusPostError.html#/s:14SwiftyEventBus0bC9PostErrorO7uselessA2CmF":{"name":"useless","abstract":"Undocumented
","parent_name":"EventBusPostError"},"Enums/EventBusPostError.html":{"name":"EventBusPostError","abstract":"The error for posting event
"},"Enums/EventBusPriority.html":{"name":"EventBusPriority","abstract":"The priority of subscriber to revieve message
"},"Enums/DispatchMode.html":{"name":"DispatchMode","abstract":"The subscribe model when code excuting
"},"Classes/EventSubscription.html#/s:14SwiftyEventBus0B12SubscriptionC7disposeyyF":{"name":"dispose()","abstract":"Undocumented
","parent_name":"EventSubscription"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC0C7defaultACvpZ":{"name":"default","abstract":"The default common EventBus instance
","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC0C6domainSSvp":{"name":"domain","abstract":"The domain string that identify different EventBus instance
","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC0CACSS6domain_tcfc":{"name":"init(domain:)","abstract":"The construction of EventBus
","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC8PostableP4postyqd__AA0B11PresentableRd__lF":{"name":"post(_:)","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC10ObservableP8registerAA0B12SubscriptionCyqd__GAA12DispatchModeO2on_AA0bC8PriorityO8priorityyqd__c07messageB0tAA0B11PresentableRd__lF":{"name":"register(on:priority:messageEvent:)","parent_name":"EventBus"},"Classes/EventBus.html#/s:14SwiftyEventBus0bC0C4safeAA0bC12SafePostable_pvp":{"name":"safe","abstract":"Undocumented
","parent_name":"EventBus"},"Classes/EventBus.html":{"name":"EventBus","abstract":"Undocumented
"},"Classes.html#/s:14SwiftyEventBus0B10SubscriberC":{"name":"EventSubscriber","abstract":"Undocumented
"},"Classes/EventSubscription.html":{"name":"EventSubscription","abstract":"Undocumented
"},"Classes.html":{"name":"Classes","abstract":"The following classes are available globally.
"},"Enums.html":{"name":"Enumerations","abstract":"The following enumerations are available globally.
"},"Extensions.html":{"name":"Extensions","abstract":"The following extensions are available globally.
"},"Protocols.html":{"name":"Protocols","abstract":"The following protocols are available globally.
"}}
--------------------------------------------------------------------------------
/docs/Enums/EventBusPostError.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EventBusPostError Enumeration Reference
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
22 |
23 | SwiftyEventBus Reference
24 |
25 | EventBusPostError Enumeration Reference
26 |
27 |
28 |
29 |
98 |
99 |
100 |
101 | EventBusPostError
102 |
103 |
104 |
public enum EventBusPostError : Error
105 |
106 |
107 |
108 | The error for posting event
109 |
110 |
111 | useless: post a message that no subscriber observing
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 | useless
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
Undocumented
132 |
133 |
134 |
135 |
Declaration
136 |
137 |
Swift
138 |
case useless
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
153 |
154 |
155 |
156 |