Ruyi SDK
Namespaces
Ruyi
RuyiSDK Class
RuyiSDK Properties
InputMgr Property
L10NService Property
Media Property
OverlayService Property
RuyiNetService Property
SettingSys Property
SpeechService Property
Storage Property
Subscriber Property
UserService Property
Click or drag to resizeClick or drag to resize

RuyiSDKStorage Property

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

Storage service

Namespace:  Ruyi
Assembly:  RuyiSDK (in RuyiSDK.dll) Version: 0.9.3.3995 (0.9.3.3995)
Syntax
C#
Copy
public StorageLayerServiceClient Storage { get; }

Property Value

Type: StorageLayerServiceClient
Remarks
Must set Storage in EnabledFeatures.
Examples
Copy
var sdkCtx = new RuyiSDKContext {
    endpoint = RuyiSDKContext.Endpoint.Console,
    EnabledFeatures = RuyiSDK.SDKFeatures.Basic | RuyiSDK.SDKFeatures.Storage // or `All`
};
using (var sdk = RuyiSDK.CreateInstance(sdkCtx))
{
    // `AppId` in your RuyiManifest.json- same as app id you received from Subor Team or on the dev portal
    var appid = "18258";
    var writablePath = sdk.Storage.GetLocalPath(Ruyi.SDK.Constants.ConstantsSDKDataTypesConstants.DATA_DRIVER_TAG + appid);
    // Write files to writable path

    var readonlyPath = sdk.Storage.GetLocalPath(Ruyi.SDK.Constants.ConstantsSDKDataTypesConstants.HDD0_DRIVER_TAG + appid);
    // Read files from read-only path
}
See Also

Reference

RuyiSDK Class
Ruyi Namespace

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

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