public static function init() { try { self::$config = new WurflCloud_Client_Config(); self::$config->api_key = self::$api_key; self::$client = new WurflCloud_Client_Client(self::$config); self::$client->detectDevice(); } catch (Exception $e) { // Show any errors echo "Error: " . $e->getMessage(); } }
public function isTablet() { return WurflCloud::capability('is_tablet'); }