HTTP::MobileAgent::Plugin::SmartPhone - Plugin of HTTP::MobileAgent for detecting smartphone
use HTTP::MobileAgent; use HTTP::MobileAgent::Plugin::SmartPhone; my $agent = HTTP::MobileAgent->new; if ($agent->is_smartphone) { if ($agent->is_ios) { if ($agent->is_iphone) { ... } elsif ($agent->is_ipod) { ... } elsif ($agent->is_ipad) { ... } } elsif ($agent->is_android) { if ($agent->is_android_tablet) { ... } else { ... } } } $agent->ios_version; # eg. 5 $agent->ios_full_version; # eg. 5_0_1
HTTP::MobileAgent::Plugin::SmartPhone is a plugin of HTTP::MobileAgent for detecting smartphone.
True if ios or android.
Checking iOS or not. Including iPhone, iPod and iPad.
iOS major version. ex. 5. undef unless iOS.
iOS full version. ex. 5_0_1. undef unless iOS.
experimental.
Masayuki Matsuki <y.songmu@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::MobileAgent::Plugin::SmartPhone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::MobileAgent::Plugin::SmartPhone
CPAN shell
perl -MCPAN -e shell install HTTP::MobileAgent::Plugin::SmartPhone
For more information on module installation, please visit the detailed CPAN module installation guide.