mirror of
https://github.com/androidx/media.git
synced 2025-05-05 06:30:24 +08:00
Add @OptIn
to fields in demo PlayerActivity
now this is supported
This is possible now we use `annotation-experimental:1.3.1`. #minor-release PiperOrigin-RevId: 582315579 (cherry picked from commit 8d83d491f198fbe3a21181df235dfff314252929)
This commit is contained in:
parent
f90726a78d
commit
1b83c59759
@ -93,11 +93,11 @@ public class PlayerActivity extends AppCompatActivity
|
|||||||
|
|
||||||
@Nullable private AdsLoader clientSideAdsLoader;
|
@Nullable private AdsLoader clientSideAdsLoader;
|
||||||
|
|
||||||
// TODO: Annotate this and serverSideAdsLoaderState below with @OptIn when it can be applied to
|
@OptIn(markerClass = UnstableApi.class)
|
||||||
// fields (needs http://r.android.com/2004032 to be released into a version of
|
@Nullable
|
||||||
// androidx.annotation:annotation-experimental).
|
private ImaServerSideAdInsertionMediaSource.AdsLoader serverSideAdsLoader;
|
||||||
@Nullable private ImaServerSideAdInsertionMediaSource.AdsLoader serverSideAdsLoader;
|
|
||||||
|
|
||||||
|
@OptIn(markerClass = UnstableApi.class)
|
||||||
private ImaServerSideAdInsertionMediaSource.AdsLoader.@MonotonicNonNull State
|
private ImaServerSideAdInsertionMediaSource.AdsLoader.@MonotonicNonNull State
|
||||||
serverSideAdsLoaderState;
|
serverSideAdsLoaderState;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user