Skip to content
Utility class for native iOS MobileFirst/Worklight applications.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README.md

README.md

MobileFirst-Helper

Utility class for native iOS MobileFirst/Worklight applications. To use, just include the .h and .m files in your project, import the header, then start coding.

invokeProcedure

Utility function to invoke a MobileFirst/Worklight procedure using code blocks instead of defining delegate classes. This is for MobileFirst Platform Foundation Server 6 and newer, for native iOS applications. You can also use code blocks using the WLResourceRequest API in MobileFirst Platform Foundation Server 7.

Sample:

WLProcedureInvocationData *invocationData =
	[[WLProcedureInvocationData alloc]
		initWithAdapterName:@"StockAdapter"
			  procedureName:@"getList"];
	
[WLClientHelper invokeProcedure:invocationData 
	successCallback:^(WLResponse *successResponse) {
	
	//handle the response	
} errorCallback:^(WLFailResponse *errorResponse) {
	//handle the error response
}];

getLoggerForInstance*

Utility function to get an OClogger instance with the package matching the class name of the instance passed in.

Sample:

OCLogger *logger = [WLClientHelper getLoggerForInstance:self];
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.