# Interface ICefResourceBundle

Description
Hierarchy
Fields
Methods
Properties

## Unit

uCEFInterfaces

## Declaration

`type ICefResourceBundle = interface(ICefBaseRefCounted)`

## Description

Interface used for retrieving resources from the resource bundle (*.pak) files loaded by CEF during startup or via the ICefResourceBundleHandler returned from ICefApp.GetResourceBundleHandler. See TCefSettings for additional options related to resource bundle loading. The functions of this interface may be called on any thread unless otherwise indicated.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_resource_bundle_capi.h">CEF source file: /include/capi/cef_resource_bundle_capi.h (cef_resource_bundle_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefResourceBundle

## Overview

### Methods

| `function GetLocalizedString(stringId: Integer): ustring;`
| `function GetDataResource(resourceId: Integer): ICefBinaryValue;`
| `function GetDataResourceForScale(resourceId: Integer; scaleFactor: TCefScaleFactor): ICefBinaryValue;`

## Description

### Methods

| `function GetLocalizedString(stringId: Integer): ustring;`
Returns the localized string for the specified |string_id| or an NULL string if the value is not found. Include cef_pack_strings.h for a listing of valid string ID values. ###### Attributes GUID['{3213CF97-C854-452B-B615-39192F8D07DC}']

| `function GetDataResource(resourceId: Integer): ICefBinaryValue;`
Returns a ICefBinaryValue containing the decompressed contents of the specified scale independent |resource_id| or NULL if not found. Include cef_pack_resources.h for a listing of valid resource ID values.

| `function GetDataResourceForScale(resourceId: Integer; scaleFactor: TCefScaleFactor): ICefBinaryValue;`
Returns a ICefBinaryValue containing the decompressed contents of the specified |resource_id| nearest the scale factor |scale_factor| or NULL if not found. Use a |scale_factor| value of SCALE_FACTOR_NONE for scale independent resources or call GetDataResource instead.Include cef_pack_resources.h for a listing of valid resource ID values.

Generated by PasDoc 0.16.0-snapshot.