set Translate Strategy
public final Unit setTranslateStrategy(List<ChannelIdentifier> channelIdentifiers, TranslateStrategy strategy, ErrorHandler handler)
val identifiers = listOf(* ChannelIdentifier(ChannelType.PRIVATE, "userId1"),
ChannelIdentifier(ChannelType.GROUP, "groupId1"),
```kotlin
val identifiers = listOf(
ChannelIdentifier(ChannelType.PRIVATE, "userId1"),
ChannelIdentifier(ChannelType.GROUP, "groupId1"),
)
NCEngine.translate.setTranslateStrategy(identifiers, TranslateStrategy.AUTO_ON) { error ->
if (error == null) {
@param channelIdentifiers Channel identifier list
}
}Content copied to clipboard
Parameters
channel Identifiers
频道标识列表
strategy
翻译策略
========================================