Unity SDK
This guide will walk you through the necessary steps to get started with SendingNetwork requests using the SDK.
Prerequisites
Before you begin, please ensure that you have the following prerequisites:
.NET Standard 2.0 or greater installed on your development machine.
Installation
To install the SDK, you can use either NuGet package manage:
dotnet add package SDN.SdkUse the SDK in your app
1. Create
Use SDNClientFactory to create an instance of SDNClient.
var factory = new SDNClientFactory();
ISDNClient client = factory.Create();2.Login
Currently, SDNClient supports only wallet account login.
3. Start listening for incoming events
To listen for the incoming room events you need to subscribe to OnSDNRoomEventsReceived.
4. Call API functions
Examples
For a complete example, refer to Sample.cs. You can also clone this repository and run SDN.Sdk.Sample.Console.
Last updated