onSelectChanged

Description

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.

Syntax

- (void) onSelectChanged: (id) sender
selectedIndices: (NSInteger) indices

Parameters

ID sender: The current DcsUIImageGalleryView object that triggers the event.
NSInteger indices: The indices of selected images or documents.

Return value

void

Example


@interface ViewController ()<DcsUIImageGalleryViewDelegate>{
    DcsView *dcsView;
}
@end
 
@implementation ViewController
 
- (void)viewDidLoad {
    [super viewDidLoad];
     
    dcsView = [[DcsView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
 
    dcsView.imageGalleryView.delegate = self; 
    [self.view addSubview:dcsView];

}

- (void)onSelectChanged:(NSArray *)selectedIndice{
    NSLog(@"onSelectChanged fired and index: %@", selectedIndice);
}

@end