TomTomSDKPersonalData

TomTomSDKPersonalData

This module provides the necessary interfaces for managing users’ personal locations, such as home, work, favorites, and recent destinations. To benefit from this implementation, use the `TomTomSDKPersonalDataDefault` module.

The module is ideal for use cases such as navigating to home or work, managing favorites, or reviewing recent destinations, among others.

Use the `PersonalData` protocol as the entry point to this module.

  • A single personal location of the current user of the application. If this location has been explicitly saved by the user as a personal location (for example, home or work), it has the respective type set in PersonalLocation.types. If it has been recently visited (and is part of recent destinations) lastVisit is set.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct PersonalLocation
  • Entity holding all personal locations of the current user of the application. All modifications to the personal locations must be persisted using PersonalData.storeUserProfile.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct UserLocations
  • Entity holding all personal data relating to the current user of the application.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct UserProfile : Equatable
  • Implementations of PersonalData enable easy access to the personal data. Personal data refers to personal locations (home/work/favorites), recent destinations, personal preferences relevant to search, routing and guidance, and potentially other data needed to create navigation applications that are “connected” to the users digital life.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol PersonalData
  • An observer for user profile updates. It is notified when the user profile is updated. The observer is added using PersonalData.addUserProfileUpdateObserver.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol UserProfileUpdateObserver : Observer