RuyiSDKStorage Property |
[This is preliminary documentation and is subject to change.]
Namespace: Ruyi
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 }