Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IEmbedProvider

    Namespace: Umbraco.Cms.Core.Media
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IEmbedProvider

    Properties

    View Source

    ApiEndpoint

    The OEmbed API Endpoint

    Declaration
    string ApiEndpoint { get; }
    Property Value
    Type Description
    string
    View Source

    RequestParams

    A collection of querystring request parameters to append to the API URL

    Declaration
    Dictionary<string, string> RequestParams { get; }
    Property Value
    Type Description
    Dictionary<string, string>
    Examples

    ?key=value&key2=value2

    View Source

    UrlSchemeRegex

    A string array of Regex patterns to match against the pasted OEmbed URL

    Declaration
    string[] UrlSchemeRegex { get; }
    Property Value
    Type Description
    string[]

    Methods

    View Source

    GetMarkupAsync(string, int?, int?, CancellationToken)

    Declaration
    Task<string?> GetMarkupAsync(string url, int? maxWidth, int? maxHeight, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string url
    int? maxWidth
    int? maxHeight
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<string>
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX