类型 函数 返回值 无 版本 发行版 2024.3703 关键词 广告、广告宣传、Appnext、setProgressColor 另请参见 appnext.getProgressColor() appnext.*
仅影响全屏和奖励广告。设置进度条和时钟颜色。
appnext.setProgressColor( adKey, progressColor )
字符串. 为先前创建的广告返回的广告密钥。
字符串. 进度条和时钟的颜色,表示为#
开头。
local appnext = require( "plugin.appnext" ) local function adListener( event ) print( "Received " .. event.event .. " for " .. event.adKey .. " with message: " .. event.message ) end -- Initialize the Appnext plugin appnext.init( adListener ) -- Create your ads local fullscreenPlacementID local platform = system.getInfo( "platformName" ) if ( platform == "iPhone OS" ) then fullscreenPlacementID = "YOUR_IOS_FULLSCREEN_PLACEMENT_ID" elseif ( platform == "Android" ) then fullscreenPlacementID = "YOUR_ANDROID_FULLSCREEN_PLACEMENT_ID" end local fullscreenAdKey = appnext.createAd( "fullscreen", fullscreenPlacementID ) appnext.setProgressColor( fullscreenAdKey, "#FFFFFF" )