module GPhoto2::Context::Callbacks
Direct including types
Defined in:
gphoto2/context/callbacks.crConstructors
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
- #clear_callbacks : Nil
- #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
Macro Summary
Constructor 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.