IUIAnimationManager2::Update method (uianimation.h)
Updates the values of all animation variables.
Syntax
HRESULT Update(
[in] UI_ANIMATION_SECONDS timeNow,
[out, optional] UI_ANIMATION_UPDATE_RESULT *updateResult
);
Parameters
[in] timeNow
The current system time. This parameter must be greater than or equal to 0.0.
[out, optional] updateResult
The result of the update. You can omit this parameter from calls to this method.
Return value
Returns S_OK if successful; otherwise an HRESULT error code. See Windows Animation Error Codes for a list of error codes.
Remarks
Calling this method advances the animation manager to timeNow, changes the status of all storyboards as necessary, and updates any animation variables to appropriate interpolated values. If the animation manager is paused, no storyboards or variables are updated. If the animation mode is UI_ANIMATION_MODE_DISABLED, all scheduled storyboards finish playing immediately. If the values of any variables change during this call, the value of updateResult is UI_ANIMATION_UPDATE_VARIABLES_CHANGED; otherwise, it is UI_ANIMATION_UPDATE_NO_CHANGE.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | uianimation.h |
DLL | UIAnimation.dll |