Java Code Examples for com.google.android.exoplayer2.source.ads.AdPlaybackState#AD_STATE_UNAVAILABLE
The following examples show how to use
com.google.android.exoplayer2.source.ads.AdPlaybackState#AD_STATE_UNAVAILABLE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Timeline.java From MediaSDK with Apache License 2.0 | 2 votes |
/** * Returns whether the URL for the specified ad is known. * * @param adGroupIndex The ad group index. * @param adIndexInAdGroup The ad index in the ad group. * @return Whether the URL for the specified ad is known. */ public boolean isAdAvailable(int adGroupIndex, int adIndexInAdGroup) { AdPlaybackState.AdGroup adGroup = adPlaybackState.adGroups[adGroupIndex]; return adGroup.count != C.LENGTH_UNSET && adGroup.states[adIndexInAdGroup] != AdPlaybackState.AD_STATE_UNAVAILABLE; }
Example 2
Source File: Timeline.java From TelePlus-Android with GNU General Public License v2.0 | 2 votes |
/** * Returns whether the URL for the specified ad is known. * * @param adGroupIndex The ad group index. * @param adIndexInAdGroup The ad index in the ad group. * @return Whether the URL for the specified ad is known. */ public boolean isAdAvailable(int adGroupIndex, int adIndexInAdGroup) { AdPlaybackState.AdGroup adGroup = adPlaybackState.adGroups[adGroupIndex]; return adGroup.count != C.LENGTH_UNSET && adGroup.states[adIndexInAdGroup] != AdPlaybackState.AD_STATE_UNAVAILABLE; }
Example 3
Source File: Timeline.java From TelePlus-Android with GNU General Public License v2.0 | 2 votes |
/** * Returns whether the URL for the specified ad is known. * * @param adGroupIndex The ad group index. * @param adIndexInAdGroup The ad index in the ad group. * @return Whether the URL for the specified ad is known. */ public boolean isAdAvailable(int adGroupIndex, int adIndexInAdGroup) { AdPlaybackState.AdGroup adGroup = adPlaybackState.adGroups[adGroupIndex]; return adGroup.count != C.LENGTH_UNSET && adGroup.states[adIndexInAdGroup] != AdPlaybackState.AD_STATE_UNAVAILABLE; }
Example 4
Source File: Timeline.java From Telegram-FOSS with GNU General Public License v2.0 | 2 votes |
/** * Returns whether the URL for the specified ad is known. * * @param adGroupIndex The ad group index. * @param adIndexInAdGroup The ad index in the ad group. * @return Whether the URL for the specified ad is known. */ public boolean isAdAvailable(int adGroupIndex, int adIndexInAdGroup) { AdPlaybackState.AdGroup adGroup = adPlaybackState.adGroups[adGroupIndex]; return adGroup.count != C.LENGTH_UNSET && adGroup.states[adIndexInAdGroup] != AdPlaybackState.AD_STATE_UNAVAILABLE; }
Example 5
Source File: Timeline.java From Telegram with GNU General Public License v2.0 | 2 votes |
/** * Returns whether the URL for the specified ad is known. * * @param adGroupIndex The ad group index. * @param adIndexInAdGroup The ad index in the ad group. * @return Whether the URL for the specified ad is known. */ public boolean isAdAvailable(int adGroupIndex, int adIndexInAdGroup) { AdPlaybackState.AdGroup adGroup = adPlaybackState.adGroups[adGroupIndex]; return adGroup.count != C.LENGTH_UNSET && adGroup.states[adIndexInAdGroup] != AdPlaybackState.AD_STATE_UNAVAILABLE; }