MKDistanceFormatterMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to MKDistanceFormatterMBS class.

MKDistanceFormatterMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The constructor.

See also:

MKDistanceFormatterMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 21.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Constructor for creating an instanced based on an existing handle.

Useful if you get a MKDistanceFormatter reference from a declare.
The object is retained.

See also:

MKDistanceFormatterMBS.distanceFromString(distance as String) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the distance value parsed from the specified string.

distance: A formatted string that specifies a distance.

Returns the distance value represented by the string or -1.0 if the string does not contain a recognized distance value.

This method searches the provided string for a number that could represent a distance. Distances must be specified as purely numerical values. Do not specify distances as fractions such as "1/4 mile".

MKDistanceFormatterMBS.stringFromDistance(distance as Double) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates a string representation of the specified distance.

distance: The distance value that you want to convert to a string.

Returns a user-readable string that describes the distance based on the formatter settings.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


💬 Ask a question or report a problem