Skip to content

nisrulz/device-type-ktx

Repository files navigation

Device Type KTX

Banner

Android library to provide Kotlin extensions for working with specific device types

Features:

  • Detect if device is a Phone or a Tablet.
  • Check orientation set for screen.
  • Lock screen orientation (Portrait or Landscape) for Phone and/or Tablet.
  • Detect if device has Bluetooth, NFC, Telephony and Camera hardware feature available.
  • Get screen resolution of device.
  • Check if device has MultiWindow mode enabled.

Use

Checkout the usage docs

Development

Checkout the dev docs

License

Copyright 2024 Nishant Srivastava

Licensed under the Apache License, Version 2.0.