Interface IItemSource

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll

Base interface for encapsulated data source in RecyclerView.

C#
Copy
public interface IItemSource : IDisposable

Properties

View Source

Count

Count of data source.

Declaration
C#
Copy
int Count { get; }
Property Value
Type Description
Int32
View Source

HasFooter

Flag of Footer existence.

Declaration
C#
Copy
bool HasFooter { get; set; }
Property Value
Type Description
Boolean
View Source

HasHeader

Flag of header existence.

Declaration
C#
Copy
bool HasHeader { get; set; }
Property Value
Type Description
Boolean

Methods

View Source

GetItem(Int32)

Item object in position.

Declaration
C#
Copy
object GetItem(int position)
Parameters
Type Name Description
Int32 position
Returns
Type Description
Object
View Source

GetPosition(Object)

Position integer value of data object.

Declaration
C#
Copy
int GetPosition(object item)
Parameters
Type Name Description
Object item
Returns
Type Description
Int32
View Source

IsFooter(Int32)

Boolean checker for position is footer or not. last index will be footer if footer exist. warning: footer will be place original data count or data count + 1.

Declaration
C#
Copy
bool IsFooter(int position)
Parameters
Type Name Description
Int32 position

The position for checking footer.

Returns
Type Description
Boolean
View Source

IsHeader(Int32)

Boolean checker for position is header or not. 0 index will be header if header exist. warning: if header exist, all item index will be increased.

Declaration
C#
Copy
bool IsHeader(int position)
Parameters
Type Name Description
Int32 position

The position for checking header.

Returns
Type Description
Boolean

Extension Methods