Interface IApiMediaWithCropsBuilder
Represents a builder for creating API media objects that include crop information.
Namespace: Umbraco.Cms.Infrastructure.DeliveryApi
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IApiMediaWithCropsBuilder
Methods
View SourceBuild(MediaWithCrops)
Builds an Umbraco.Cms.Infrastructure.DeliveryApi.IApiMediaWithCrops instance from the specified MediaWithCrops media.
Declaration
IApiMediaWithCrops Build(MediaWithCrops media)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaWithCrops | media | The media with crops to build from. |
Returns
| Type | Description |
|---|---|
| IApiMediaWithCrops | An Umbraco.Cms.Infrastructure.DeliveryApi.IApiMediaWithCrops representing the built media with crops. |
Build(IPublishedContent)
Builds an Umbraco.Cms.Infrastructure.DeliveryApi.IApiMediaWithCrops instance from the specified Umbraco.Cms.Core.Models.IPublishedContent media.
Declaration
IApiMediaWithCrops Build(IPublishedContent media)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedContent | media | The published media content to build from. |
Returns
| Type | Description |
|---|---|
| IApiMediaWithCrops | An Umbraco.Cms.Infrastructure.DeliveryApi.IApiMediaWithCrops representing the built media with crops. |