Type Function Return value Boolean Revision 2017.3060 Keywords ads, advertising, Pollfish, isLoaded See also pollfish.show() pollfish.*
Checks to see if a survey is loaded and ready to be displayed.
pollfish.isLoaded()
local pollfish = require( "plugin.pollfish" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization pollfish.load() end end -- Initialize the Pollfish plugin pollfish.init( adListener, { apiKey="YOUR_API_KEY" } ) -- Sometime later, check if a survey is loaded local isSurveyLoaded = pollfish.isLoaded() print( isSurveyLoaded )