View Source
Embed Provider for Giphy.com the popular online GIFs and animated sticker provider.
Inheritance
System.Object
Assembly: Umbraco.Core.dll
public class Giphy : OEmbedProviderBase, IEmbedProvider
Constructors
View Source
Declaration
public Giphy(IJsonSerializer jsonSerializer)
Parameters
Properties
View Source
Declaration
public override string ApiEndpoint { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Declaration
public override Dictionary<string, string> RequestParams { get; }
Property Value
Type |
Description |
Umbraco.Cms.Core.Dictionary<System.String, System.String> |
|
View Source
Declaration
public override string[] UrlSchemeRegex { get; }
Property Value
Type |
Description |
System.String[] |
|
Methods
View Source
Declaration
public override async Task<string> GeOEmbedDataAsync(string url, int? maxWidth, int? maxHeight, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Nullable<System.Int32> |
maxWidth |
|
System.Nullable<System.Int32> |
maxHeight |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.String> |
|
View Source
Declaration
public override string GetMarkup(string url, int maxWidth = 0, int maxHeight = 0)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Int32 |
maxWidth |
|
System.Int32 |
maxHeight |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public override async Task<string> GetMarkupAsync(string url, int? maxWidth, int? maxHeight, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Nullable<System.Int32> |
maxWidth |
|
System.Nullable<System.Int32> |
maxHeight |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.String> |
|