Skip to Content
Anuma SDKReactInternalClassesBlobUrlManager

BlobUrlManager

Defined in: src/lib/storage/opfs.ts:313 

Manager for blob URLs to prevent memory leaks. Tracks active blob URLs and provides cleanup functionality.

Constructors

Constructor

new BlobUrlManager(): BlobUrlManager

Returns

BlobUrlManager

Accessors

size

Get Signature

get size(): number

Defined in: src/lib/storage/opfs.ts:359 

Gets the count of active blob URLs.

Returns

number

Methods

createUrl()

createUrl(fileId: string, blob: Blob): string

Defined in: src/lib/storage/opfs.ts:319 

Creates a blob URL for a file and tracks it.

Parameters

ParameterType

fileId

string

blob

Blob

Returns

string


getUrl()

getUrl(fileId: string): string | undefined

Defined in: src/lib/storage/opfs.ts:331 

Gets the active blob URL for a file, if any.

Parameters

ParameterType

fileId

string

Returns

string | undefined


revokeAll()

revokeAll(): void

Defined in: src/lib/storage/opfs.ts:349 

Revokes all tracked blob URLs.

Returns

void


revokeUrl()

revokeUrl(fileId: string): void

Defined in: src/lib/storage/opfs.ts:338 

Revokes a blob URL and removes it from tracking.

Parameters

ParameterType

fileId

string

Returns

void

Last updated on