語言

IUiTranslationStateCallback.OnStarted 方法

定義

多載

名稱 Description
OnStarted(ULocale, ULocale)

系統正在請求將 UI 從 sourceLocale 轉換到 targetLocale。

OnStarted(ULocale, ULocale, String)

系統正在請求將 UI 從 sourceLocale 轉換到 targetLocale。

OnStarted(ULocale, ULocale)

系統正在請求將 UI 從 sourceLocale 轉換到 targetLocale。

[Android.Runtime.Register("onStarted", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;)V", "GetOnStarted_Landroid_icu_util_ULocale_Landroid_icu_util_ULocale_Handler:Android.Views.Translation.IUiTranslationStateCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public virtual void OnStarted(Android.Icu.Util.ULocale sourceLocale, Android.Icu.Util.ULocale targetLocale);
[<Android.Runtime.Register("onStarted", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;)V", "GetOnStarted_Landroid_icu_util_ULocale_Landroid_icu_util_ULocale_Handler:Android.Views.Translation.IUiTranslationStateCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnStarted : Android.Icu.Util.ULocale * Android.Icu.Util.ULocale -> unit
override this.OnStarted : Android.Icu.Util.ULocale * Android.Icu.Util.ULocale -> unit

參數

sourceLocale
ULocale

ULocale 使用者介面是從

targetLocale
ULocale

ULocale 介面正在被轉換成。

屬性

備註

系統正在請求將 UI 從 sourceLocale 轉換到 targetLocale。

如果請求的或sourceLocaletargetLocale已變更,也會稱為此。

如果應用程式需要擁有被翻譯活動的套件名稱,應該直接實作 #onStarted(ULocale, ULocale, String) 。

如果 minSdkVersion android.os.Build.VERSION_CODES#TIRAMISU<低於 em>,應用程式必須</em> 實作這個方法,才能處理「開始」事件。

Java 文件 android.view.translation.UiTranslationStateCallback.onStarted(android.icu.util.ULocale, android.icu.util.ULocale)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

OnStarted(ULocale, ULocale, String)

系統正在請求將 UI 從 sourceLocale 轉換到 targetLocale。

[Android.Runtime.Register("onStarted", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;Ljava/lang/String;)V", "GetOnStarted_Landroid_icu_util_ULocale_Landroid_icu_util_ULocale_Ljava_lang_String_Handler:Android.Views.Translation.IUiTranslationStateCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)]
public virtual void OnStarted(Android.Icu.Util.ULocale sourceLocale, Android.Icu.Util.ULocale targetLocale, string packageName);
[<Android.Runtime.Register("onStarted", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;Ljava/lang/String;)V", "GetOnStarted_Landroid_icu_util_ULocale_Landroid_icu_util_ULocale_Ljava_lang_String_Handler:Android.Views.Translation.IUiTranslationStateCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)>]
abstract member OnStarted : Android.Icu.Util.ULocale * Android.Icu.Util.ULocale * string -> unit
override this.OnStarted : Android.Icu.Util.ULocale * Android.Icu.Util.ULocale * string -> unit

參數

sourceLocale
ULocale

ULocale 使用者介面是從

targetLocale
ULocale

ULocale 介面正在被轉換成。

packageName
String

被翻譯活動的套件名稱。

屬性

備註

系統正在請求將 UI 從 sourceLocale 轉換到 targetLocale。

如果請求的或sourceLocaletargetLocale已變更,也會稱為此。

< >如果應用程式不需要擁有該活動的套件名稱,他們可能會</他們>會自動實作#onStarted(ULocale, ULocale)。

minSdkVersion 低於 android.os.Build.VERSION_CODES#TIRAMISUem 的應用程式,如果想處理「開始」事件,必須</em> 實作<。>#onStarted(ULocale, ULocale)

Java 文件 android.view.translation.UiTranslationStateCallback.onStarted(android.icu.util.ULocale, android.icu.util.ULocale, java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於