PlayPortalUtils

Class providing utility methods.
public final class PlayPortalUtils: NSObject

The primary purpose for this class the openOrDownloadPlayPORTAL method, which, when invoked, will either open the playPORTAL app if the current user has it installed, or open the App Store to the playPORTAl page, allowing the user to download it.

Methods

openOrDownloadPlayPORTAL

public static func openOrDownloadPlayPORTAL(from: UIViewController? = nil) -> Void

Opens playPORTAL if the user has it downloaded; otherwise, opens the App Store for the user to download it.

Parameter

Type

Description

from

UIViewController?

The view controller to present the App Store screen.