SFApplicationHelper Class Reference

Inherits from NSObject
Declared in SFApplicationHelper.h

Overview

This class is abstracting the UIApplication class and making it possible to use it when compiling for application extension such as with watchOS which doesn’t have such a class.

+ sharedApplication

Returns the shared application or nil on platform that doesn’t have one (such as extension).

+ (nullable UIApplication *)sharedApplication

Return Value

The shared application object.

Declared In

SFApplicationHelper.h

+ openURL:

Opens the specified URL.

+ (BOOL)openURL:(NSURL *)url

Parameters

url

The URL to be opened.

Return Value

YES if the URL is successfully opened.

Declared In

SFApplicationHelper.h