DcsUIImageGalleryView

Description

The image gallery view, inheriting UIView.

Members

Type Name Description
Property var imageGalleryViewmode:DcsImageGalleryViewModeEnum Gets or sets the view mode. The default is DIVME_MULTIPLE.
delegate func onSingleTap(sender:Any, index:Int) -> Void Singe click event. It is fired under the view mode DIVME_MULTIPLE when an image with a specified index in the image gallery view is clicked.
delegate func onLongPress(sender:Any , index:Int) ->Void Long press event. It is fired under the view mode DIVME_MULTIPLE when an image with a specified index in the image gallery view is long pressed.
Function func enterManualSortMode()->Void Enables the manual sorting function.
Function func enterSelectMode()->Void Enables the image selection function.
Function func enterNormalMode()->Void Enters the normal mode.
Property var selectedIndices:[Any] Gets or sets the indices of the currently selected images or documents.
delegate func onSelectChanged(sender:Any ,selectedIndice:[Any]) ->Void The event is fired when the index of the seleceted image or document in DcsBuffer is changed. It returns the index of the selected image or document in DcsBuffer after the change.
enum DcsImageGalleryViewModeEnum

DIVME_MULTIPLE = 0x0001 Mulitiple mode.
DIVME_SINGLE Single mode.
var selectedIndices:[Any]
Description Gets or sets the indices of the currently selected images or documents.
Remarks The setting is only available when the select mode is enabled. Otherwise, the exception DcsSelectModeNotEnabledException will be thrown.
Is this page helpful?

Leave a Reply

Your email address will not be published.