TransitionManager.SetTransition TransitionManager.SetTransition Method

Definition

Overloads

SetTransition(Scene, Transition) SetTransition(Scene, Transition)

Sets a specific transition to occur when the given scene is entered.

SetTransition(Scene, Scene, Transition) SetTransition(Scene, Scene, Transition)

Sets a specific transition to occur when the given pair of scenes is exited/entered.

SetTransition(Scene, Transition) SetTransition(Scene, Transition)

Sets a specific transition to occur when the given scene is entered.

[Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Transition_Handler")]
public virtual void SetTransition (Android.Transitions.Scene scene, Android.Transitions.Transition transition);
abstract member SetTransition : Android.Transitions.Scene * Android.Transitions.Transition -> unit
override this.SetTransition : Android.Transitions.Scene * Android.Transitions.Transition -> unit

Parameters

scene
Scene Scene

The scene which, when applied, will cause the given transition to run.

transition
Transition Transition

The transition that will play when the given scene is entered. A value of null will result in the default behavior of using the default transition instead.

Remarks

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.

SetTransition(Scene, Scene, Transition) SetTransition(Scene, Scene, Transition)

Sets a specific transition to occur when the given pair of scenes is exited/entered.

[Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Scene_Landroid_transition_Transition_Handler")]
public virtual void SetTransition (Android.Transitions.Scene fromScene, Android.Transitions.Scene toScene, Android.Transitions.Transition transition);
abstract member SetTransition : Android.Transitions.Scene * Android.Transitions.Scene * Android.Transitions.Transition -> unit
override this.SetTransition : Android.Transitions.Scene * Android.Transitions.Scene * Android.Transitions.Transition -> unit

Parameters

fromScene
Scene Scene

The scene being exited when the given transition will be run

toScene
Scene Scene

The scene being entered when the given transition will be run

transition
Transition Transition

The transition that will play when the given scene is entered. A value of null will result in the default behavior of using the default transition instead.

Remarks

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