public interface MobileServices
Interface for mobile-specific services
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GDPR_ALERT_TRIGGER
Trigger (
trigger(String) ) to notify the Kongregate SDK to display the GDPR Alert dialog, if needed |
static java.lang.String |
PANEL_EVENT_GO_TO_GUILDS
Panel api event fired when you game should go to the guilds screen.
|
static java.lang.String |
PANEL_TRANSITION_SLIDE_FROM_LEFT
Panel transition value to slide the panel in/out from the left side of the screen
|
static java.lang.String |
PANEL_TRANSITION_SLIDE_FROM_RIGHT
Panel transition value to slide the panel in/out from the right side of the screen
|
static java.lang.String |
TARGET_FORUMS
target for openKongregateWindow to forums page.
|
static java.lang.String |
TARGET_GUILD_CHAT
target for openKongregateWindow to Guild Chat page
|
static java.lang.String |
TARGET_HIGH_SCORES
target for openKongregateWindow to high scores page
|
static java.lang.String |
TARGET_MESSAGES
target for openKongregateWindow to Messages page
|
static java.lang.String |
TARGET_MORE_GAMES
target for openKongregateWindow to more games.
|
static java.lang.String |
TARGET_OFFERS
target for openKongregateWindow to Offers page
|
static java.lang.String |
TARGET_PRIVACY
target for openKongregateWindow to Privacy Policy page
|
static java.lang.String |
TARGET_REGISTRATION
target for openKongregateWindow to Registration page
|
static java.lang.String |
TARGET_SUPPORT
target for openKongregateWindow to Support page
|
static java.lang.String |
TARGET_TERMS
target for openKongregateWindow to Terms of Service page
|
static java.lang.String |
TARGET_TOPICS
target for openKongregateWindow to a specific forum topic
|
Modifier and Type | Method and Description |
---|---|
void |
closeKongregateWindow(android.content.Context context)
Close the Kongregate window
|
android.view.View |
getButton(android.content.Context context)
Creates the Kongregate button object so you can add it to a Layout
|
android.net.Uri |
getOpenURL() |
void |
openKongregateWindow(android.content.Context context)
Opens the Kongregate window
|
void |
openKongregateWindow(android.content.Context context,
java.lang.String target)
Opens the Kongregate window to a specific target
|
void |
openKongregateWindow(android.content.Context context,
java.lang.String target,
java.lang.String targetId)
Opens the Kongregate window to a specific target
|
void |
trackPurchase(java.lang.String productID)
Deprecated.
|
void |
trigger(java.lang.String name)
Triggers an event from the game to the Kongregate SDK.
|
static final java.lang.String TARGET_MORE_GAMES
target for openKongregateWindow to more games.
static final java.lang.String TARGET_HIGH_SCORES
target for openKongregateWindow to high scores page
static final java.lang.String TARGET_FORUMS
target for openKongregateWindow to forums page.
static final java.lang.String TARGET_SUPPORT
target for openKongregateWindow to Support page
static final java.lang.String TARGET_OFFERS
target for openKongregateWindow to Offers page
static final java.lang.String TARGET_REGISTRATION
target for openKongregateWindow to Registration page
static final java.lang.String TARGET_TERMS
target for openKongregateWindow to Terms of Service page
static final java.lang.String TARGET_PRIVACY
target for openKongregateWindow to Privacy Policy page
static final java.lang.String TARGET_TOPICS
target for openKongregateWindow to a specific forum topic
static final java.lang.String TARGET_MESSAGES
target for openKongregateWindow to Messages page
static final java.lang.String TARGET_GUILD_CHAT
target for openKongregateWindow to Guild Chat page
static final java.lang.String PANEL_EVENT_GO_TO_GUILDS
Panel api event fired when you game should go to the guilds screen. If your game supports this event, be sure to include it in the KongregateAPI.KONGREGATE_OPTION_SUPPORTED_PANEL_EVENTS
list.
static final java.lang.String PANEL_TRANSITION_SLIDE_FROM_LEFT
Panel transition value to slide the panel in/out from the left side of the screen
static final java.lang.String PANEL_TRANSITION_SLIDE_FROM_RIGHT
Panel transition value to slide the panel in/out from the right side of the screen
static final java.lang.String GDPR_ALERT_TRIGGER
Trigger (trigger(String)
) to notify the Kongregate SDK to display the GDPR Alert dialog, if needed
android.view.View getButton(android.content.Context context)
Creates the Kongregate button object so you can add it to a Layout
context
- The Activity Contextvoid openKongregateWindow(android.content.Context context)
Opens the Kongregate window
void openKongregateWindow(android.content.Context context, java.lang.String target)
Opens the Kongregate window to a specific target
context
- a valid contexttarget
- the target page to open (e.g. TARGET_MORE_GAMES
)void openKongregateWindow(android.content.Context context, java.lang.String target, java.lang.String targetId)
Opens the Kongregate window to a specific target
context
- a valid contexttarget
- the target page to open (e.g. TARGET_MORE_GAMES
)targetId
- the ID to open the target to (only applicable to some targets).void closeKongregateWindow(android.content.Context context)
Close the Kongregate window
@Deprecated void trackPurchase(java.lang.String productID)
android.net.Uri getOpenURL()
void trigger(java.lang.String name)
Triggers an event from the game to the Kongregate SDK.
name
-