Camera.WaitForLiveView Method

Definition

Namespace: P1Sdk

Returns a LiveViewImage ‘s with the LiveView bitmap data, and a few properties

public LiveViewImage WaitForLiveView(UInt32 timeoutMs = 0);

This method blocks and waits for a LiveView image to be present. To avoid blocking you could utilize the notification system, to only call this method, when a CameraEventId.NewLiveViewImage has been received.

Before you can receive any LiveView images, you must first enable both EnableImageReceiving(bool) and SetLiveViewEnable(bool).

Parameters:

timeoutMs

Optional: The amount of milliseconds to wait, before aborting. Zero is forever.

SdkException

SdkException with the error-code if something goes wrong.

Returns:

An in-memory LiveView image object.

See also:

SetLiveViewEnable(bool)