DMSPayloadData
@interface DMSPayloadData: NSObject
/// Data type of the payload. These types are defined by the ``DMSPayloadRepresentationType`` enumeration.
@property (readonly) DMSPayloadRepresentationType type;
/// Value of data. The value type is defined by ``type``. ``DMSPayloadRepresentationType`` defines the possible return types for each value type.
@property (readonly, nonnull) id value;
/// The value of the data as a string. This property guarantees safe access to barcode values as a string type. Most barcode symbologies encode data as strings, so this is most common way to retrieve barcode data. For cases where an expected data might be of a type other than a string, use the ``value`` property.
@property (readonly, nonnull) NSString *stringValue;
@end
Undocumented
-
Data type of the payload. These types are defined by the
DMSPayloadRepresentationTypeenumeration.Declaration
Objective-C
@property (readonly) DMSPayloadRepresentationType type;Swift
var type: PayloadRepresentationType { get } -
Value of data. The value type is defined by
type.DMSPayloadRepresentationTypedefines the possible return types for each value type.Declaration
Objective-C
@property (readonly, nonnull) id value;Swift
var value: Any { get } -
The value of the data as a string. This property guarantees safe access to barcode values as a string type. Most barcode symbologies encode data as strings, so this is most common way to retrieve barcode data. For cases where an expected data might be of a type other than a string, use the
valueproperty.Declaration
Objective-C
@property (readonly, nonnull) NSString *stringValue;Swift
var stringValue: String { get }
DMSPayloadData Class Reference