SkillAgentSearch skills...

ARChromeActivity

A UIActivity subclass for opening URLs in Google Chrome.

Install / Use

/learn @alextrob/ARChromeActivity
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ARChromeActivity

A UIActivity subclass for opening URLs in Google Chrome.

Usage

Typical usage will look something like this:

NSURL *urlToShare = [NSURL URLWithString:@"https://github.com/alextrob/ARChromeActivity"];
NSArray *activityItems = [NSArray arrayWithObject:urlToShare];

ARChromeActivity *chromeActivity = [[ARChromeActivity alloc] init];
NSArray *applicationActivities = [NSArray arrayWithObject:chromeActivity];

UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:applicationActivities];

[self presentViewController:activityVC animated:YES completion:nil];

It also supports x-callback-url by either initializing with initWithCallbackURL:, or setting the callbackURL property. Note that if you set a callbackURL under iOS 9, you will be required to add "googlechrome-x-callback" to your Info.plist under LSApplicationQueriesSchemes.

Have a look at the demo app!

Demo screenshot

Related Skills

View on GitHub
GitHub Stars107
CategoryDevelopment
Updated1y ago
Forks20

Languages

Objective-C

Security Score

65/100

Audited on Mar 4, 2025

No findings