Udostępnij za pośrednictwem


Transition.IsTransitionRequired(TransitionValues, TransitionValues) Method

Definition

Returns whether or not the transition should create an Animator, based on the values captured during #captureStartValues(TransitionValues) and #captureEndValues(TransitionValues).

[Android.Runtime.Register("isTransitionRequired", "(Landroid/transition/TransitionValues;Landroid/transition/TransitionValues;)Z", "GetIsTransitionRequired_Landroid_transition_TransitionValues_Landroid_transition_TransitionValues_Handler", ApiSince=23)]
public virtual bool IsTransitionRequired (Android.Transitions.TransitionValues? startValues, Android.Transitions.TransitionValues? endValues);
[<Android.Runtime.Register("isTransitionRequired", "(Landroid/transition/TransitionValues;Landroid/transition/TransitionValues;)Z", "GetIsTransitionRequired_Landroid_transition_TransitionValues_Landroid_transition_TransitionValues_Handler", ApiSince=23)>]
abstract member IsTransitionRequired : Android.Transitions.TransitionValues * Android.Transitions.TransitionValues -> bool
override this.IsTransitionRequired : Android.Transitions.TransitionValues * Android.Transitions.TransitionValues -> bool

Parameters

startValues
TransitionValues

the values from captureStartValues, This may be null if the View did not exist in the start state.

endValues
TransitionValues

the values from captureEndValues. This may be null if the View did not exist in the end state.

Returns

Attributes

Remarks

Returns whether or not the transition should create an Animator, based on the values captured during #captureStartValues(TransitionValues) and #captureEndValues(TransitionValues). The default implementation compares the property values returned from #getTransitionProperties(), or all property values if getTransitionProperties() returns null. Subclasses may override this method to provide logic more specific to the transition implementation.

Java documentation for android.transition.Transition.isTransitionRequired(android.transition.TransitionValues, android.transition.TransitionValues).

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