Dokumentacja platformy MLKitBarcodeScanning
BarcodeAddress
class BarcodeAddress : NSObject
adres,
-
Sformatowany adres, w odpowiednich przypadkach zawierający kilka wierszy.
Analiza formatów adresów jest dość ograniczona. Zwykle wszystkie informacje adresowe pojawiają się w pierwszym wierszu adresu. Aby lepiej obsługiwać adresy, zalecamy zanalizowanie danych nieprzetworzonych. Nieprzetworzone dane są dostępne w usłudze rawValue
w usługi Barcode
.
Deklaracja
Swift
var addressLines: [String]? { get }
-
-
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-12-01 UTC.
[null,null,["Ostatnia aktualizacja: 2024-12-01 UTC."],[[["BarcodeAddress represents a parsed address with properties for formatted lines and address type."],["Address parsing is limited, often placing all information on the first line; using raw data from Barcode's `rawValue` is recommended for more comprehensive address handling."],["It includes properties like `addressLines` for formatted address lines and `type` for address classification."]]],["The `BarcodeAddress` class represents a parsed address, primarily intended for extracting address information from a barcode. It features `addressLines`, an optional array of strings representing formatted address lines, and `type`, indicating the address type. The address parsing is limited, and the raw address data can be found in the `rawValue` property of the parent `Barcode` class for more complex parsing. Initialization of this class directly is unavailable.\n"]]