module GPhoto2::Camera::Event

Overview

Provides methods to wait for events.

Direct including types

Defined in:

gphoto2/camera/event.cr

Instance Method Summary

Instance Method Detail

def wait(timeout : Time::Span = 2.seconds) : CameraEvent #

[View source]
def wait_for(event_type : CameraEvent::Type, timeout : Time::Span = 2.seconds) : CameraEvent #

Waits for the specified event type and returns the event.

NOTE this method is blocking.


[View source]