@smokeballdev/smokeball-client-sdk

Class: SmokeballClientSdk

Constructors

Constructor

new SmokeballClientSdk(): SmokeballClientSdk

Returns

SmokeballClientSdk

Methods

get()

static get(): Api
Creates the entry point to the Smokeball Client Sdk.

Returns

Api sdk instance if the Smokeball app is loaded and interoperability is possible. null when the Smokeball app is not loaded.

Example

const sdk = SmokeballClientSdk.get();
if (sdk != null) {
  // Interoperability with Smokeball is possible.
}