SIHIHandler Protocol Reference

Conforms to NSObject
Declared in SIHIHandler.h

Overview

Exposes methods to deal with actual request comes from HYBRID-TO-NATIVE or NATIVE-TO-HYBRID. It has methods to open, create, close, and execute query’s.

– handleHybridToNative: required method

Handle request from HYBRID-TO-NATIVE

- (NSString *)handleHybridToNative:(NSString *)action

Parameters

action

Action Needs to be performed on Native.

Return Value

Return Data By Native Handler API.

Discussion

Handle request from HYBRID-TO-NATIVE

Declared In

SIHIHandler.h

– handleHybridToNative:data: required method

Handle request from HYBRID-TO-NATIVE

- (NSString *)handleHybridToNative:(NSString *)action data:(NSString *)data

Parameters

action

Action Needs to be performed on Native.

data

Data to Native Handler. @return

Discussion

Handle request from HYBRID-TO-NATIVE

Declared In

SIHIHandler.h

– handleHybridToNativeAsync:action:data: required method

Handle reuqest from HYBRID-TO-NATIVE

- (NSString *)handleHybridToNativeAsync:(NSString *)requestId action:(NSString *)action data:(NSString *)data

Parameters

requestId

Id of the request

action

Action needs to be performed on native

data

Data to native handler @return

Discussion

Handle reuqest from HYBRID-TO-NATIVE

Declared In

SIHIHandler.h

– handleNativeToHybrid:data: required method

Handle request from NATIVE-TO-HYBRID.

- (void)handleNativeToHybrid:(NSString *)action data:(NSArray *)data

Parameters

action

Action Needs to be performed on Hybrid.

data

Data to Hybrid Handler.

Discussion

Handle request from NATIVE-TO-HYBRID.

Declared In

SIHIHandler.h

– handleNativeToHybridAsync:data: required method

Handle request from NATIVE-TO-HYBRID

- (void)handleNativeToHybridAsync:(NSString *)requestId data:(NSArray *)data

Parameters

requestId

Id of the request

data

Data to hybrid handler

Discussion

Handle request from NATIVE-TO-HYBRID

Declared In

SIHIHandler.h

– handleNativeToHybrid:apiName:action:parameters: required method

Handle request from NATIVE-TO-HYBRID

- (void)handleNativeToHybrid:(NSString *)functionName apiName:(NSString *)apiName action:(NSString *)action parameters:(NSString *)parameters

Parameters

functionName

Name of the hybrid function

apiName

Name of the hybrid api

action

Action needs to be performed on Hybrid

parameters

Parameters to the hybrid api

Discussion

Handle request from NATIVE-TO-HYBRID

Declared In

SIHIHandler.h