Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (32 sloc) 0.805 kb
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, BVMBrowser) {
BVMBrowserSafari = 0,
BVMBrowserChrome,
BVMBrowserOnePassword,
BVMNumBrowsers
};
@interface BVMLinkOpenManager : NSObject
/**
* Returns YES if the given browser is available on this device.
*/
+ (BOOL)browserAvailable:(BVMBrowser)browser;
/**
* Returns the user's selected default browser.
*/
+ (BVMBrowser)selectedBrowser;
/**
* Sets the user's selected default browser.
*/
+ (void)setSelectedBrowser:(BVMBrowser)browser;
/**
* Opens the given URL.
*
* If HTTP or HTTPS, uses the defaut browser.
*/
+ (void)openURL:(NSURL *)url;
+ (void)openURLString:(NSString *)urlString;
/**
* Returns the human-friendly name for the given browser.
*/
+ (NSString *)nameForBrowser:(BVMBrowser)browser;
@end
Jump to Line
Something went wrong with that request. Please try again.