Listener.EnableNotification Method

Definition

Namespace: P1.CameraSdk

Begin receiving camera action notifications from a specific camera

public void EnableNotification(Camera camera, EventType eventType);

After calling this method, the Listener object will begin receiving notifications, for the given action event and camera.

The (Camera, CameraEventId) 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 CameraEventId or you are about to dispose the Camera object, remember to disable the notification listener.

Parameters:

camera

The camera to receive action notifications from

eventType

The specific event the symbolizes the action

SdkException

an error-code inside if something goes wrong

See also:

EnableNotification(Camera, UInt32, bool), EnableNotification(SdkEventType), DisableNotification(Camera, EventType)