Package 

Interface DataStoreReadCallback

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onSuccess(DataStoreContent<T> dataStoreContent) Triggered on successfully reading data from the datastore.
      abstract Unit onFailure() Triggered on failing to read data from the datastore.
      • Methods inherited from class java.lang.Object

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

      • onSuccess

         abstract Unit onSuccess(DataStoreContent<T> dataStoreContent)

        Triggered on successfully reading data from the datastore.

        Parameters:
        dataStoreContent - (nullable) contains the datastore content if there was data to fetch, else null.
      • onFailure

         abstract Unit onFailure()

        Triggered on failing to read data from the datastore.