Example for Objective-C (iOS) Client by Custom Development

Execute Example "Manage Item by Barcode" to create Endpoint beforehand.

First, install Dropbox and create account. Next, office will set up shared folder for the account. Then notification will be sent to the account for the shared forlder. Please accept it by pushing OK. By doing that, files will be downloaded into Dropbox folder in local PC. (This step is as same as "Example for Edit or Add Endpoint by Custom Development Option".)

Then, add Project Output Setting for Objective-C Client. Add settings for each Header and Source.

Start Build. (See Step 5 on Quick Start Guide about how to do it)

After Build, some classes will be created to call proxy from Objective-C. Then, file is saved in Dropbox's Shared Folder.

Then, please add those files and another files which is delivered separatedly, then you can access endpoint easily.

implement OnFinshABCDelegate delegate to get result by asynchronous.
The name of delegate is different from functions. You can see it on the comment of each output source.

Example:

@interface ViewController : UIViewController <OnFinshABCDelegate>

Then, Add function into the class based on the delegate OnFinshABCDelegate definition:

- (void)onFinishABC:(TESTCustomProxyABCProxyResult*)result;

Check Status for the result.

if (result.Status == ProxyResultStatusTypeOK) {
if (result.Result != nil) {
NSLog(@"Result exists");
} else {
NSLog(@"No Result");
}
}

Call Example

TESTCustomProxyClient *proxy_client = [[TESTCustomProxyClient alloc] init];
[proxy_client setOnFinshABC: self]; Registor Callback
TESTCustomProxyABCRequestParams *param = [[TESTCustomProxyABCRequestParams alloc] init];
param.xxx = @"xxx" ... set necessary parameter
bool result = [proxy_client ABC: param];
if (result) {
NSLog(@"Success");
}

As written above, result will be returned by delegate by asynchronous.

※Please refer example "Access Endpoint by Objective-C" to access Endpoint without Custom Development Option.

Back to top

LoginLogin with this Site ID
Quick Login:Quick Login by Facebook ID (Keep Login Option:ON) / Register ID


Inquiry

© 2016-2017 Matsuesoft Corporation

Follow Matsuesoft