HTTP::MobileAgent::Display - Display information for HTTP::MobileAgent
use HTTP::MobileAgent; my $agent = HTTP::MobileAgent->new; my $display = $agent->display; my $width = $display->width; my $height = $display->height: my($width, $height) = $display->size; if ($display->color) { my $depth = $display->depth; } # only available in DoCoMo 505i my $width_bytes = $display->width_bytes; my $height_bytes = $display->height_bytes;
HTTP::MobileAgent::Display is a class for display information on HTTP::MobileAgent. Handy for image resizing or dispatching.
$width = $display->width; $height = $display->height:
returns width and height of the display.
($width, $height) = $display->size; $size = $display->size;
returns width with height in array context, width * height in scalar context.
if ($display->color) { }
returns true if it has color capability.
$depth = $display->depth;
returns color depth of the display.
If the environment variable DOCOMO_MAP exists, the specified XML data will be used for $DisplayMap.
ex) Please add the following code.
$ENV{DOCOMO_MAP} = '/path/to/DoCoMoMap.xml';
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
HTTP::MobileAgent, "DoCoMoMap.xml" in t
2 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
=back without =over
To install HTTP::MobileAgent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::MobileAgent
CPAN shell
perl -MCPAN -e shell install HTTP::MobileAgent
For more information on module installation, please visit the detailed CPAN module installation guide.