toggle menu
Android-IMKit-SDK
5.12.0
io.rong.imkit
switch theme
search in API
Android-IMKit-SDK
/
io.rong.imkit.widget.adapter
/
ProviderManager
Provider
Manager
public
class
ProviderManager
<
T
>
Members
Constructors
Provider
Manager
Link copied to clipboard
public
void
ProviderManager
(
)
public
void
ProviderManager
(
List
<
IViewProvider<T>
>
providerList
)
Functions
add
Provider
Link copied to clipboard
public
void
addProvider
(
IViewProvider<T> provider
)
public
void
addProvider
(
int viewType
,
IViewProvider<T> provider
)
get
Item
View
Type
Link copied to clipboard
public
int
getItemViewType
(
IViewProvider<T> provider
)
public
int
getItemViewType
(
T
item
,
int position
)
get
Provider
Link copied to clipboard
public
IViewProvider<T>
getProvider
(
T
item
)
public
IViewProvider<T>
getProvider
(
int viewType
)
get
Provider
Count
Link copied to clipboard
public
int
getProviderCount
(
)
remove
Provider
Link copied to clipboard
public
void
removeProvider
(
IViewProvider<T> provider
)
public
void
removeProvider
(
int itemType
)
replace
Provider
Link copied to clipboard
public
void
replaceProvider
(
Class
oldProviderClass
,
IViewProvider<T> provider
)
set
Default
Provider
Link copied to clipboard
public
void
setDefaultProvider
(
IViewProvider<T> defaultProvider
)
设置默认模板。当找不到和 viewType 对应的模板时,使用此默认模板进行 ui 处理。