@magiclane/maps-sdk
    Preparing search index...

    Class TrafficPreferences

    Traffic Preferences

    This class should not be instantiated directly. Use the TrafficService.preferences getter to get an instance.

    Hierarchy

    • GemAutoreleaseObject
      • TrafficPreferences
    Index

    Constructors

    Accessors

    • get pointerId(): number

      Returns number

    • get useTraffic(): TrafficUsage

      Get the type of traffic service that is used.

      Returns TrafficUsage

      The traffic service usage type

    • set useTraffic(useTraffic: TrafficUsage): void

      Enable/disable traffic service Default is UseOnline

      Parameters

      Returns void

    Methods

    • Registers an object for auto release. When the object is not used anymore, it will be released automatically from C++.

      Parameters

      • pointerId: any

        The pointer ID to register

      Returns void