PdfAdapterFactory Class
Definition
Manages PDF adapter creation with platform detection.
public class PdfAdapterFactory
Methods
| Name | Description |
|---|---|
| CreateAdapter | Creates an adapter for the current platform. |
| GetFactory | Gets the best available factory for the current platform. |
| RegisterFactory | Registers a platform-specific factory. |
CreateAdapter Method
Creates an adapter for the current platform.
public Avalonia.Controls.Pdf.Core.IPdfAdapter CreateAdapter()
Returns
GetFactory Method
Gets the best available factory for the current platform.
public Avalonia.Controls.Pdf.Core.IPdfAdapterFactory GetFactory()
Returns
RegisterFactory Method
Registers a platform-specific factory.
public void RegisterFactory(Avalonia.Controls.Pdf.Core.IPdfAdapterFactory factory)
Parameters
Properties
| Name | Description |
|---|---|
| IsSupported | Checks if PDF viewing is supported on the current platform. |
IsSupported Property
Checks if PDF viewing is supported on the current platform.
public bool IsSupported { get; set; }