Namespace: poki_sdk
Language: Lua
Type: Extension
Functions and constants for interacting with Poki SDK APIs
Type: FUNCTION
Type: FUNCTION
Type: FUNCTION
Parameters
callback (function)
self (object) - The calling script instancestatus (number) - One of the statuses: poki_sdk.COMMERCIAL_BREAK_START, poki_sdk.COMMERCIAL_BREAK_SUCCESSType: FUNCTION
Parameters
size (string) - The size of the reward. Accepted values are small, medium and large. Optional. Default is small.callback (function)
self (object) - The calling script instancestatus (number) - One of the statuses: poki_sdk.REWARDED_BREAK_ERROR, poki_sdk.REWARDED_BREAK_START, poki_sdk.REWARDED_BREAK_SUCCESSType: FUNCTION
Parameters
is_debug (boolean)Type: FUNCTION
Parameters
error (string)Type: FUNCTION
Parameters
params (table)callback (function)Type: FUNCTION
Parameters
key (string)Type: FUNCTION
Parameters
category (string)what (string)action (string)Type: FUNCTION
Parameters
topPercent (number)topPx (number)Type: FUNCTION
Parameters
callback (function)
self (object) - The calling script instanceuser (table) - A table with the fields username and avatar_url, or nil if no user is logged in.error (string) - The rejection message if user accounts are unavailable, or nil otherwise.Type: FUNCTION
Parameters
callback (function)
self (object) - The calling script instancetoken (string) - The Poki auth token, or nil if no user is logged in.error (string) - The rejection message if user accounts are unavailable, or nil otherwise.Type: FUNCTION
Parameters
callback (function)
self (object) - The calling script instancesuccess (boolean) - true if the login promise resolved, otherwise false.error (string) - The rejection message on failure, or nil on success.Type: FUNCTION
Parameters
url (string)Type: VARIABLE
Type: VARIABLE
Type: VARIABLE
Type: VARIABLE
Type: VARIABLE