peanutlabs.show()

类型 函数
返回值
修订版 版本 2024.3703
关键词 广告、宣传、Peanut Labs、显示
另请参阅 peanutlabs.init()
peanutlabs.*

概述

显示 Peanut Labs 调查。

语法

peanutlabs.show()

示例

local peanutlabs = require( "plugin.peanutlabs" )

local function adListener( event )

    if ( event.phase == "init" ) then  -- Successful initialization
        -- Show a survey
        peanutlabs.show()
    end
end

-- Initialize the Peanut Labs plugin
peanutlabs.init( adListener,
    {
        userId = "x1",
        appKey = "YOUR_APP_KEY",
        appId = 2222
    }
)