Poki Games SDK
Allow games to be hosted on Poki website and display ads.
Authors and contributors to this experimental extension: alex_.
Please refer to Poki's guide to know when to call the different actions.
Tip
Learn how to install new extensions by following a step-by-step guide.
Actions
Game loading finished
Inform Poki game finished loading.
See parameters & details
There are no parameters to set for this action.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::CallGameLoadingFinished.
Gameplay started
Inform Poki gameplay started.
See parameters & details
There are no parameters to set for this action.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::CallGameplayStart.
Gameplay stopped
Inform Poki gameplay stopped.
See parameters & details
There are no parameters to set for this action.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::CallGameplayStop.
Measure event
Measure an event for analytics.
See parameters & details
- Parameter 1 (🔤 String): Category (for example: level, tutorial, drawing)
- Parameter 2 (🔤 String): What is measured (for example: 1, de_dust, skip-level)
- Parameter 3 (🔤 String): Action (for example: start, complete, fail)
Technical note: parameters 0, 4 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::Measure.
Move Poki Pill
Move the Poki Pill on mobile.
See parameters & details
- Parameter 1 (🔢 Number): Top percent (0-50)
- Parameter 2 (🔢 Number): Additional pixel offset
Technical note: parameters 0, 3 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::MovePill.
Open external link
Open an external URL via Poki SDK.
See parameters & details
- Parameter 1 (🔤 String): URL to open
Technical note: parameters 0, 2 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::OpenExternalLink.
Commercial break
Request commercial break.
See parameters & details
There are no parameters to set for this action.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::RequestCommercialBreak.
Rewarded break
Request rewarded break.
See parameters & details
There are no parameters to set for this action.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::RequestRewardedBreak.
Create shareable URL
Create a shareable URL from parameters stored in a variable structure.
See parameters & details
- Parameter 1 (🗄️ Any variable): Variable structure with URL parameters (example children: id, type)
Technical note: parameters 0, 2 are internal parameters handled by GDevelop.
Technical note: this action internal type (in GDevelop JSON) is
PokiGamesSDKHtml::ShareableURL.
Conditions
Commercial break just finished playing
Checks if a commercial break just finished playing.
See parameters & details
There are no parameters to set for this condition.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PokiGamesSDKHtml::DidCommercialBreakJustFinishPlaying.
Rewarded break just finished playing
Checks if a rewarded break just finished playing.
See parameters & details
There are no parameters to set for this condition.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PokiGamesSDKHtml::DidRewardedBreakJustFinishPlaying.
Commercial break is playing
Checks if a commercial break is playing.
See parameters & details
There are no parameters to set for this condition.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PokiGamesSDKHtml::IsCommercialBreakPlaying.
Rewarded break is playing
Checks if a rewarded break is playing.
See parameters & details
There are no parameters to set for this condition.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PokiGamesSDKHtml::IsRewardedBreakPlaying.
Poki SDK is ready
Check if the Poki SDK is ready to be used.
See parameters & details
There are no parameters to set for this condition.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PokiGamesSDKHtml::IsSdkReady.
Should reward player
Checks if player should be rewarded after a rewarded break finished playing.
See parameters & details
There are no parameters to set for this condition.
Technical note: parameters 0, 1 are internal parameters handled by GDevelop.
Technical note: this condition internal type (in GDevelop JSON) is
PokiGamesSDKHtml::ShouldRewardPlayer.
Expressions
| Expression | Description | |
|---|---|---|
PokiGamesSDKHtml::LastShareableURL() |
Get the last shareable URL generated by Create shareable URL. | |
PokiGamesSDKHtml::URLParam(string) |
Read a URL parameter from Poki URL or the current URL. | |
| 🔤 String | Parameter name (without the gd prefix) |
This page is an auto-generated reference page about the Poki Games SDK extension for GDevelop, the open-source, AI-powered, cross-platform game engine designed for everyone. Learn more about all GDevelop extensions here.