class Godot::SignalSubscription

Overview

Represents an active signal subscription or awaiter

Defined in:

libgodot/object.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(target_id : UInt64, signal_name : String, flags : ConnectFlags = ConnectFlags::None, callback : Proc(Array(Variant), Void) | Nil = nil) #

Instance Method Detail

def active? : Bool #

Returns true if this subscription is still active and listening


def args : Array(Variant) #

def callback : Proc(Array(Variant), Void) | Nil #

def completed? : Bool #

def connected? : Bool #

Idiomatic alias for #active?


def disconnect : Void #

Idiomatic alias for #unsubscribe


def flags : ConnectFlags #

def signal_name : String #

def string_args : Array(String) #

def target_id : UInt64 #

def trigger(signal_args : Array(Variant)) : Void #

def unsubscribe : Void #

def unsubscribed? : Bool #