次の方法で共有


Scene.SetExitAction(IRunnable) Method

Definition

Scenes that are not defined with layout resources or hierarchies, or which need to perform additional steps after those hierarchies are changed to, should set an enter action, and possibly an exit action as well.

[Android.Runtime.Register("setExitAction", "(Ljava/lang/Runnable;)V", "")]
public void SetExitAction (Java.Lang.IRunnable? action);
[<Android.Runtime.Register("setExitAction", "(Ljava/lang/Runnable;)V", "")>]
member this.SetExitAction : Java.Lang.IRunnable -> unit

Parameters

action
IRunnable
Attributes

Remarks

Scenes that are not defined with layout resources or hierarchies, or which need to perform additional steps after those hierarchies are changed to, should set an enter action, and possibly an exit action as well. An exit action will cause Scene to call back into application code to do anything the application needs to do after applicable transitions have captured pre-change values, but before any other scene changes have been applied, such as the new layout (if any) being added to the view hierarchy. After this method is called, the next scene will be entered, including a call to #setEnterAction(Runnable) if an enter action is set.

Java documentation for android.transition.Scene.setExitAction(java.lang.Runnable).

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

See also