Back to Exoplayer

BundleUtil (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/BundleUtil.html

latest4.6 KB
Original Source

Package com.google.android.exoplayer2.util

Class BundleUtil


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classBundleUtilextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

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 Summary

All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | static IBinder | getBinder​(Bundle bundle, String key) | Deprecated.

Gets an IBinder inside a Bundle for all Android versions. | | static void | putBinder​(Bundle bundle, String key, IBinder binder) | Deprecated.

Puts an IBinder inside a Bundle for all Android versions. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

- 

getBinder

@Nullable
public static[IBinder](https://developer.android.com/reference/android/os/IBinder.html "class or interface in android.os")getBinder​([Bundle](https://developer.android.com/reference/android/os/Bundle.html?is-external=true "class or interface in android.os")bundle,
                                @Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")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](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")bundle,
                             @Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")key,
                             @Nullable[IBinder](https://developer.android.com/reference/android/os/IBinder.html "class or interface in android.os")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.