module

GPhoto2::Context::Callbacks

Provides callbacks for libgphoto2.

Constructors

Instance methods

cancel_callback
cancel_callback=(callback : Proc(Bool) | Nil) : Nil

Sets cancel callback. Pass nil to remove it.

See: LibGPhoto2#gp_context_set_cancel_func

Source
cancel_callback?
check!(rc : Int32) : Int32

Checks if the given rc is a GPhoto2 error code.

Source
clear_callbacks

Clears all callbacks.

Source
error_callback
error_callback=(callback : Proc(String, Void) | Nil) : Nil

Sets error callback. Pass nil to remove it.

See: LibGPhoto2#gp_context_set_error_func

error_callback?
idle_callback
idle_callback=(callback : Proc(Void) | Nil) : Nil

Sets idle callback. Pass nil to remove it.

See: LibGPhoto2#gp_context_set_idle_func

Source
idle_callback?
last_error
Source
message_callback
message_callback=(callback : Proc(String, Void) | Nil) : Nil

Sets message callback. Pass nil to remove it.

See: LibGPhoto2#gp_context_set_message_func

message_callback?
status_callback
status_callback=(callback : Proc(String, Void) | Nil) : Nil

Sets status callback. Pass nil to remove it.

See: LibGPhoto2#gp_context_set_status_func

status_callback?

Macros

set_callback(key, callback_type, args, &block)
Source