Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_flowbox
Commits
bb2feb99
Commit
bb2feb99
authored
Jul 21, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加插屏事件
parent
194c8b14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
16 deletions
+8
-16
InterstitialGroManager.java
...com/mints/flowbox/ad/inscreen/InterstitialGroManager.java
+5
-1
WifiAdManager.kt
app/src/main/java/com/mints/flowbox/ad/wifi/WifiAdManager.kt
+3
-15
No files found.
app/src/main/java/com/mints/flowbox/ad/inscreen/InterstitialGroManager.java
View file @
bb2feb99
...
...
@@ -145,7 +145,11 @@ public class InterstitialGroManager {
}
}
public
void
showInteractionAd
(
Activity
_activity
)
{
public
void
showInteractionAd
(
Activity
_activity
,
WifiAdStatusListener
wifiAdStatusListener
)
{
if
(
wifiAdStatusListener
!=
null
)
{
this
.
wifiAdStatusListener
=
wifiAdStatusListener
;
}
if
(
BuildConfig
.
DEBUG
)
{
LogUtil
.
d
(
TAG
,
"showInteractionAd isLoadSuccess="
+
isLoadSuccess
+
" isReady="
+
mInterstitialAd
.
isReady
());
}
...
...
app/src/main/java/com/mints/flowbox/ad/wifi/WifiAdManager.kt
View file @
bb2feb99
...
...
@@ -46,7 +46,7 @@ class WifiAdManager private constructor() {
when
(
currentAdType
)
{
Constant
.
GROMORE_INSERTSCREEN_AD
->
{
preLoadInterstitialGroMore
(
activity
,
true
)
preLoadInterstitialGroMore
(
activity
,
true
)
}
Constant
.
GROMORE_FULL_AD
->
{
preLoadFullGroMore
(
activity
,
true
)
...
...
@@ -99,6 +99,7 @@ class WifiAdManager private constructor() {
interstitialGroManager
?.
onDestroy
()
}
interstitialGroManager
=
InterstitialGroManager
()
interstitialGroManager
?.
setWifiAdStatusListener
(
wifiAdStatusListener
)
interstitialGroManager
?.
loadInsertScreenAd
(
activity
,
isMain
)
}
...
...
@@ -120,20 +121,7 @@ class WifiAdManager private constructor() {
fun
showInterstitial
(
_activity
:
Activity
)
{
when
(
currentAdType
)
{
Constant
.
GROMORE_INSERTSCREEN_AD
->
{
interstitialGroManager
?.
setWifiAdStatusListener
(
object
:
WifiAdStatusListener
{
override
fun
adSuccess
()
{
wifiAdStatusListener
?.
adSuccess
()
}
override
fun
adFail
()
{
wifiAdStatusListener
?.
adFail
()
}
override
fun
adClose
()
{
wifiAdStatusListener
?.
adClose
()
}
})
interstitialGroManager
?.
showInteractionAd
(
_activity
)
interstitialGroManager
?.
showInteractionAd
(
_activity
,
wifiAdStatusListener
)
}
Constant
.
GROMORE_FULL_AD
->
{
fullGroManager
?.
showFullAd
(
_activity
,
wifiAdStatusListener
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment