1// Signature format: 2.0 2package android.media { 3 4 public class MediaCommunicationManager { 5 method @RequiresPermission(android.Manifest.permission.MEDIA_CONTENT_CONTROL) public void registerSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.MediaCommunicationManager.SessionCallback); 6 method public void unregisterSessionCallback(@NonNull android.media.MediaCommunicationManager.SessionCallback); 7 } 8 9 public static interface MediaCommunicationManager.SessionCallback { 10 method public default void onSession2TokenCreated(@NonNull android.media.Session2Token); 11 method public default void onSession2TokensChanged(@NonNull java.util.List<android.media.Session2Token>); 12 } 13 14 public class MediaFrameworkInitializer { 15 method public static void registerServiceWrappers(); 16 method public static void setMediaServiceManager(@NonNull android.media.MediaServiceManager); 17 } 18 19 @Deprecated public final class MediaParceledListSlice<T extends android.os.Parcelable> implements android.os.Parcelable { 20 ctor @Deprecated public MediaParceledListSlice(@NonNull java.util.List<T>); 21 method @Deprecated public int describeContents(); 22 method @Deprecated @NonNull public static <T extends android.os.Parcelable> android.media.MediaParceledListSlice<T> emptyList(); 23 method @Deprecated public java.util.List<T> getList(); 24 method @Deprecated public void setInlineCountLimit(int); 25 method @Deprecated public void writeToParcel(android.os.Parcel, int); 26 field @Deprecated @NonNull public static final android.os.Parcelable.ClassLoaderCreator<android.media.MediaParceledListSlice> CREATOR; 27 } 28 29} 30 31