The iOS framework that grows only as fast as its documentation
NIInterapp Class Reference

Overview

An interface for interacting with other apps installed on the device.

Tasks

Safari
(BOOL) + safariWithURL:
 
Google Chrome
(BOOL) + googleChromeIsInstalled
 
(NSString *) + googleChromeAppStoreId
 
Google Maps
(BOOL) + googleMapAtLocation:
 
(BOOL) + googleMapAtLocation:title:
 
(BOOL) + googleMapDirectionsFromLocation:toLocation:
 
(BOOL) + googleMapWithQuery:
 
Phone
(BOOL) + phone
 
(BOOL) + phoneWithNumber:
 
SMS
(BOOL) + sms
 
(BOOL) + smsWithNumber:
 
Mail
(BOOL) + mailWithInvocation:
 
YouTube
(BOOL) + youTubeWithVideoId:
 
App Store
(BOOL) + appStoreWithAppId:
 
(BOOL) + appStoreGiftWithAppId:
 
(BOOL) + appStoreReviewWithAppId:
 
iBooks
(BOOL) + iBooksIsInstalled
 
(BOOL) + iBooks
 
(NSString *) + iBooksAppStoreId
 
Facebook
(BOOL) + facebookIsInstalled
 
(BOOL) + facebook
 
(BOOL) + facebookProfileWithId:
 
(NSString *) + facebookAppStoreId
 
Twitter
(BOOL) + twitterIsInstalled
 
(BOOL) + twitter
 
(BOOL) + twitterWithMessage:
 
(BOOL) + twitterProfileForUsername:
 
(NSString *) + twitterAppStoreId
 
Instagram
(BOOL) + instagramIsInstalled
 
(BOOL) + instagram
 
(BOOL) + instagramCamera
 
(BOOL) + instagramProfileForUsername:
 
(NSURL *) + urlForInstagramImageAtFilePath:error:
 
(NSString *) + instagramAppStoreId
 
Custom Application
(BOOL) + applicationIsInstalledWithScheme:
 
(BOOL) + applicationWithScheme:andAppStoreId:
 
(BOOL) + applicationWithScheme:andPath:
 
(BOOL) + applicationWithScheme:appStoreId:andPath:
 

Method Documentation

safariWithURL:

Opens the given URL in Safari.

+ (BOOL)safariWithURL:(NSURL *)url;

googleChromeIsInstalled

Returns YES if the Google Chrome application is installed.

+ (BOOL)googleChromeIsInstalled;

googleChromeAppStoreId

The Google Chrome App Store ID.

+ (NSString*)googleChromeAppStoreId;

googleMapAtLocation:

Opens Google Maps at the given location.

+ (BOOL)googleMapAtLocation:(CLLocationCoordinate2D)location;

googleMapAtLocation:title:

Opens Google Maps at the given location with a title.

+ (BOOL)googleMapAtLocation:(CLLocationCoordinate2D)location title:(NSString *)title;

googleMapDirectionsFromLocation:toLocation:

Opens Google Maps with directions from one location to another.

+ (BOOL)googleMapDirectionsFromLocation:(CLLocationCoordinate2D)fromLocation toLocation:(CLLocationCoordinate2D)toLocation;

googleMapWithQuery:

Opens Google Maps with a generic query.

+ (BOOL)googleMapWithQuery:(NSString *)query;

phone

Opens the phone app.

+ (BOOL)phone;

phoneWithNumber:

Make a phone call with the given number.

+ (BOOL)phoneWithNumber:(NSString *)phoneNumber;

sms

Opens the phone app.

+ (BOOL)sms;

smsWithNumber:

Start texting the given number.

+ (BOOL)smsWithNumber:(NSString *)phoneNumber;

mailWithInvocation:

Opens mail with the given invocation properties.

+ (BOOL)mailWithInvocation:(NIMailAppInvocation *)invocation;

youTubeWithVideoId:

Opens the YouTube video with the given video id.

+ (BOOL)youTubeWithVideoId:(NSString *)videoId;

appStoreWithAppId:

Opens the App Store page for the app with the given ID.

+ (BOOL)appStoreWithAppId:(NSString *)appId;

appStoreGiftWithAppId:

Opens the "Gift this app" App Store page for the app with the given ID.

+ (BOOL)appStoreGiftWithAppId:(NSString *)appId;

appStoreReviewWithAppId:

Opens the "Write a review" App Store page for the app with the given ID.

+ (BOOL)appStoreReviewWithAppId:(NSString *)appId;

iBooksIsInstalled

Returns YES if the iBooks application is installed.

+ (BOOL)iBooksIsInstalled;

iBooks

Opens the iBooks application.

+ (BOOL)iBooks;
Discussion

If the iBooks application is not installed, will open the App Store to the iBooks download page.

iBooksAppStoreId

The iBooks App Store ID.

+ (NSString*)iBooksAppStoreId;

facebookIsInstalled

Returns YES if the Facebook application is installed.

+ (BOOL)facebookIsInstalled;

facebook

Opens the Facebook application.

+ (BOOL)facebook;
Discussion

If the Facebook application is not installed, will open the App Store to the Facebook download page.

facebookProfileWithId:

Opens the Facebook profile with the given id.

+ (BOOL)facebookProfileWithId:(NSString *)profileId;

facebookAppStoreId

The Facebook App Store ID.

+ (NSString*)facebookAppStoreId;

twitterIsInstalled

Returns YES if the Twitter application is installed.

+ (BOOL)twitterIsInstalled;

twitter

Opens the Twitter application.

+ (BOOL)twitter;
Discussion

If the Twitter application is not installed, will open the App Store to the Twitter download page.

twitterWithMessage:

Begins composing a message.

+ (BOOL)twitterWithMessage:(NSString *)message;

twitterProfileForUsername:

Opens the profile for the given username.

+ (BOOL)twitterProfileForUsername:(NSString *)username;

twitterAppStoreId

The Twitter App Store ID.

+ (NSString*)twitterAppStoreId;

instagramIsInstalled

Returns YES if the Instagram application is installed.

+ (BOOL)instagramIsInstalled;

instagram

Opens the Instagram application.

+ (BOOL)instagram;
Discussion

If the Instagram application is not installed, will open the App Store to the Instagram download page.

instagramCamera

Opens the Instagram camera.

+ (BOOL)instagramCamera;

instagramProfileForUsername:

Opens the profile for the given username.

+ (BOOL)instagramProfileForUsername:(NSString *)username;

urlForInstagramImageAtFilePath:error:

Copies an image to a temporary path suitable for use with a UIDocumentInteractionController in order to open the image in Instagram.

+ (NSURL*)urlForInstagramImageAtFilePath:(NSString *)filePath error:(NSError *)*error;
Discussion

The image at filePath must be at least 612x612 and preferably square. If the image is smaller than 612x612 then this method will fail.

instagramAppStoreId

The Instagram App Store ID.

+ (NSString*)instagramAppStoreId;

applicationIsInstalledWithScheme:

Returns YES if the supplied application is installed.

+ (BOOL)applicationIsInstalledWithScheme:(NSString *)applicationScheme;

applicationWithScheme:andAppStoreId:

Opens the supplied application.

+ (BOOL)applicationWithScheme:(NSString *)applicationScheme andAppStoreId:(NSString *)appStoreId;
Discussion

If the supplied application is not installed, will open the App Store to the specified ID download page.

applicationWithScheme:andPath:

Opens the supplied application.

+ (BOOL)applicationWithScheme:(NSString *)applicationScheme andPath:(NSString *)path;

applicationWithScheme:appStoreId:andPath:

Opens the supplied application, to the specified path.

+ (BOOL)applicationWithScheme:(NSString *)applicationScheme appStoreId:(NSString *)appStoreId andPath:(NSString *)path;
Discussion

If the supplied application is not installed, will open the App Store to the download page for the specified AppStoreId.