mgl_expressionLocalizedIntoLocale method

NSExpression mgl_expressionLocalizedIntoLocale(
  1. NSLocale? locale
)

Returns a copy of the receiver localized into the given locale.

This method assumes the receiver refers to the feature attributes that are available in vector tiles supplied by the Mapbox Streets source. On iOS, the user can set the system’s preferred language in Settings, General Settings, Language & Region. On macOS, the user can set the system’s preferred language in the Language & Region pane of System Preferences.

@param locale The locale into which labels should be localized. To use the system’s preferred language, if supported, specify nil. To use the local language, specify a locale with the identifier mul.

Implementation

NSExpression mgl_expressionLocalizedIntoLocale(objc.NSLocale? locale) {
objc.checkOsVersionInternal('NSExpression.mgl_expressionLocalizedIntoLocale:', iOS: (false, (3, 0, 0)), macOS: (false, (10, 4, 0)));
  final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, _sel_mgl_expressionLocalizedIntoLocale_, locale?.ref.pointer ?? ffi.nullptr);
  return NSExpression.castFromPointer(_ret, retain: true, release: true);
}