Freigeben über


Transition.CaptureEndValues(TransitionValues) Method

Definition

Captures the values in the end scene for the properties that this transition monitors.

[Android.Runtime.Register("captureEndValues", "(Landroid/transition/TransitionValues;)V", "GetCaptureEndValues_Landroid_transition_TransitionValues_Handler")]
public abstract void CaptureEndValues (Android.Transitions.TransitionValues? transitionValues);
[<Android.Runtime.Register("captureEndValues", "(Landroid/transition/TransitionValues;)V", "GetCaptureEndValues_Landroid_transition_TransitionValues_Handler")>]
abstract member CaptureEndValues : Android.Transitions.TransitionValues -> unit

Parameters

transitionValues
TransitionValues

The holder for any values that the Transition wishes to store. Values are stored in the values field of this TransitionValues object and are keyed from a String value. For example, to store a view's rotation value, a transition might call transitionValues.values.put("appname:transitionname:rotation", view.getRotation()). The target view will already be stored in the transitionValues structure when this method is called.

Attributes

Remarks

Captures the values in the end scene for the properties that this transition monitors. These values are then passed as the endValues structure in a later call to #createAnimator(ViewGroup, TransitionValues, TransitionValues). The main concern for an implementation is what the properties are that the transition cares about and what the values are for all of those properties. The start and end values will be compared later during the #createAnimator(android.view.ViewGroup, TransitionValues, TransitionValues) method to determine what, if any, animations, should be run.

Subclasses must implement this method. The method should only be called by the transition system; it is not intended to be called from external classes.

Java documentation for android.transition.Transition.captureEndValues(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

See also

  • CaptureStartValues(TransitionValues)
  • <xref:Android.Transitions.Transition.CreateAnimator(Android.Views.ViewGroup%2c+Android.Transitions.TransitionValues%2c+Android.Transitions.TransitionValues)>