Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would like a phone() method #51

Open
instadrew opened this issue Jul 3, 2013 · 2 comments
Open

Would like a phone() method #51

instadrew opened this issue Jul 3, 2013 · 2 comments

Comments

@instadrew
Copy link

I have started using HTTP::BrowserDetect and have noticed that it currently has the methods mobile(), tablet(), and robot(), but not phone(). I'm wondering if there are any plans to add such a method. Right now, I'm just doing:

return ($browser->mobile && ! $browser->tablet && ! $browser->robot) ? 1 : 0;

but a provided method would be great, if that's possible.

@garu
Copy link

garu commented Jul 29, 2015

@oalders @dougwilson Any thoughts on this? From what I understood of #38 and #90, there should be at least interesting to document on the POD something like "what's the best way to tell if it's a phone?" pointing to either this solution or maybe something regarding os() or device().

@oalders
Copy link
Owner

oalders commented Jul 29, 2015

@garu Either a doc patch or a patch with a new method would be good to have here. I think it comes up often enough to merit that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants