\ZxingResult

<p>Encapsulates the result of decoding a barcode within an image.</p>

Summary

Methods
Properties
Constants
__construct()
getText()
getRawBytes()
getResultPoints()
getBarcodeFormat()
getResultMetadata()
putMetadata()
putAllMetadata()
addResultPoints()
getTimestamp()
toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$text
$rawBytes
$resultPoints
$format
$resultMetadata
$timestamp
N/A

Properties

$text

$text : 

Type

$rawBytes

$rawBytes : 

Type

$resultPoints

$resultPoints : 

Type

$format

$format : 

Type

$resultMetadata

$resultMetadata : 

Type

$timestamp

$timestamp : 

Type

Methods

__construct()

__construct(  $text,   $rawBytes,   $resultPoints,   $format,   $timestamp = '') 

Parameters

$text
$rawBytes
$resultPoints
$format
$timestamp

getText()

getText() : \Zxing\raw

Returns

\Zxing\raw —

text encoded by the barcode

getRawBytes()

getRawBytes() : \Zxing\raw

Returns

\Zxing\raw —

bytes encoded by the barcode, if applicable, otherwise {@code null}

getResultPoints()

getResultPoints() : \Zxing\points

Returns

\Zxing\points —

related to the barcode in the image. These are typically points identifying finder patterns or the corners of the barcode. The exact meaning is specific to the type of barcode that was decoded.

getBarcodeFormat()

getBarcodeFormat() : \Zxing\{@link

Returns

\Zxing\{@link —

BarcodeFormat} representing the format of the barcode that was decoded

getResultMetadata()

getResultMetadata() : \Zxing\{@link

Returns

\Zxing\{@link —

Map} mapping {@link ResultMetadataType} keys to values. May be {@code null}. This contains optional metadata about what was detected about the barcode, like orientation.

putMetadata()

putMetadata(  $type,   $value) 

Parameters

$type
$value

putAllMetadata()

putAllMetadata(  $metadata) 

Parameters

$metadata

addResultPoints()

addResultPoints(  $newPoints) 

Parameters

$newPoints

getTimestamp()

getTimestamp() 

toString()

toString()