Ruyi SDK
Namespaces
Ruyi
RuyiSDK Class
RuyiSDK Properties
RuyiSDK Methods
Click or drag to resizeClick or drag to resize

RuyiSDK Class

[This is preliminary documentation and is subject to change.]

The main class used to communicate with the Ruyi platform.
Inheritance Hierarchy
SystemObject
  RuyiRuyiSDK

Namespace:  Ruyi
Assembly:  RuyiSDK (in RuyiSDK.dll) Version: 0.9.3.3995 (0.9.3.3995)
Syntax
C#
Copy
public class RuyiSDK : IDisposable

The RuyiSDK type exposes the following members.

Properties
  NameDescription
Public propertyInputMgr
Input-related services
Public propertyL10NService
Localization service
Public propertyMedia
Multimedia-related services
Public propertyOverlayService
the overlay service
Public propertyRuyiNetService
Online functionality
Public propertySettingSys
Setting system
Public propertySpeechService
Speech service
Public propertyCode exampleStorage
Storage service
Public propertySubscriber
To subscribe to published topics.
Public propertyUserService
User-related services
Top
Methods
  NameDescription
Public methodStatic memberCreateInstance
Create a new SDK instance with the given context.
Public methodDispose
Dispose the SDK instance, don't miss this after SDK usage.
Public methodUpdate
Update loop for all service clients that need it.
Top
Remarks
Update must be called periodically (e.g. each frame) for all service clients to function correctly.
Examples
Copy
var sdkCtx = new RuyiSDKContext { endpoint = RuyiSDKContext.Endpoint.Console, EnabledFeatures = RuyiSDK.SDKFeatures.All };
using (var sdk = RuyiSDK.CreateInstance(sdkCtx))
{
    while (IsGameRunning()) { sdk.Update(); }
}
See Also

Reference

Ruyi Namespace

Copyright ©Zhongshan Subor Advanced Technology Co., Ltd. 2017-2018, All right reserved

Send comments on this topic to dev-support@playruyi.com