You are here

README.txt in Mobile Device Detection 8.2

Same filename and directory in other branches
  1. 8.3 README.txt
  2. 8 README.txt
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Installation
 * Configuration
 * Usage
 * Maintainers

INTRODUCTION
------------

"Mobile device detection" module can detect any mobile device. You can use it 
via service or "Views". This module integrate with "Views" and you can easily 
to switch "Views display" for different devices.

 * For a full description of the module, visit the project page:
   https://www.drupal.org/project/mobile_device_detection

REQUIREMENTS
------------

 -No special requirements.

INSTALLATION
------------

 * Module: Install as you would normally install a contributed Drupal module.
   See: https://www.drupal.org/documentation/install/modules-themes/modules-8
   for further information.

CONFIGURATION
-------------

The module has no menu or modifiable settings. There is no configuration.

USAGE
-------------

	Initialization

	$entity = \Drupal::service('object.mdd');

	You can to use a couple of methods to check devices

	if($entity->isMobile()){
		If is mobile then you can get object

    $entity->getObject();
  }

  if($entity->isTablet()){
  	If is tablet then you can get object

    $entity->getObject();
  }

MAINTAINERS
-----------

Current maintainers:
 * Victor Isaikin - https://www.drupal.org/u/depthinteractive
 * Site - https://depthinteractive.ru

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. * Usage
  8. * Maintainers
  9. INTRODUCTION
  10. ------------
  11. "Mobile device detection" module can detect any mobile device. You can use it
  12. via service or "Views". This module integrate with "Views" and you can easily
  13. to switch "Views display" for different devices.
  14. * For a full description of the module, visit the project page:
  15. https://www.drupal.org/project/mobile_device_detection
  16. REQUIREMENTS
  17. ------------
  18. -No special requirements.
  19. INSTALLATION
  20. ------------
  21. * Module: Install as you would normally install a contributed Drupal module.
  22. See: https://www.drupal.org/documentation/install/modules-themes/modules-8
  23. for further information.
  24. CONFIGURATION
  25. -------------
  26. The module has no menu or modifiable settings. There is no configuration.
  27. USAGE
  28. -------------
  29. Initialization
  30. $entity = \Drupal::service('object.mdd');
  31. You can to use a couple of methods to check devices
  32. if($entity->isMobile()){
  33. If is mobile then you can get object
  34. $entity->getObject();
  35. }
  36. if($entity->isTablet()){
  37. If is tablet then you can get object
  38. $entity->getObject();
  39. }
  40. MAINTAINERS
  41. -----------
  42. Current maintainers:
  43. * Victor Isaikin - https://www.drupal.org/u/depthinteractive
  44. * Site - https://depthinteractive.ru