Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKLocationSortDescriptorMBS class.

CKLocationSortDescriptorMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Private constructor.

See also:

CKLocationSortDescriptorMBS.Constructor(key as string, relativeLocation as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns a location sort descriptor object.

key: The name of the key whose value is a CLLocationMBS object. The key must belong to the records being sorted. The sort descriptor uses this key to retrieve the corresponding value from the record.
relativeLocation: The reference location to use when sorting. Records are sorted based on their distance to this location.

Returns an initialized location sort descriptor object, or nil if the object cannot be initialized.

During sorting, the sort descriptor computes the distance between the value in the relativeLocation parameter and the location value found in the specified key of each record. It then sorts the records in ascending order using the distance between the two points. You cannot change the sort order.

relativeLocation must be a CLLocationMBS object.

See also:

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


The biggest plugin in space...