Subclass that enables C#/JS interoperation.
More...
|
| static void | Send (string hiRpcChannel, object payload) |
| | Send a message to JavaScript through this hiRPC channel.
|
| |
| static HiRpcSubscription | Subscribe (string hiRpcChannel, Action< object > listener) |
| | ☄️ Initialization not required.
Receive messages sent through this hiRPC channel from JavaScript.
|
| |
| static void | Unsubscribe (HiRpcSubscription reference) |
| | ☄️ Initialization not required.
Remove a hiRPC subscription via a HiRpcSubscription instance (returned by HiRpc.Subscribe).
|
| |
| static void | Unsubscribe (string hiRpcChannel, Action< object > listener) |
| | ☄️ Initialization not required.
Remove a hiRPC subscription via a method and a channel.
|
| |
| static void | UnsubscribeFromChannel (string hiRpcChannel) |
| | ☄️ Initialization not required.
Remove all subscriptions related to a single hiRPC channel.
|
| |
| static void | ClearAllSubscriptions () |
| | ☄️ Initialization not required.
Remove all subscriptions from every hiRPC channel.
|
| |
Subclass that enables C#/JS interoperation.
◆ ClearAllSubscriptions()
| static void Dissonity.Api.HiRpc.ClearAllSubscriptions |
( |
| ) |
|
|
inlinestatic |
☄️ Initialization not required.
Remove all subscriptions from every hiRPC channel.
- Exceptions
-
| InvalidOperationException | |
◆ Send()
| static void Dissonity.Api.HiRpc.Send |
( |
string | hiRpcChannel, |
|
|
object | payload ) |
|
inlinestatic |
Send a message to JavaScript through this hiRPC channel.
- Exceptions
-
| InvalidOperationException | |
◆ Subscribe()
| static HiRpcSubscription Dissonity.Api.HiRpc.Subscribe |
( |
string | hiRpcChannel, |
|
|
Action< object > | listener ) |
|
inlinestatic |
☄️ Initialization not required.
Receive messages sent through this hiRPC channel from JavaScript.
- Exceptions
-
| InvalidOperationException | |
◆ Unsubscribe() [1/2]
☄️ Initialization not required.
Remove a hiRPC subscription via a HiRpcSubscription instance (returned by HiRpc.Subscribe).
- Exceptions
-
| InvalidOperationException | |
| ArgumentException | |
◆ Unsubscribe() [2/2]
| static void Dissonity.Api.HiRpc.Unsubscribe |
( |
string | hiRpcChannel, |
|
|
Action< object > | listener ) |
|
inlinestatic |
☄️ Initialization not required.
Remove a hiRPC subscription via a method and a channel.
- Exceptions
-
| InvalidOperationException | |
| ArgumentException | |
◆ UnsubscribeFromChannel()
| static void Dissonity.Api.HiRpc.UnsubscribeFromChannel |
( |
string | hiRpcChannel | ) |
|
|
inlinestatic |
☄️ Initialization not required.
Remove all subscriptions related to a single hiRPC channel.
- Exceptions
-
| InvalidOperationException | |
The documentation for this class was generated from the following file: