pollfish.hide()

类型 函数
返回值
修订版本 版本 2024.3703
关键词 广告, Pollfish, 隐藏
另请参阅 pollfish.show()
pollfish.*

概述

隐藏 Pollfish 调查按钮。

语法

pollfish.hide()

示例

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()