Termux-API
view release on metacpan or search on metacpan
lib/Termux/API.pm view on Meta::CPAN
}
sub brightness {
$_[0]->command("termux-brightness $_[1]");
}
sub camera_info {
$_[0]->command('termux-camera-info');
}
sub clipboard_get {
$_[0]->command('termux-clipboard-get');
}
sub clipboard_set {
$_[0]->command("termux-clipboard-set $_[1]");
}
sub contact_list {
$_[0]->command('termux-contact-list');
}
sub dialog {
my ( $self, $type, %options ) = @_;
my $command = sprintf( 'termux-dialog %s %s',
$type,
lib/Termux/API.pm view on Meta::CPAN
Set the display brightness. Note that this may not work if automatic brightness control is enabled.
$termux->brightness
=head2 camera_info
Get information about device camera(s).
$termux->camera_info
=head2 clipboard_get
Get the system clipboard text
$termux->clipboard_get
=head2 clipboard_set
Set the system clipboard text.
$termux->clipboard_set("copy some text")
=head2 contact_list
List all contacts
$termux->contact_list
=head2 dialog
Show dialog widget for user input
( run in 0.774 second using v1.01-cache-2.11-cpan-84e82930d8c )