感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

IContentEntitlementsProvider

Used to provide responses to commands requesting content entitlement data.

Methods

addContentEntitlementChunk()

addContentEntitlementChunk(entitlements): void

Adds content entitlement data to response. Use repeated calls to addContentEntitlementChunk to paginate data to prevent loading large lists into memory. Must eventually be followed by a call to commit() after all entitlements have been sent.

Parameters

entitlements

IContentEntitlement[]

A list of entitlements.

Returns

void


commit()

commit(): void

Indicates the end of responses. Must be called after the final call of addContentEntitlementChunk.

Returns

void


Last updated: Oct 02, 2025