TwistPHP Documentation

Device

File path: dist/twist/Core/Utilities/Device.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

Type: Utility

Device — Detect device related information from a user agent string, also can return logos and icons where applicable.

Example Usage

<?php
//Set the variables for the example
$strUserAgent null;

//Call the function getOSVersion with the example vars
Twist::Device() -> getOSVersion($strUserAgent);

Method List

Method Access Returns
getpublicvoid
getOSpublicvoid
getOSVersionpublicvoid
getDevicepublicvoid
getBrowserpublicvoid