Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

OnSharedElementsReadyListener

interface OnSharedElementsReadyListener
androidx.core.app.SharedElementCallback.OnSharedElementsReadyListener

Listener to be called after when the shared elements are ready to be hidden in the source Activity and shown in the destination Activity.

Summary

Public methods

abstract Unit

Call this method during or after the OnSharedElementsReadyListener has been received in SharedElementCallback#onSharedElementsArrived(List, List, * OnSharedElementsReadyListener) to indicate that the shared elements are ready to be hidden in the source and shown in the destination Activity.

Public methods

onSharedElementsReady

abstract fun onSharedElementsReady(): Unit

Call this method during or after the OnSharedElementsReadyListener has been received in SharedElementCallback#onSharedElementsArrived(List, List, * OnSharedElementsReadyListener) to indicate that the shared elements are ready to be hidden in the source and shown in the destination Activity.