Net::DBus::Callback Methods
Jump to navigation
Jump to search
AN!Tools :: Net::DBus Binding Tutorial :: Net::DBus::Callback Methods |
new
Usage:
my $cb=Net::DBus::Callback->new(
method => $name,
[args => \@args]);
OR
my $cb=Net::DBus::Callback->new(
object => $object,
method => $name,
[args => \@args]);
In the first case; Creates a new callback object that calls a plain old function (as opposed to a method). You can pass arguments to the function by putting them into an array and passing a reference to that array in the optional 'args' parameter. These values would be passed to the function before those passed in the 'invoke' method.
In the second case; Creates a new callback object that calls a method in the referenced '$object'. Beyond this, it is the same as the first case.
invoke
Usage:
$cb->invoke(@args)
This takes an array of arguments and passes them into the referenced callback after any arguments passed in the callback's constructor.
Any questions, feedback, advice, complaints or meanderings are welcome. | |||
Alteeve's Niche! | Alteeve Enterprise Support | Community Support | |
© 2025 Alteeve. Intelligent Availability® is a registered trademark of Alteeve's Niche! Inc. 1997-2025 | |||
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions. |