Ruyi SDK
Namespaces
Ruyi.SDK.LocalizationService
LocalizationService.Client Class
Client Methods
GetCurrentLanguageAsync Method
GetFileNameAsync Method
GetStringAsync Method
GetStringsAsync Method
HintContextAsync Method
SwitchContextAsync Method
SwitchLanguageAsync Method
Click or drag to resizeClick or drag to resize

LocalizationServiceClientGetFileNameAsync Method

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

Get the file name/path in the language. The search will go through the context and its sub context to find the file name. Eg. If file name is not found in context com.ruyi, then the search will go on to find it in com.ruyi.moduleA and com.ruyi.moduleB.

Namespace:  Ruyi.SDK.LocalizationService
Assembly:  SDK.Gen.ServiceAsync (in SDK.Gen.ServiceAsync.dll) Version: 0.9.3.3995
Syntax
C#
Copy
public Task<string> GetFileNameAsync(
	string filename,
	bool isVirtualPath,
	string context,
	CancellationToken cancellationToken
)

Parameters

filename
Type: SystemString
File name with the path to the language pack root.
isVirtualPath
Type: SystemBoolean
True to get the virtual path, false to get the exact path to the file.
context
Type: SystemString
The context of the file. If null, then while use system context "com.ruyi"
cancellationToken
Type: System.ThreadingCancellationToken

[Missing <param name="cancellationToken"/> documentation for "M:Ruyi.SDK.LocalizationService.LocalizationService.Client.GetFileNameAsync(System.String,System.Boolean,System.String,System.Threading.CancellationToken)"]

Return Value

Type: TaskString

[Missing <returns> documentation for "M:Ruyi.SDK.LocalizationService.LocalizationService.Client.GetFileNameAsync(System.String,System.Boolean,System.String,System.Threading.CancellationToken)"]

See Also

Reference

LocalizationServiceClient Class
Ruyi.SDK.LocalizationService Namespace

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

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