鴻蒙OS ListComponent.CachePolicyListener

2022-09-08 17:08 更新

ListComponent.CachePolicyListener

  1. public static interface ListComponent.CachePolicyListener

實(shí)現(xiàn)監(jiān)聽(tīng)以將組件添加到 ListComponentPool。

方法總結(jié)

修飾符和類(lèi)型 方法 描述
void onCachePolicy(ComponentOwner owner) 回收組件時(shí)調(diào)用。代碼 ListComponent 在清除 ComponentOwner 的內(nèi)部數(shù)據(jù)并將組件添加到 ListComponentPool 之前調(diào)用此方法。

方法詳情

onCachePolicy

void onCachePolicy(ComponentOwner owner)

回收組件時(shí)調(diào)用。代碼 ListComponent 在清除 ComponentOwner 的內(nèi)部數(shù)據(jù)并將組件添加到 ListComponentPool 之前調(diào)用此方法。

參數(shù):

參數(shù)名稱(chēng) 參數(shù)描述
owner 表示回收組件的 ComponentOwner。
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)