Class: CrossPromoApi
crosspromo.CrossPromoApi
Constructors
constructor
• new CrossPromoApi(client
): CrossPromoApi
Parameters
Name | Type |
---|---|
client |
Client |
Returns
Properties
client
• Private
client: Client
Methods
isSupported
▸ isSupported(): boolean
Is Crosspromo supported on the current platform.
Returns
boolean
open
▸ open(target
, payload?
): Promise
<void
>
Opens the crosspromo target with the indicated payload. Exits the game if successful. Otherwise returns back to the game.
Parameters
Name | Type |
---|---|
target |
string |
payload? |
CrosspromoPayload |
Returns
Promise
<void
>