Class BundleExtensions

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T getSupportParcelable(Bundle $self, String key, Class<T> clazz) Gets parcelable with the value associated to the given key using appropriate API for Android Tiramisu and upwards.
      final static <T extends Parcelable> ArrayList<T> getSupportParcelableArrayList(Bundle $self, String key, Class<T> clazz) Gets parcelable array list with the value associated to the given key using appropriate API for Android Tiramisu and upwards.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getSupportParcelable

         final static <T extends Any> T getSupportParcelable(Bundle $self, String key, Class<T> clazz)

        Gets parcelable with the value associated to the given key using appropriate API for Android Tiramisu and upwards.

        <p><b>Note: </b> [Bundle.getParcelable(String)] has been deprecated starting with [Build.VERSION_CODES#TIRAMISU].
        Parameters:
        key - A String, or null.
        clazz - The type of the object expected.
        Returns:

        A Parcelable value, or null.

      • getSupportParcelableArrayList

         final static <T extends Parcelable> ArrayList<T> getSupportParcelableArrayList(Bundle $self, String key, Class<T> clazz)

        Gets parcelable array list with the value associated to the given key using appropriate API for Android Tiramisu and upwards.

        <p><b>Note: </b> [Bundle.getParcelableArrayList(String)] has been deprecated starting with [Build.VERSION_CODES#TIRAMISU].
        Parameters:
        key - A String, or null.
        clazz - The type of the object expected.
        Returns:

        A Parcelable array list, or null.