Udostępnij za pośrednictwem


Scene.SetEnterAction(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("setEnterAction", "(Ljava/lang/Runnable;)V", "")]
public void SetEnterAction (Java.Lang.IRunnable? action);
[<Android.Runtime.Register("setEnterAction", "(Ljava/lang/Runnable;)V", "")>]
member this.SetEnterAction : Java.Lang.IRunnable -> unit

Parameters

action
IRunnable

The runnable whose Runnable#run() run() method will be called when this scene is entered

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 enter action will cause Scene to call back into application code to do anything else the application needs after transitions have captured pre-change values and after any other scene changes have been applied, such as the layout (if any) being added to the view hierarchy. After this method is called, Transitions will be played.

Java documentation for android.transition.Scene.setEnterAction(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