NAME

HTTP::MobileAgent::Plugin::SmartPhone -

SYNOPSIS

use HTTP::MobileAgent;
use HTTP::MobileAgent::Plugin::SmartPhone;

my $agent = HTTP::MobileAgent->new;
if ($agent->is_smartphone) {
    if ($agent->i_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

DESCRIPTION

HTTP::MobileAgent::Plugin::SmartPhone is a plugin of HTTP::MobileAgent for detecting smartphone.

METHODS

is_smartphone
True if ios or android.
is_ios
Checking iOS or not. Including iPhone, iPod and iPad.
is_iphone =item is_ipod =item is_ipad
ios_version
iOS major version. ex. 5.
undef unless iOS.
ios_full_version
iOS full version. ex. 5_0_1.
undef unless iOS.
is_android
is_android_tablet
experimental.
is_tablet
experimental.

AUTHOR

Masayuki Matsuki <y.songmu@gmail.com>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 100:

'=item' outside of any '=over'

Around line 132:

You forgot a '=back' before '=head1'