Language

BAAssetPackManager.GetLocalizedUrl(String, String, NSError) Method

Definition

Gets a URL for an item in localized asset packs.

[Foundation.Export("URLForPath:asLocalizedForLanguage:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSUrl? GetLocalizedUrl(string path, string languageIdentifier, out Foundation.NSError? error);
[<Foundation.Export("URLForPath:asLocalizedForLanguage:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLocalizedUrl : string * string * NSError -> Foundation.NSUrl
override this.GetLocalizedUrl : string * string * NSError -> Foundation.NSUrl

Parameters

path
String

The relative path to the item.

languageIdentifier
String

The BCP-47 identifier used to select localized asset packs.

error
NSError

The error, or null if the operation succeeded.

Returns

The item URL, or null if an error occurred. Don't persist the URL beyond the current process.

Attributes

Applies to