GetURIAction
- DEFINITION
Method
SlimCD.Launch.GetURIAction
Purpose
Parses the URI to extract the “Action” item
Description
Allows developers to determine the Action requested from this launch event
Business Rules
Request Fields
Reply Fields
Reply Hierarchy
Remarks
Not available on all platforms.
- .NET 4.5 / PCL
- Include
012#import "SlimCD.h"
Method
012- (NSString*) launchGetURIAction:(NSString*)uri;Reply
012String containing the URI action.Sample Code
123456789101112131415SlimCD *api = [[SlimCD alloc] init];- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{if ( [[api launchGetURIAction:[url absoluteString]] isEqualToString:@"/ProcessTransaction"] ){NSLog( @"URL Action is valid.");}else{NSLog( @"URL Action is NOT valid.");}} - ANDROID