GetURIProtocol
- DEFINITION
Method
SlimCD.Launch.GetURIProtocol
Purpose
Parses the URI to extract the “Protocol” value, letting you know you’ve been launched instead of run normally
Description
Allows developers to determine the Protocol 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*) launchGetURIProtocol:(NSString*)uri;Reply
012String containing the URI protocol.Sample Code
123456789101112131415SlimCD *api = [[SlimCD alloc] init];- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{if ( [[api launchGetURIProtocol:[url absoluteString]] isEqualToString:@"com.domain"] ){NSLog( @"URL Protocol is valid.");}else{NSLog( @"URL Protocol is NOT valid.");}} - ANDROID