bfgAppManager Class
Static Public Member Functions | |
static bool | launchApp (string bundleIdentifier) |
Launches an installed app. More... | |
static bool | launchAppWithParams (string bundleIdentifier, string parameterString) |
Launches an installed app and passes a parameter string to the app. More... | |
static bool | isAppInstalled (string bundleIdentifier) |
Checks if an app is installed. More... | |
static void | launchStoreWithApp (string appID) |
Presents app in the App Store for user to install. More... | |
static bool | openReferralURL (string url) |
Opens a referral link and presents the App Store view (iOS 6+) or switches to the App Store (iOS 5). More... | |
static void | cancelCurrentReferral () |
Attempts to cancel the current referral URL that was started with openReferralURL(string): | |
Member Function Documentation
◆ isAppInstalled()
| inlinestatic |
Checks if an app is installed.
- Parameters
bundleIdentifier Bundle identifier of app to check.
- Returns
- Will return an error if the target app is not whitelisted. See LSApplicationQueriesSchemes
◆ launchApp()
| inlinestatic |
Launches an installed app. Will launch an app if it is installed on the device.
- Parameters
bundleIdentifier Bundle identifier of app to launch.
- Returns
- true if the app was successfully launched. false if the app is not installed.
◆ launchAppWithParams()
| inlinestatic |
Launches an installed app and passes a parameter string to the app.
- Parameters
bundleIdentifier Bundle identifier of app to launch. parameterString Parameter string that is passed to the app being launched.
- Returns
- true if the app was successfully launched. false if the app is not installed.
◆ launchStoreWithApp()
| inlinestatic |
Presents app in the App Store for user to install.
- Parameters
appID App's iTunes identifier. This number can be found at http://linkmaker.itunes.apple.com and is a string of numbers. For example, the iTunes identifier for the iBooks app is 364709193.
◆ openReferralURL()
| inlinestatic |
Opens a referral link and presents the App Store view (iOS 6+) or switches to the App Store (iOS 5). A URL connection is made in the background and redirects are followed. When an App Store link is detected, the app ID is extracted and an App Store view is used to present the app in-game (iOS 6), or the user is switched to the App Store to view the app (iOS 5).
- Parameters
url The URL to connect to.
- Returns
- true if the URL connection has started successfully. false if the URL failed to start or the URL does not match one of the supported referral domains.