onSelectChanged

Description

The event is fired when the indices of the seleceted images or documents in DcsBuffer are changed. It returns the indices of the selected image or document in DcsBuffer after the change.

Syntax

- (void) onSelectChanged: (id) sender
selectedIndices: (NSArray *) indices

Parameters

ID sender: The current UIImageGalleryView object that triggers the event.
NSArray * 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 *)selectedIndices{
    NSLog(@"onSelectChanged fired and index: %@", selectedIndices);
}

@end

Is this page helpful?

Leave a Reply

Your email address will not be published.