Skip to content

PrinterDriverGenerator

A generator to initialize PrinterDriver.

Overview

To initialize PrinterDriver class, you pass Channel object to this class function. You receive an instance of PrinterDriver if connecting to your printer is successful.

Class methods

openChannel

Return PrinterDriverGenerateResult object that contains a result of the initialization and PrinterDriver instance if the result is NoError.

Declaration

public static PrinterDriverGenerateResult openChannel(final Channel channel);

Parameters

Name Type Description
channel Channel Channel type and channel information

openChannelWithCredential

Return PrinterDriverGenerateResult object that contains a result of the initialization and PrinterDriver instance if the result is NoError.

Declaration

public static PrinterDriverGenerateResult openChannelWithCredential(final Channel channel, final ChannelCredential credential);

Parameters

Name Type Description
channel Channel Channel type and channel information
credential ChannelCredential Credential for authentication (required for operations that need authentication, such as network transfer)