Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
88223882
authored
May 11, 2020
by
andrewlewis
Committed by
Oliver Woodman
May 14, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated symbols in ImaAdsLoader
PiperOrigin-RevId: 310901647
parent
9fa2aaf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.java
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.java
View file @
88223882
...
@@ -41,7 +41,6 @@ import com.google.ads.interactivemedia.v3.api.AdsManager;
...
@@ -41,7 +41,6 @@ import com.google.ads.interactivemedia.v3.api.AdsManager;
import
com.google.ads.interactivemedia.v3.api.AdsManagerLoadedEvent
;
import
com.google.ads.interactivemedia.v3.api.AdsManagerLoadedEvent
;
import
com.google.ads.interactivemedia.v3.api.AdsRenderingSettings
;
import
com.google.ads.interactivemedia.v3.api.AdsRenderingSettings
;
import
com.google.ads.interactivemedia.v3.api.AdsRequest
;
import
com.google.ads.interactivemedia.v3.api.AdsRequest
;
import
com.google.ads.interactivemedia.v3.api.CompanionAdSlot
;
import
com.google.ads.interactivemedia.v3.api.ImaSdkFactory
;
import
com.google.ads.interactivemedia.v3.api.ImaSdkFactory
;
import
com.google.ads.interactivemedia.v3.api.ImaSdkSettings
;
import
com.google.ads.interactivemedia.v3.api.ImaSdkSettings
;
import
com.google.ads.interactivemedia.v3.api.UiElement
;
import
com.google.ads.interactivemedia.v3.api.UiElement
;
...
@@ -69,7 +68,6 @@ import java.lang.annotation.Retention;
...
@@ -69,7 +68,6 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.RetentionPolicy
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.HashSet
;
...
@@ -426,33 +424,6 @@ public final class ImaAdsLoader
...
@@ -426,33 +424,6 @@ public final class ImaAdsLoader
/* imaFactory= */
new
DefaultImaFactory
());
/* imaFactory= */
new
DefaultImaFactory
());
}
}
/**
* Creates a new IMA ads loader.
*
* @param context The context.
* @param adTagUri The {@link Uri} of an ad tag compatible with the Android IMA SDK. See
* https://developers.google.com/interactive-media-ads/docs/sdks/android/compatibility for
* more information.
* @param imaSdkSettings {@link ImaSdkSettings} used to configure the IMA SDK, or {@code null} to
* use the default settings. If set, the player type and version fields may be overwritten.
* @deprecated Use {@link ImaAdsLoader.Builder}.
*/
@Deprecated
public
ImaAdsLoader
(
Context
context
,
Uri
adTagUri
,
@Nullable
ImaSdkSettings
imaSdkSettings
)
{
this
(
context
,
adTagUri
,
imaSdkSettings
,
/* adsResponse= */
null
,
/* vastLoadTimeoutMs= */
TIMEOUT_UNSET
,
/* mediaLoadTimeoutMs= */
TIMEOUT_UNSET
,
/* mediaBitrate= */
BITRATE_UNSET
,
/* focusSkipButtonWhenAvailable= */
true
,
/* adUiElements= */
null
,
/* adEventListener= */
null
,
/* imaFactory= */
new
DefaultImaFactory
());
}
@SuppressWarnings
({
"nullness:argument.type.incompatible"
,
"methodref.receiver.bound.invalid"
})
@SuppressWarnings
({
"nullness:argument.type.incompatible"
,
"methodref.receiver.bound.invalid"
})
private
ImaAdsLoader
(
private
ImaAdsLoader
(
Context
context
,
Context
context
,
...
@@ -530,19 +501,6 @@ public final class ImaAdsLoader
...
@@ -530,19 +501,6 @@ public final class ImaAdsLoader
}
}
/**
/**
* Sets the slots for displaying companion ads. Individual slots can be created using {@link
* ImaSdkFactory#createCompanionAdSlot()}.
*
* @param companionSlots Slots for displaying companion ads.
* @see AdDisplayContainer#setCompanionSlots(Collection)
* @deprecated Use {@code getAdDisplayContainer().setCompanionSlots(...)}.
*/
@Deprecated
public
void
setCompanionSlots
(
Collection
<
CompanionAdSlot
>
companionSlots
)
{
adDisplayContainer
.
setCompanionSlots
(
companionSlots
);
}
/**
* Requests ads, if they have not already been requested. Must be called on the main thread.
* Requests ads, if they have not already been requested. Must be called on the main thread.
*
*
* <p>Ads will be requested automatically when the player is prepared if this method has not been
* <p>Ads will be requested automatically when the player is prepared if this method has not been
...
...
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