- Adds the OnUserLeaveHintProvider interface to allow any component to receive onUserLeaveHint events necessary for implementing picture-in-picture
- The OnMultiWindowModeChangedProvider, OnNewIntentProvider, OnPictureInPictureModeChangedProvider, OnConfigurationChangedProvider, and OnTrimMemoryProvider interfaces have been converted to Kotlin so that the generic parameters on their listener Consumer have correct non-null nullability
- The MultiWindowModeChangedInfo and PictureInPictureModeChangedInfo classes sent to the Consumer of their respective Provider interfaces are now written in Kotlin
- Core now depends on Lifecycle 2.6.2
- androidx.core.os.CancellationSignal is deprecated; usages should be replaced with the platform-provided android.os.CancellationSignal inferred, marked in the notes below
1 change to check, marked in the notes below
From AndroidX Core
Adds the OnUserLeaveHintProvider interface to allow any component to receive onUserLeaveHint events necessary for implementing picture-in-picture. This is implemented by ComponentActivity in Activity 1.9.0-alpha01. ( I54892) Deprecated androidx.core.os.CancellationSignal. Usages should be replaced with the platform-provided android.os.CancellationSignal. ( Id45f6, b/309499026, b/309054079) The OnMultiWindowModeChangedProvider, OnNewIntentProvider, OnPictureInPictureModeChangedProvider, OnConfigurationChangedProvider, and OnTrimMemoryProvider interfaces have been converted to Kotlin to ensure that the generic parameters on the Consumer that their listener methods take have the correct nullability (they are all non-null). ( Ib6237) The MultiWindowModeChangedInfo and PictureInPictureModeChangedInfo classes that are sent to the Consumer added to their respective Provider interfaces are now written in Kotlin. ( Ie08e2) Core now depends on Lifecycle 2.6.2. ( I2d94c) deprecated · inferred