|
JubeatPlus 3.9.11
|
The Applilink SDK's core entry point. More...
#include <ApplilinkCore.h>


Class Methods | |
| (void) | + initializeWithAppliId:env:resume:callback: |
| Initialise the SDK core for an application and server environment. | |
| (void) | + resume |
| Resume the SDK core, closing any open store and video view and re-initialising from persisted state. | |
| (void) | + appAuthSessionRegenerateWithBlock: |
| Regenerate the authentication session, invoking the block once the session is valid. | |
| (void) | + clearInitialize |
| Reset the SDK core's cached initialisation state and the DAU counter. | |
| (void) | + setNavigationBarCommonAppearance: |
| Set whether advert screens use the common navigation-bar appearance. | |
| (BOOL) | + isNavigationBarCommonAppearance |
| Whether advert screens use the common navigation-bar appearance. | |
| (void) | + setPriorityDeviceLanguages: |
| Set whether the SDK localises using the device's preferred languages. | |
| (BOOL) | + isPriorityDeviceLanguages |
| Whether the SDK localises using the device's preferred languages. | |
| (void) | + setIndicatorColor: |
| Set the tint colour of the SDK's loading indicator. | |
| (UIColor *) | + getIndicatorColor |
| The tint colour of the SDK's loading indicator. | |
| (void) | + unusedInStore |
| Flag the SDK as used inside the store. | |
| (BOOL) | + isUsedInStore |
| Whether the SDK is currently used inside the store. | |
| (void) | + buildUnderXcode6 |
| Flag the SDK as built with the legacy pre-Xcode 6 toolchain. | |
| (BOOL) | + isBuildXcode6 |
| Whether the SDK was built with the Xcode 6 (or later) toolchain. | |
| (nullable UIWindow *) | + mainWindow |
| The SDK's main window, used as a fallback advert host. | |
| (BOOL) | + isInitializingFlg |
| Whether the SDK's initialisation is currently in progress. | |
| (BOOL) | + isInitializeStatusFlg |
| Whether the SDK's initialisation-status flag is set. | |
| (nullable NSString *) | + appliId |
The Applilink application identifier stored in NSUserDefaults. | |
| (nullable NSString *) | + currentUdid |
| The current UDID, preferring the advertising UDID when advertising tracking is available. | |
| (nullable NSString *) | + udid_cache |
| The cached UDID without recomputation. | |
| (nullable NSString *) | + ad_udid_cache |
| The cached advertising UDID without recomputation. | |
| (nullable NSString *) | + old_udid_cache |
| The cached old UDID without recomputation. | |
| (nullable NSString *) | + udid |
| The UDID, computing and caching it from the pasteboard on first access. | |
| (nullable NSString *) | + pasteBoard_udid |
| The pasteboard UDID, computing and caching it from the old pasteboard slot on first access. | |
| (nullable NSString *) | + ad_udid |
| The advertising UDID, computing and caching it on first access. | |
| (nullable NSString *) | + old_udid |
| The old UDID, computing and caching it from the keychain on first access. | |
| (BOOL) | + checkUdid |
| Whether either the UDID or the advertising UDID is available. | |
| (void) | + clearUDID |
| Clear the stored UDID and, outside the default environment, its keychain records. | |
| (void) | + setAdUdid: |
| Store the advertising UDID in the SDK core. | |
| (void) | + clearKeyChainOldUDID |
| Clear the old-UDID keychain record and, when no UDID remains, the initialisation state. | |
| (void) | + clearAdUDID |
| Clear the advertising-UDID keychain records outside the default environment. | |
| (void) | + updatePasteBoard |
| Persist the cached advertising UDID to the pasteboard when a re-login is pending. | |
| (BOOL) | + showAppStoreId:appParam:delegate: |
| Present the App Store product page for an application, unless already used in the store. | |
| (void) | + closeAppStore |
| Close any open App Store product page. | |
| (nullable NSString *) | + signatureKey |
| The Applilink SDK signature key. | |
| (nullable NSString *) | + versionDev |
| The Applilink SDK development version string. | |
| (void) | + toDelegateDidStart:delegate: |
| Report that the advert did start back to a delegate. | |
| (void) | + toDelegateDidAppear:delegate: |
| Report that the advert did appear back to a delegate. | |
| (void) | + toDelegateDidDisappear:delegate: |
| Report that the advert did disappear back to a delegate. | |
| (void) | + toDelegateFailOpenWithError:appParam:delegate: |
| Report an open failure back to a delegate with the given error and request parameters. | |
| (void) | + toDelegateFailLoadWithError:appParam:delegate: |
| Report a load failure back to a delegate with the given error and request parameters. | |
| (void) | + toDelegateFailWithError:appParam:delegate: |
| Report a generic failure back to a delegate with the given error and request parameters. | |
| (void) | + toDelegateFailLinkWithError:appParam:delegate: |
| Report a link failure back to a delegate with the given error and request parameters. | |
| (void) | + toDelegateSoundUseStart: |
| Report the start of advert sound use back to a delegate, latching the sound and movie flags. | |
| (void) | + toDelegateSoundUseFinish: |
| Report the finish of advert sound use back to a delegate, once sound use has started. | |
| (void) | + toDelegateMovieFinish: |
| Report the finish of an advert movie back to a delegate, once a movie is playing. | |
| (void) | + collectDeviceInfoCore |
| Save the device info and post it to the analytics endpoint. | |
| (void) | + saveDeviceInfo |
Collect the OpenGL, memory, screen, and CPU details and persist them to NSUserDefaults. | |
| (nullable NSDictionary *) | + getDeviceInfo |
| The persisted device-information dictionary. | |
| (int) | + getSysInfo: |
A hardware sysctl integer for a CTL_HW selector. | |
| (int) | + getCpuFrequency |
The CPU frequency in hertz, from the HW_CPU_FREQ sysctl. | |
| (int) | + getNumCpus |
The number of CPUs, from the HW_NCPU sysctl. | |
| (NSInteger) | + hwPhysMem |
The physical memory size in bytes, from the HW_PHYSMEM sysctl. | |
The Applilink SDK's core entry point.
| + (NSString *) ad_udid |
The advertising UDID, computing and caching it on first access.
nil. | + (NSString *) ad_udid_cache |
The cached advertising UDID without recomputation.
nil. | + (void) appAuthSessionRegenerateWithBlock: | (nullable void(^)(NSError *_Nullable error)) | block |
Regenerate the authentication session, invoking the block once the session is valid.
| block | The completion block invoked with an error, or nil on success. |
| + (NSString *) appliId |
The Applilink application identifier stored in NSUserDefaults.
nil. | + (void) buildUnderXcode6 |
Flag the SDK as built with the legacy pre-Xcode 6 toolchain.
| + (BOOL) checkUdid |
Whether either the UDID or the advertising UDID is available.
YES when a UDID is available. | + (void) clearAdUDID |
Clear the advertising-UDID keychain records outside the default environment.
| + (void) clearInitialize |
Reset the SDK core's cached initialisation state and the DAU counter.
| + (void) clearKeyChainOldUDID |
Clear the old-UDID keychain record and, when no UDID remains, the initialisation state.
| + (void) clearUDID |
Clear the stored UDID and, outside the default environment, its keychain records.
| + (void) closeAppStore |
Close any open App Store product page.
| + (void) collectDeviceInfoCore |
Save the device info and post it to the analytics endpoint.
| + (NSString *) currentUdid |
The current UDID, preferring the advertising UDID when advertising tracking is available.
nil. | + (int) getCpuFrequency |
The CPU frequency in hertz, from the HW_CPU_FREQ sysctl.
| + (NSDictionary *) getDeviceInfo |
The persisted device-information dictionary.
| + (UIColor *) getIndicatorColor |
The tint colour of the SDK's loading indicator.
| + (int) getNumCpus |
The number of CPUs, from the HW_NCPU sysctl.
| + (int) getSysInfo: | (int) | info |
A hardware sysctl integer for a CTL_HW selector.
| info | The CTL_HW second-level selector (the HW_* constant). |
| + (NSInteger) hwPhysMem |
The physical memory size in bytes, from the HW_PHYSMEM sysctl.
-1 on failure. | + (void) initializeWithAppliId: | (nullable NSString *) | appliId | |
| env: | (nullable NSString *) | env | |
| resume: | (BOOL) | resume | |
| callback: | (nullable void(^)(NSError *_Nullable error)) | callback |
Initialise the SDK core for an application and server environment.
Saves the device info first, then guards on SDK usability, a non-nil application identifier, and the in-progress latch. On the non-resume path the application and environment are persisted to NSUserDefaults and the initialisation-status flag is set. Either path regenerates an authentication session and then starts the reward core, the recommend core, and the analysis post in sequence, warming the ad-status and appli-list caches at the end.
| appliId | The Applilink application identifier. |
| env | The server environment name, or nil for the default environment. |
| resume | YES when re-initialising after a foreground resume. |
| callback | The completion block invoked with an error, or nil on success. |
| + (BOOL) isBuildXcode6 |
Whether the SDK was built with the Xcode 6 (or later) toolchain.
YES when not built under the legacy pre-Xcode 6 toolchain. | + (BOOL) isInitializeStatusFlg |
Whether the SDK's initialisation-status flag is set.
YES when the SDK has finished its non-resume initialisation. | + (BOOL) isInitializingFlg |
Whether the SDK's initialisation is currently in progress.
YES while an initialisation is running. | + (BOOL) isNavigationBarCommonAppearance |
Whether advert screens use the common navigation-bar appearance.
YES when the common appearance is used. | + (BOOL) isPriorityDeviceLanguages |
Whether the SDK localises using the device's preferred languages.
YES when the device languages are prioritised. | + (BOOL) isUsedInStore |
Whether the SDK is currently used inside the store.
YES when the SDK is used inside the store. | + (UIWindow *) mainWindow |
The SDK's main window, used as a fallback advert host.
| + (NSString *) old_udid |
The old UDID, computing and caching it from the keychain on first access.
nil. | + (NSString *) old_udid_cache |
The cached old UDID without recomputation.
nil. | + (NSString *) pasteBoard_udid |
The pasteboard UDID, computing and caching it from the old pasteboard slot on first access.
nil. | + (void) resume |
Resume the SDK core, closing any open store and video view and re-initialising from persisted state.
| + (void) saveDeviceInfo |
Collect the OpenGL, memory, screen, and CPU details and persist them to NSUserDefaults.
| + (void) setAdUdid: | (nullable NSString *) | adUdid |
Store the advertising UDID in the SDK core.
| adUdid | The advertising UDID to store. |
| + (void) setIndicatorColor: | (nullable UIColor *) | indicatorColor |
Set the tint colour of the SDK's loading indicator.
| indicatorColor | The indicator colour. |
| + (void) setNavigationBarCommonAppearance: | (BOOL) | navigationBarCommonAppearance |
Set whether advert screens use the common navigation-bar appearance.
| navigationBarCommonAppearance | YES to use the common appearance. |
| + (void) setPriorityDeviceLanguages: | (BOOL) | priorityDeviceLanguages |
Set whether the SDK localises using the device's preferred languages.
| priorityDeviceLanguages | YES to prioritise the device languages. |
| + (BOOL) showAppStoreId: | (nullable NSString *) | appStoreId | |
| appParam: | (nullable ApplilinkParameters *) | appParam | |
| delegate: | (nullable id< SdkViewDelegate >) | delegate |
Present the App Store product page for an application, unless already used in the store.
| appStoreId | The App Store application identifier. |
| appParam | The request parameters. |
| delegate | The advert delegate to notify. |
YES when the App Store page was presented. | + (NSString *) signatureKey |
The Applilink SDK signature key.
| + (void) toDelegateDidAppear: | (nullable ApplilinkParameters *) | appParam | |
| delegate: | (nullable id) | delegate |
Report that the advert did appear back to a delegate.
| appParam | The request parameters. |
| delegate | The advert delegate to notify. |
| + (void) toDelegateDidDisappear: | (nullable ApplilinkParameters *) | appParam | |
| delegate: | (nullable id) | delegate |
Report that the advert did disappear back to a delegate.
| appParam | The request parameters. |
| delegate | The advert delegate to notify. |
| + (void) toDelegateDidStart: | (nullable ApplilinkParameters *) | appParam | |
| delegate: | (nullable id) | delegate |
Report that the advert did start back to a delegate.
| appParam | The request parameters. |
| delegate | The advert delegate to notify. |
| + (void) toDelegateFailLinkWithError: | (nullable NSError *) | error | |
| appParam: | (nullable ApplilinkParameters *) | appParam | |
| delegate: | (nullable id) | delegate |
Report a link failure back to a delegate with the given error and request parameters.
| error | The localised failure error. |
| appParam | The request parameters the link was attempted with. |
| delegate | The advert delegate to notify. |
| + (void) toDelegateFailLoadWithError: | (nullable NSError *) | error | |
| appParam: | (nullable ApplilinkParameters *) | appParam | |
| delegate: | (nullable id) | delegate |
Report a load failure back to a delegate with the given error and request parameters.
| error | The localised failure error. |
| appParam | The request parameters the load was attempted with. |
| delegate | The advert delegate to notify. |
| + (void) toDelegateFailOpenWithError: | (nullable NSError *) | error | |
| appParam: | (nullable ApplilinkParameters *) | appParam | |
| delegate: | (nullable id) | delegate |
Report an open failure back to a delegate with the given error and request parameters.
| error | The localised failure error. |
| appParam | The request parameters the open was attempted with. |
| delegate | The advert delegate to notify. |
| + (void) toDelegateFailWithError: | (nullable NSError *) | error | |
| appParam: | (nullable ApplilinkParameters *) | appParam | |
| delegate: | (nullable id) | delegate |
Report a generic failure back to a delegate with the given error and request parameters.
| error | The localised failure error. |
| appParam | The request parameters the operation was attempted with. |
| delegate | The advert delegate to notify. |
| + (void) toDelegateMovieFinish: | (nullable id) | delegate |
Report the finish of an advert movie back to a delegate, once a movie is playing.
| delegate | The advert delegate to notify. |
| + (void) toDelegateSoundUseFinish: | (nullable id) | delegate |
Report the finish of advert sound use back to a delegate, once sound use has started.
| delegate | The advert delegate to notify. |
| + (void) toDelegateSoundUseStart: | (nullable id) | delegate |
Report the start of advert sound use back to a delegate, latching the sound and movie flags.
| delegate | The advert delegate to notify. |
| + (NSString *) udid |
The UDID, computing and caching it from the pasteboard on first access.
nil. | + (NSString *) udid_cache |
The cached UDID without recomputation.
nil. | + (void) unusedInStore |
Flag the SDK as used inside the store.
The selector reads unused, but the binary sets the used-in-store flag.
| + (void) updatePasteBoard |
Persist the cached advertising UDID to the pasteboard when a re-login is pending.
| + (NSString *) versionDev |
The Applilink SDK development version string.