Moxtra iOS Clip SDK

This quick start guide provides the steps for you to get started quickly with the Moxtra iOS SDK for Chat. The Moxtra Chat module gives you access to a rich messaging service for one on one, group, or topic based conversations.

Create Annotation

Annotate on top of the content (documents, images etc...) and let users save and share the annotated file from your app.

- (void)annotateOnLocalFiles:(NSArray*)filePathArray
                     success:(void(^)(NSString *binderID))success
                     failure:(void(^)(NSError *error))failure;

Name Description
filePathArray Specify the local path to the file.
delegate Callback interface to handle the delegates.
success Callback interface to notify the calling application on successful start of the annotation.
failure Callback interface to notify the calling application with details on error.

Sample code:

//Create annotaion using local content (documents, images etc...)
NSString *imageFilePath = [[NSBundle mainBundle] pathForResource:@"sampleImage"ofType:@"png"];
NSString *pdfFilePath = [[NSBundle mainBundle] pathForResource:@"sample_pdf"ofType:@"pdf"];
NSArray *filePathArray = @[imageFilePath, pdfFilePath];

[[Moxtra sharedClient]
    annotateOnLocalFiles:filePathArray withDelegate:nil
                 success:^(NSString *binderID) {
                    NSLog(@"Start annotating successfully with binderId [%@]", binderID);
               } failure:^(NSError *error) {
                    NSLog(@"Start annotating failed, %@", [NSString stringWithFormat:@"error code [%ld] description: [%@] info [%@]", [error code], [error localizedDescription], [[error userInfo] description]]);