STWServiceCallOperation Class Reference
| Inherits from | NSOperation |
| Conforms to | STWServiceCallContext |
| Declared in | STWServiceCallOperation.h STWServiceCallOperation.m |
Overview
STWServiceCallOperation class performs Straw Service Method Call procedure.
The operation is performed in main thread or in background according to Service Method configuration.
Tasks
Other Methods
-
serviceCallproperty -
serviceproperty -
bridgeproperty -
keepAliveproperty -
– initWithCall:withService:withBridge:
Other Methods
Properties
bridge
the NativeBridge object
@property (nonatomic, assign) STWNativeBridge *bridgeDiscussion
the NativeBridge object
Declared In
STWServiceCallOperation.hkeepAlive
The flag to keep alive the browser’s callback function.
@property (nonatomic, assign) BOOL keepAliveDiscussion
The flag to keep alive the browser’s callback function.
The default value is NO.
Declared In
STWServiceCallOperation.hInstance Methods
failWithCode:withMessage:
Fails the Service Method call with an error code and a message.
- (void)failWithCode:(NSInteger)code withMessage:(NSString *)messageParameters
- code
error code
- message
error message
Discussion
Fails the Service Method call with an error code and a message.
Declared In
STWServiceCallContext.hinitWithCall:withService:withBridge:
- (instancetype)initWithCall:(STWServiceCall *)call withService:(id<STWService>)service withBridge:(STWNativeBridge *)bridgeReturn Value
service call operation instance
Declared In
STWServiceCallOperation.hsucceed
Succeeds the Service Method call (without any information).
- (void)succeedDiscussion
Succeeds the Service Method call (without any information).
Declared In
STWServiceCallContext.hsucceedWithNumber:
Succeeds the Service Method call with a number.
- (void)succeedWithNumber:(NSNumber *)numberParameters
- number
success result number
Discussion
Succeeds the Service Method call with a number.
Declared In
STWServiceCallContext.h