IUiTranslationStateCallback.OnStarted Method

Definition

Overloads

OnStarted(ULocale, ULocale)

The system is requesting translation of the UI from sourceLocale to targetLocale.

OnStarted(ULocale, ULocale, String)

The system is requesting translation of the UI from sourceLocale to targetLocale.

OnStarted(ULocale, ULocale)

The system is requesting translation of the UI from sourceLocale to 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

Parameters

sourceLocale
ULocale

ULocale the UI is being translated from.

targetLocale
ULocale

ULocale the UI is being translated to.

Attributes

Remarks

The system is requesting translation of the UI from sourceLocale to targetLocale.

This is also called if either the requested sourceLocale or targetLocale has changed.

Apps should implement #onStarted(ULocale, ULocale, String) instead if they need the name of the package that owns the activity being translated.

Apps with minSdkVersion lower than android.os.Build.VERSION_CODES#TIRAMISU<em>must</em> implement this method if they want to handle the "started" event.

Java documentation for android.view.translation.UiTranslationStateCallback.onStarted(android.icu.util.ULocale, android.icu.util.ULocale).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OnStarted(ULocale, ULocale, String)

The system is requesting translation of the UI from sourceLocale to 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

Parameters

sourceLocale
ULocale

ULocale the UI is being translated from.

targetLocale
ULocale

ULocale the UI is being translated to.

packageName
String

The name of the package that owns the activity being translated.

Attributes

Remarks

The system is requesting translation of the UI from sourceLocale to targetLocale.

This is also called if either the requested sourceLocale or targetLocale has changed.

Apps <em>may</em> implement #onStarted(ULocale, ULocale) instead if they don't need the name of the package that owns the activity being translated.

Apps with minSdkVersion lower than android.os.Build.VERSION_CODES#TIRAMISU<em>must</em> implement #onStarted(ULocale, ULocale) if they want to handle the "started" event.

Java documentation for android.view.translation.UiTranslationStateCallback.onStarted(android.icu.util.ULocale, android.icu.util.ULocale, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to