다음을 통해 공유


IUiTranslationStateCallback.OnResumed Method

Definition

Overloads

OnResumed(ULocale, ULocale)

The system is requesting that the application restore from the temporarily paused state and show the content in the translated language.

OnResumed(ULocale, ULocale, String)

The system is requesting that the application restore from the temporarily paused state and show the content in the translated language.

OnResumed(ULocale, ULocale)

The system is requesting that the application restore from the temporarily paused state and show the content in the translated language.

[Android.Runtime.Register("onResumed", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;)V", "GetOnResumed_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 OnResumed (Android.Icu.Util.ULocale sourceLocale, Android.Icu.Util.ULocale targetLocale);
[<Android.Runtime.Register("onResumed", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;)V", "GetOnResumed_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 OnResumed : Android.Icu.Util.ULocale * Android.Icu.Util.ULocale -> unit
override this.OnResumed : 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 that the application restore from the temporarily paused state and show the content in the translated language.

Apps should implement #onResumed(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 "resumed" event.

Java documentation for android.view.translation.UiTranslationStateCallback.onResumed(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

OnResumed(ULocale, ULocale, String)

The system is requesting that the application restore from the temporarily paused state and show the content in the translated language.

[Android.Runtime.Register("onResumed", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;Ljava/lang/String;)V", "GetOnResumed_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 OnResumed (Android.Icu.Util.ULocale sourceLocale, Android.Icu.Util.ULocale targetLocale, string packageName);
[<Android.Runtime.Register("onResumed", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;Ljava/lang/String;)V", "GetOnResumed_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 OnResumed : Android.Icu.Util.ULocale * Android.Icu.Util.ULocale * string -> unit
override this.OnResumed : 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 that the application restore from the temporarily paused state and show the content in the translated language.

Apps <em>may</em> implement #onResumed(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 #onResumed(ULocale, ULocale) if they want to handle the "resumed" event.

Java documentation for android.view.translation.UiTranslationStateCallback.onResumed(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