It typically latches in an on/off state based on the polarity of the magnet.
https://www.sparkfun.com/products/9312