Pebble App Framework: Phone API
    Preparing search index...

    Function preferencesFrom

    • The wearer's preferences in a preferences/units update.

      The units are as unitsFrom reads them, or null for an update that names none of them, so a caller can tell the Pebble app's own units from the defaults. The clock reads 12h or 24h, whatever the case and with spaces at the ends taken off, and anything else is null. The locale is the text as the Pebble app gives it, trimmed, or null when it is blank.

      Parameters

      • envelope: SourceEnvelope | null | undefined

        One update from preferences/units, which may be missing or carry anything.

      • overrides: UnitOverrides = {}

        The plugin's own choice for each unit.

      Returns PebbleAppPreferences

      The preferences.