@arkadiuminc/sdk
TypeScript icon, indicating that this package has built-in type declarations

2.26.4 • Public • Published

Arkadium SDK

This library lets you integrate your game with Arkadium SDK.

Installation

$ npm install @arkadiuminc/sdk

Usage

import { getInstance, Env } from '@arkadiuminc/sdk';

const Game = {
  pause: () => console.log('Game paused!'),
  resume: () => console.log('Game resumed!'),
};

async function main() {
  Game.pause();
  const { ads } = await getInstance(Env.DEV);
  await ads.showInterstitialAd();
  Game.resume();
}

main();

Reference documents

Readme

Keywords

none

Package Sidebar

Install

npm i @arkadiuminc/sdk

Weekly Downloads

198

Version

2.26.4

License

MIT

Unpacked Size

52.8 kB

Total Files

46

Last publish

Collaborators

  • tom_arkadium
  • georgiyn
  • zer0latency
  • jujyfruits
  • dima.gabruk
  • douglasark
  • wooch
  • npmjs-arkadium