ohos.utils.Sequenceablepublic class TileEntity
extends java.lang.Object
implements ohos.utils.Sequenceable
TileEntity object.
When TileAbility#onStatusChanged(TileStatus) is invoked, generally a TileEntity object is returned
for the system to load the tile content if the tile is in the TileStatus#TILE_UPDATE or
TileStatus#TILE_SELECTED state.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
TileEntity.Builder |
A builder class for
TileEntity objects holding the tile content. |
| 构造器 | 说明 |
|---|---|
TileEntity() |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
java.util.List<TileAnimationData> |
getAnimationList() |
Obtains the animation list of this tile.
|
ohos.agp.components.ComponentProvider |
getTileComponent() |
Obtains a
ComponentProvider object of this tile. |
long |
getUpdatedDelay() |
Obtains the delay in updating this tile.
|
boolean |
marshalling(ohos.utils.Parcel parcel) |
|
boolean |
unmarshalling(ohos.utils.Parcel parcel) |
public long getUpdatedDelay()
After the delay elapses, TileAbility#onStatusChanged(TileStatus) is invoked with
TileStatus#TILE_UPDATE
passed from the TileAbility.
public ohos.agp.components.ComponentProvider getTileComponent()
ComponentProvider object of this tile.
After obtaining the object, the system loads it to the screen of this tile.ComponentProvider object.public java.util.List<TileAnimationData> getAnimationList()
A tile may have multiple animations, each of which is represented by a TileAnimationData object.
TileAnimationData objects.public boolean marshalling(ohos.utils.Parcel parcel)
marshalling 在接口中 ohos.utils.Sequenceablepublic boolean unmarshalling(ohos.utils.Parcel parcel)
unmarshalling 在接口中 ohos.utils.Sequenceable