Share via


Transition.EpicenterCallback.OnGetEpicenter(Transition) Method

Definition

Implementers must override to return the epicenter of the Transition in screen coordinates.

[Android.Runtime.Register("onGetEpicenter", "(Landroid/transition/Transition;)Landroid/graphics/Rect;", "GetOnGetEpicenter_Landroid_transition_Transition_Handler")]
public abstract Android.Graphics.Rect? OnGetEpicenter (Android.Transitions.Transition? transition);
[<Android.Runtime.Register("onGetEpicenter", "(Landroid/transition/Transition;)Landroid/graphics/Rect;", "GetOnGetEpicenter_Landroid_transition_Transition_Handler")>]
abstract member OnGetEpicenter : Android.Transitions.Transition -> Android.Graphics.Rect

Parameters

transition
Transition

The transition for which the epicenter applies.

Returns

The Rect region of the epicenter of transition or null if there is no epicenter.

Attributes

Remarks

Implementers must override to return the epicenter of the Transition in screen coordinates. Transitions like android.transition.Explode depend upon an epicenter for the Transition. In Explode, Views move toward or away from the center of the epicenter Rect along the vector between the epicenter and the center of the View appearing and disappearing. Some Transitions, such as android.transition.Fade pay no attention to the epicenter.

Java documentation for android.transition.Transition.EpicenterCallback.onGetEpicenter(android.transition.Transition).

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