Android-ElectricSheep-Automator

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    It returns Android::ElectricSheep::Automator::DeviceProperties object
    on success or undef on failure.

 connect_device()

    It signals to our object that there is now a device connected to the
    desktop and its enquiry and subsequent control can commence. If this is
    not called and neither device-is-connected => 1 is specified as a
    parameter to the constructor, then the functionality will be limited
    and access to functions like "swipe($params)", "open_app($params)",
    etc. will be blocked until the caller signals that a device is now
    connected to the desktop.

    Using "connect_device($params)" to specify which device to target in
    the case of multiple devices connected to the desktop will also call
    this method.

    This method will try to enquire the connected device about some of its
    properties, like screen size, resolution, orientation, serial number
    etc. This information will subsequently be available via
    $self->device_properties()>.

README.md  view on Meta::CPAN


## **`connect_device()`**

It signals to our object that there is now
a device connected to the desktop and its
enquiry and subsequent control can commence.
If this is not called and neither `device-is-connected => 1`
is specified as a parameter to the constructor, then
the functionality will be limited and access
to functions like ["swipe($params)"](#swipe-params), ["open\_app($params)"](#open_app-params), etc.
will be blocked until the caller signals that
a device is now connected to the desktop.

Using ["connect\_device($params)"](#connect_device-params) to specify which device
to target in the case of multiple devices
connected to the desktop will also call this
method.

This method will try to enquire the connected device
about some of its properties, like screen size,
resolution, orientation, serial number etc.

lib/Android/ElectricSheep/Automator.pm  view on Meta::CPAN


=head2 B<C<connect_device()>>

It signals to our object that there is now
a device connected to the desktop and its
enquiry and subsequent control can commence.
If this is not called and neither C<device-is-connected =E<gt> 1>
is specified as a parameter to the constructor, then
the functionality will be limited and access
to functions like L</swipe($params)>, L</open_app($params)>, etc.
will be blocked until the caller signals that
a device is now connected to the desktop.

Using L</connect_device($params)> to specify which device
to target in the case of multiple devices
connected to the desktop will also call this
method.

This method will try to enquire the connected device
about some of its properties, like screen size,
resolution, orientation, serial number etc.



( run in 1.674 second using v1.01-cache-2.11-cpan-39bf76dae61 )