Class BundleUtil


  • @Deprecated
    public final class BundleUtil
    extends Object
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Utilities for Bundle.
    • Method Detail

      • getBinder

        @Nullable
        public static IBinder getBinder​(Bundle bundle,
                                        @Nullable
                                        String key)
        Deprecated.
        Gets an IBinder inside a Bundle for all Android versions.
        Parameters:
        bundle - The bundle to get the IBinder.
        key - The key to use while getting the IBinder.
        Returns:
        The IBinder that was obtained.
      • putBinder

        public static void putBinder​(Bundle bundle,
                                     @Nullable
                                     String key,
                                     @Nullable
                                     IBinder binder)
        Deprecated.
        Puts an IBinder inside a Bundle for all Android versions.
        Parameters:
        bundle - The bundle to insert the IBinder.
        key - The key to use while putting the IBinder.
        binder - The IBinder to put.