Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)coolMethod:(CDVInvokedUrlCommand*) mycommand
- {
- _callbackId=mycommand.callbackId; //here im saving plugin id
- NSDictionary* myarg = [mycommand.arguments objectAtIndex:0];
- LiveViewController *viewController = [[LiveViewController alloc]initWithNibName:@"LiveViewController" bundle:nil];
- viewController.openTokApi_Key = [[myarg safeObjectForKey:@"apiKey"] stringValue];
- viewController.openTokSessionID = [myarg safeObjectForKey:@"liveSessionId"];
- viewController.openTokToken = [myarg safeObjectForKey:@"tokenId"];
- viewController.hybridParams = myarg;
- [self.viewController presentViewController:viewController animated:YES completion:nil];
- }
- -(void)result:(NSString *)success
- {
- CDVPluginResult* pluginResult=[CDVPluginResult
- resultWithStatus:CDVCommandStatus_OK messageAsString:@"ok"];
- [self.commandDelegate sendPluginResult:pluginResult callbackId:_callbackId];
- }
Add Comment
Please, Sign In to add comment