JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkCore Class Reference

The Applilink SDK's core entry point. More...

#include <ApplilinkCore.h>

Inheritance diagram for ApplilinkCore:
Collaboration diagram for ApplilinkCore:

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.

Detailed Description

The Applilink SDK's core entry point.

Method Documentation

◆ ad_udid

+ (NSString *) ad_udid

The advertising UDID, computing and caching it on first access.

Returns
The advertising UDID, or nil.
Ghidra address:
0x242f48

◆ ad_udid_cache

+ (NSString *) ad_udid_cache

The cached advertising UDID without recomputation.

Returns
The cached advertising UDID, or nil.
Ghidra address:
0x242c74

◆ appAuthSessionRegenerateWithBlock:

+ (void) appAuthSessionRegenerateWithBlock: (nullable void(^)(NSError *_Nullable error)) block

Regenerate the authentication session, invoking the block once the session is valid.

Parameters
blockThe completion block invoked with an error, or nil on success.
Ghidra address:
0x243940

◆ appliId

+ (NSString *) appliId

The Applilink application identifier stored in NSUserDefaults.

Returns
The stored application identifier, or nil.
Ghidra address:
0x242b7c

◆ buildUnderXcode6

+ (void) buildUnderXcode6

Flag the SDK as built with the legacy pre-Xcode 6 toolchain.

Ghidra address:
0x242888

◆ checkUdid

+ (BOOL) checkUdid

Whether either the UDID or the advertising UDID is available.

Returns
YES when a UDID is available.
Ghidra address:
0x2431fc

◆ clearAdUDID

+ (void) clearAdUDID

Clear the advertising-UDID keychain records outside the default environment.

Ghidra address:
0x243564

◆ clearInitialize

+ (void) clearInitialize

Reset the SDK core's cached initialisation state and the DAU counter.

Ghidra address:
0x243638

◆ clearKeyChainOldUDID

+ (void) clearKeyChainOldUDID

Clear the old-UDID keychain record and, when no UDID remains, the initialisation state.

Ghidra address:
0x24340c

◆ clearUDID

+ (void) clearUDID

Clear the stored UDID and, outside the default environment, its keychain records.

Ghidra address:
0x24326c

◆ closeAppStore

+ (void) closeAppStore

Close any open App Store product page.

Ghidra address:
0x243860

◆ collectDeviceInfoCore

+ (void) collectDeviceInfoCore

Save the device info and post it to the analytics endpoint.

Ghidra address:
0x24465c
Ghidra address:
0x2446a0

◆ currentUdid

+ (NSString *) currentUdid

The current UDID, preferring the advertising UDID when advertising tracking is available.

Returns
The current UDID, or nil.
Ghidra address:
0x242be8

◆ getCpuFrequency

+ (int) getCpuFrequency

The CPU frequency in hertz, from the HW_CPU_FREQ sysctl.

Returns
The CPU frequency.
Ghidra address:
0x244f9c

◆ getDeviceInfo

+ (NSDictionary *) getDeviceInfo

The persisted device-information dictionary.

Returns
A dictionary of the saved OpenGL, memory, screen, and CPU details.
Ghidra address:
0x244c2c

◆ getIndicatorColor

+ (UIColor *) getIndicatorColor

The tint colour of the SDK's loading indicator.

Returns
The configured indicator colour, or the white colour when unset.
Ghidra address:
0x24281c

◆ getNumCpus

+ (int) getNumCpus

The number of CPUs, from the HW_NCPU sysctl.

Returns
The CPU count.
Ghidra address:
0x244fe8

◆ getSysInfo:

+ (int) getSysInfo: (int) info

A hardware sysctl integer for a CTL_HW selector.

Parameters
infoThe CTL_HW second-level selector (the HW_* constant).
Returns
The queried integer value.
Ghidra address:
0x244f2c

◆ hwPhysMem

+ (NSInteger) hwPhysMem

The physical memory size in bytes, from the HW_PHYSMEM sysctl.

Returns
The physical memory size, or -1 on failure.
Ghidra address:
0x244ffc

◆ initializeWithAppliId:env:resume:callback:

+ (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.

Parameters
appliIdThe Applilink application identifier.
envThe server environment name, or nil for the default environment.
resumeYES when re-initialising after a foreground resume.
callbackThe completion block invoked with an error, or nil on success.
Ghidra address:
0x241ff4

◆ isBuildXcode6

+ (BOOL) isBuildXcode6

Whether the SDK was built with the Xcode 6 (or later) toolchain.

Returns
YES when not built under the legacy pre-Xcode 6 toolchain.
Ghidra address:
0x24289c

◆ isInitializeStatusFlg

+ (BOOL) isInitializeStatusFlg

Whether the SDK's initialisation-status flag is set.

Returns
YES when the SDK has finished its non-resume initialisation.
Ghidra address:
0x242b6c

◆ isInitializingFlg

+ (BOOL) isInitializingFlg

Whether the SDK's initialisation is currently in progress.

Returns
YES while an initialisation is running.
Ghidra address:
0x242b5c

◆ isNavigationBarCommonAppearance

+ (BOOL) isNavigationBarCommonAppearance

Whether advert screens use the common navigation-bar appearance.

Returns
YES when the common appearance is used.
Ghidra address:
0x2427c0

◆ isPriorityDeviceLanguages

+ (BOOL) isPriorityDeviceLanguages

Whether the SDK localises using the device's preferred languages.

Returns
YES when the device languages are prioritised.
Ghidra address:
0x2427e0

◆ isUsedInStore

+ (BOOL) isUsedInStore

Whether the SDK is currently used inside the store.

Returns
YES when the SDK is used inside the store.
Ghidra address:
0x242878

◆ mainWindow

+ (UIWindow *) mainWindow

The SDK's main window, used as a fallback advert host.

Returns
The SDK main window.
Ghidra address:
0x2428b4

◆ old_udid

+ (NSString *) old_udid

The old UDID, computing and caching it from the keychain on first access.

Returns
The old UDID, or nil.
Ghidra address:
0x243134

◆ old_udid_cache

+ (NSString *) old_udid_cache

The cached old UDID without recomputation.

Returns
The cached old UDID, or nil.
Ghidra address:
0x242c84

◆ pasteBoard_udid

+ (NSString *) pasteBoard_udid

The pasteboard UDID, computing and caching it from the old pasteboard slot on first access.

Returns
The pasteboard UDID, or nil.
Ghidra address:
0x242e08

◆ resume

+ (void) resume

Resume the SDK core, closing any open store and video view and re-initialising from persisted state.

Ghidra address:
0x242674

◆ saveDeviceInfo

+ (void) saveDeviceInfo

Collect the OpenGL, memory, screen, and CPU details and persist them to NSUserDefaults.

Ghidra address:
0x2446a4

◆ setAdUdid:

+ (void) setAdUdid: (nullable NSString *) adUdid

Store the advertising UDID in the SDK core.

Parameters
adUdidThe advertising UDID to store.
Ghidra address:
0x2433a0

◆ setIndicatorColor:

+ (void) setIndicatorColor: (nullable UIColor *) indicatorColor

Set the tint colour of the SDK's loading indicator.

Parameters
indicatorColorThe indicator colour.
Ghidra address:
0x2427f0

◆ setNavigationBarCommonAppearance:

+ (void) setNavigationBarCommonAppearance: (BOOL) navigationBarCommonAppearance

Set whether advert screens use the common navigation-bar appearance.

Parameters
navigationBarCommonAppearanceYES to use the common appearance.
Ghidra address:
0x2427b0

◆ setPriorityDeviceLanguages:

+ (void) setPriorityDeviceLanguages: (BOOL) priorityDeviceLanguages

Set whether the SDK localises using the device's preferred languages.

Parameters
priorityDeviceLanguagesYES to prioritise the device languages.
Ghidra address:
0x2427d0

◆ showAppStoreId:appParam:delegate:

+ (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.

Parameters
appStoreIdThe App Store application identifier.
appParamThe request parameters.
delegateThe advert delegate to notify.
Returns
YES when the App Store page was presented.
Ghidra address:
0x243768

◆ signatureKey

+ (NSString *) signatureKey

The Applilink SDK signature key.

Returns
The signature key.
Ghidra address:
0x2436f0

◆ toDelegateDidAppear:delegate:

+ (void) toDelegateDidAppear: (nullable ApplilinkParameters *) appParam
delegate: (nullable id) delegate 

Report that the advert did appear back to a delegate.

Parameters
appParamThe request parameters.
delegateThe advert delegate to notify.
Ghidra address:
0x243e98

◆ toDelegateDidDisappear:delegate:

+ (void) toDelegateDidDisappear: (nullable ApplilinkParameters *) appParam
delegate: (nullable id) delegate 

Report that the advert did disappear back to a delegate.

Parameters
appParamThe request parameters.
delegateThe advert delegate to notify.
Ghidra address:
0x243f80

◆ toDelegateDidStart:delegate:

+ (void) toDelegateDidStart: (nullable ApplilinkParameters *) appParam
delegate: (nullable id) delegate 

Report that the advert did start back to a delegate.

Parameters
appParamThe request parameters.
delegateThe advert delegate to notify.
Ghidra address:
0x243db0

◆ toDelegateFailLinkWithError:appParam:delegate:

+ (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.

Parameters
errorThe localised failure error.
appParamThe request parameters the link was attempted with.
delegateThe advert delegate to notify.
Ghidra address:
0x2443d8

◆ toDelegateFailLoadWithError:appParam:delegate:

+ (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.

Parameters
errorThe localised failure error.
appParamThe request parameters the load was attempted with.
delegateThe advert delegate to notify.
Ghidra address:
0x24419c

◆ toDelegateFailOpenWithError:appParam:delegate:

+ (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.

Parameters
errorThe localised failure error.
appParamThe request parameters the open was attempted with.
delegateThe advert delegate to notify.
Ghidra address:
0x244068

◆ toDelegateFailWithError:appParam:delegate:

+ (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.

Parameters
errorThe localised failure error.
appParamThe request parameters the operation was attempted with.
delegateThe advert delegate to notify.
Ghidra address:
0x2442d0

◆ toDelegateMovieFinish:

+ (void) toDelegateMovieFinish: (nullable id) delegate

Report the finish of an advert movie back to a delegate, once a movie is playing.

Parameters
delegateThe advert delegate to notify.
Ghidra address:
0x2445d8

◆ toDelegateSoundUseFinish:

+ (void) toDelegateSoundUseFinish: (nullable id) delegate

Report the finish of advert sound use back to a delegate, once sound use has started.

Parameters
delegateThe advert delegate to notify.
Ghidra address:
0x244554

◆ toDelegateSoundUseStart:

+ (void) toDelegateSoundUseStart: (nullable id) delegate

Report the start of advert sound use back to a delegate, latching the sound and movie flags.

Parameters
delegateThe advert delegate to notify.
Ghidra address:
0x2444e0

◆ udid

+ (NSString *) udid

The UDID, computing and caching it from the pasteboard on first access.

Returns
The UDID, or nil.
Ghidra address:
0x242c94

◆ udid_cache

+ (NSString *) udid_cache

The cached UDID without recomputation.

Returns
The cached UDID, or nil.
Ghidra address:
0x242c64

◆ unusedInStore

+ (void) unusedInStore

Flag the SDK as used inside the store.

The selector reads unused, but the binary sets the used-in-store flag.

Ghidra address:
0x242864

◆ updatePasteBoard

+ (void) updatePasteBoard

Persist the cached advertising UDID to the pasteboard when a re-login is pending.

Ghidra address:
0x2438b0

◆ versionDev

+ (NSString *) versionDev

The Applilink SDK development version string.

Returns
The SDK development version.
Ghidra address:
0x24371c

The documentation for this class was generated from the following files: