service library

Contains the business logic for connecting data to UI

To view the Open API specification used to power this application, visit the API Portal and select the Timeline specification

Classes

APIConstants
AuthenticatingAPIClient
AuthenticationEvent
AuthorizationService
Manages authentication for API Client
EngagementService
Manages engagements such as In-App Messages, Prompts, and Inline forms for the specific user or installation ID
FavoriteService
Manages user favorites.
InstallationService
Handles fetching of unique installation ID
SessionId
Contains random ID used to manage session
SignInProgress
TimelineService
Service for managing TimelineUser
WisdomService
Encapsulated behavior for fetching the Quote of day

Enums

AuthProvider
AuthType
SignInState

Constants

kSimulateAuth → const bool
kSimulateAuthToken → const String

Properties

authSimulationCallback SignInStateCallback?
getter/setter pair
enabledAuthProviders ↔ List<AuthProvider>
getter/setter pair
googleSignIn GoogleSignIn
final

Functions

authenticateUser(AuthenticationEvent event, SignInStateCallback statusCallback) → Future
checkLoggedInState() → void
initializeAuthProviders() → void
isAuthProviderEnabled(AuthProvider provider) → bool
markSessionEnd() → Future<void>
markSessionStart() → Future<void>
providerAvailable(AuthProvider provider) → Future<bool>
signInWithSocial(AuthProvider provider, SignInStateCallback statusCallback) → void
signOutAuthProviders() → void
updateHeader(dynamic client, {String? languageCode, String? location}) → dynamic
Updates Http Request with the following IDs

Typedefs

AuthChangeListener = void Function(AuthorizationService service)
SignInStateCallback = dynamic Function(SignInState)