getContentAndSize Method

Deprecated  Use PresentationManager.getContent and PresentationManager.getContentSetSize separately

Retrieves the content and content size based on supplied content descriptor override.

getContentAndSize(requestContext: ClientRequestContext, requestOptions: Paged<ContentRequestOptions<IModelDb, RulesetVariable>>, descriptorOrOverrides: Descriptor | DescriptorOverrides, keys: KeySet): Promise<{ content: undefined | Content, size: number }>

Parameter Type Description
requestContext ClientRequestContext Client request context
requestOptions Paged<ContentRequestOptions<IModelDb, RulesetVariable>> Options for thr request.
descriptorOrOverrides Descriptor | DescriptorOverrides Content descriptor or its overrides specifying how the content should be customized
keys KeySet Keys of ECInstances to get the content for

Returns - Promise<{ content: undefined | Content, size: number }>

A promise object that returns either content and content set size on success or an error string on error.

Defined in

Last Updated: 11 June, 2024