次の方法で共有


IUiTranslationStateCallback.OnFinished Method

Definition

Overloads

OnFinished()

The UI Translation session has ended.

OnFinished(String)

The UI Translation session has ended.

OnFinished()

The UI Translation session has ended.

[Android.Runtime.Register("onFinished", "()V", "GetOnFinishedHandler:Android.Views.Translation.IUiTranslationStateCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public void OnFinished ();
[<Android.Runtime.Register("onFinished", "()V", "GetOnFinishedHandler:Android.Views.Translation.IUiTranslationStateCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnFinished : unit -> unit
Attributes

Remarks

The UI Translation session has ended.

Apps should implement #onFinished(String) as well if they need the name of the package that owns the activity being translated.

Java documentation for android.view.translation.UiTranslationStateCallback.onFinished().

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

OnFinished(String)

The UI Translation session has ended.

[Android.Runtime.Register("onFinished", "(Ljava/lang/String;)V", "GetOnFinished_Ljava_lang_String_Handler:Android.Views.Translation.IUiTranslationStateCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)]
public virtual void OnFinished (string packageName);
[<Android.Runtime.Register("onFinished", "(Ljava/lang/String;)V", "GetOnFinished_Ljava_lang_String_Handler:Android.Views.Translation.IUiTranslationStateCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)>]
abstract member OnFinished : string -> unit
override this.OnFinished : string -> unit

Parameters

packageName
String

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

Attributes

Remarks

The UI Translation session has ended.

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

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