Click or drag to resize

IRecyclableGridScrollContentDataProvider Interface

Controller script should inherits this callback to answer the information to calculate grid layout for RecyclableGridScrollLayout.

Namespace:  AndroidLocalGalleryPlugin
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public interface IRecyclableGridScrollContentDataProvider

The IRecyclableGridScrollContentDataProvider type exposes the following members.

Properties
  NameDescription
Public propertyDataCount
Gets the data count.
Top
Methods
  NameDescription
Public methodGetItem

Gets the recyclableItem(RectTransform) to manage the RecyclableGridScrollContent.

Make a recyclableItem when RecyclableItemsScrollContent.initialize(this, true) is called.

At first, recyclableItem is null so you should instantiate the recyclableItem.

You have to update the item information like the text, thumbnail, onClickListener and etc before you return.

Public methodGetItemHeight
Gets the height of the item.
Public methodGetItemWidth
Gets the width of the item.
Top
See Also