IUIAnimationManager2::Update method

Updates the values of all animation variables.

Syntax


HRESULT Update(
  [in]             UI_ANIMATION_SECONDS timeNow,
  [out, optional]  UI_ANIMATION_UPDATE_RESULT *updateResult
);

Parameters

timeNow [in]

The current system time. This parameter must be greater than or equal to 0.0.

updateResult [out, optional]

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

Minimum supported client

Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported [desktop apps | Windows Store apps]

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

IID

IID_IUIAnimationManager2 is defined as D8B6F7D4-4109-4d3f-ACEE-879926968CB1

See also

IUIAnimationManager2
IUIAnimationManager2::Pause
IUIAnimationManager2::Resume
IUIAnimationManager::SetAnimationMode
UI_ANIMATION_MODE
UI_ANIMATION_UPDATE_RESULT

 

 

Community Additions

ADD
Show:
© 2014 Microsoft