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

LocalizationServiceClientSwitchLanguageAsync Method

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

Switch language to specified one.

Namespace:  Ruyi.SDK.LocalizationService
Assembly:  SDK.Gen.ServiceAsync (in SDK.Gen.ServiceAsync.dll) Version: 0.9.3.3995
Syntax
C#
Copy
public Task<bool> SwitchLanguageAsync(
	string language,
	bool loadAllContext,
	bool removeOld,
	CancellationToken cancellationToken
)

Parameters

language
Type: SystemString
Which language to switch to. Should be the name of language code. Eg. en-US, zh-CN
loadAllContext
Type: SystemBoolean
Whether or not to load all context of the language
removeOld
Type: SystemBoolean
Whether or not to remove old language
cancellationToken
Type: System.ThreadingCancellationToken

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

Return Value

Type: TaskBoolean

[Missing <returns> documentation for "M:Ruyi.SDK.LocalizationService.LocalizationService.Client.SwitchLanguageAsync(System.String,System.Boolean,System.Boolean,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