module GPhoto2::Context::Callbacks
Overview
Provides callbacks for libgphoto2.
Direct including types
Defined in:
gphoto2/context/callbacks.crConstructors
Macro Summary
Instance Method Summary
- #cancel_callback : Proc(Bool)
-
#cancel_callback=(callback : Proc(Bool) | Nil) : Nil
Sets cancel callback.
- #cancel_callback? : Proc(Bool) | Nil
-
#check!(rc : Int32) : Int32
Checks if the given rc is a GPhoto2 error code.
-
#clear_callbacks : Nil
Clears all callbacks.
- #error_callback : Proc(String, Void)
-
#error_callback=(callback : Proc(String, Void) | Nil) : Nil
Sets error callback.
- #error_callback? : Proc(String, Void) | Nil
- #idle_callback : Proc(Void)
-
#idle_callback=(callback : Proc(Void) | Nil) : Nil
Sets idle callback.
- #idle_callback? : Proc(Void) | Nil
- #last_error : String | Nil
- #message_callback : Proc(String, Void)
-
#message_callback=(callback : Proc(String, Void) | Nil) : Nil
Sets message callback.
- #message_callback? : Proc(String, Void) | Nil
- #status_callback : Proc(String, Void)
-
#status_callback=(callback : Proc(String, Void) | Nil) : Nil
Sets status callback.
- #status_callback? : Proc(String, Void) | Nil
Constructor Detail
Macro Detail
Instance Method Detail
def cancel_callback=(callback : Proc(Bool) | Nil) : Nil
#
Sets cancel callback. Pass nil
to remove it.
def error_callback=(callback : Proc(String, Void) | Nil) : Nil
#
Sets error callback. Pass nil
to remove it.
def message_callback=(callback : Proc(String, Void) | Nil) : Nil
#
Sets message callback. Pass nil
to remove it.
def status_callback=(callback : Proc(String, Void) | Nil) : Nil
#
Sets status callback. Pass nil
to remove it.