Skip to main content

PdfAdapterFactory Class

Definition​

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Manages PDF adapter creation with platform detection.

public class PdfAdapterFactory

Inheritance: object -> PdfAdapterFactory

Methods​

NameDescription
CreateAdapterCreates an adapter for the current platform.
GetFactoryGets the best available factory for the current platform.
RegisterFactoryRegisters a platform-specific factory.

CreateAdapter Method​

Creates an adapter for the current platform.

public Avalonia.Controls.Pdf.Core.IPdfAdapter CreateAdapter()

Returns​

Avalonia.Controls.Pdf.Core.IPdfAdapter

GetFactory Method​

Gets the best available factory for the current platform.

public Avalonia.Controls.Pdf.Core.IPdfAdapterFactory GetFactory()

Returns​

Avalonia.Controls.Pdf.Core.IPdfAdapterFactory

RegisterFactory Method​

Registers a platform-specific factory.

public void RegisterFactory(Avalonia.Controls.Pdf.Core.IPdfAdapterFactory factory)

Parameters​

factory Avalonia.Controls.Pdf.Core.IPdfAdapterFactory

Properties​

NameDescription
IsSupportedChecks 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; }