DcsUIImageGalleryView

Description

A class for the image gallery view, inheriting UIView.

Members

Type Name Description
Property DcsImageGalleryViewModeEnum imageGalleryViewmode Gets or sets the view mode. The default is DIVME_MULTIPLE.
delegate (void) onSingleTap: (id) sender
index: (NSInteger) index
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 (void) onLongPress: (id) sender
index: (NSInteger) index
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.
Method (void) enterManualSortMode Enables the manual sorting function.
Method (void) enterSelectMode Enables the image selection function.
Method (void) enterNormalMode Enters the normal mode.
Property NSMutableArray * selectedIndices Gets or sets the indices of the currently selected images or documents.
delegate (void) onSelectChanged: (id) sender
selectedIndices : (NSArray *) indices
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.
typedef enum DcsImageGalleryViewModeEnum
DIVME_MULTIPLE = 0x0001 Mulitiple mode.
DIVME_SINGLE Single mode.
(nonatomic, strong) NSMutableArray selectedIndices
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.