|
| static int | initialize (unsigned int appVariant, const String &internalPath, const String &externalPath, const TimerService &timer, const String &language, const String &languageTTS=String(), EDataSavePolicy savePolicy=UseExternalOnly, const ApiCallLogger &logger=ApiCallLogger(), bool useApiExceptions=false, const ProgressListener &listener=ProgressListener(), const std::function< void(int, gem::String)> &exceptionCallback={}, const String &activationToken=String(), const SdkTweaks &specsHW=SdkTweaks()) noexcept |
| | Initialize GEM SDK.
|
| static int | initialize (const SdkInitializationParameters &sdkInitializationParameters) noexcept |
| | Initialize GEM SDK.
|
|
static void | release () noexcept |
| | Release GEM SDK. After this call all remained SDK objects cannot be used.
|
| static int | load (const String &pluginPath, const SdkInitializationParameters &sdkInitializationParameters) noexcept |
| | Load & initialize GEM SDK as plugin, see initialize for details.
|
|
static void | unload () noexcept |
| | Release & unload GEM SDK plugin, see release for details.
|
| static bool | isInitialized () noexcept |
| | Check if the SDK is initialized.
|
| static void | notifySDCardEvent (EMmcEvent mmcEvent) noexcept |
| | Notifies GEM SDK about SD card insert / remove operations.
|
| static void | notifyBackgroundEvent (EBackgroundEvent backEvent) noexcept |
| | Notifies GEM SDK about the hosting app background / foreground state.
|
| static SdkVersion | getSdkVersion () noexcept |
| | Get GEM SDK version.
|
| static EDataSavePolicy | getDataSavePolicy () noexcept |
| | Get the SDK data save policy.
|
| static void | setDataSavePolicy (EDataSavePolicy policy) noexcept |
| | Update the SDK data save policy.
|
| static ENativeConfiguration | getNativeConfiguration () noexcept |
| | Get GEM SDK native code build configuration.
|
| static unsigned int | getAppVariant () noexcept |
| | Get GEM SDK app variant.
|
| static const char16_t * | getErrorDetails (int err, bool useLanguageTTS=false) noexcept |
| | Get error details as string.
|
| static void | dumpOSException (EOSExceptionType type, const String &info) noexcept |
| | Dump OS exception.
|
| static TransferStatisticsRef | getTransferStatistics () noexcept |
| | Get transfer statistics for the SDK manager.
|
| static LargeInteger | getCapabilities () noexcept |
| | Get SDK capabilities.
|
| static StrongPointer< void > | getInstanceShareData () noexcept |
| | Get SDK instance share data ( if available ).
|
GEM SDK global functions.
| int gem::Sdk::initialize |
( |
unsigned int | appVariant, |
|
|
const String & | internalPath, |
|
|
const String & | externalPath, |
|
|
const TimerService & | timer, |
|
|
const String & | language, |
|
|
const String & | languageTTS = String(), |
|
|
EDataSavePolicy | savePolicy = UseExternalOnly, |
|
|
const ApiCallLogger & | logger = ApiCallLogger(), |
|
|
bool | useApiExceptions = false, |
|
|
const ProgressListener & | listener = ProgressListener(), |
|
|
const std::function< void(int, gem::String)> & | exceptionCallback = {}, |
|
|
const String & | activationToken = String(), |
|
|
const SdkTweaks & | specsHW = SdkTweaks() ) |
|
inlinestaticnoexcept |
Initialize GEM SDK.
All GEM SDK objects must be used only after a successful call to this function
- Deprecated
- This function is deprecated, please use the overload that accepts SdkInitializationParameters for better extensibility and backward compatibility with future SDK releases.
- Parameters
-
| [in] | appVariant | The client provided SDK variant ( in case of a special SDK release ), otherwise 0 ( alias for VARIANT_GENERIC_SDK_CLIENT ) |
| [in] | internalPath | The SDK internal data path. Usually the internal path contains the SDK resources and other small size sensitive data that user may want to keep between instances |
| [in] | externalPath | The SDK external data path. Usually the external path is considered to be removable and contains large size data ( e.g. SDK downloaded content, online cache, etc ) |
| [in] | timer | The SDK will use the timer service to register for periodically check the internal state of the currently running operations |
| [in] | language | The SDK language. |
The language form might be : "ISO 639-3 language code - ISO 3166-1_3 region code ( optional )", e.g. "eng" for generic English, "eng-USA" for English American
The language form might be : "ISO 639-1 language code - ISO 3166-1_2 region code ( optional )", e.g. "en" for generic English, "en-US" for English American
- Parameters
-
| [in] | languageTTS | The SDK TTS language. If empty is provided ( default ), the TTS will use the SDK language |
| [in] | savePolicy | Specify the SDK preferences for saving the content and other online data, see EDataSavePolicy |
| [in] | logger | The external SDK logger handler |
| [in] | useApiExceptions | This will enable the throwing exceptions mechanism for SDK fatal errors ( experimental ) |
| [in] | listener | Progress listener for the SDK initialization phase |
| [in] | exceptionCallback | Callback that will be used by breakpad to notice if the dump was successfully saved or not. It will also be used when SDK Activation is mandatory. |
| [in] | activationToken | Application activation token used to enable SDK functionalities. Provides access to online services. Required for evaluation SDKs. Used in auto-activation scenarios. |
| [in] | specsHW | The SDK tweaks |
- Returns
- 0 on success, otherwise an error code