Obsolete Members for Unit

  • Unit
  • The following members of class Unit are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

    Public Functions

    (obsolete) int unitId() const

    Static Public Members

    (obsolete) Esri::ArcGISRuntime::Unit fromUnitId(int unitId)

    Member Function Documentation

    [static] Esri::ArcGISRuntime::Unit Unit::fromUnitId(int unitId)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Constructs a new %Unit based on the unitId corresponding to desired %Unit. Returns A new %Unit instance which will be one of AreaUnit, AngularUnit, LinearUnit or null if it could not be created.

    Note: This is deprecated in 100.14. Use Unit::fromWkid instead. since Esri::ArcGISRuntime 100.14

    int Unit::unitId() const

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Gets the unit ID, which is unique across all types of units.

    Note: This is deprecated in 100.14. Use Unit::wkid instead. since Esri::ArcGISRuntime 100.14

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.