1"use strict";(self.webpackChunkmy_website=self.webpackChunkmy_website||[]).push([[6443],{3301:(d,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>a,frontMatter:()=>l,metadata:()=>e,toc:()=>c});const e=JSON.parse('{"id":"doc_u3d/integration_u3d/splash","title":"\u5f00\u5c4f\u5e7f\u544a","description":"\u5f00\u5c4f\u5e7f\u544a\u76ee\u524d\u4ec5\u652f\u6301\u5bfc\u51fa\u5230Android\u9879\u76ee\u96c6\u6210\uff0c\u5982\u56fe\uff1a","source":"@site/docs/doc_u3d/integration_u3d/splash.md","sourceDirName":"doc_u3d/integration_u3d","slug":"/doc_u3d/integration_u3d/splash","permalink":"/docs/doc_u3d/integration_u3d/splash","draft":false,"unlisted":false,"editUrl":"http://gitlab.meetsocial.cn/ssp/tradplus_doc/edit/master/docs/doc_u3d/integration_u3d/splash.md","tags":[],"version":"current","frontMatter":{"slug":"splash","id":"splash","title":"\u5f00\u5c4f\u5e7f\u544a"}}');var s=r(74848),t=r(28453);const l={slug:"splash",id:"splash",title:"\u5f00\u5c4f\u5e7f\u544a"},i=void 0,o={},c=[{value:"\u6ce8\u610f\u4e8b\u9879",id:"\u6ce8\u610f\u4e8b\u9879",level:3},{value:"API\u8bf4\u660e",id:"api\u8bf4\u660e",level:2},{value:"1.TPSplash API",id:"1tpsplash-api",level:3},{value:"2.\u76d1\u542c\u56de\u8c03API",id:"2\u76d1\u542c\u56de\u8c03api",level:3},{value:"\u63a5\u5165\u4ee3\u7801\u793a\u4f8b",id:"\u63a5\u5165\u4ee3\u7801\u793a\u4f8b",level:2}];function h(d){const n={a:"a",code:"code",del:"del",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,t.R)(),...d.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"\u5f00\u5c4f\u5e7f\u544a\u76ee\u524d\u4ec5\u652f\u6301\u5bfc\u51fa\u5230Android\u9879\u76ee\u96c6\u6210\uff0c\u5982\u56fe\uff1a"})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.img,{src:"http://wordpress.tradplusad.com/wp-content/uploads/2022/06/unitytoproject.png",alt:""})}),"\n",(0,s.jsx)(n.h3,{id:"\u6ce8\u610f\u4e8b\u9879",children:"\u6ce8\u610f\u4e8b\u9879"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["(1)\u7981\u6b62\u5728",(0,s.jsx)(n.code,{children:"oneLayerLoadFailed "}),"\u56de\u8c03\u4e2d\u6267\u884c\u5e7f\u544a\u52a0\u8f7d\u7684\u65b9\u6cd5\uff0c\u5426\u5219\u4f1a\u5f15\u8d77\u591a\u4e2a\u65e0\u7528\u8bf7\u6c42\u3002"]}),"\n",(0,s.jsxs)(n.li,{children:["(2)\u5e7f\u544a\u5173\u95ed\u540e\uff0c\u5f00\u53d1\u8005\u9700\u8981\u5728",(0,s.jsx)(n.code,{children:"onAdClosed"}),"\u56de\u8c03\u4e2dremove\u4f20\u5165\u5bb9\u5668\u3002"]}),"\n",(0,s.jsx)(n.li,{children:"(3)\u5f00\u53d1\u8005\u9700\u6ce8\u610f\u5982\u679c\u5df2\u7ecf\u8fdb\u5165app\u5185\u90e8\uff0c\u800c\u52a0\u8f7d\u65f6\u95f4\u8fc7\u957f,\u8fd9\u6b21load\u7ed3\u679c\u5c31\u4e0d\u5e94\u8be5\u5c55\u793a\u4e86"}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"api\u8bf4\u660e",children:"API\u8bf4\u660e"}),"\n",(0,s.jsx)(n.h3,{id:"1tpsplash-api",children:"1.TPSplash API"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"\u521d\u59cb\u5316\u5e7f\u544a\u4f4d"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"TPSplash(Activity activity, String adUnitId)"}),(0,s.jsxs)(n.td,{children:["\u521d\u59cb\u5316\u5e7f\u544a\u4f4d\u3002AdUnitId\u5e7f\u544a\u4f4dID\u5728TradPlus\u540e\u53f0\u521b\u5efa\u3002\u4ec5\u521d\u59cb\u5316\u65f6\u8c03\u7528\u4e00\u6b21\u3002",(0,s.jsx)("br",{})," ",(0,s.jsx)("font",{color:"#dd0000",children:"\u4ee5\u4e0b\u5e7f\u544a\u5e73\u53f0\u65f6\u5fc5\u987b\u4f20\u5165Activity: Admob \u3001Pangle,\u5426\u5219\u4f1a\u5bfc\u81f4\u5e7f\u544a\u65e0\u6cd5\u52a0\u8f7d\u6210\u529f\u3002"})]})]})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"\u52a0\u8f7d\u3001\u5c55\u793a\u5e7f\u544a\uff08\u65b9\u6cd5\u4e00\uff09"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"loadAd(ViewGroup adContainer)"}),(0,s.jsxs)(n.td,{children:["\u8bf7\u6c42\u5e7f\u544a\u3002\u6ce8\u610f\u4f7f\u7528\u8be5\u65b9\u6cd5\u8bf7\u6c42\uff0c",(0,s.jsx)("font",{color:"#dd0000",children:"\u65e0\u6cd5\u4f7f\u7528\u9884\u52a0\u8f7d(\u4e0d\u80fd\u914d\u7f6e\u7f13\u5b58\u4e2a\u6570),\u6bcf\u6b21\u8bf7\u6c42\u5e7f\u544a\u5747\u5b9e\u65f6\u53d1\u8d77\u3002"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"showAd(null)"}),(0,s.jsxs)(n.td,{children:["\u5c55\u793a\u5e7f\u544a\u3002\u548c",(0,s.jsx)(n.code,{children:"loadAd(adContainer)"}),"\u914d\u5957\u4f7f\u7528\u3002",(0,s.jsx)("font",{color:"#dd0000",children:"\u7c73\u76df\u5f00\u5c4f\u4e0d\u652f\u6301\u9884\u52a0\u8f7d"}),"\uff0cloaded\u6210\u529f\u540e\u5c31\u9700\u8981\u5c55\u793a\u3002"]})]})]})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"\u52a0\u8f7d\u3001\u5c55\u793a\u5e7f\u544a \uff08\u65b9\u6cd5\u4e8c\uff09\uff08\u63a8\u8350\uff09"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"loadAd(null)"}),(0,s.jsxs)(n.td,{children:["\u8bf7\u6c42\u5e7f\u544a\u3002",(0,s.jsx)("font",{color:"#dd0000",children:"\u53ef\u4ee5\u4f7f\u7528\u9884\u52a0\u8f7d\u529f\u80fd(\u914d\u7f6e\u7f13\u5b58\u4e2a\u6570)\u3002"})," \u548c",(0,s.jsx)(n.code,{children:"showAd(adContainer)"}),"\u914d\u5957\u4f7f\u7528\u3002"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"showAd(ViewGroup adContainer)"}),(0,s.jsxs)(n.td,{children:["\u5c55\u793a\u5e7f\u544a\u5e76\u4f20\u5165\u5bb9\u5668\u3002",(0,s.jsx)("font",{color:"#dd0000",children:"\u7c73\u76df\u5f00\u5c4f\u4e0d\u652f\u6301\u9884\u52a0\u8f7d"}),"\uff0cloaded\u6210\u529f\u540e\u5c31\u9700\u8981\u5c55\u793a\u3002"]})]})]})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"\u68c0\u6d4b\u662f\u5426\u6709\u53ef\u7528\u5e7f\u544a\uff08\u53ef\u9009\uff09"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"isReady()"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"V6.2.4\u65b0\u589eAPI"}),"\u3002\u68c0\u67e5\u662f\u5426\u6709\u53ef\u7528\u5e7f\u544a\uff0c",(0,s.jsx)(n.code,{children:"true"}),"\u4e3a\u6709\u53ef\u7528\u5e7f\u544a\u3002"]})]})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"\u914d\u7f6e\u4e09\u65b9\u5e7f\u544a\u6e90config\u914d\u7f6e\uff08\u53ef\u9009\uff09"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:'setDefaultConfig("config")'}),(0,s.jsxs)(n.td,{children:["\u7528\u4e8e\u63d0\u5347\u51b7\u542f\u52a8\u7684\u52a0\u8f7d\u901f\u5ea6\uff0c\u53ef\u4ee5\u63d0\u524d\u5185\u7f6e\u4e00\u5957\u9ed8\u8ba4\u914d\u7f6e\uff0c\u8fd9\u6837\u5728\u9996\u6b21\u5b89\u88c5\u5e76\u6253\u5f00app\u54
10e\u7b2c\u4e00\u65f6\u95f4\u4f1a\u6839\u636e\u8fd9\u4efd\u914d\u7f6e\u8bf7\u6c42\u4e09\u65b9\u5e7f\u544a\u5e73\u53f0\u3002",(0,s.jsx)("br",{})," \u5728AndroidStudio\u7684log\u4e2d\u8fc7\u6ee4\u201cTPSplash\u201d\u7684TAG\uff0c\u628a\u5185\u5bb9\u590d\u5236\u51fa\u6765\uff0c\u8c03\u7528setDefaultConfig\u6765\u8bbe\u7f6e\u3002",(0,s.jsx)("br",{}),"\u8fd9\u4e2a\u63a5\u53e3\u53ea\u4f1a\u5728\u9996\u6b21\u5b89\u88c5\u540e\u7b2c\u4e00\u6b21\u6253\u5f00app\u751f\u6548\uff0c\u540e\u7eed\u6709\u6b63\u5f0f\u914d\u7f6e\u4e0b\u8f7d\u4e0b\u6765\uff0c\u5c31\u4e0d\u4f1a\u518d\u4f7f\u7528\u8fd9\u4efd\u914d\u7f6e\uff08\u6e05\u9664app\u672c\u5730\u7f13\u5b58\u540e\u4e5f\u4f1a\u4f7f\u7528\u8fd9\u6b21\u7684\u914d\u7f6e\uff09\u3002"]})]})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"\u81ea\u5b9a\u4e49key-value\uff08\u53ef\u9009\uff09"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"setCustomParams(map)"}),(0,s.jsxs)(n.td,{children:["**\u9700\u8981\u5728loadAd\u524d\u8c03\u7528\u8be5\u65b9\u6cd5\u3002**\u5177\u4f53\u4f7f\u7528\u89c1\u4e0a\u6587",(0,s.jsx)(n.em,{children:"\u817e\u8baf\u534a\u5c4f\u5c55\u793aAPI"}),"\u7684\u6ce8\u610f\u4e8b\u9879"]})]})})]}),"\n",(0,s.jsx)(n.h3,{id:"2\u76d1\u542c\u56de\u8c03api",children:"2.\u76d1\u542c\u56de\u8c03API"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"\u8bbe\u7f6e\u5e7f\u544a\u76d1\u542c"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"setAdListener(SplashAdListener listener)"}),(0,s.jsx)(n.td,{children:"\u8bbe\u7f6e\u5e7f\u544a\u76d1\u542c\u56de\u8c03\uff0c\u5176\u4e2dSplashAdListener\u662f\u9700\u8981\u5b9e\u73b0\u5e7f\u544a\u4e8b\u4ef6\u56de\u8c03\u7684\u63a5\u53e3\u7c7b\u3002"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"setAllAdLoadListener(LoadAdEveryLayerListener everyLayerListener)"}),(0,s.jsxs)(n.td,{children:["\uff08\u53ef\u9009\uff09",(0,s.jsx)(n.strong,{children:"V6.4.5\u65b0\u589eAPI"}),"\u3002\u8bbe\u7f6e\u5355\u4e2a\u6e90\u7ef4\u5ea6\u7684\u76d1\u542c\u56de\u8c03\u3002\u5176\u4e2dLoadAdEveryLayerListener\u662f\u9700\u8981\u5b9e\u73b0\u5e7f\u544a\u4e8b\u4ef6\u56de\u8c03\u7684\u63a5\u53e3\u7c7b\u3002",(0,s.jsx)("br",{})," \u5355\u4e2a\u6e90\u7ef4\u5ea6\u662f\u6307TP\u7aef\u7684\u4e00\u4e2a\u5e7f\u544a\u4f4d\u4e0b\u914d\u7f6e\u591a\u4e2a\u5e7f\u544a\u6e90\u7f13\u5b58\uff0c\u6bcf\u4e2a\u6e90\u7684\u56de\u8c03\u3002"]})]})]})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"\u76d1\u542c\u56de\u8c03\u4e2d\u7684\u53c2\u6570\u8bf4\u660e"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u53c2\u6570"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"TPAdInfo"}),(0,s.jsxs)(n.td,{children:["\u5e7f\u544a\u4f4dID\u3001\u4e09\u65b9\u5e7f\u544a\u5e73\u53f0\u3001ecpm\u7b49\u4fe1\u606f\uff0c\u5177\u4f53\u8bf7\u53c2\u8003",(0,s.jsx)(n.a,{href:"/docs/tradplussdk_android_doc_v6/tradplussdk_android_doc_v6/callback_info",children:"\u56de\u8c03\u4fe1\u606f\u8bf4\u660e"}),"\u3002"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"TPAdError"}),(0,s.jsxs)(n.td,{children:["\u5e7f\u544a\u8bf7\u6c42\u5931\u8d25\u3001\u5e7f\u544a\u5c55\u793a\u5931\u8d25\u7684\u9519\u8bef\u7801\u3001\u9519\u8bef\u4fe1\u606f\uff0c\u5177\u4f53\u8bf7\u53c2\u8003",(0,s.jsx)(n.a,{href:"/docs/tradplussdk_android_doc_v6/tradplussdk_android_doc_v6/errormsg",children:"\u9519\u8bef\u7801\u3001\u9519\u8bef\u4fe1\u606f\u8bf4\u660e"}),"\u3002"]})]})]})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"SplashAdListener\u8bf4\u660e\uff08\u5e7f\u544a\u4f4d\u7ef4\u5ea6\uff09"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onAdClicked(TPAdInfo tpAdInfo)"}),(0,s.jsx)(n.td,{children:"\u5e7f\u544a\u88ab\u70b9\u51fb\u3002"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onAdImpression(TPAdInfo tpAdInfo)"}),(0,s.jsx)(n.td,{children:"\u5e7f\u544a\u88ab\u5c55\u793a\u3002"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onAdClosed(TPAdInfo tpAdInfo)"}),(0,s.jsxs)(n.td,{children:["\u5e7f\u544a\u88ab\u5173\u95ed\u3002",(0,s.jsx)("font",{color:"#dd0000",children:"\u5fc5\u987b\u5728\u8be5\u56de\u8c03\u4e2d\u5904\u7406\u5e7f\u544a\u5173\u95ed\u903b\u8f91\uff0c\u628a\u4f20\u5165\u5bb9\u5668remove\u3002"}),"\u3002"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onAdLoaded(TPAdInfo tpAdInfo, TPBaseAd tpBaseAd)"}),(0,s.jsx)(n.td,{children:"\u5e7f\u544a\u52a0\u8f7d\u6210\u529f\u3002"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onAdLoadFailed(TPAdError error)"}),(0,s.jsx)(n.td,{children:"\u5e7f\u544a\u52a0\u8f7d\u5931\u8d25\u3002"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onAdShowFailed(TPAdInfo tpAdInfo,TPAdError tpAdError)"}
1),(0,s.jsxs)(n.td,{children:["\u5e7f\u544a\u5c55\u793a\u5931\u8d25\u3002",(0,s.jsx)("br",{}),(0,s.jsx)(n.strong,{children:"V7.3.0\u65b0\u589e\u56de\u8c03\u53c2\u6570TPAdError"}),"\u3002"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onZoomOutStart(TPAdInfo tpAdInfo)"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"V6.4.4\u65b0\u589eAPI"}),"\u3002\u5f00\u5c4f\u70b9\u775b\u5f00\u59cb\u3002\u4ec5\u7a7f\u5c71\u7532\uff08\u56fd\u5185\uff09\u548c\u817e\u8baf\u4f18\u91cf\u6c47\u652f\u6301\u3002"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onZoomOutEnd(TPAdInfo tpAdInfo)"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"V6.4.4\u65b0\u589eAPI"}),"\u3002\u5f00\u5c4f\u70b9\u775b\u5173\u95ed\u3002\u4ec5\u7a7f\u5c71\u7532\uff08\u56fd\u5185\uff09\u548c\u817e\u8baf\u4f18\u91cf\u6c47\u652f\u6301\u3002"]})]})]})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.strong,{children:"LoadAdEveryLayerListener\u8bf4\u660e\uff08\u53ef\u9009\uff09\uff08\u5355\u4e2a\u6e90\u7ef4\u5ea6\uff09"})}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"\u65b9\u6cd5"}),(0,s.jsx)(n.th,{children:"\u8bf4\u660e"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onAdAllLoaded(boolean isSuccess)"}),(0,s.jsxs)(n.td,{children:["\u5e7f\u544a\u4f4d\u7684\u72b6\u6001\u3002",(0,s.jsx)(n.code,{children:"loadAd()"}),"\u5b8c\u6bd5\u540e\u7528\u4e8e\u5224\u65ad\u662f\u5426\u6709\u53ef\u7528\u5e7f\u544a\uff0ctrue\u8868\u660e\u6709\u53ef\u7528\u5e7f\u544a\uff0cfalse\u8868\u660e\u6ca1\u6709\u53ef\u7528\u5e7f\u544a\u3002"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"oneLayerLoadFailed(TPAdError adError, TPAdInfo adInfo)"}),(0,s.jsx)(n.td,{children:"\u914d\u7f6e\u591a\u4e2a\u5e7f\u544a\u6e90\u7f13\u5b58\uff0c\u5f53\u6bcf\u4e2a\u5e7f\u544a\u6e90\u52a0\u8f7d\u5931\u8d25\u540e\u4f1a\u90fd\u4f1a\u56de\u8c03\u4e00\u6b21\u3002"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"oneLayerLoaded(TPAdInfo adInfo)"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"V6.4.5\u65b0\u589eAPI"}),"\u3002\u914d\u7f6e\u591a\u4e2a\u5e7f\u544a\u6e90\u7f13\u5b58\uff0c\u5f53\u6bcf\u4e2a\u5e7f\u544a\u6e90\u52a0\u8f7d\u6210\u529f\u540e\u4f1a\u90fd\u4f1a\u56de\u8c03\u4e00\u6b21\u3002"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.del,{children:"onLoadAdStart(TPAdInfo tpAdInfo)"})}),(0,s.jsxs)(n.td,{children:["\u8bf7\u6c42\u5e7f\u544a\u540e\uff0c\u5e7f\u544a\u5f00\u59cb\u52a0\u8f7d\u3002",(0,s.jsx)("br",{}),(0,s.jsx)(n.strong,{children:"V7.9.0 \u5e9f\u5f03\u3002"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"oneLayerLoadStart(TPAdInfo tpAdInfo)"}),(0,s.jsxs)(n.td,{children:["\u6bcf\u5c42waterfall \u5411\u4e09\u65b9\u5e7f\u544a\u6e90\u53d1\u8d77\u8bf7\u6c42\u524d\uff0c\u89e6\u53d1\u7684\u56de\u8c03\u3002",(0,s.jsx)(n.strong,{children:"V7.9.0 \u65b0\u589e\u3002"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onAdStartLoad(String adUnitId)"}),(0,s.jsxs)(n.td,{children:["\u6bcf\u6b21\u8c03\u7528load\u65b9\u6cd5\u65f6\u8fd4\u56de\u7684\u56de\u8c03\uff0c\u5305\u542b\u81ea\u52a8\u52a0\u8f7d\u7b49\u89e6\u53d1\u65f6\u673a\u3002",(0,s.jsx)(n.strong,{children:"V7.9.0 \u65b0\u589e\u3002"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onBiddingStart(TPAdInfo tpAdInfo)"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"V6.4.5\u65b0\u589eAPI"}),"\u3002Bidding\u5f00\u59cb\u52a0\u8f7d\u3002"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"onBiddingEnd(TPAdInfo tpAdInfo,TPAdError tpAdError)"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"V6.4.5\u65b0\u589eAPI"}),"\u3002Bidding\u52a0\u8f7d\u5b8c\u6210\u3002",(0,s.jsx)("br",{}),(0,s.jsx)(n.strong,{children:"V7.3.0\u65b0\u589e\u56de\u8c03\u53c2\u6570TPAdError"}),"\u3002"]})]})]})]}),"\n",(0,s.jsx)(n.h2,{id:"\u63a5\u5165\u4ee3\u7801\u793a\u4f8b",children:"\u63a5\u5165\u4ee3\u7801\u793a\u4f8b"}),"\n",(0,s.jsx)("font",{color:"#dd0000",children:"\u63a5\u5165\u6b65\u9aa4\u53c2\u8003\u4ee5\u4e0b\u4ee3\u7801\uff0c\u5f00\u53d1\u8005\u9700\u8981\u6839\u636e\u5b9e\u9645\u9700\u8981\u8c03\u6574\u3002"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-java",children:" mUnityPlayer = new UnityPlayer(this);\r\n \r\n ...\r\n \r\n // 1\u3001\u63a5\u5165\u5f00\u5c4f\uff0c\u53ea\u9700\u8981\u5728AS\u7aef\u521d\u59cb\u5316TradPlus SDK\uff0cAppId\u662f\u5e94\u7528Id\uff0c\u9700\u8981\u60a8\u53bb\u5f00\u53d1\u8005\u540e\u53f0\u6dfb\u52a0APP\r\n TradPlusSdk.initSdk(this, \u201cAppId\u201c);\r\n\r\n // 2\u3001\u521d\u59cb\u5316\u5e7f\u544a\u4f4d\u3002\u5e7f\u544a\u4f4dID\u5728TradPlus\u540e\u53f0\u521b\u5efa\u3002\u4ec5\u8c03\u7528\u4e00\u6b21\u3002\r\n TPSplash tpSplash = new TPSplash(context, "AdUnitId");\r\n\r\n FrameLayout frameLayout = new FrameLayout(UnityPlayerActivity.this);\r\n frameLayout.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));\r\n\r\n // 3\u3001\u8bbe\u7f6e\u56de\u8c03\u76d1\u542c\uff08onAdClosed\u56de\u8c03\u76d1\u542c\u4e2dremove\u4f20\u5165\u5bb9\u5668\uff09\r\n tpSplash.setAdListener(new SplashAdListener() {\r\n @Override\r\n public void onAdClicked(TPAdInfo tpAdInfo) {}\r\n\r\n @Override\r\n public void onAdImpression(TPAdInfo tpAdInfo) {}\r\n\r\n @Override\r\n public void onAdClosed(TPAdInfo tpAdInfo) {\r\n Log.i(TAG, "onAdClosed: ");\r\n // \u6ce8\u610f\u8fd9\u91cc\u9700\u8981remove\r\n frameLayout.removeAllViews();\r\n }\r\n\r\n @Override\r\n public void onAdShowFailed(TPAdError var1, TPAdInfo var2) {}\r\n\r\n @Override\r\n public void onAdLoaded(TPAdInfo tpAdInfo, TPBaseAd tpBaseAd) {}\r\n\r\n @Override\r\n public void onAdLoadFailed(TPAdError tpAdInfo) {}\r\n });\r\n\r\n // 4\u3001\u8bbe\u7f6e\u6bcf\u5c42\u5e7f\u544a\u6e90\u56de\u8c03\u76d1\u542c \uff08\u53ef\u9009\uff09\r\n tpSplash.setAllAdLoadListener(new LoadAdEveryLayerListener() {...});\r\n\r\n\r\n // 5\u3001\u8bf7\u6c42\u5e7f\u544a\r\n tpSplash.loadAd(frameLayout);\r\n mUnityPlayer.addView(frameLayout);\r\n \r\n // 6\u3001\u68c0\u67e5\u662f\u5426\u6709\u53ef\u7528\u5e7f\u544a\uff08\u53ef\u505a\u51e0\u79d2\u5012\u8ba1\u65f6\u5224\u65ad\uff0c\u59825\u79d2\u5185\u65e0\u7528\u5e7f\u544a\u76f4\u63a5\u8df3\u8f6c\u8fdb\u5165\u6e38\u620f\u754c\u9762\uff09\r\n if (tpSplash.isReady()) {\r\n // 7\u3001\u5c55\u793a\u5e7f\u544a\r\n tpSplash.showAd();\r\n }\r\n\r\n\r\n setContentView(mUnityPlayer);\r\n\r\n ...\r\n\r\n mUnityPlayer.requestFocus();\r\n\n"})})]})}function a(d={}){const{wrapper:n}={...(0,t.R)(),...d.components};return n?(0,s.jsx)(n,{...d,children:(0,s.jsx)(h,{...d})}):h(d)}},28453:(d,n,r)=>{r.d(n,{R:()=>l,x:()=>i});var e=r(96540);const s={},t=e.createContext(s);function l(d){const n=e.useContext(t);return e.useMemo((function(){return"function"==typeof d?d(n):{...n,...d}}),[n,d])}function i(d){let n;return n=d.disableParentContext?"function"==typeof d.components?d.components(s):d.components||s:l(d.components),e.createElement(t.Provider,{value:n},d.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.