Listener.EnableNotification Method
Definition
Namespace: P1.CameraSdk
Begin receiving property notifications from a specific camera
public void EnableNotification(Camera camera, UInt32 propertyId, bool isSpecificationChange = false);
By default this method enables value change notifications. Set isSpecificationChange
to true
to listener for specification change notifications instead.
After calling this method, the Listener object will begin receiving notifications, for the given property and camera.
The (Camera, PropertyId)
tuple uniquely defines the notification listener. So calling this method with the same parameters later, has no effect.
WHen you are done listening on the property or you are about to dispose the Camera object, remember to disable the notification listener.
Parameters:
camera |
The camera to listen for properties changes on |
propertyId |
The Id of the property to listen for |
isSpecificationChange |
Optional set to |
an error-code inside if something goes wrong |
See also:
EnableNotification(Camera, EventType), EnableNotification(SdkEventType), DisableNotification(Camera, UInt32, bool)