Skip to main content

Sdk

Configures and initializes the PRESTOplay React Native SDK.

Properties

version

static readonly version: string = '@VERSION@';

The SDK version.

Methods

initialize()

static initialize(config): Promise<void>

Initializes the SDK.

This method must be called once before using any other SDK methods.

To authenticate the SDK, provide a valid license key. License key is linked to your application ID. For instructions on obtaining a license key, contact support.

Parameters

ParameterTypeDescription
configSdkConfigurationThe SDK configuration

Returns

A promise that resolves when the SDK is fully initialized and ready to use.