Language

BAAssetPackManager.GetLocalizedContents Method

Definition

Gets the contents of a localized asset file at the specified relative path.

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

Parameters

path
String

The relative path to the asset file.

languageIdentifier
String

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

options
NSDataReadingOptions

The options used to read the file.

error
NSError

The error, or null if the operation succeeded.

Returns

The file contents, or null if an error occurred.

Attributes

Applies to