Quantcast
Channel: Questions in topic: "native plugin"
Viewing all articles
Browse latest Browse all 376

Executing native iOS code in Unity

$
0
0
I want to execute following code in Unity. UIImage *image = [UIImage imageNamed:@"roadfire.png"]; NSString *message = @"Best image from my application."; NSArray *postItems = @[message, image]; UIActivityViewController *activityVc = [[UIActivityViewController alloc]initWithActivityItems:postItems applicationActivities:nil]; [self presentViewController:activityVc animated:YES completion:nil]; I have implemented similar code for Android using AndroidJavaObject and AndroidJavaClass object but I can't able to understand how to convert this code? Only starting point become enough for me.

Viewing all articles
Browse latest Browse all 376

Trending Articles