-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add close button area and position properties (#411)
* feat(controls): add close button area property #388 * feat(controls): add unit tests #388 * feat(controls): add internal example #388 * feat(controls): fix tests #388 * feat(controls): create close button position property #389 Make example in Internal test app. Write unit tests.
- Loading branch information
1 parent
f6f4692
commit b4e2d70
Showing
14 changed files
with
315 additions
and
25 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...id/mobile/renderingtestapp/plugplay/bidding/ppm/PpmInterstitialCloseButtonAreaFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.prebid.mobile.renderingtestapp.plugplay.bidding.ppm | ||
|
||
import org.prebid.mobile.rendering.bidding.enums.AdUnitFormat | ||
import org.prebid.mobile.rendering.bidding.parallel.InterstitialAdUnit | ||
import org.prebid.mobile.renderingtestapp.plugplay.bidding.base.BaseBidInterstitialFragment | ||
import org.prebid.mobile.units.configuration.Position | ||
import java.util.* | ||
|
||
class PpmInterstitialCloseButtonAreaFragment : BaseBidInterstitialFragment() { | ||
|
||
override fun initInterstitialAd( | ||
adUnitFormat: AdUnitFormat, | ||
adUnitId: String?, | ||
configId: String?, | ||
width: Int, | ||
height: Int | ||
) { | ||
interstitialAdUnit = if (adUnitFormat == AdUnitFormat.VIDEO) { | ||
InterstitialAdUnit(requireContext(), configId, EnumSet.of(adUnitFormat)) | ||
} else { | ||
InterstitialAdUnit(requireContext(), configId) | ||
} | ||
interstitialAdUnit?.setInterstitialAdUnitListener(this) | ||
interstitialAdUnit?.setCloseButtonArea(0.40) | ||
interstitialAdUnit?.setCloseButtonPosition(Position.TOP_LEFT) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.