当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 1 Fork 5.3K

fork_ohos_wj / docs
关闭

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ohos-animator.md 12.58 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

OHOS::Animator

Overview

Related Modules:

Graphic

Description:

Represents an animator.

This class is used to set the animator attributes, such as the duration, whether an animator is repeated, start and stop of an animator.

Since:

1.0

Version:

1.0

Summary

Public Types

Public Type Name

Description

: uint8_t { STOP, START, PAUSE, RUNNING }

Enumerates the states of this animator.

Public Member Functions

Public Member Function Name

Description

Animator ()

A default constructor used to create an Animator instance.

Animator (AnimatorCallback *callback, UIView *view, uint32_t time, bool repeat)

A constructor used to create an Animator instance.

~Animator ()

virtual

A destructor used to delete the Animator instance.

Start ()

void

Starts this animator.

Stop ()

void

Stops this animator.

Pause ()

void

Pauses this animator.

Resume ()

void

Resumes this animator from where it was paused.

GetState () const

uint8_t

Obtains the current state of this animator.

SetState (uint8_t state)

void

Sets the current state for this animator.

GetTime () const

uint32_t

Obtains the total duration of this animator.

SetTime (uint32_t time)

void

Sets the total duration for this animator.

GetRunTime () const

uint32_t

Obtains the running time of this animator.

SetRunTime (uint32_t runTime)

void

Sets the running time for this animator.

IsRepeat () const

bool

Checks whether this animator is repeated.

operator new (size_t size)

void *

Overrides the new function.

operator delete (void *p)

void

Overrides the delete function.

1
https://gitee.com/fork_ohos_wj/docs.git
git@gitee.com:fork_ohos_wj/docs.git
fork_ohos_wj
docs
docs
master

搜索帮助