pollfish.hide()

Type Function
Return value none
Revision Release 2024.3703
Keywords ads, advertising, Pollfish, hide
See also pollfish.show()
pollfish.*

Overview

Hides the Pollfish survey button.

Syntax

pollfish.hide()

Example

local pollfish = require( "plugin.pollfish" )

local function adListener( event )

    if ( event.phase == "init" ) then  -- Successful initialization
        print( event.provider )

    elseif ( event.phase == "loaded" ) then
        pollfish.show()
    end
end

-- Initialize the Pollfish plugin
pollfish.init( adListener, { apiKey="YOUR_API_KEY" } )

-- Sometime later, hide the Pollfish button
pollfish.hide()