device-type-ktx

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

APACHE-2.0 License

Stars
2
Committers
2

Device Type KTX

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.