Zebra Scanner SDK for iOS

HoomanYazdiHoomanYazdi USMember ✭✭

Hi,

I am creating a binding project for Zebra Scanner SDK. The binding project compiles with no error but when I create an instance of it in my project, it's null. Any idea why??????????????

Here is the SDK Help link.
https://atgsupportcentral.motorolasolutions.com/content/emb/docs/manuals/MN001834A01a.pdf

Here is the code

SbtSdkFactory.h

#import <Foundation/Foundation.h>
#import "ISbtSdkApi.h"

@interface SbtSdkFactory : NSObject

+(id<ISbtSdkApi>)createSbtSdkApiInstance;

@end

ApiDefinition.cs

    [BaseType (typeof(NSObject))]
    interface SbtSdkFactory
    {
        // +(id<ISbtSdkApi>)createSbtSdkApiInstance;
        [Static]
        [Export ("createSbtSdkApiInstance")]
        [Abstract]
        ISbtSdkApi CreateSbtSdkApiInstance { get; }
        //ISbtSdkApi CreateSbtSdkApiInstance();
    }

Usage

var myApi = SbtSdkFactory.CreateSbtSdkApiInstance;

The problem is myApi is null after running above code. Any idea where the problem is?

Answers

Sign In or Register to comment.