IFileViewer
is defined in the Telligent.Evolution.Extensibility.UI.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface IFileViewer : IPlugin { int DefaultOrderNumber { get; } string[] SupportedFileExtensions { get; } string SupportedUrlPattern { get; } FileViewerMediaType GetMediaType(ICentralizedFile file, IFileViewerOptions options); FileViewerMediaType GetMediaType(Uri url, IFileViewerOptions options); string Render(ICentralizedFile file, IFileViewerOptions options); string Render(Uri url, IFileViewerOptions options); }
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
DefaultOrderNumber | int | |||
SupportedFileExtensions | string[] | |||
SupportedUrlPattern | string |
Methods
FileViewerMediaType GetMediaType(ICentralizedFile file, IFileViewerOptions options);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
file | ICentralizedFile | File | Required | ||
options | IFileViewerOptions | Options | Required |
Return Type
FileViewerMediaType GetMediaType(Uri url, IFileViewerOptions options);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | Uri | Url | Required | ||
options | IFileViewerOptions | Options | Required |
Return Type
string Render(ICentralizedFile file, IFileViewerOptions options);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
file | ICentralizedFile | File | Required | ||
options | IFileViewerOptions | Options | Required |
Return Type
string
string Render(Uri url, IFileViewerOptions options);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | Uri | Url | Required | ||
options | IFileViewerOptions | Options | Required |
Return Type
string