Package 

Object Profile.Companion

    • Method Detail

      • getCurrentProfile

         final Profile getCurrentProfile()

        Getter for the profile that is currently logged in to the application.

      • setCurrentProfile

         final Unit setCurrentProfile(Profile profile)

        Setter for the profile that is currently logged in to the application. If the access token is invalidated, the current profile will not be updated. It's only updated when there is an explicit logout, login or when permissions change via the [ ].

        Parameters:
        profile - The profile that is currently logged in to the application.
      • fetchProfileForCurrentAccessToken

         final Unit fetchProfileForCurrentAccessToken()

        Fetches and sets the current profile from the current access token.

        This should only be called from the UI thread.