UniPRT SDK v2.0.0.0
 
Loading...
Searching...
No Matches
NetworkDiscover Class Reference

A utility class for discovering printers on the network. More...

#include <NetworkDiscover.h>

Inheritance diagram for NetworkDiscover:

Class Methods

(NSArray< NSString * > *) + getPrinterList
 Gets a list of all discovered printers on the network.
 
(NSArray< NSString * > *) + getPrinterListWithBrand:
 Gets a list of discovered printers filtered by brand.
 
(NSArray< NSString * > *) + getPrinterListWithBrand:timeout:
 Gets a list of discovered printers filtered by brand, with a timeout.
 

Detailed Description

A utility class for discovering printers on the network.

This class provides static methods to search for available printers, optionally filtering by brand or specifying a timeout.

Method Documentation

◆ getPrinterList

+ (NSArray< NSString * > *) getPrinterList

Gets a list of all discovered printers on the network.

Returns
An array of NSString objects representing printer IP addresses or hostnames.

◆ getPrinterListWithBrand:

+ (NSArray< NSString * > *) getPrinterListWithBrand: (PrinterBrand) brand

Gets a list of discovered printers filtered by brand.

Parameters
brandThe printer brand to filter by.
Returns
An array of NSString objects representing printer IP addresses or hostnames.

◆ getPrinterListWithBrand:timeout:

+ (NSArray< NSString * > *) getPrinterListWithBrand: (PrinterBrand) brand
timeout: (NSInteger) timeoutMs 

Gets a list of discovered printers filtered by brand, with a timeout.

Parameters
brandThe printer brand to filter by.
timeoutMsThe timeout duration in milliseconds.
Returns
An array of NSString objects representing printer IP addresses or hostnames.

The documentation for this class was generated from the following file: