Certain hall switch operation
As shown in the "Functional Description" section of the datasheet, those Hall effect switches use an external sense resistor.

EDIT:

Like so:







simulate this circuit &ndash; Schematic created using CircuitLab

And then you measure the voltage across Rsense.