-
public class Profile.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final Parcelable.Creator<Profile>CREATORpublic final static Profile.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ProfilegetCurrentProfile()Getter for the profile that is currently logged in to the application. final UnitsetCurrentProfile(Profile profile)Setter for the profile that is currently logged in to the application. final UnitfetchProfileForCurrentAccessToken()Fetches and sets the current profile from the current access token. final Parcelable.Creator<Profile>getCREATOR()-
-
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.
-
getCREATOR
final Parcelable.Creator<Profile> getCREATOR()
-
-
-
-