| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
I have build an example app to scan some barcodes, but I'm struggling to do a callback with the result of the scan.
I know how it would normally work but I'm failing to get it done when calling the viewController, scanning and then passing the result.
SO far I have tried:
//
// GenericClass.h
// Test
//
// Created by Roelofk on 01/02/2020.
// Copyright © 2020 Roelofk. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CallBack.h"
@interface GenericClass : NSObject
+ (id)sharedManager;
-(void)launchNativeControllerOnKonyForm:(CallBack*) callBack;
@Endo Syunpeiend
and then calling it from the viewController:
if (detectionString != nil)
{
_label.text = detectionString;
CallBack *objcallback = [[CallBack alloc] initWithCallBackObject:objcallback];
//GenericClass *objcallback = [[GenericClass alloc] initWithCallBackObject: objCallback];
[objcallback executeWithArguments:[NSArray arrayWithObjects:@"Test", nil] spawn:YES];
I have added my sample app, could you please take a look???