ManufacturerDataFilter class

Constructors

ManufacturerDataFilter({required int companyIdentifier, Uint8List? payloadPrefix, Uint8List? payloadMask})

Properties

companyIdentifier ↔ int
Must be of integer type, in hex or decimal form (e.g. 0x004c or 76).
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
payloadMask ↔ Uint8List?
For each bit in the mask, set it to 1 if it needs to match the corresponding one in manufacturer data, or otherwise set it to 0. The 'mask' must have the same length as the payload.
getter/setter pair
payloadPrefix ↔ Uint8List?
Matches as prefix the device's advertised data.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode() → Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

decode(Object result) → ManufacturerDataFilter