@arkadiuminc/sdk
Advanced tools
Comparing version 0.0.48 to 0.0.49
@@ -16,6 +16,25 @@ import { RpcProvider } from '../../core/rpc'; | ||
}; | ||
export declare enum AdTypes { | ||
AD_300x250 = "AD_300x250", | ||
AD_250x250 = "AD_250x250", | ||
AD_336x280 = "AD_336x280", | ||
AD_300x600 = "AD_300x600", | ||
AD_728x90 = "AD_728x90", | ||
AD_970x90 = "AD_970x90", | ||
AD_970x250 = "AD_970x250", | ||
AD_320x50 = "AD_320x50", | ||
AD_320x100 = "AD_320x100", | ||
AD_468x60 = "AD_468x60", | ||
AD_160x600 = "AD_160x600" | ||
} | ||
declare class BannerAds { | ||
private displayAd; | ||
show(adId: string, dimensions: AdTypes[]): void; | ||
private matchAdSize; | ||
} | ||
export declare class AdsApi { | ||
interstitial: InterstitialAdContract; | ||
rewarded: RewardAdContract; | ||
constructor(interstitial: InterstitialAdContract, rewarded: RewardAdContract); | ||
private bannerAd; | ||
constructor(interstitial: InterstitialAdContract, rewarded: RewardAdContract, bannerAd: BannerAds | undefined); | ||
static getArenaApi(rpcProvider: RpcProvider, userStateApi: UserStateApi): AdsApi; | ||
@@ -22,0 +41,0 @@ static getGameApi(rpcProvider: RpcProvider, env: ApiEnv): AdsApi; |
@@ -7,3 +7,6 @@ import { RpcProvider } from '../../core/rpc'; | ||
SCORE_CHANGED = 4, | ||
GAME_END = 5 | ||
GAME_END = 5, | ||
PAUSE_READY = 6, | ||
GAME_PAUSE = 7, | ||
GAME_RESUME = 8 | ||
} | ||
@@ -13,2 +16,5 @@ declare type LifecycleFn = (event: LifecycleEvent, payload?: any) => void; | ||
OnTestReady(): Promise<void>; | ||
OnPauseReady(): Promise<void>; | ||
OnGamePause(): Promise<void>; | ||
OnGameResume(): Promise<void>; | ||
OnGameStart(): Promise<void>; | ||
@@ -30,2 +36,5 @@ OnInteract(): Promise<void>; | ||
subscribe(cb: LifecycleFn): void; | ||
OnGamePause(): Promise<void>; | ||
OnGameResume(): Promise<void>; | ||
OnPauseReady(): Promise<void>; | ||
} | ||
@@ -41,3 +50,6 @@ export declare class GameLifecycleProxy implements GameLifecycleContract { | ||
subscribe(fn: LifecycleFn): void; | ||
OnGamePause(): Promise<void>; | ||
OnGameResume(): Promise<void>; | ||
OnPauseReady(): Promise<void>; | ||
} | ||
export {}; |
{ | ||
"name": "@arkadiuminc/sdk", | ||
"version": "0.0.48", | ||
"version": "0.0.49", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40106
36
882
260
7
20
78