Package 

Interface BackStackKeyResolver


  • 
    public interface BackStackKeyResolver<T extends Object>
    
                        

    Resolves a stable key for an item in a back stack. A stable key means that the same item will always return the same key during its lifetime in the back stack, and that two different items should not return the same key.

    This is used in com.datadog.android.rum.RumMonitor.startView and com.datadog.android.rum.RumMonitor.stopView as the key to identify items in the back stack and track them as Views in RUM.

    • Method Summary

      Modifier and Type Method Description
      abstract String getStableKey(T item) Returns a stable key for the given item.
      • Methods inherited from class java.lang.Object

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

      • getStableKey

         abstract String getStableKey(T item)

        Returns a stable key for the given item.

        Parameters:
        item - the item to get the stable key for.