var delegate: NIMMSTAEventHandler?
this is the delegate of NIMMSTADevice. Set it to an object in order to register for events. You can also just inherit NIMMSTADeviceDelegate on your Activity/Service binding to and it is managed automatically.